Help us improve
Share bugs, ideas, or general feedback.
From spec-quality-gates
Review source files changed during a phase for bugs, security issues, and code quality problems
How this command is triggered — by the user, by Claude, or both
Slash command
/spec-quality-gates:code-review <phase-number> [--depth=quick|standard|deep] [--files file1,file2,...]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
<objective>
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:
- Phase number (required) — which phase's changes to review (e.g., `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...Share bugs, ideas, or general feedback.
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)
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 entirely
Step 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:
<success_criteria>
npx claudepluginhub yeaight7/agent-powerups --plugin spec-quality-gates/code-reviewReviews local uncommitted changes or GitHub pull requests for security, code quality, and best practices. Also supports PR review mode with full file context.
/code-reviewPerforms automated multi-agent code review on current GitHub pull request: audits CLAUDE.md, bugs, git history, prior PRs, code comments; scores issue confidence.
/code-reviewReviews uncommitted changes for security vulnerabilities, code quality issues, and best practices using git diff. Generates report with severity levels, locations, descriptions, fixes; blocks commits on critical/high issues.
/code-reviewReviews source files changed during a phase for bugs, security issues, and code quality problems. Produces a REVIEW.md artifact with severity-classified findings at configurable depth (quick, standard, deep). Also supports --fix to auto-apply fixes.
/code-reviewPerforms comprehensive code quality review of repository structure, code, security, performance, architecture, testing, and documentation. Produces prioritized issues and actionable recommendations with examples.
/code-reviewPerforms comprehensive code quality review of repository structure, code, security, performance, architecture, testing, and documentation. Produces prioritized issues and actionable recommendations with examples.