No slash command · from code-review
Headless merge step for code review workflows: combines lens outputs from cr-scan into a single re-graded report, writes findings with fixes and risk classes to the context directory. Not for interactive use.
Ships in code-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Arguments: $ARGUMENTS
You do /start-cr's Steps 4–5 for a caller that applies fixes itself: nobody reads a question you
ask, and nothing you do edits the checkout.
A missing --context, or a directory without scope.json, ends the run with status: error and
the reason. Those two are the only error cases: nothing after them changes status.
Read every file this skill names — the contract, severity.md, scope.json, conventions.md,
each lens file — with the Read tool, one call per file. A cat chain through Bash is no
substitute: under zsh a separator such as echo ===== aborts the whole chain, and joined output
past a size is truncated, so a lens file read that way loses its last entries. Bash is for git.
scope.json's lenses.active names the lenses that had to run. Each needs <lens>.md in the
context directory, opening with its Lens: header line. A file that is missing, has no header, or
presents itself as an amendment or a partial list is a lens that has not reported: do not merge
around it. Return status: incomplete with those lenses named and write no report — the caller
runs them again. A review missing a lens is never passed off as whole.
A codex or omp entry is the exception: each is an external review, not a lens. An <id>.md
that is missing, has no header, or reads Lens: <id> · skipped: <reason> is skipped: <id> — <reason> (no output for the first two), never incomplete; the merge goes on without it, as
the contract's external-review clause says.
Read ${CLAUDE_PLUGIN_ROOT}/references/merge-contract.md completely and follow it: the Merge and
re-grade half over the lens files, then Fix risk to give every kept finding its class, then
the Report half's skeleton. Pre-read the change the way /start-cr does while its Scanners
run — git -C <checkout> diff <diff_args> -- <path> per file in scope.json — so (verify)
resolution and the fix checks read the code, not the lens's account of it; the file-growth check
runs here too. Its Conventions line comes from conventions.md, the Tally's lens count and
skipped reasons and Change types clause from scope.json, and its External review clause from codex.md and omp.md.
Write the rendered report, Reconciliation line first, to <context>/cr-report.md with the
Write tool. That and nothing else is what you write. A write that fails leaves the merge standing:
return status: merged with every finding and report: none (<the reason the write failed>).
End this skill with this block and nothing after it. The block closes this skill, not the turn: when the prompt that invoked it names further steps, carry them out after it. One line per finding the report keeps, boy-scout included, in the report's order:
status: merged | incomplete | error
report: <context>/cr-report.md | none (<reason>)
lenses: <L> of <A> (skipped: <lens — reason; …>; partial: <lens — K of M files; …>)
findings:
- <severity> · <family> · <rule> · <path>:L<lines> · <safe | structural | report-only> — <the fix, as a clause>
- comments · R<n> · <VERDICT> · <path>:L<line> · <safe | structural | report-only> — <the fix>
unowned:
- <each Not flagged bullet that is a real problem merely without a rule, verbatim>
security-review: <the Skipped line's /security-review pointer clause verbatim, naming the files>
codex and omp never appear on the lenses line, skipped or not; the report's Tally carries them.
A spec · missing-requirement anchors to the spec's own path and lines. A boy-scout finding says
boy-scout after its class. With nothing to report, write findings: none — the report still
exists, and the tally in it is the evidence that the review ran.
unowned carries what the findings list cannot: a problem the merge confirmed that no rule names
sits in Not flagged as its own bullet, and a caller that reads only this block would never see
it. Copy each such bullet as the report renders it; a look-alike passed on as a genuine
non-finding stays out. With none, write the single line unowned: none. security-review copies
the clause of the report's Skipped line that sends files to /security-review, file names
included; when nothing skipped calls for it, write security-review: none.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/cr-prepareHeadless first step of a code review that another workflow drives — resolves the committed change against a base, reads the project's conventions and standards once, decides the active lens set, and writes all of it to a context directory that cr-scan and cr-merge read. Asks nothing and edits nothing in the checkout. Not for interactive use: a person reviews with /start-cr./cr-scanHeadless code-review Scanner for one lens, or a listed few in turn — reads the context directory cr-prepare or /start-cr wrote, judges the change against each lens's rules, and writes each lens's findings into the directory for cr-merge. Asks nothing and edits nothing. Not for interactive use: a person reviews with /start-cr.npx claudepluginhub grixu/cc-toolkit --plugin code-reviewOther plugins' skills for the same job