Request/execute structured code review: use after completing important tasks, at end of each execution batch, or before merge...
Goal: Make code review a repeatable process, not random comments.
Core principle: Review early, review often.
Mandatory:
workflow-execute-plans ends (default 3 tasks per batch)Optional but valuable:
Prefer using "baseline before plan/task started" as BASE_SHA:
# Common approach: use main as baseline
BASE_SHA=$(git merge-base HEAD main 2>/dev/null || git merge-base HEAD master)
HEAD_SHA=$(git rev-parse HEAD)
If you want to review just the most recent commit within a small task:
BASE_SHA=$(git rev-parse HEAD~1)
HEAD_SHA=$(git rev-parse HEAD)
Review must provide:
run_dir/03-plans/feature-plan.md)git diff --stat "$BASE_SHA..$HEAD_SHA"
git diff "$BASE_SHA..$HEAD_SHA"
Use template: review-merge-readiness/code-reviewer.md, fill in placeholders and execute.
Check each item per template checklist and output same structured result (Strengths + Issues by severity + Verdict).
Output must include:
Each Issue must include:
file:linereview-clean-code: More focused on "maintainability/cleanliness", suitable for deep code smell investigationreview-react-best-practices: More focused on React/Next.js performance patterns (waterfalls/bundle/re-renders). Use when the diff touches React UI, data fetching, or performance-sensitive areas.If you just need a "can we merge?" verdict: use this skill.
If you want a deep health check: additionally invoke review-clean-code.