ワンクリックで
code-review
Standards review of the diff since a fixed point; Spec axis added only when a spec exists.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Standards review of the diff since a fixed point; Spec axis added only when a spec exists.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Read before writing or editing any agent-facing instructions — an agent skill (SKILL.md and whatever it links to), a tool/function description, or an extension's injected context. Covers discoverability, information hierarchy, and token-lean design.
Strip dead code and useless comments from files touched this session, per house rules.
Compact the current conversation into a handoff document for another agent to pick up.
| name | code-review |
| description | Standards review of the diff since a fixed point; Spec axis added only when a spec exists. |
| disable-model-invocation | true |
Two-axis review of the diff between HEAD and a fixed point (default branch unless the user says otherwise):
Each axis runs as a reviewer sub-agent (read-only, hidden — invoke via the subagent tool with agent: "reviewer") so they don't pollute each other's context (in parallel when both run), then this skill aggregates the findings. The reviewer carries the Fowler smell baseline in its own system prompt — don't paste it.
First rebase the branch onto the default branch's tip. Skip when the branch is the default branch or already up to date. On conflict, follow ./rebase.md.
Then pin the fixed point. Whatever the user said is the fixed point — a commit SHA, branch name, tag, HEAD~5, etc. If they didn't specify one, default to the default branch.
Capture the diff command once: git diff <fixed-point>...HEAD (three-dot, so the comparison is against the merge-base). Also note the list of commits via git log <fixed-point>..HEAD --oneline.
Before going further, confirm the fixed point resolves (git rev-parse <fixed-point>) and the diff is non-empty. A bad ref or empty diff should fail here — not inside two parallel sub-agents.
Most work here starts without a formal spec — that's the normal case, not a failure. Look for one, in this order:
#123, Closes #45, etc.) — fetch via github_pr or gh issue view.docs/, specs/, or .scratch/ matching the branch name or feature.If nothing turns up, skip the Spec axis silently — do NOT ask the user for one — and note "no spec; Standards only" in the final report.
Anything in the repo that documents how code should be written, such as CODING_STANDARDS.md, CONTRIBUTING.md, or AGENTS.md.
(The fixed Fowler smell baseline lives in the reviewer agent's system prompt, not here.)
Standards always runs; Spec only when step 2 found a spec — then send both subagent calls in a single message.
Standards sub-agent prompt — include:
Spec sub-agent prompt — include:
Present each report that ran under ## Standards and ## Spec headings, verbatim or lightly cleaned. Do not merge or rerank findings — the two axes are deliberately separate (see Why two axes).
End with a one-line summary: total findings per axis, and the worst issue within each axis (if any). Don't pick a single winner across axes — that's the reranking the separation exists to prevent.
A change can pass one axis and fail the other:
Reporting them separately stops one axis from masking the other.