Help us improve
Share bugs, ideas, or general feedback.
From GSD Core
Reviews 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.
How this command is triggered — by the user, by Claude, or both
Slash command
/gsd-core:code-review <phase-number> [--depth=quick|standard|deep] [--files file1,file2,...] [--fix [--all] [--auto]]gsd/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 gsd-code-reviewer agent to analyze code at the specified depth level. Produces REVIEW.md artifact 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` (optional) — review depth level, overrides workflow.code_review_depth config - quick: Pattern-matching only (~2 min) - standard: Per-file analysis with language-specific checks (~5-15...
Share bugs, ideas, or general feedback.
Spawns the gsd-code-reviewer agent to analyze code at the specified depth level. Produces REVIEW.md artifact in the phase directory with severity-classified findings.
Arguments:
--depth=quick|standard|deep (optional) — review depth level, overrides workflow.code_review_depth config
--files file1,file2,... (optional) — explicit comma-separated file list, skips SUMMARY/git scoping (highest precedence for scoping)--fix (optional) — after review completes (or if REVIEW.md already exists), auto-apply fixes found. Spawns gsd-code-fixer agent. Accepts sub-flags:
--all — include Info findings in fix scope (default: Critical + Warning only)--auto — enable fix + re-review iteration loop, capped at 3 iterationsOutput: {padded_phase}-REVIEW.md in phase directory + inline summary of findings
<execution_context> @~/.claude/gsd-core/workflows/code-review.md </execution_context>
Phase: $ARGUMENTS (first positional argument is phase number)Optional flags parsed from $ARGUMENTS:
--depth=VALUE — Depth override (quick|standard|deep). If provided, overrides workflow.code_review_depth config.--files=file1,file2,... — Explicit file list override. Has highest precedence for file scoping per D-08. When provided, workflow skips SUMMARY.md extraction and git diff fallback entirely.Context files (CLAUDE.md, SUMMARY.md, phase state) are resolved inside the workflow via gsd-tools query init.phase-op and delegated to agent via <files_to_read> blocks.
Execute end-to-end.
The workflow (not this command) enforces these gates:
npx claudepluginhub open-gsd/gsd-core/reviewPerforms complete code review lifecycle on file or branch: self-review checklist, severity-classified issues, summary verdict, and next steps.
/reviewAnalyzes and fixes code using parallel subagents in review (changes), audit (path/codebase), or fix modes. Effort scales to input size.
/reviewLaunches a lightweight Review Team to audit current changes with a two-stage review (spec compliance + code quality). Accepts optional file path or commit range; defaults to git diff.
/full-reviewRuns multi-dimensional code review across architecture, security, performance, testing, and best practices with specialized review agents.
/code_reviewPerforms comprehensive code review on modified files, categorizing findings by severity (CRITICAL/HIGH/MEDIUM/LOW), scoring quality, and saving prioritized action plan to Markdown report.
/reviewPerforms structured code review on a file, recent unstaged changes, or changes since last commit. Categorizes issues by severity and outputs markdown table with verdict.