Agent skill
requesting-code-review
Use when implementation is done and you need a structured pre-PR review workflow. Triggers: 'ready for review', 'review my changes before PR', 'pre-merge check', 'is this ready', 'submit for review'. NOT for: post-merge review (use code-review) or deciding how to integrate (use finishing-a-development-branch).
Install this agent skill to your Project
npx add-skill https://github.com/axiomantic/spellbook/tree/main/skills/requesting-code-review
SKILL.md
Requesting Code Review
Invariant Principles
- Phase gates are blocking - Never proceed to next phase without meeting exit criteria
- Evidence over opinion - Every finding must cite specific code location and behavior
- Critical findings are non-negotiable - No Critical finding may be deferred or ignored
- SHA persistence - Always use reviewed_sha from manifest, never current HEAD
- Traceable artifacts - Each phase produces artifacts for resume and audit capability
Phase-Gated Workflow
Reference: patterns/code-review-formats.md for output schemas.
Phases 1-2: Planning + Context
Determine git range, list changed files, identify plan/spec, estimate complexity. Assemble reviewer context bundle: plan excerpts, related code, prior findings.
Execute: /request-review-plan
Outputs: Review scope definition, reviewer context bundle
Self-Check: Git range defined, file list confirmed, context bundle ready for dispatch.
Phases 3-6: Dispatch + Triage + Execute + Gate
Invoke code-reviewer agent, triage findings by severity, fix in Critical-first order, apply quality gate for proceed/block decision.
Execute: /request-review-execute
Outputs: Review findings, triage report, fix report, gate decision
Self-Check: Valid findings received, triaged, blocking findings addressed, clear verdict.
Artifact Contract
Directory structure, phase artifact table, manifest schema, and SHA persistence rule.
Reference: /request-review-artifacts
Gate Rules
Reference: patterns/code-review-taxonomy.md for severity definitions.
Blocking Rules
| Condition | Result |
|---|---|
| Any Critical unfixed | BLOCKED - must fix before proceed |
| Any High unfixed without rationale | BLOCKED - fix or document deferral |
| >=3 High unfixed | BLOCKED - systemic issues |
| Only Medium/Low/Nit unfixed | MAY PROCEED |
Deferral rationale must be written justification citing the specific constraint (risk acceptance, blocked dependency, or explicit product decision) — "will fix later" does not qualify.
<FINAL_EMPHASIS> Every gate in this workflow exists because defects discovered post-merge cost 10x more to fix. Do not skip phases. Do not defer Criticals. Do not let SHA drift corrupt inline comments. A review that lets one Critical through is worse than no review at all. </FINAL_EMPHASIS>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
spellbook-auditing
Meta-audit skill for spellbook development. Spawns parallel subagents to factcheck docs, optimize instructions, find token savings, and identify MCP candidates. Produces actionable report.
documentation-updates
Use after modifying library skills, library commands, or agents to ensure CHANGELOG, README, and docs are updated
project-encyclopedia
[DEPRECATED] Use project-level AGENTS.md files instead. Previously used for first-session codebase onboarding and persistent glossary creation.
reviewing-impl-plans
Use when reviewing implementation plans before execution. Triggers: 'is this plan solid', 'review the plan', 'check before I start building', 'anything missing from this plan', 'will this plan work', 'audit the implementation plan'. NOT for: reviewing design documents (use reviewing-design-docs) or creating plans (use writing-plans).
session-resume
Session resume protocol and session repairs handling. Loaded when spellbook_session_init returns resume_available: true, or when session_init returns a repairs array. Triggers: 'resume', 'continue', 'where were we', session resume, session repairs.
brainstorming
Use when exploring design approaches, generating ideas, or making architectural decisions. Triggers: 'explore options', 'what are the tradeoffs', 'how should I approach', 'let's think through', 'sketch out an approach', 'I need ideas for', 'how would you structure', 'what are my options'. Also invoked by develop when design decisions are needed.
Didn't find tool you were looking for?