Skip to content

GSD Integration

How GHS skills invoke the GSD framework for complex, multi-phase implementation tasks. GSD is a hard dependency --- skills that need it fail fast with a clear message if GSD is not installed.

GSD Detection

Before invoking GSD commands, verify installation:

bash
ls ~/.claude/commands/gsd:* 2>/dev/null || ls ~/.claude/plugins/*/skills/gsd-*/SKILL.md 2>/dev/null

If not found, emit an error with install instructions and stop. Do not fall back to a simpler approach --- the complexity warrants GSD.

Complexity Routing

Not every task needs GSD. The routing decision determines whether a task takes the fast path (single-shot agent) or the GSD path (multi-phase planning and execution).

Decision Matrix

SignalFast PathGSD Path
Complexity ratingLow, MediumHigh, Very High
Estimated files changed1--34+
Cross-cutting concernsNoneMultiple modules, tests, docs
Issue has sub-tasksNoYes
Requires architectural decisionsNoYes

Routing Rules

  1. Explicit user override always wins --- "just do it quick" or "use GSD for this"
  2. ghs-issue-analyze is the primary signal --- use its complexity rating directly
  3. When no analysis exists, estimate from issue body (acceptance criteria count, file mentions, keywords like "refactor" or "migration")
  4. Default to fast path when signals are ambiguous

Complexity Levels

LevelCriteriaExample
LowSingle file, clear fixTypo in README
Medium2--3 files, straightforwardAdd form validation
High4+ files, cross-module, tests requiredNew API endpoint with auth
Very HighArchitectural change, multiple subsystemsAuth system rewrite

GSD Command Flow

Implementation (ghs-issue-implement, GSD path)

Step 1: Prepare context     -> Write PROJECT.md with repo + issue details
Step 2: /gsd:discuss-phase  -> Capture implementation preferences
Step 3: /gsd:plan-phase     -> Create atomic task plans (PLAN.md files)
Step 4: /gsd:execute-phase  -> Wave-based execution, fresh context per task
Step 5: /gsd:verify-work    -> Automated acceptance testing

Health Fix (ghs-backlog-fix, wave-based)

For multi-item batches with dependencies, GSD provides wave-based execution without full planning:

Step 1: Classify items + build dependency graph
Step 2: /gsd:execute-phase with wave definitions
Step 3: Verify per wave, report progress incrementally

Quick Tasks

For simple tasks that benefit from GSD's quality guarantees:

/gsd:quick "Add LICENSE file to repository"

Skill-to-GSD Contract

What GHS provides to GSD

ArtifactLocationContent
PROJECT.md.planning/PROJECT.mdRepo name, tech stack, issue details, acceptance criteria
REQUIREMENTS.md.planning/REQUIREMENTS.mdExtracted from issue body + analysis comment
Issue contextDiscuss phaseFull issue body, comments, labels

What GSD returns to GHS

ArtifactLocationContent
Git commitsIn worktree/branchAtomic commits per task
Verification.planning/{N}-VERIFICATION.mdPass/fail per acceptance criterion

GSD handles implementation but does not create PRs --- the GHS orchestrator pushes the branch, creates the PR, and updates backlog status.

Error Handling

FailureAction
GSD not installedFail fast with install instructions
Plan validation fails 3 timesMark as NEEDS_HUMAN, preserve worktree
Execute task failsGSD handles retries internally
Verify finds failuresGSD generates fix plans; orchestrator re-executes or escalates
3 consecutive command failuresPreserve worktree, suggest fast path fallback, mark NEEDS_HUMAN

Released under the MIT License.