Skip to content

Show it a video you love. Get a new video in the same style. An AI crew (Claude Code or Codex) plans, builds and reviews it with you.

Nicer Claude review report, capped turns

許元豪be10348faf9e
diff --git a/.github/claude-review.md b/.github/claude-review.md
new file mode 100644
index 0000000..71c68c2
--- /dev/null
+++ b/.github/claude-review.md
@@ -0,0 +1,38 @@
+# PR review format
+
+Review only the changes in this pull request (the diff), not the whole repo. Don't run builds or tests. Keep it short.
+
+Report real problems only: bugs, security issues, breaking changes, performance traps. No style or formatting nits (the code is deliberately dense).
+Project rules: `app/server` runs TypeScript directly on Node type stripping, so no `enum`, `namespace` or parameter properties. `.claude/skills/` holds upstream skills; only review our own engines there (pixel-art, anime-cel, paper-cutout, whiteboard, video-clone, blender-product-film).
+
+Reply with exactly this layout, in Traditional Chinese:
+
+---
+## 🤖 Claude 審查報告
+
+**結論:✅ 建議合併** (或 ⚠️ 修正後再合併/❌ 不建議合併)
+一句話說明原因。
+
+| 檢查項目 | 結果 |
+|---|---|
+| 正確性 | ✅ 沒有問題 或 🔴 n 項 |
+| 安全性 | ✅ 沒有問題 或 🔴 n 項 |
+| 效能 | ✅ 沒有問題 或 🟡 n 項 |
+| 相容性 | ✅ 沒有破壞性變更 或 🟡 說明 |
+| 測試 | ✅ 有涵蓋 或 ➖ 沒有新增測試 |
+
+### 需要處理
+1. 🔴 **`檔案:行號`**:問題一句話。
+ → 建議改法(必要時附一小段程式碼)
+
+沒有的話寫「無」。
+
+### 可以更好(非必要)
+- 🟡 一句話建議
+
+沒有的話整段省略。
+
+<sub>只審查本次變更 · Claude 自動審查</sub>
+---
+
+Verdict rules: any 🔴 → ⚠️ 修正後再合併 (or ❌ if it breaks the app or leaks secrets). Only 🟡 or nothing → ✅ 建議合併.
diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml
index 28ad7a3..5b74650 100644
--- a/.github/workflows/claude-review.yml
+++ b/.github/workflows/claude-review.yml
@@ -29,5 +29,7 @@ jobs:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
trigger_phrase: '@claude'
+ use_sticky_comment: true
claude_args: |
- --append-system-prompt "You are reviewing a pull request. Report only real problems: bugs, security issues, broken behaviour, missing error handling that matters. Skip style and formatting: the code is deliberately dense. Project rules: app/server runs TypeScript directly on Node type stripping, so no enum, namespace or parameter properties; .claude/skills/ holds upstream skills we don't review unless the PR changes our own engines (pixel-art, anime-cel, paper-cutout, whiteboard, video-clone, blender-product-film). Put each finding as an inline comment on the line, then one short summary. If nothing is wrong, say so in one line. Write in Traditional Chinese."
+ --max-turns 8
+ --append-system-prompt "Follow .github/claude-review.md exactly: read it first, then review the pull request diff and reply in that format."