Code Review
Deep, systematic code analysis with actionable feedback.
Independent pre-commit verification gate that validates working changes against authorized intent and ensures zero scope drift.
What this skill does
Decide whether the current candidate faithfully satisfies the authorized intent and is safe to commit. This is a review gate, not an implementation pass. Do not edit source files, fix findings, commit, stash, or discard changes. Return a bounded correction prompt instead.
Prevents agents from silently altering user intent, committing unverified assumptions, overlooking regressions, or treating passing unit tests as proof that scope didn't drift. Eliminates conflation of implementation and review.
When to reach for it
- After implementation is complete and before committing or opening a pull request.
- When evaluating staged or worktree diffs against an active Change Intent Contract (.agent-toolkit/intents/INT-*.md).
- When an independent pre-commit gate is required before merging code into a mainline branch.
How it works
Code Review follows a simple, structured process to pressure-test your thinking and help you reach a clearer decision.
Select Intent Being Reviewed
Prefer a project-local Change Intent Contract (.agent-toolkit/intents/INT-*.md). Authority order: explicit user correction, ready contract, task criteria, original request, repository evidence.
Establish Acceptance Contract
Preserve stable acceptance IDs and scope boundaries (outcome, acceptance criteria, must preserve, constraints, approval boundaries, out of scope).
Establish Complete Candidate
Bind review to intent identity and candidate boundary (intent ID + revision, HEAD commit, candidate boundary, changed-path snapshot). Inspect staged and untracked state for omitted work.
Classify Every Changed Path
Assign each change exactly one disposition: REQUIRED, SUPPORTING, BENIGN_EXTRA, MATERIAL_EXTRA, UNRELATED, or UNCLEAR.
Verify Acceptance Coverage
Evaluate every acceptance criterion independently: PASS, PARTIAL, FAIL, UNKNOWN, or WITHDRAWN based on concrete evidence.
Review Implementation Risk
Review dimensions relevant to candidate (security, auth, data integrity, migrations). Load references/review-risk.md where needed.
Validate Final Candidate
Run the smallest relevant checks that can prove requested behavior, then widen. Never report checks as passed without running against the current candidate.
Make Commit Decision
Issue one of four outcomes: PASS (safe to commit), NEEDS_CONFIRMATION (material extra), FIX (blocking issues), or BLOCKED (insufficient state).
Output Contract & Decision Format
What's included
The skill comes with a ready-to-use prompt, guidance, and supporting resources.
Common questions
Install this skill
Add Code Review to your assistant and start using it in your workflow.
Pre-packaged ZIP archives are published when a tagged GitHub release is created on the public repository. Zero simulated or fabricated binary downloads are served.