一键导入
review
Review code changes for bugs, API contract violations, and engineering standard violations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review code changes for bugs, API contract violations, and engineering standard violations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Structured debugging — reproduce, hypothesize, isolate root cause, fix surgically, verify no regressions
End-to-end workflow for large, new feature development — deep research with case studies, structured planning, phased implementation
Lightweight workflow for small refinements — tweaks, config changes, prompt tuning, single-module changes
| name | review |
| description | Review code changes for bugs, API contract violations, and engineering standard violations |
| wiki_tiers | ["essential","patterns","standards","decisions"] |
{{LANGUAGE}} / {{PROJECT_NAME}} Thorough, accurate, zero speculation.
Philosophy: Working code is 50% done. Other half: strict adherence to Engineering Standards.
No code changes until Phase 3.
git diff --no-color > /tmp/review_diff.txt (or --cached). Read full diff. Map touched files/modules.
3 agents simultaneously:
Agent A — Docs (Explore): All relevant READMEs. Report architecture, data flow, lifecycle, gotchas.
Agent B — API Verify (general-purpose): Every external API usage in diff → fetch docs, verify signatures, lifecycle, contracts.
Agent C — Source (Explore): Every touched file IN FULL. Report behavior, data flow, callers, consumers, pre-existing bugs.
Wait for all agents.
Present findings, teach reasoning, build action plan.
Bug Categories (by severity):
{ success, error }{{vars}} reaching output or file pathsStandard Violations (per STANDARDS.md):
any, !, unsafe) without justified commentPer finding: file+lines+code, why it's a problem, severity (Red: Bug / Yellow: Standard / Green: Suggestion), minimal fix proposal.
Explain reasoning. Answer questions. Flag anything <90% confidence.
Create {{ARTIFACT_DIR}}/{topic}_REVIEW_FIXES_PLAN.md:
# {Topic} Review Fixes Plan
## Agreed Changes
| # | Severity | File(s) | Description | Depends On |
|---|----------|---------|-------------|------------|
## Declined/Deferred
| # | Reason | Description |
|---|--------|-------------|
## Lessons Learned
Mark dependencies for parallel execution. Proceed only after explicit approval.
Implement approved fixes only.
Group by independence (Depends On column). Independent → parallel agents. Dependent → sequential. Aggregate and resolve conflicts.
Run CLAUDE.md Verify Checklist against all changed files. Report violations as Yellow findings.
{{BUILD_CHECK_CMD}} — 0 errors. Report summary.