v1.31 Features
59. Schema Drift Detection
Command: Automatic during /gsd-execute-phase
Purpose: Detect when ORM schema files are modified without corresponding migration or push commands, preventing false-positive verification.
Requirements:
- REQ-SCHEMA-01: System MUST detect modifications to ORM schema files (Prisma, Drizzle, Payload, Sanity, Mongoose)
- REQ-SCHEMA-02: System MUST verify corresponding migration/push commands exist when schema changes are detected
- REQ-SCHEMA-03: System MUST implement two-layer defense: plan-time injection and execute-time gate
- REQ-SCHEMA-04: System MUST support
GSD_SKIP_SCHEMA_CHECKenv var to override detection - REQ-SCHEMA-05: System MUST prevent false-positive verification when schema is modified without migration
Process:
- Detect — Monitor ORM schema file modifications during plan execution
- Verify — Check that corresponding migration/push commands are present in the plan
- Gate — Block execution if schema drift is detected without migration (execute-time gate)
- Inject — Add migration reminders during plan generation (plan-time injection)
Config: GSD_SKIP_SCHEMA_CHECK environment variable to bypass detection.
60. Security Enforcement
Command: /gsd-secure-phase <N>
Purpose: Threat-model-anchored security verification for phase implementations.
Requirements:
- REQ-SEC-01: System MUST perform threat-model-anchored verification (not blind scanning)
- REQ-SEC-02: System MUST support configurable OWASP ASVS verification levels (1-3)
- REQ-SEC-03: System MUST block phase advancement based on configurable severity threshold
- REQ-SEC-04: System MUST spawn
gsd-security-auditoragent for analysis
Produces:
| Artifact | Description |
|---|---|
| Security audit report | Threat-model-anchored findings with severity classification |
Process:
- Model — Build threat model from phase implementation context
- Audit — Spawn
gsd-security-auditorto verify against threat model - Gate — Block phase advancement if findings meet or exceed
security_block_onseverity
Config:
| Setting | Type | Default | Description |
|---|---|---|---|
security_enforcement | boolean | true | Enable threat-model security verification |
security_asvs_level | number (1-3) | 1 | OWASP ASVS verification level |
security_block_on | string | "high" | Minimum severity to block phase advancement |
61. Documentation Generation
Command: /gsd-docs-update
Purpose: Generate and verify project documentation with accuracy checks.
Requirements:
- REQ-DOCS-01: System MUST spawn
gsd-doc-writeragent to generate documentation - REQ-DOCS-02: System MUST spawn
gsd-doc-verifieragent to check accuracy - REQ-DOCS-03: System MUST verify generated documentation against actual implementation
Produces:
| Artifact | Description |
|---|---|
| Updated project documentation | Generated and verified documentation files |
Process:
- Generate — Spawn
gsd-doc-writerto create or update documentation from implementation - Verify — Spawn
gsd-doc-verifierto check documentation accuracy against codebase - Output — Produce verified documentation with accuracy annotations
62. Discuss Chain Mode
Flag: /gsd-discuss-phase <N> --chain
Purpose: Auto-chain discuss, plan, and execute phases in one flow to reduce manual command sequencing.
Requirements:
- REQ-CHAIN-01: System MUST auto-chain discuss → plan → execute when
--chainflag is provided - REQ-CHAIN-02: System MUST respect all gate settings between chained phases
- REQ-CHAIN-03: System MUST halt the chain if any phase fails
Process:
- Discuss — Run discuss-phase to gather context
- Plan — Automatically invoke plan-phase with gathered context
- Execute — Automatically invoke execute-phase with generated plan
63. Single-Phase Autonomous
Flag: /gsd-autonomous --only N
Purpose: Execute just one phase autonomously instead of all remaining phases.
Requirements:
- REQ-ONLY-01: System MUST execute only the specified phase number when
--only Nis provided - REQ-ONLY-02: System MUST follow the same discuss → plan → execute flow as full autonomous mode
- REQ-ONLY-03: System MUST stop after the specified phase completes
Process:
- Select — Identify the target phase from
--only Nargument - Execute — Run full autonomous flow (discuss → plan → execute) for that single phase
- Stop — Halt after the phase completes instead of advancing to the next
64. Scope Reduction Detection
Part of: /gsd-plan-phase
Purpose: Prevent silent requirement dropping during plan generation with three-layer defense.
Requirements:
- REQ-SCOPE-01: System MUST prohibit planners from reducing scope without explicit justification
- REQ-SCOPE-02: System MUST have plan-checker verify requirement dimension coverage
- REQ-SCOPE-03: System MUST have orchestrator recover dropped requirements and re-inject them
- REQ-SCOPE-04: System MUST implement three-layer defense: planner prohibition, checker dimension, orchestrator recovery
Process:
- Prohibit — Planner instructions explicitly forbid scope reduction
- Check — Plan-checker verifies all phase requirements are covered in the plan
- Recover — Orchestrator detects dropped requirements and re-injects them into the planning loop
65. Claim Provenance Tagging
Part of: /gsd-plan-phase --research-phase <N>
Purpose: Ensure research claims are tagged with source evidence and assumptions are logged separately.
Requirements:
- REQ-PROVENANCE-01: Researcher MUST mark claims with source evidence references
- REQ-PROVENANCE-02: Assumptions MUST be logged separately from sourced claims
- REQ-PROVENANCE-03: System MUST distinguish between evidenced facts and inferred assumptions
Process:
- Research — Researcher gathers information from codebase and domain sources
- Tag — Each claim is annotated with its source (file path, documentation, API response)
- Separate — Assumptions without direct evidence are logged in a distinct section
66. Worktree Toggle
Config: workflow.use_worktrees: false
Purpose: Disable git worktree isolation for users who prefer sequential execution.
Requirements:
- REQ-WORKTREE-01: System MUST respect
workflow.use_worktreessetting when deciding isolation strategy - REQ-WORKTREE-02: System MUST default to
true(worktrees enabled) for backward compatibility - REQ-WORKTREE-03: System MUST fall back to sequential execution when worktrees are disabled
Config:
| Setting | Type | Default | Description |
|---|---|---|---|
workflow.use_worktrees | boolean | true | When false, disables git worktree isolation |
67. Project Code Prefixing
Config: project_code: "ABC"
Purpose: Prefix phase directory names with a project code for multi-project disambiguation.
Requirements:
- REQ-PREFIX-01: System MUST prefix phase directories with project code when configured (e.g.,
ABC-01-setup/) - REQ-PREFIX-02: System MUST use standard naming when
project_codeis not set - REQ-PREFIX-03: System MUST apply prefix consistently across all phase operations
Config:
| Setting | Type | Default | Description |
|---|---|---|---|
project_code | string | (none) | Prefix for phase directory names |
68. Claude Code Skills Migration
Part of: npx @opengsd/get-shit-done-redux
Purpose: Migrate GSD commands to Claude Code 2.1.88+ skills format with backward compatibility.
Requirements:
- REQ-SKILLS-01: Installer MUST write
skills/gsd-*/SKILL.mdfor Claude Code 2.1.88+ - REQ-SKILLS-02: Installer MUST auto-clean legacy
commands/gsd/directory - REQ-SKILLS-03: Installer MUST maintain backward compatibility with older Claude Code versions via Gemini path
Process:
- Detect — Check Claude Code version to determine skills support
- Migrate — Write
skills/gsd-*/SKILL.mdfiles for each GSD command - Clean — Remove legacy
commands/gsd/directory if skills are installed - Fallback — Maintain Gemini path compatibility for older Claude Code versions