/spec-quality-gates:code-review <phase-number> [--depth=quick|standard|deep] [--files file1,file2,...]from spec-quality-gates
Reviews source files changed during a development phase for bugs, security issues, and code quality problems. Spawns a reviewer agent and produces a severity-classified findings report in REVIEW.md.
Ships in spec-quality-gates. Installing the plugin adds it to Claude Code.
Review source files changed during a phase for bugs, security vulnerabilities, and code quality problems.
Spawns the structured-code-reviewer agent to analyze code at the specified depth level. Produces {padded_phase}-REVIEW.md in the phase directory with severity-classified findings.
Arguments:
2 or 02)--depth=quick|standard|deep — review depth level (default: standard)
quick: Pattern-matching only (~2 min)standard: Per-file analysis with language-specific checks (~5-15 min)deep: Cross-file analysis including import graphs and call chains (~15-30 min)--files file1,file2,... — explicit comma-separated file list (highest precedence; skips SUMMARY/git scoping)Phase: $ARGUMENTS (first positional argument is phase number)
Optional flags parsed from $ARGUMENTS:
--depth=VALUE — depth override (quick|standard|deep)--files=file1,file2,... — explicit file list; when provided, skips SUMMARY.md extraction and git diff fallback entirelyStep 1 — Validate Phase
Resolve phase number to a phase directory under .planning/phases/. If not found, error with a list of available phases.
Step 2 — Determine File Scope
Priority order (highest first):
--files flag: use the provided list directlygit diff --name-only HEAD~{plan_count}..HEAD -- src/ (approximate)If no source files found after filtering, create REVIEW.md with status: skipped and exit.
Step 3 — Filter Scope
Exclude:
.planning/ directory contents*.lock, package-lock.json, yarn.lock)dist/, build/, *.min.js, *.d.ts)Step 4 — Spawn Reviewer
Spawn structured-code-reviewer agent with:
depth: resolved depth levelphase_dir: path to phase directoryreview_path: {phase_dir}/{padded_phase}-REVIEW.mdfiles: filtered file listCLAUDE.md: path to project CLAUDE.md if it existsStep 5 — Present Results
After reviewer completes, show an inline summary:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub yeaight7/agent-powerups --plugin spec-quality-gatesOther plugins' commands for the same job