一键导入
critical-review
Use when you want structured feedback on a plan or document before implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you want structured feedback on a plan or document before implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when you want a thorough code review of files, changes, or the entire project before shipping.
Use when you want to implement the next batch of a plan. Handles module implementation, testing, and validation.
Use when you want a thorough security review of the codebase, a specific file/directory, or a set of changes before shipping.
Save all session progress to status tracking files. Use when you want to checkpoint work mid-session or before ending.
基于 SOC 职业分类
| name | critical-review |
| description | Use when you want structured feedback on a plan or document before implementation. |
| risk | safe |
| risk-note | writes to ~/.claude/plans/ only, with user consent |
| argument-hint | [plan-file] |
This skill must only be invoked from the main session, never from a subagent.
Identify the target document:
a. If the user specified a file path or plan name, use that.
b. Else determine the project name: check origin git remote (parse last path component, strip .git) → git root basename → working directory basename. If ambiguous, ask the user.
c. List files in ~/.claude/plans/<project-name>/, sorted by modification time (most recent first). If the directory does not exist or contains no .md files, tell the user: "No plan files found in ~/.claude/plans/<project-name>/. Please specify a file path to review." and stop.
d. Confirm with the user: "I'll review <filename>. Correct?"
Round 1 — Spawn 4 parallel subagents (all four on the latest, most capable model — omit the model override so each inherits the session model rather than pinning a version-specific name; plan adjudication is precision work where a weaker model's false positives cost more verification time than the savings, so don't downgrade to a cheaper tier; CLAUDE_CODE_SUBAGENT_MODEL overrides if set):
Each subagent's prompt MUST include these instructions verbatim:
Read the target plan document. Read at most 5 source files directly relevant to your review — prefer files explicitly named in the plan. Do NOT read the entire codebase.
Return findings as a numbered list, max 10 items, highest severity first. Each item must have exactly these fields:
- Severity: critical | major | minor
- Location: file path and section/function name
- Issue: one-sentence description
- Fix: one-sentence suggested fix
Return NO other text, except: if you encounter tool errors or cannot read required files, report that as your first finding with severity "critical" and location "tooling".
After all subagents complete, synthesize in the main session:
If the user approves incorporating feedback: the main session (not a subagent) updates the plan document with a new revision and notes what changed.
Decision logging (runs after every user response — approval, rejection, or deferral):
Append each decision to ~/.claude/plans/<project-name>/decision-log.md. Create the file if it doesn't exist. Append-only — never overwrite existing entries. Format per entry:
## YYYY-MM-DD — [Plan filename]
- **Finding:** [1-sentence summary]
- **Decision:** accepted / rejected / deferred
- **Rationale:** [why — from the user's response or the discussion]
- **Alternatives considered:** [if any were discussed]
Iterate until clean. After applying fixes, automatically start the next round:
model override so they inherit the session model; fix verification is high-stakes — don't downgrade to a cheaper tier; CLAUDE_CODE_SUBAGENT_MODEL overrides if set):
When the stop condition is met, inform the user the review is complete and the plan is ready for implementation. Do not begin implementation unless the user explicitly requests it.
If the user does not approve changes at any point, present the findings as a reference, log the rejections (step 5), and end. Do not modify any files.
The final synthesized report MUST include all of the following:
clean (0 critical, 0 major) or needs-revision (1+ critical or major)