Feature Review
Review an implemented feature against its design plan. Checks simplicity, correctness, and conventions using single or multi-agent approach (user choice).
Core Principles
- •Plan as source of truth: The plan document defines what should have been built
- •Git diff as scope: Review the actual changes made
- •Confidence filtering: Only surface issues with >= 80% confidence
- •User decides fixes: Present findings and let user choose what to address
Phase 1: Setup
Goal: Get the plan document and changes to review
Actions:
- •Create todo list with all phases
- •If no plan path provided in $ARGUMENTS, ask user:
- •"Which plan document should I review against? (e.g., docs/plans/feature-name.md)"
- •Read the plan document
- •Run
git diff main...HEADto capture all committed changes on this branch - •If diff is empty, ask user if they want to review uncommitted changes (
git diff) or staged changes (git diff --cached)
Phase 1.5: Agent Strategy Selection
Goal: Let user choose review approach based on change size and usage budget
Actions:
- •
Assess change complexity based on git diff (exclude docs/, plans/, and .md files from counts):
- •Small: <100 lines changed, 1-3 files
- •Medium: 100-500 lines, 3-10 files
- •Large: >500 lines or >10 files, or architectural changes
- •
Ask user using AskUserQuestion:
- •Question: "How should I review this implementation?"
- •Options:
- •Single agent - One comprehensive reviewer (lower token usage, good for small/medium changes)
- •Multi-agent - Three parallel reviewers (higher token usage, better for large changes)
- •Provide your complexity assessment and recommendation
- •
Store user's choice for Phase 2
Phase 2: Launch Reviewers
Goal: Get reviews covering all focus areas
If user chose "Multi-agent":
Actions:
- •
Launch 3 code-reviewer agents in parallel with the plan content and git diff
- •
Assign each a different focus:
Agent 1 - Simplicity/DRY/Elegance: "Review this implementation for simplicity, DRY violations, and code elegance. Focus: unnecessary complexity, duplication, readability issues."
Agent 2 - Bugs/Functional Correctness: "Review this implementation for bugs and functional correctness. Focus: logic errors, edge cases, does implementation match the plan's design?"
Agent 3 - Project Conventions: "Review this implementation for project convention adherence. Focus: CLAUDE.md rules, naming, patterns, style consistency."
- •
Include in each agent prompt:
- •The full plan document content
- •The git diff output
- •Their specific focus area
If user chose "Single agent":
Actions:
- •
Launch 1 code-reviewer agent with comprehensive review scope
- •
Prompt should cover ALL focus areas:
"Review this implementation comprehensively, checking:
- •Simplicity/DRY/Elegance: unnecessary complexity, duplication, readability issues
- •Bugs/Functional Correctness: logic errors, edge cases, does implementation match the plan's design?
- •Project Conventions: CLAUDE.md rules, naming, patterns, style consistency
Group your findings by category."
- •
Include in the prompt:
- •The full plan document content
- •The git diff output
Phase 3: Consolidate Findings
Goal: Merge results into actionable list
Actions:
- •Collect all issues from reviewer(s)
- •Deduplicate if multi-agent (same issue found by multiple reviewers)
- •Sort by severity: Critical first, then Important
- •Group by file for easier navigation
Phase 4: Present Findings
Goal: Give user clear picture and options
Actions:
- •Present summary:
- •Total issues found (Critical / Important counts)
- •Files affected
- •List each issue with:
- •Severity and confidence
- •File:line reference
- •Description and suggested fix
- •Ask user: "How would you like to proceed?"
- •Fix all issues now
- •Fix critical issues only
- •Review issues individually
- •Proceed without fixes
Phase 5: Address Issues (if requested)
Goal: Fix issues based on user choice
Actions:
- •If user wants fixes, work through selected issues
- •For each fix:
- •Read the relevant file section
- •Apply the fix
- •Mark todo complete
- •After all fixes, run
git diffagain to show changes made
Phase 6: Summary
Goal: Wrap up the review
Actions:
- •Mark all todos complete
- •Summarize:
- •Issues found vs fixed
- •Files modified
- •Remaining issues (if any deferred)
Phase 7: Effects Inventory (if applicable)
Goal: Update docs/effects.md when an effect passes review
Trigger: Run this phase if the reviewed feature adds a new transform effect (creates a shader in shaders/ or config in src/config/*_config.h)
Actions:
- •Read
docs/effects.mdto identify the correct category table and existing description styles - •Add an entry for the new effect with a single-sentence visual descriptor:
- •Describe what the viewer SEES, not what the shader DOES
- •Use vivid analogies to real-world visuals (paintings, natural phenomena, physical objects)
- •Never list pipeline steps, shader passes, or algorithm components
- •WRONG: "Edge detection with directional strokes and paper texture overlay"
- •RIGHT: "Hand-drawn graphite shading on rough paper, where strokes follow the contours of the image like a life-drawing study"
- •Verify the entry matches the document's existing voice and specificity level
Phase 8: Archive Plan Documents
Goal: Move completed plan files to archive directory
Actions:
- •Create
docs/plans/archive/directory if it doesn't exist - •Move the plan document and its progress file to the archive:
- •
docs/plans/<feature>.md→docs/plans/archive/<feature>.md - •
docs/plans/<feature>.progress.md→docs/plans/archive/<feature>.progress.md
- •
- •Stage the moved files with
git add
Phase 9: Commit Review Changes
Goal: Commit all review fixes, inventory updates, and archived plans
Actions:
- •Run
/committo commit:- •Source code fixes from Phase 5
- •
docs/effects.mdif updated in Phase 7 - •Archived plan files from Phase 8