Code Quality Reviewer Prompt Template
Use this template when dispatching a code quality reviewer subagent.
Purpose: Verify implementation is well-built (clean, tested, maintainable)
Only dispatch after spec compliance review passes.
Task tool (general-purpose reviewer):
Use template at requesting-code-review/code-reviewer.md
WHAT_WAS_IMPLEMENTED: [from implementer's report]
PLAN_OR_REQUIREMENTS: Task N from [plan-file]
REVIEW_SCOPE: working-tree
BASE_SHA: [commit before task]
HEAD_SHA: WORKTREE
DESCRIPTION: [task summary]The reviewer inspects the task-owned working-tree diff before the coordinator commits. Review is read-only; only the coordinator mutates Git state.
In addition to standard code quality concerns, the reviewer should check:
- Does each file have one clear responsibility with a well-defined interface?
- Are units decomposed so they can be understood and tested independently?
- Is the implementation following the file structure from the plan?
- Did this implementation create new files that are already large, or significantly grow existing files? (Don't flag pre-existing file sizes — focus on what this change contributed.)
Code reviewer returns: Strengths, Issues (Critical/Important/Minor), Assessment