Performs comprehensive code review by analyzing git diff, verifying conformance with project rules, validating test suites, and checking adherence to Tech Spec and Tasks. Generates a structured code review report with severity-classified findings. Use when the user asks for a code review, wants to validate code quality, or needs pre-merge verification. Do not use for QA testing, bug fixing, or task implementation.
Step 1: Documentation Analysis (Mandatory)
./tasks/prd-[feature-slug]/techspec.md to understand expected architectural decisions../tasks/prd-[feature-slug]/tasks.md to verify the scope implemented.Step 2: Code Change Analysis (Mandatory)
git status to see modified files.git diff and git diff --staged to see all changes.git log main..HEAD --oneline to see branch commits.git diff main...HEAD for the full branch diff.Step 3: Rules Conformance Verification (Mandatory)
Step 4: Tech Spec Adherence Verification (Mandatory)
Step 5: Task Completeness Verification (Mandatory)
Step 6: Test Execution (Mandatory)
npm run build.npx tsc --noEmit.Step 7: Code Quality Analysis (Mandatory)
references/code-quality-checklist.md for the full checklist.Step 8: Generate Review Report (Mandatory)
assets/review-report-template.md.