一键导入
review-code
Reviews code changes directly against quality standards. Use when no implementation plan or journal exists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reviews code changes directly against quality standards. Use when no implementation plan or journal exists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Publishes a clean normal feature or task branch and creates its pull request on explicit human request.
Instructions for writing good design plan artifacts. Use when specifically requested.
Instructions for writing good implementation plans artifacts. Use when specifically requested.
Instructions for executing implementation plans. Use when specifically requested.
Instructions for executing a task from an implementation plans. Use when specifically requested.
Instructions for investigating a codebase to answer a specific question.
| name | review-code |
| description | Reviews code changes directly against quality standards. Use when no implementation plan or journal exists. |
Start with the diff, expand context only as required, and produce compact findings. Re-review only after changes to acceptance criteria, a new code path, behavior, interface, data, security, or tests.
Review a set of files against quality standards and produce a code review artifact. Use this skill for standalone reviews where no implementation plan or journal is available.
Use this skill to review a specific set of changed files against quality standards, producing a structured findings artifact. It is appropriate when there is no implementation plan or journal to cross-reference — the review is purely against code quality.
This skill is a sub-skill called by orchestrators:
run-hotfix — lightweight review after a hotfix is appliedreview-pr — code quality review as part of addressing PR review commentsDo not confuse with review-implementation-execution, which reviews code against an
implementation plan and journal for AC coverage and plan alignment. Use review-code when
there is no plan — use review-implementation-execution when there is one.
Your prompt must include:
If not provided, ask before proceeding. Do not guess.
Write the review to code-review--{N}.md in the project directory. Read
.agents/artifacts/code-review/description.md for the canonical section definitions, and render
.agents/artifacts/code-review/template.md.j2 to produce the initial file. Replace all dummy
content — every line drawn from the retro encabulator — with real content for this review. The
rendered file must contain no placeholder text when submitted. Supply the path to your caller on completion.
No setup required. Proceed directly to reading the files.
Read each file in the review set directly. Understand the shape and purpose of the changes before forming opinions.
If project commands were provided, run them: tests, build, linter, type-checker, and coverage. Record results in the artifact.
If not, record skipped (no project commands provided) for each entry.
If tests fail or the build is broken: write the review artifact noting the failure output and stop. Return "Tests failing / Build broken. Fix before review."
If a prior review artifact is provided, walk through every finding. For each, mark:
file:line evidenceApply all loaded skills. Also enforce these quality gates regardless of which skills are loaded:
| Standard | Severity |
|---|---|
| Error handling on all external calls (network, fs, db, process) | Critical |
| No type-safety violations without a justification comment | Critical |
| No swallowed exceptions or ignored return values | Critical |
| New public functions have tests | Critical |
| Tests verify behavior, not mock interactions | Critical |
| No test-only hooks or helpers in production files | Critical |
| No input validation gaps or injection vectors | Critical |
| Null/undefined inputs handled where applicable | Significant |
| Edge cases (empty, boundary, max) covered | Significant |
| New code paths covered by tests (when coverage tool available) | Significant |
| Logic not placed in wiring/bootstrap files without justification | Significant |
| No unused imports, functions, or branches | Trivial |
Fill in all sections of the template. Store the artifact as described in ## Artifact.