Base branch for this review: "$ARGUMENTS" (use main if that is empty).
-
Run
git diff --stat <base>...HEADandgit status. Include uncommitted changes in scope. If there are no changes, say so and stop. -
Run
npm run checkand record the result. Don't fix anything yet. -
Delegate to the code-reviewer subagent with: the base branch, the list of changed files, and the
npm run checkoutput. Ask it to return findings only. -
If source files changed without matching test changes, also ask the test-writer subagent to list the missing test cases (list only, no code yet).
-
Present one combined report:
Verdict: ready / ready after fixes / needs rework Blocking — bugs, security, broken conventions from CLAUDE.md (file:line, why, fix) Should fix — missing tests, unclear naming, error handling gaps Nits — optional, max 5 Checks —
npm run checkresult -
Ask before applying any fix.