원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
/review
Workflow
- Run
git diff main...HEAD— get ACTUAL diff, never reconstruct - Produce structured review (severity tiers below)
- Ask ≤5 grill-me questions — one per key design decision; design intent only, not style
- On approval: apply Blocker fixes → run tests → run lint → commit (conventional message)
Scope Discipline
Review only what changed on this branch — never pre-existing, unmodified code. The diff is the contract; default to git diff main...HEAD, not memory or full-file reads. Real repos make this a hard rule:
Focus exclusively on changes introduced in the current branch compared to main. Do not review pre-existing code that was not modified.Security-Before-Push
For anything about to be pushed, run a security-focused review of the branch's own changes before shipping (optional trivy fs on vulnerable deps). Watch specifically for: logged secrets/tokens/PINs/PII, and __proto__/prototype-walking reads on untrusted config.
Agent-Authored Diffs
If the branch was authored largely by an agent — or you suspect it was — layer agentic-code-review. Watch first for the three characteristic agent failure modes, all Blockers: test tampering (assertions edited to match broken behavior — read test diffs before the code), CI weakening (removed or skipped tests, lowered gates), and prompt injection (untrusted input reaching LLM calls in new AI features). Tier review depth by blast radius, not by author; the human who clicks merge owns the change.
Severity Tiers
| Tier | Criterion | Required Action |
|---|---|---|
| Blocker | Bug, security hole, data loss, broken invariant | Fix before merge |
| Concern | Design flaw, missing test, perf issue | Discuss + likely fix |
| Nit | Style, naming, minor duplication | Optional |
Output Format
## Blockers
- `src/auth.ts:42` — expiry check uses `<` not `<=`; off-by-one passes expired tokens
## Concerns
- No test for error path in `processPayment()`
## Nits
- `userData` → `user` (same meaning, shorter)
## Questions
1. Why is `retryCount` hardcoded to 3 — should this be config?Deep-Rigor Mode
When the user asks for a strict / thorough review (e.g. "/review --strict", "deep review", "rigorous review", "code quality audit"), layer the code-review-and-quality rubric on top of the workflow above: walk the five axes (correctness, readability, architecture, security, performance), promote its presumptive blockers into Blockers, and hold commits to its higher approval bar. For agent-authored branches, also layer agentic-code-review.
Related
- mattpocock/code-review — two-axis review
(Standards + Spec vs the originating issue) run as parallel sub-agents. Source: <https://github.com/mattpocock/skills/tree/main/skills/engineering/code-review>
upstream of the vendored deep-rigor rubric used in Deep-Rigor Mode above; see also agentic code review for the agent-diff failure modes.
Benchmark
Scenario: .benchmarks/scenarios/review-001-severity-tiers.md · Run: 2026-08-31 · Log: .benchmarks/runs/2026-08-31/review-001-severity-tiers.json
| Model | Without | With | Delta |
|---|---|---|---|
| claude-opus-4-8 | 67% | 83% | +16% |
| claude-sonnet-4-6 | 83% | 67% | −16% |
| claude-haiku-4-5 | 83% | 83% | +0% |
NEG (run 2026-08-31). Sonnet −16 on the severity-tier boundary; opus +16. Classification ambiguous between criteria and tier table — diagnostic c5-only re-run queued before any edit (cap reached). Gate per .agents/skills/skill-optimizer/rules/release-gates.md.
