You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues and discussions — this has not been proposed and declined before
I have read CONTRIBUTING.md and understand that I must wait for approved-feature before writing any code
I have read the existing GSD commands and workflows and confirmed this feature does not duplicate existing behavior
This feature solves a problem for solo developers using AI coding tools, not a personal preference or workflow I happen to like
Feature name
Automated code review and auto-fix commands: /gsd:code-review and /gsd:code-review-fix
Type of addition
New command (slash command or CLI flag) + New workflow (multi-step process)
The solo developer problem
When /gsd:execute-phase completes, there is no automated quality gate between execution and verification. The verifier checks whether must-haves are satisfied, but does not detect bugs, security issues, or code quality problems in the produced code. As a result, a developer running the full GSD pipeline can ship code with latent bugs that only surface during manual UAT or in production. The gap between execution and verification is currently a blind spot.
What this feature adds
Two new slash commands:
/gsd:code-review <phase> [--depth=quick|standard|deep] [--files file1,file2,...]
Spawns a gsd-code-reviewer agent that reads source files changed during a phase and produces a structured {padded_phase}-REVIEW.md artifact with severity-classified findings (Critical / Warning / Info). Each finding includes file path, line number, description, and a concrete fix suggestion.
/gsd:code-review-fix <phase> [--all] [--auto]
Reads REVIEW.md findings and spawns a gsd-code-fixer agent that applies fixes, commits each fix atomically with fix({phase}): {id} {description} format, and produces {padded_phase}-REVIEW-FIX.md. The --auto flag enables an iteration loop (capped at 3) that re-reviews after fixing.
Both commands integrate automatically into execute-phase, quick, and autonomous workflows via a workflow.code_review config gate (default: true).
As a solo developer, I want code review to run automatically after phase execution so that bugs are caught before the verifier runs, reducing the number of gap-closure cycles.
As a solo developer, I want to auto-fix code review findings so that I can resolve quality issues without manually editing files for each finding.
As a solo developer, I want code review to be configurable so that I can disable it for phases where it adds overhead without value (e.g., pure documentation phases).
Acceptance criteria
/gsd:code-review <phase> invocable from CLI, scopes review to source files changed during the phase
Review produces {padded_phase}-REVIEW.md artifact with severity-classified findings
Review skips if no source files changed during phase
Review is configurable via workflow.code_review in config.json (default: true)
/gsd:code-review-fix <phase> reads REVIEW.md and applies fixes with per-finding atomic commits
Fix loop capped at 3 iterations maximum when --auto flag used
execute-phase.md auto-invokes code-review after execution (configurable)
quick.md auto-invokes code-review after executor completes (configurable)
autonomous.md chains code-review → code-review-fix between execute and verify steps
All existing tests still pass; 35 new tests added
Which area does this primarily affect?
Multiple areas: Core workflow (new commands) + Planning system (new config keys) + Runtime integration (workflow modifications)
Applicable runtimes
Claude Code (primary — agent spawning via Task() is Claude Code specific)
Breaking changes assessment
None — adds new commands and config keys, inserts non-blocking advisory steps into existing workflows. All three workflow modifications are guarded by workflow.code_review=false for opt-out. All modifications degrade gracefully on failure.
Maintenance burden
No new external dependencies
Agent definitions must be updated if the GSD agent pattern changes
Config keys must be kept in sync if config schema changes
35 new tests to maintain; integration tests skip gracefully when plugin directory is absent (CI-safe)
Alternatives considered
Embed review inside the verifier — rejected: verifier checks must-haves, not code quality. Mixing concerns makes the verifier harder to reason about.
Make review a step inside execute-phase only — rejected in favor of standalone commands (PR feat: add automatic code review with autofix after execution #661 took this approach and was closed due to staleness). Standalone commands are composable: usable independently, retroactively, or in custom pipelines.
Use an external tool (CodeRabbit, GitHub code review) — rejected to keep GSD self-contained with no external service dependencies.
Pre-submission checklist
approved-featurebefore writing any codeFeature name
Automated code review and auto-fix commands:
/gsd:code-reviewand/gsd:code-review-fixType of addition
New command (slash command or CLI flag) + New workflow (multi-step process)
The solo developer problem
When
/gsd:execute-phasecompletes, there is no automated quality gate between execution and verification. The verifier checks whether must-haves are satisfied, but does not detect bugs, security issues, or code quality problems in the produced code. As a result, a developer running the full GSD pipeline can ship code with latent bugs that only surface during manual UAT or in production. The gap between execution and verification is currently a blind spot.What this feature adds
Two new slash commands:
/gsd:code-review <phase> [--depth=quick|standard|deep] [--files file1,file2,...]Spawns a
gsd-code-revieweragent that reads source files changed during a phase and produces a structured{padded_phase}-REVIEW.mdartifact with severity-classified findings (Critical / Warning / Info). Each finding includes file path, line number, description, and a concrete fix suggestion./gsd:code-review-fix <phase> [--all] [--auto]Reads
REVIEW.mdfindings and spawns agsd-code-fixeragent that applies fixes, commits each fix atomically withfix({phase}): {id} {description}format, and produces{padded_phase}-REVIEW-FIX.md. The--autoflag enables an iteration loop (capped at 3) that re-reviews after fixing.Both commands integrate automatically into
execute-phase,quick, andautonomousworkflows via aworkflow.code_reviewconfig gate (default: true).Example usage:
Full scope of changes
Files created:
agents/gsd-code-reviewer.md— review agent with 3 depth levels (quick/standard/deep)agents/gsd-code-fixer.md— fix agent with atomic git rollback and 3-tier verificationcommands/gsd/code-review.md— slash command definitioncommands/gsd/code-review-fix.md— slash command definitionget-shit-done/workflows/code-review.md— review orchestration workflowget-shit-done/workflows/code-review-fix.md— fix orchestration workflowtests/code-review.test.cjs— 35 tests covering all artifacts and integration pointsFiles modified:
get-shit-done/bin/lib/config.cjs— registerworkflow.code_reviewandworkflow.code_review_depthconfig keysget-shit-done/workflows/execute-phase.md— addcode_review_gatestep (PIPE-01)get-shit-done/workflows/quick.md— add Step 6.25 code review (PIPE-03)get-shit-done/workflows/autonomous.md— add Step 3c.5 review+fix chain (PIPE-02)User stories
Acceptance criteria
/gsd:code-review <phase>invocable from CLI, scopes review to source files changed during the phase{padded_phase}-REVIEW.mdartifact with severity-classified findingsworkflow.code_reviewin config.json (default: true)/gsd:code-review-fix <phase>readsREVIEW.mdand applies fixes with per-finding atomic commits{padded_phase}-REVIEW-FIX.mdsummary artifact--autoflag usedWhich area does this primarily affect?
Multiple areas: Core workflow (new commands) + Planning system (new config keys) + Runtime integration (workflow modifications)
Applicable runtimes
Breaking changes assessment
None — adds new commands and config keys, inserts non-blocking advisory steps into existing workflows. All three workflow modifications are guarded by
workflow.code_review=falsefor opt-out. All modifications degrade gracefully on failure.Maintenance burden
Alternatives considered
Prior art and references