get-shit-done-cc 1.42.0 → 1.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/agents/gsd-ai-researcher.md +1 -1
- package/agents/gsd-code-fixer.md +5 -5
- package/agents/gsd-code-reviewer.md +19 -5
- package/agents/gsd-codebase-mapper.md +4 -4
- package/agents/gsd-debug-session-manager.md +6 -6
- package/agents/gsd-debugger.md +3 -3
- package/agents/gsd-doc-classifier.md +2 -2
- package/agents/gsd-doc-synthesizer.md +2 -2
- package/agents/gsd-doc-verifier.md +1 -1
- package/agents/gsd-doc-writer.md +2 -2
- package/agents/gsd-domain-researcher.md +1 -1
- package/agents/gsd-eval-auditor.md +1 -1
- package/agents/gsd-eval-planner.md +1 -1
- package/agents/gsd-executor.md +1 -1
- package/agents/gsd-framework-selector.md +1 -1
- package/agents/gsd-intel-updater.md +3 -3
- package/agents/gsd-pattern-mapper.md +3 -3
- package/agents/gsd-phase-researcher.md +4 -4
- package/agents/gsd-plan-checker.md +6 -6
- package/agents/gsd-planner.md +12 -12
- package/agents/gsd-project-researcher.md +2 -2
- package/agents/gsd-research-synthesizer.md +2 -2
- package/agents/gsd-roadmapper.md +5 -5
- package/agents/gsd-security-auditor.md +2 -2
- package/agents/gsd-ui-auditor.md +3 -3
- package/agents/gsd-ui-checker.md +5 -5
- package/agents/gsd-ui-researcher.md +4 -4
- package/agents/gsd-verifier.md +3 -3
- package/bin/install.js +447 -253
- package/commands/gsd/add-tests.md +3 -2
- package/commands/gsd/ai-integration-phase.md +1 -0
- package/commands/gsd/audit-fix.md +1 -0
- package/commands/gsd/audit-milestone.md +1 -0
- package/commands/gsd/autonomous.md +1 -0
- package/commands/gsd/cleanup.md +1 -0
- package/commands/gsd/code-review.md +1 -0
- package/commands/gsd/complete-milestone.md +9 -8
- package/commands/gsd/config.md +1 -0
- package/commands/gsd/debug.md +1 -1
- package/commands/gsd/discuss-phase.md +1 -0
- package/commands/gsd/docs-update.md +1 -0
- package/commands/gsd/eval-review.md +1 -0
- package/commands/gsd/execute-phase.md +1 -0
- package/commands/gsd/explore.md +1 -1
- package/commands/gsd/extract-learnings.md +1 -0
- package/commands/gsd/fast.md +3 -2
- package/commands/gsd/forensics.md +1 -0
- package/commands/gsd/graphify.md +4 -3
- package/commands/gsd/health.md +2 -1
- package/commands/gsd/inbox.md +1 -0
- package/commands/gsd/manager.md +1 -0
- package/commands/gsd/map-codebase.md +4 -3
- package/commands/gsd/mvp-phase.md +1 -0
- package/commands/gsd/new-milestone.md +2 -1
- package/commands/gsd/new-project.md +2 -1
- package/commands/gsd/ns-context.md +1 -0
- package/commands/gsd/ns-ideate.md +1 -0
- package/commands/gsd/ns-manage.md +1 -0
- package/commands/gsd/ns-review.md +1 -0
- package/commands/gsd/ns-workflow.md +1 -0
- package/commands/gsd/pause-work.md +1 -0
- package/commands/gsd/plan-phase.md +5 -2
- package/commands/gsd/plan-review-convergence.md +1 -0
- package/commands/gsd/pr-branch.md +1 -0
- package/commands/gsd/progress.md +3 -1
- package/commands/gsd/quick.md +2 -1
- package/commands/gsd/review-backlog.md +1 -0
- package/commands/gsd/review.md +2 -1
- package/commands/gsd/secure-phase.md +1 -0
- package/commands/gsd/settings.md +1 -0
- package/commands/gsd/ship.md +2 -1
- package/commands/gsd/sketch.md +2 -1
- package/commands/gsd/spec-phase.md +2 -1
- package/commands/gsd/spike.md +2 -1
- package/commands/gsd/stats.md +1 -0
- package/commands/gsd/surface.md +129 -0
- package/commands/gsd/thread.md +1 -0
- package/commands/gsd/ui-phase.md +1 -0
- package/commands/gsd/ui-review.md +1 -0
- package/commands/gsd/ultraplan-phase.md +3 -2
- package/commands/gsd/undo.md +1 -0
- package/commands/gsd/validate-phase.md +1 -0
- package/commands/gsd/verify-work.md +2 -1
- package/commands/gsd/workstreams.md +5 -4
- package/get-shit-done/bin/check-latest-version.cjs +17 -12
- package/get-shit-done/bin/lib/adr-parser.cjs +394 -0
- package/get-shit-done/bin/lib/audit.cjs +20 -47
- package/get-shit-done/bin/lib/clusters.cjs +135 -0
- package/get-shit-done/bin/lib/command-aliases.generated.cjs +8 -1
- package/get-shit-done/bin/lib/commands.cjs +94 -92
- package/get-shit-done/bin/lib/config-schema.cjs +7 -1
- package/get-shit-done/bin/lib/config.cjs +48 -13
- package/get-shit-done/bin/lib/core.cjs +159 -243
- package/get-shit-done/bin/lib/docs.cjs +36 -33
- package/get-shit-done/bin/lib/drift.cjs +3 -2
- package/get-shit-done/bin/lib/fallow-runner.cjs +109 -0
- package/get-shit-done/bin/lib/frontmatter.cjs +4 -3
- package/get-shit-done/bin/lib/graphify.cjs +22 -39
- package/get-shit-done/bin/lib/gsd2-import.cjs +3 -3
- package/get-shit-done/bin/lib/init.cjs +76 -75
- package/get-shit-done/bin/lib/install-profiles.cjs +476 -36
- package/get-shit-done/bin/lib/installer-migrations/002-codex-legacy-hooks-json.cjs +6 -7
- package/get-shit-done/bin/lib/installer-migrations.cjs +23 -22
- package/get-shit-done/bin/lib/intel.cjs +25 -21
- package/get-shit-done/bin/lib/learnings.cjs +2 -1
- package/get-shit-done/bin/lib/milestone.cjs +13 -12
- package/get-shit-done/bin/lib/phase-command-router.cjs +19 -1
- package/get-shit-done/bin/lib/phase.cjs +40 -30
- package/get-shit-done/bin/lib/planning-workspace.cjs +15 -26
- package/get-shit-done/bin/lib/profile-output.cjs +32 -25
- package/get-shit-done/bin/lib/profile-pipeline.cjs +1 -1
- package/get-shit-done/bin/lib/review-reviewer-selection.cjs +125 -0
- package/get-shit-done/bin/lib/roadmap.cjs +18 -19
- package/get-shit-done/bin/lib/shell-command-projection.cjs +548 -0
- package/get-shit-done/bin/lib/state-document.cjs +6 -116
- package/get-shit-done/bin/lib/state-document.generated.cjs +127 -0
- package/get-shit-done/bin/lib/state.cjs +45 -26
- package/get-shit-done/bin/lib/surface.cjs +398 -0
- package/get-shit-done/bin/lib/template.cjs +3 -2
- package/get-shit-done/bin/lib/validate-command-router.cjs +2 -2
- package/get-shit-done/bin/lib/verify.cjs +30 -29
- package/get-shit-done/bin/lib/workstream.cjs +8 -7
- package/get-shit-done/bin/lib/worktree-safety.cjs +22 -47
- package/get-shit-done/contexts/review.md +1 -0
- package/get-shit-done/references/artifact-types.md +3 -3
- package/get-shit-done/references/context-budget.md +1 -1
- package/get-shit-done/references/continuation-format.md +15 -15
- package/get-shit-done/references/doc-conflict-engine.md +1 -1
- package/get-shit-done/references/domain-probes.md +1 -1
- package/get-shit-done/references/gate-prompts.md +2 -2
- package/get-shit-done/references/git-integration.md +1 -1
- package/get-shit-done/references/model-profiles.md +1 -1
- package/get-shit-done/references/mvp-concepts.md +2 -2
- package/get-shit-done/references/planning-config.md +10 -8
- package/get-shit-done/references/thinking-partner.md +1 -1
- package/get-shit-done/references/verification-overrides.md +3 -3
- package/get-shit-done/templates/AI-SPEC.md +1 -1
- package/get-shit-done/templates/DEBUG.md +1 -1
- package/get-shit-done/templates/README.md +24 -24
- package/get-shit-done/templates/UAT.md +4 -4
- package/get-shit-done/templates/VALIDATION.md +1 -1
- package/get-shit-done/templates/claude-md.md +5 -5
- package/get-shit-done/templates/config.json +3 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +1 -1
- package/get-shit-done/templates/dev-preferences.md +1 -1
- package/get-shit-done/templates/discovery.md +2 -2
- package/get-shit-done/templates/phase-prompt.md +1 -1
- package/get-shit-done/templates/planner-subagent-prompt.md +3 -3
- package/get-shit-done/templates/project.md +1 -1
- package/get-shit-done/templates/research.md +1 -1
- package/get-shit-done/templates/spec.md +3 -3
- package/get-shit-done/templates/state.md +1 -1
- package/get-shit-done/workflows/add-backlog.md +6 -6
- package/get-shit-done/workflows/add-phase.md +2 -2
- package/get-shit-done/workflows/add-tests.md +9 -9
- package/get-shit-done/workflows/add-todo.md +1 -1
- package/get-shit-done/workflows/ai-integration-phase.md +5 -5
- package/get-shit-done/workflows/analyze-dependencies.md +3 -3
- package/get-shit-done/workflows/audit-milestone.md +15 -15
- package/get-shit-done/workflows/audit-uat.md +2 -2
- package/get-shit-done/workflows/autonomous.md +7 -7
- package/get-shit-done/workflows/check-todos.md +4 -4
- package/get-shit-done/workflows/code-review-fix.md +7 -7
- package/get-shit-done/workflows/code-review.md +95 -5
- package/get-shit-done/workflows/complete-milestone.md +13 -6
- package/get-shit-done/workflows/debug.md +7 -7
- package/get-shit-done/workflows/diagnose-issues.md +1 -1
- package/get-shit-done/workflows/discovery-phase.md +3 -3
- package/get-shit-done/workflows/discuss-phase/modes/chain.md +4 -4
- package/get-shit-done/workflows/discuss-phase/modes/text.md +1 -1
- package/get-shit-done/workflows/discuss-phase-assumptions.md +4 -4
- package/get-shit-done/workflows/discuss-phase-power.md +3 -3
- package/get-shit-done/workflows/discuss-phase.md +7 -7
- package/get-shit-done/workflows/do.md +24 -24
- package/get-shit-done/workflows/docs-update.md +4 -4
- package/get-shit-done/workflows/edit-phase.md +5 -5
- package/get-shit-done/workflows/eval-review.md +5 -5
- package/get-shit-done/workflows/execute-phase/steps/codebase-drift-gate.md +1 -1
- package/get-shit-done/workflows/execute-phase.md +68 -65
- package/get-shit-done/workflows/execute-plan.md +3 -3
- package/get-shit-done/workflows/explore.md +3 -3
- package/get-shit-done/workflows/extract-learnings.md +2 -2
- package/get-shit-done/workflows/fast.md +5 -5
- package/get-shit-done/workflows/forensics.md +2 -2
- package/get-shit-done/workflows/health.md +4 -4
- package/get-shit-done/workflows/help.md +186 -168
- package/get-shit-done/workflows/import.md +1 -1
- package/get-shit-done/workflows/inbox.md +5 -5
- package/get-shit-done/workflows/ingest-docs.md +9 -4
- package/get-shit-done/workflows/insert-phase.md +3 -3
- package/get-shit-done/workflows/list-phase-assumptions.md +2 -2
- package/get-shit-done/workflows/list-workspaces.md +1 -1
- package/get-shit-done/workflows/manager.md +5 -5
- package/get-shit-done/workflows/map-codebase.md +4 -4
- package/get-shit-done/workflows/milestone-summary.md +2 -2
- package/get-shit-done/workflows/new-milestone.md +6 -6
- package/get-shit-done/workflows/new-project.md +25 -25
- package/get-shit-done/workflows/new-workspace.md +5 -5
- package/get-shit-done/workflows/next.md +13 -13
- package/get-shit-done/workflows/note.md +2 -2
- package/get-shit-done/workflows/pause-work.md +2 -2
- package/get-shit-done/workflows/plan-milestone-gaps.md +7 -7
- package/get-shit-done/workflows/plan-phase.md +58 -40
- package/get-shit-done/workflows/plan-review-convergence.md +7 -7
- package/get-shit-done/workflows/plant-seed.md +6 -6
- package/get-shit-done/workflows/pr-branch.md +1 -1
- package/get-shit-done/workflows/profile-user.md +1 -1
- package/get-shit-done/workflows/progress.md +37 -37
- package/get-shit-done/workflows/quick.md +18 -5
- package/get-shit-done/workflows/reapply-patches.md +5 -5
- package/get-shit-done/workflows/remove-phase.md +2 -2
- package/get-shit-done/workflows/resume-project.md +18 -13
- package/get-shit-done/workflows/review.md +16 -4
- package/get-shit-done/workflows/scan.md +1 -1
- package/get-shit-done/workflows/secure-phase.md +5 -5
- package/get-shit-done/workflows/settings-advanced.md +4 -4
- package/get-shit-done/workflows/settings-integrations.md +2 -2
- package/get-shit-done/workflows/settings.md +38 -27
- package/get-shit-done/workflows/ship.md +6 -6
- package/get-shit-done/workflows/sketch-wrap-up.md +8 -8
- package/get-shit-done/workflows/sketch.md +5 -5
- package/get-shit-done/workflows/spec-phase.md +4 -4
- package/get-shit-done/workflows/spike-wrap-up.md +7 -7
- package/get-shit-done/workflows/spike.md +5 -5
- package/get-shit-done/workflows/stats.md +1 -1
- package/get-shit-done/workflows/thread.md +7 -7
- package/get-shit-done/workflows/transition.md +18 -18
- package/get-shit-done/workflows/ui-phase.md +10 -10
- package/get-shit-done/workflows/ui-review.md +5 -5
- package/get-shit-done/workflows/ultraplan-phase.md +8 -8
- package/get-shit-done/workflows/undo.md +8 -8
- package/get-shit-done/workflows/update.md +5 -5
- package/get-shit-done/workflows/validate-phase.md +4 -4
- package/get-shit-done/workflows/verify-work.md +17 -17
- package/hooks/dist/gsd-context-monitor.js +2 -2
- package/hooks/dist/gsd-statusline.js +56 -13
- package/hooks/dist/gsd-update-banner.js +1 -1
- package/hooks/dist/gsd-workflow-guard.js +2 -2
- package/hooks/gsd-context-monitor.js +2 -2
- package/hooks/gsd-statusline.js +56 -13
- package/hooks/gsd-update-banner.js +1 -1
- package/hooks/gsd-workflow-guard.js +2 -2
- package/package.json +7 -2
- package/scripts/fix-slash-commands.cjs +10 -10
- package/scripts/lint-shell-command-projection-drift.cjs +57 -0
- package/scripts/lint-skill-deps.cjs +180 -0
- package/scripts/pr-template-policy.cjs +169 -0
- package/sdk/dist/query/agent-failure-classifier.d.ts +38 -0
- package/sdk/dist/query/agent-failure-classifier.d.ts.map +1 -0
- package/sdk/dist/query/agent-failure-classifier.js +83 -0
- package/sdk/dist/query/agent-failure-classifier.js.map +1 -0
- package/sdk/dist/query/command-aliases.generated.d.ts.map +1 -1
- package/sdk/dist/query/command-aliases.generated.js +1 -0
- package/sdk/dist/query/command-aliases.generated.js.map +1 -1
- package/sdk/dist/query/command-manifest.non-family.d.ts.map +1 -1
- package/sdk/dist/query/command-manifest.non-family.js +1 -0
- package/sdk/dist/query/command-manifest.non-family.js.map +1 -1
- package/sdk/dist/query/command-static-catalog-foundation.d.ts.map +1 -1
- package/sdk/dist/query/command-static-catalog-foundation.js +3 -0
- package/sdk/dist/query/command-static-catalog-foundation.js.map +1 -1
- package/sdk/dist/query/commit.d.ts +13 -1
- package/sdk/dist/query/commit.d.ts.map +1 -1
- package/sdk/dist/query/commit.js +78 -14
- package/sdk/dist/query/commit.js.map +1 -1
- package/sdk/dist/query/config-query.d.ts.map +1 -1
- package/sdk/dist/query/config-query.js +12 -3
- package/sdk/dist/query/config-query.js.map +1 -1
- package/sdk/dist/query/config-schema.d.ts.map +1 -1
- package/sdk/dist/query/config-schema.js +7 -1
- package/sdk/dist/query/config-schema.js.map +1 -1
- package/sdk/dist/query/fallow-audit.d.ts +44 -0
- package/sdk/dist/query/fallow-audit.d.ts.map +1 -0
- package/sdk/dist/query/fallow-audit.js +44 -0
- package/sdk/dist/query/fallow-audit.js.map +1 -0
- package/sdk/dist/query/init-complex.d.ts.map +1 -1
- package/sdk/dist/query/init-complex.js +73 -3
- package/sdk/dist/query/init-complex.js.map +1 -1
- package/sdk/dist/query/init.d.ts.map +1 -1
- package/sdk/dist/query/init.js +58 -4
- package/sdk/dist/query/init.js.map +1 -1
- package/sdk/dist/query/phase-lifecycle.d.ts.map +1 -1
- package/sdk/dist/query/phase-lifecycle.js +120 -19
- package/sdk/dist/query/phase-lifecycle.js.map +1 -1
- package/sdk/dist/query/phase.d.ts.map +1 -1
- package/sdk/dist/query/phase.js +62 -4
- package/sdk/dist/query/phase.js.map +1 -1
- package/sdk/dist/query/profile-output.js +2 -2
- package/sdk/dist/query/profile-output.js.map +1 -1
- package/sdk/dist/query/query-cli-adapter.js +1 -1
- package/sdk/dist/query/query-cli-adapter.js.map +1 -1
- package/sdk/dist/query/query-cli-output.js +1 -1
- package/sdk/dist/query/query-cli-output.js.map +1 -1
- package/sdk/dist/query/roadmap.d.ts.map +1 -1
- package/sdk/dist/query/roadmap.js +47 -2
- package/sdk/dist/query/roadmap.js.map +1 -1
- package/sdk/dist/query/state-mutation.d.ts.map +1 -1
- package/sdk/dist/query/state-mutation.js +28 -4
- package/sdk/dist/query/state-mutation.js.map +1 -1
- package/sdk/dist/query/validate.d.ts.map +1 -1
- package/sdk/dist/query/validate.js +35 -3
- package/sdk/dist/query/validate.js.map +1 -1
- package/sdk/dist/sdk-package-compatibility.d.ts +1 -0
- package/sdk/dist/sdk-package-compatibility.d.ts.map +1 -1
- package/sdk/dist/sdk-package-compatibility.js +3 -0
- package/sdk/dist/sdk-package-compatibility.js.map +1 -1
- package/sdk/package-lock.json +506 -2
- package/sdk/package.json +4 -1
- package/sdk/src/query/QUERY-HANDLERS.md +2 -2
- package/sdk/src/query/agent-failure-classifier.test.ts +157 -0
- package/sdk/src/query/agent-failure-classifier.ts +105 -0
- package/sdk/src/query/command-aliases.generated.ts +1 -0
- package/sdk/src/query/command-manifest.non-family.ts +2 -0
- package/sdk/src/query/command-static-catalog-foundation.ts +3 -0
- package/sdk/src/query/commit.test.ts +144 -0
- package/sdk/src/query/commit.ts +79 -14
- package/sdk/src/query/config-query.test.ts +49 -2
- package/sdk/src/query/config-query.ts +13 -2
- package/sdk/src/query/config-schema.ts +7 -1
- package/sdk/src/query/fallow-audit.ts +88 -0
- package/sdk/src/query/init-complex.test.ts +64 -0
- package/sdk/src/query/init-complex.ts +73 -3
- package/sdk/src/query/init.test.ts +49 -0
- package/sdk/src/query/init.ts +61 -4
- package/sdk/src/query/phase-lifecycle.test.ts +29 -0
- package/sdk/src/query/phase-lifecycle.ts +140 -24
- package/sdk/src/query/phase.test.ts +143 -0
- package/sdk/src/query/phase.ts +65 -3
- package/sdk/src/query/profile-output.ts +2 -2
- package/sdk/src/query/query-cli-adapter.test.ts +21 -0
- package/sdk/src/query/query-cli-adapter.ts +1 -1
- package/sdk/src/query/query-cli-output.test.ts +1 -1
- package/sdk/src/query/query-cli-output.ts +1 -1
- package/sdk/src/query/roadmap.test.ts +65 -0
- package/sdk/src/query/roadmap.ts +50 -2
- package/sdk/src/query/state-document.test.ts +197 -0
- package/sdk/src/query/state-mutation.test.ts +93 -0
- package/sdk/src/query/state-mutation.ts +28 -4
- package/sdk/src/query/validate.test.ts +65 -0
- package/sdk/src/query/validate.ts +32 -3
- package/sdk/src/sdk-package-compatibility.test.ts +2 -0
- package/sdk/src/sdk-package-compatibility.ts +4 -0
- package/sdk-bundle/gsd-sdk.tgz +0 -0
package/README.md
CHANGED
|
@@ -142,7 +142,9 @@ claude --dangerously-skip-permissions
|
|
|
142
142
|
|
|
143
143
|
GSD is built for frictionless automation. Skip-permissions is how it's intended to run.
|
|
144
144
|
|
|
145
|
-
See **[docs/USER-GUIDE.md](docs/USER-GUIDE.md)** for the full walkthrough, non-interactive install flags for all 15 runtimes,
|
|
145
|
+
Install only the skills you need with `--profile=core` (six core-loop skills), `--profile=standard` (core + phase management), or the default full install. Profiles compose: `--profile=core,audit`. `--minimal` is an alias for `--profile=core`. See **[docs/USER-GUIDE.md](docs/USER-GUIDE.md)** for the full walkthrough, non-interactive install flags for all 15 runtimes, and permissions configuration. See [ADR-0011](docs/adr/0011-skill-surface-budget-module.md) for the profile model and runtime surface control.
|
|
146
|
+
|
|
147
|
+
Current release highlights are in [docs/RELEASE-v1.42.1.md](docs/RELEASE-v1.42.1.md): package legitimacy checks, safer installer migrations, runtime surface control, custom ship PR sections, reviewer defaults, fallow structural review, and quota-aware execution recovery.
|
|
146
148
|
|
|
147
149
|
---
|
|
148
150
|
|
|
@@ -161,6 +163,7 @@ The main loop:
|
|
|
161
163
|
| `/gsd-progress --next` | Auto-detect and run the next step |
|
|
162
164
|
| `/gsd-complete-milestone` | Archive milestone and tag release |
|
|
163
165
|
| `/gsd-new-milestone` | Start next version |
|
|
166
|
+
| `/gsd:surface` | Enable/disable skill clusters at runtime without reinstall |
|
|
164
167
|
|
|
165
168
|
For ad-hoc tasks, autonomous mode, codebase analysis, forensics, and the full command surface — see **[docs/COMMANDS.md](docs/COMMANDS.md)**.
|
|
166
169
|
|
|
@@ -193,6 +196,10 @@ Key dials:
|
|
|
193
196
|
| `workflow.research` / `plan_check` / `verifier` | Toggle the quality agents that add tokens and time |
|
|
194
197
|
| `parallelization.enabled` | Run independent plans simultaneously |
|
|
195
198
|
|
|
199
|
+
Optional structural review: set `code_quality.fallow.enabled` to `true` to add a fallow pre-pass to `/gsd-code-review`. GSD writes `.planning/phases/<phase>/FALLOW.json` and surfaces a `Structural Findings (fallow)` section in `REVIEW.md`. Install with `npm install -D fallow@^2.70.0` (or system-wide via `cargo install fallow`; note that the Rust binary's JSON schema must match the documented v2.70+ contract — older versions may produce silent zero-finding output).
|
|
200
|
+
|
|
201
|
+
Package legitimacy checks are built into the research, planning, and execution path: recommended dependencies get audited, unverified packages require a human checkpoint, and failed installs stop instead of trying similarly named alternatives.
|
|
202
|
+
|
|
196
203
|
For the full configuration reference — all settings, git branching strategies, per-runtime model overrides, workstream config inheritance, agent skills injection — see **[docs/CONFIGURATION.md](docs/CONFIGURATION.md)**.
|
|
197
204
|
|
|
198
205
|
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-ai-researcher
|
|
3
|
-
description: Researches a chosen AI framework's official docs to produce implementation-ready guidance — best practices, syntax, core patterns, and pitfalls distilled for the specific use case. Writes the Framework Quick Reference and Implementation Guidance sections of AI-SPEC.md. Spawned by /gsd
|
|
3
|
+
description: Researches a chosen AI framework's official docs to produce implementation-ready guidance — best practices, syntax, core patterns, and pitfalls distilled for the specific use case. Writes the Framework Quick Reference and Implementation Guidance sections of AI-SPEC.md. Spawned by /gsd:ai-integration-phase orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, WebFetch, WebSearch, mcp__context7__*
|
|
5
5
|
color: "#34D399"
|
|
6
6
|
# hooks:
|
package/agents/gsd-code-fixer.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-code-fixer
|
|
3
|
-
description: Applies fixes to code review findings from REVIEW.md. Reads source files, applies intelligent fixes, and commits each fix atomically. Spawned by /gsd
|
|
3
|
+
description: Applies fixes to code review findings from REVIEW.md. Reads source files, applies intelligent fixes, and commits each fix atomically. Spawned by /gsd:code-review --fix.
|
|
4
4
|
tools: Read, Edit, Write, Bash, Grep, Glob
|
|
5
5
|
color: "#10B981"
|
|
6
6
|
# hooks:
|
|
@@ -10,7 +10,7 @@ color: "#10B981"
|
|
|
10
10
|
<role>
|
|
11
11
|
You are a GSD code fixer. You apply fixes to issues found by the gsd-code-reviewer agent.
|
|
12
12
|
|
|
13
|
-
Spawned by `/gsd
|
|
13
|
+
Spawned by `/gsd:code-review --fix` workflow. You produce REVIEW-FIX.md artifact in the phase directory.
|
|
14
14
|
|
|
15
15
|
Your job: Read REVIEW.md findings, fix source code intelligently (not blind application), commit each fix atomically, and produce REVIEW-FIX.md report.
|
|
16
16
|
|
|
@@ -214,7 +214,7 @@ If a finding references multiple files (in Fix section or Issue section):
|
|
|
214
214
|
|
|
215
215
|
This agent runs as a background process that makes commits. Operating on the main working tree would race the foreground session (shared index, HEAD, and on-disk files). Instead, every instance runs in its own isolated worktree.
|
|
216
216
|
|
|
217
|
-
The cleanup tail (commit fixes -> remove worktree -> drop recovery sentinel) MUST be **transactional**: either all of (worktree, branch advance, sentinel) end in a clean state, or — if the process is interrupted (system restart, OOM kill) between the last commit and `git worktree remove` — a discoverable recovery sentinel is left behind so a future run, `/gsd
|
|
217
|
+
The cleanup tail (commit fixes -> remove worktree -> drop recovery sentinel) MUST be **transactional**: either all of (worktree, branch advance, sentinel) end in a clean state, or — if the process is interrupted (system restart, OOM kill) between the last commit and `git worktree remove` — a discoverable recovery sentinel is left behind so a future run, `/gsd:resume-work`, or `/gsd:progress` can complete the cleanup. The bug fixed by #2839 was that the cleanup tail was non-transactional and silently left orphan worktrees + unmerged branches with no resume marker.
|
|
218
218
|
|
|
219
219
|
```bash
|
|
220
220
|
# Derive worktree path from padded_phase (parsed from config in next step,
|
|
@@ -295,7 +295,7 @@ cd "$wt"
|
|
|
295
295
|
Concrete steps:
|
|
296
296
|
1. Parse `padded_phase` and `phase_dir` from the `<config>` block (needed for the path and for the sentinel location).
|
|
297
297
|
2. Resolve the current branch: `branch=$(git branch --show-current)`. If empty (detached HEAD), print an error and exit — detached-HEAD state is not supported; commits made in a detached-HEAD worktree would not advance the branch.
|
|
298
|
-
3. **Recovery check (#2839, #2990):** If `${phase_dir}/.review-fix-recovery-pending.json` already exists, a prior run was interrupted. Parse the JSON, attempt to remove the orphan worktree it points at (best-effort, with `--force`), and delete the stale `reviewfix_branch` (best-effort, with `git branch -D`), then delete the stale sentinel before continuing. This makes a re-run of `/gsd
|
|
298
|
+
3. **Recovery check (#2839, #2990):** If `${phase_dir}/.review-fix-recovery-pending.json` already exists, a prior run was interrupted. Parse the JSON, attempt to remove the orphan worktree it points at (best-effort, with `--force`), and delete the stale `reviewfix_branch` (best-effort, with `git branch -D`), then delete the stale sentinel before continuing. This makes a re-run of `/gsd:code-review --fix` self-healing.
|
|
299
299
|
4. Create a unique worktree path: `wt=$(mktemp -d "/tmp/sv-${padded_phase}-reviewfix-XXXXXX")`. The `mktemp` suffix ensures concurrent runs for the same phase do not collide.
|
|
300
300
|
5. Run `git worktree add -b "$reviewfix_branch" "$wt" "$branch"` — this creates a NEW branch (`gsd-reviewfix/${padded_phase}-$$`) starting from the current branch tip and attaches the worktree to that new branch. Attaching to a new branch (rather than `$branch` directly) is what allows the worktree to coexist with the user's checkout — git refuses to check out the same branch in two worktrees by default (#2990). Commits made inside the worktree advance `$reviewfix_branch`; the cleanup tail fast-forwards `$branch` to `$reviewfix_branch` so the user's branch ends up with the agent's commits.
|
|
301
301
|
6. **Write the recovery sentinel** at `${phase_dir}/.review-fix-recovery-pending.json` containing `{worktree_path, branch, reviewfix_branch, padded_phase, started_at}`. Doing this AFTER `git worktree add` ensures the sentinel only ever points at a real worktree. The sentinel includes `reviewfix_branch` so recovery can clean both the orphan worktree AND its temp branch.
|
|
@@ -586,7 +586,7 @@ _Iteration: {N}_
|
|
|
586
586
|
|
|
587
587
|
**ALWAYS run inside the isolated worktree** — set up via `branch=$(git branch --show-current)` + `wt=$(mktemp -d "/tmp/sv-${padded_phase}-reviewfix-XXXXXX")` + `git worktree add -b "$reviewfix_branch" "$wt" "$branch"` at the very start (see `setup_worktree` step). Using `mktemp` ensures concurrent runs do not collide. Attaching to a NEW branch `$reviewfix_branch` (not `$branch` directly) is required because git refuses to check out the same branch in two worktrees by default — `$branch` is already checked out in the user's main repo (#2990). Commits advance `$reviewfix_branch`; the cleanup tail fast-forwards `$branch` to `$reviewfix_branch` so the user's branch ends up with the agent's commits. Every file read, edit, and commit must happen inside `$wt`. Run the four-step cleanup tail unconditionally when done (treat it as a finally block). If `git worktree add` fails, exit with an error rather than force-removing a path another run may hold. This prevents racing the foreground session on the shared main working tree (#2686).
|
|
588
588
|
|
|
589
|
-
**ALWAYS run the transactional cleanup tail in order** (#2839, #2990): the cleanup is four steps with strict ordering. (1) `git -C "$main_repo" merge --ff-only "$reviewfix_branch"` — fast-forward the user's branch to capture the agent's commits; on divergence, fail loudly and preserve the temp branch. (2) `git worktree remove "$wt" --force`. (3) `git -C "$main_repo" branch -D "$reviewfix_branch"` ONLY if the fast-forward succeeded; otherwise leave the temp branch for manual merge. (4) `rm -f "$sentinel"` (the recovery sentinel at `${phase_dir}/.review-fix-recovery-pending.json`). The sentinel is written AFTER `git worktree add` succeeds and removed only AFTER `git worktree remove` returns successfully. The temp branch is deleted only when the fast-forward succeeded. This ordering is what makes the cleanup tail transactional — an interruption between commits and `git worktree remove` leaves the sentinel behind (with `reviewfix_branch` recorded) so a future run, `/gsd
|
|
589
|
+
**ALWAYS run the transactional cleanup tail in order** (#2839, #2990): the cleanup is four steps with strict ordering. (1) `git -C "$main_repo" merge --ff-only "$reviewfix_branch"` — fast-forward the user's branch to capture the agent's commits; on divergence, fail loudly and preserve the temp branch. (2) `git worktree remove "$wt" --force`. (3) `git -C "$main_repo" branch -D "$reviewfix_branch"` ONLY if the fast-forward succeeded; otherwise leave the temp branch for manual merge. (4) `rm -f "$sentinel"` (the recovery sentinel at `${phase_dir}/.review-fix-recovery-pending.json`). The sentinel is written AFTER `git worktree add` succeeds and removed only AFTER `git worktree remove` returns successfully. The temp branch is deleted only when the fast-forward succeeded. This ordering is what makes the cleanup tail transactional — an interruption between commits and `git worktree remove` leaves the sentinel behind (with `reviewfix_branch` recorded) so a future run, `/gsd:resume-work`, or `/gsd:progress` can detect and complete the recovery. Reversing the order recreates the orphan-worktree bug.
|
|
590
590
|
|
|
591
591
|
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
|
|
592
592
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-code-reviewer
|
|
3
|
-
description: Reviews source files for bugs, security issues, and code quality problems. Produces structured REVIEW.md with severity-classified findings. Spawned by /gsd
|
|
3
|
+
description: Reviews source files for bugs, security issues, and code quality problems. Produces structured REVIEW.md with severity-classified findings. Spawned by /gsd:code-review.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob
|
|
5
5
|
color: "#F59E0B"
|
|
6
6
|
# hooks:
|
|
@@ -10,10 +10,12 @@ color: "#F59E0B"
|
|
|
10
10
|
<role>
|
|
11
11
|
Source files from a completed implementation have been submitted for adversarial review. Find every bug, security vulnerability, and quality defect — do not validate that work was done.
|
|
12
12
|
|
|
13
|
-
Spawned by `/gsd
|
|
13
|
+
Spawned by `/gsd:code-review` workflow. You produce REVIEW.md artifact in the phase directory.
|
|
14
14
|
|
|
15
15
|
**CRITICAL: Mandatory Initial Read**
|
|
16
16
|
If the prompt contains a `<required_reading>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
|
|
17
|
+
|
|
18
|
+
If the prompt contains a `<structural_findings>` block, treat those fallow findings as **ground truth** for cross-module facts (unused exports, duplicate blocks, circular dependencies). Your narrative findings should build on that substrate instead of contradicting it.
|
|
17
19
|
</role>
|
|
18
20
|
|
|
19
21
|
<adversarial_stance>
|
|
@@ -121,11 +123,11 @@ Parse each `- path` line under `files:` into the REVIEW_FILES array. If `files`
|
|
|
121
123
|
|
|
122
124
|
**Fallback file discovery (safety net only):**
|
|
123
125
|
|
|
124
|
-
This fallback runs ONLY when invoked directly without workflow context. The `/gsd
|
|
126
|
+
This fallback runs ONLY when invoked directly without workflow context. The `/gsd:code-review` workflow always passes an explicit file list via the `files` config field, making this fallback unnecessary in normal operation.
|
|
125
127
|
|
|
126
128
|
If `files` is absent or empty, compute DIFF_BASE:
|
|
127
129
|
1. If `diff_base` is provided in config, use it
|
|
128
|
-
2. Otherwise, **fail closed** with error: "Cannot determine review scope. Please provide explicit file list via --files flag or re-run through /gsd
|
|
130
|
+
2. Otherwise, **fail closed** with error: "Cannot determine review scope. Please provide explicit file list via --files flag or re-run through /gsd:code-review workflow."
|
|
129
131
|
|
|
130
132
|
Do NOT invent a heuristic (e.g., HEAD~5) — silent mis-scoping is worse than failing loudly.
|
|
131
133
|
|
|
@@ -134,7 +136,13 @@ If DIFF_BASE is set, run:
|
|
|
134
136
|
git diff --name-only ${DIFF_BASE}..HEAD -- . ':!.planning/' ':!ROADMAP.md' ':!STATE.md' ':!*-SUMMARY.md' ':!*-VERIFICATION.md' ':!*-PLAN.md' ':!package-lock.json' ':!yarn.lock' ':!Gemfile.lock' ':!poetry.lock'
|
|
135
137
|
```
|
|
136
138
|
|
|
137
|
-
**4.
|
|
139
|
+
**4. Parse structural findings when present:** If prompt includes:
|
|
140
|
+
```xml
|
|
141
|
+
<structural_findings>...</structural_findings>
|
|
142
|
+
```
|
|
143
|
+
parse JSON payload and cache it as `STRUCTURAL_FINDINGS`. When present, include these findings in the `## Structural Findings (fallow)` section of `REVIEW.md` during `write_review` (verbatim when small; concise structured summary when large). This block is optional; missing block means no structural pre-pass was provided.
|
|
144
|
+
|
|
145
|
+
**5. Load project context:** Read `./CLAUDE.md` and check for `.claude/skills/` or `.agents/skills/` (as described in `<project_context>`).
|
|
138
146
|
</step>
|
|
139
147
|
|
|
140
148
|
<step name="scope_files">
|
|
@@ -269,6 +277,12 @@ status: clean | issues_found
|
|
|
269
277
|
---
|
|
270
278
|
```
|
|
271
279
|
|
|
280
|
+
**3. Body sections (required order):**
|
|
281
|
+
1) `## Structural Findings (fallow)` — only when structural findings were provided; list normalized items first.
|
|
282
|
+
2) `## Narrative Findings (AI reviewer)` — your adversarial findings from direct code review.
|
|
283
|
+
|
|
284
|
+
Never merge these into one section; structural substrate must stay distinguishable from narrative findings.
|
|
285
|
+
|
|
272
286
|
**Label equivalence:** The canonical frontmatter key is `critical:`. The workflow also accepts `blocker:` as a tier-equivalent alternative — both are parsed as Critical severity by downstream consumers. Prefer `critical:` for new reviews; `blocker:` is accepted when reviewer tooling drifts. Similarly, finding IDs beginning with `BL-` are treated as Critical-tier-equivalent to `CR-` IDs by the fixer and pipeline; prefer `CR-` as the canonical prefix.
|
|
273
287
|
|
|
274
288
|
The `files_reviewed_list` field is REQUIRED — it preserves the exact file scope for downstream consumers (e.g., --auto re-review in code-review-fix workflow). List every file that was reviewed, one per line in YAML list format.
|
|
@@ -14,7 +14,7 @@ color: cyan
|
|
|
14
14
|
<role>
|
|
15
15
|
You are a GSD codebase mapper. You explore a codebase for a specific focus area and write analysis documents directly to `.planning/codebase/`.
|
|
16
16
|
|
|
17
|
-
You are spawned by `/gsd
|
|
17
|
+
You are spawned by `/gsd:map-codebase` with one of four focus areas:
|
|
18
18
|
- **tech**: Analyze technology stack and external integrations → write STACK.md and INTEGRATIONS.md
|
|
19
19
|
- **arch**: Analyze architecture and file structure → write ARCHITECTURE.md and STRUCTURE.md
|
|
20
20
|
- **quality**: Analyze coding conventions and testing patterns → write CONVENTIONS.md and TESTING.md
|
|
@@ -40,7 +40,7 @@ This ensures project-specific patterns, conventions, and best practices are appl
|
|
|
40
40
|
<why_this_matters>
|
|
41
41
|
**These documents are consumed by other GSD commands:**
|
|
42
42
|
|
|
43
|
-
**`/gsd
|
|
43
|
+
**`/gsd:plan-phase`** loads relevant codebase docs when creating implementation plans:
|
|
44
44
|
| Phase Type | Documents Loaded |
|
|
45
45
|
|------------|------------------|
|
|
46
46
|
| UI, frontend, components | CONVENTIONS.md, STRUCTURE.md |
|
|
@@ -51,7 +51,7 @@ This ensures project-specific patterns, conventions, and best practices are appl
|
|
|
51
51
|
| refactor, cleanup | CONCERNS.md, ARCHITECTURE.md |
|
|
52
52
|
| setup, config | STACK.md, STRUCTURE.md |
|
|
53
53
|
|
|
54
|
-
**`/gsd
|
|
54
|
+
**`/gsd:execute-phase`** references codebase docs to:
|
|
55
55
|
- Follow existing conventions when writing code
|
|
56
56
|
- Know where to place new files (STRUCTURE.md)
|
|
57
57
|
- Match testing patterns (TESTING.md)
|
|
@@ -102,7 +102,7 @@ The prompt may include a line of the form:
|
|
|
102
102
|
--paths <p1>,<p2>,...
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
When present, restrict your exploration (Glob/Grep/Bash globs) to files under the listed repo-relative path prefixes. This is the incremental-remap path used by the post-execute codebase-drift gate in `/gsd
|
|
105
|
+
When present, restrict your exploration (Glob/Grep/Bash globs) to files under the listed repo-relative path prefixes. This is the incremental-remap path used by the post-execute codebase-drift gate in `/gsd:execute-phase`. You still produce the same documents, but their "where to add new code" / "directory layout" sections focus on the provided subtrees rather than re-scanning the whole repository.
|
|
106
106
|
|
|
107
107
|
**Path validation:** Reject any `--paths` value containing `..`, starting with `/`, or containing shell metacharacters (`;`, `` ` ``, `$`, `&`, `|`, `<`, `>`). If all provided paths are invalid, log a warning in your confirmation and fall back to the default whole-repo scan.
|
|
108
108
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-debug-session-manager
|
|
3
|
-
description: Manages multi-cycle /gsd
|
|
3
|
+
description: Manages multi-cycle /gsd:debug checkpoint and continuation loop in isolated context. Spawns gsd-debugger agents, handles checkpoints via AskUserQuestion, dispatches specialist skills, applies fixes. Returns compact summary to main context. Spawned by /gsd:debug command.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, Agent, AskUserQuestion
|
|
5
5
|
color: orange
|
|
6
6
|
# hooks:
|
|
@@ -12,7 +12,7 @@ color: orange
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<role>
|
|
15
|
-
You are the GSD debug session manager. You run the full debug loop in isolation so the main `/gsd
|
|
15
|
+
You are the GSD debug session manager. You run the full debug loop in isolation so the main `/gsd:debug` orchestrator context stays lean.
|
|
16
16
|
|
|
17
17
|
**CRITICAL: Mandatory Initial Read**
|
|
18
18
|
Your first action MUST be to read the debug file at `debug_file_path`. This is your primary context.
|
|
@@ -55,7 +55,7 @@ Print:
|
|
|
55
55
|
|
|
56
56
|
## Step 2: Spawn gsd-debugger Agent
|
|
57
57
|
|
|
58
|
-
Fill and spawn the investigator with the same security-hardened prompt format used by `/gsd
|
|
58
|
+
Fill and spawn the investigator with the same security-hardened prompt format used by `/gsd:debug`:
|
|
59
59
|
|
|
60
60
|
```markdown
|
|
61
61
|
<security_context>
|
|
@@ -83,7 +83,7 @@ goal: {goal}
|
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
```
|
|
86
|
-
|
|
86
|
+
Agent(
|
|
87
87
|
prompt=filled_prompt,
|
|
88
88
|
subagent_type="gsd-debugger",
|
|
89
89
|
model="{debugger_model}",
|
|
@@ -158,7 +158,7 @@ Root cause identified:
|
|
|
158
158
|
|
|
159
159
|
How would you like to proceed?
|
|
160
160
|
1. Fix now — apply fix immediately
|
|
161
|
-
2. Plan fix — use /gsd
|
|
161
|
+
2. Plan fix — use /gsd:plan-phase --gaps
|
|
162
162
|
3. Manual fix — I'll handle it myself
|
|
163
163
|
```
|
|
164
164
|
|
|
@@ -297,7 +297,7 @@ If the session was abandoned by user choice, return:
|
|
|
297
297
|
**Cycles:** {N}
|
|
298
298
|
**TDD:** {yes/no}
|
|
299
299
|
**Specialist review:** {specialist_hint used, or "none"}
|
|
300
|
-
**Status:** ABANDONED — session saved for `/gsd
|
|
300
|
+
**Status:** ABANDONED — session saved for `/gsd:debug continue {slug}`
|
|
301
301
|
```
|
|
302
302
|
|
|
303
303
|
</process>
|
package/agents/gsd-debugger.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-debugger
|
|
3
|
-
description: Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /gsd
|
|
3
|
+
description: Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /gsd:debug orchestrator.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
|
|
5
5
|
color: orange
|
|
6
6
|
# hooks:
|
|
@@ -16,7 +16,7 @@ You are a GSD debugger. You investigate bugs using systematic scientific method,
|
|
|
16
16
|
|
|
17
17
|
You are spawned by:
|
|
18
18
|
|
|
19
|
-
- `/gsd
|
|
19
|
+
- `/gsd:debug` command (interactive debugging)
|
|
20
20
|
- `diagnose-issues` workflow (parallel UAT diagnosis)
|
|
21
21
|
|
|
22
22
|
Your job: Find the root cause through hypothesis testing, maintain debug file state, optionally fix and verify (depending on mode).
|
|
@@ -1001,7 +1001,7 @@ At investigation decision points, apply structured reasoning:
|
|
|
1001
1001
|
- Otherwise -> proceed to fix_and_verify
|
|
1002
1002
|
- **ELIMINATED:** Append to Eliminated section, form new hypothesis, return to Phase 2
|
|
1003
1003
|
|
|
1004
|
-
**Context management:** After 5+ evidence entries, ensure Current Focus is updated. Suggest "/clear - run /gsd
|
|
1004
|
+
**Context management:** After 5+ evidence entries, ensure Current Focus is updated. Suggest "/clear - run /gsd:debug to resume" if context filling up.
|
|
1005
1005
|
</step>
|
|
1006
1006
|
|
|
1007
1007
|
<step name="resume_from_file">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-doc-classifier
|
|
3
|
-
description: Classifies a single planning document as ADR, PRD, SPEC, DOC, or UNKNOWN. Extracts title, scope summary, and cross-references. Spawned in parallel by /gsd
|
|
3
|
+
description: Classifies a single planning document as ADR, PRD, SPEC, DOC, or UNKNOWN. Extracts title, scope summary, and cross-references. Spawned in parallel by /gsd:ingest-docs. Writes a JSON classification file and returns a one-line confirmation.
|
|
4
4
|
tools: Read, Write, Grep, Glob
|
|
5
5
|
color: yellow
|
|
6
6
|
# hooks:
|
|
@@ -12,7 +12,7 @@ color: yellow
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<role>
|
|
15
|
-
You are a GSD doc classifier. You read ONE document and write a structured classification to `.planning/intel/classifications/`. You are spawned by `/gsd
|
|
15
|
+
You are a GSD doc classifier. You read ONE document and write a structured classification to `.planning/intel/classifications/`. You are spawned by `/gsd:ingest-docs` in parallel with siblings — each of you handles one file. Your output is consumed by `gsd-doc-synthesizer`.
|
|
16
16
|
|
|
17
17
|
**CRITICAL: Mandatory Initial Read**
|
|
18
18
|
If the prompt contains a `<required_reading>` block, use the `Read` tool to load every file listed there before doing anything else. That is your primary context.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-doc-synthesizer
|
|
3
|
-
description: Synthesizes classified planning docs into a single consolidated context. Applies precedence rules, detects cross-ref cycles, enforces LOCKED-vs-LOCKED hard-blocks, and writes INGEST-CONFLICTS.md with three buckets (auto-resolved, competing-variants, unresolved-blockers). Spawned by /gsd
|
|
3
|
+
description: Synthesizes classified planning docs into a single consolidated context. Applies precedence rules, detects cross-ref cycles, enforces LOCKED-vs-LOCKED hard-blocks, and writes INGEST-CONFLICTS.md with three buckets (auto-resolved, competing-variants, unresolved-blockers). Spawned by /gsd:ingest-docs.
|
|
4
4
|
tools: Read, Write, Grep, Glob, Bash
|
|
5
5
|
color: orange
|
|
6
6
|
# hooks:
|
|
@@ -12,7 +12,7 @@ color: orange
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<role>
|
|
15
|
-
You are a GSD doc synthesizer. You consume per-doc classification JSON files and the source documents themselves, merge their content into structured intel, and produce a conflicts report. You are spawned by `/gsd
|
|
15
|
+
You are a GSD doc synthesizer. You consume per-doc classification JSON files and the source documents themselves, merge their content into structured intel, and produce a conflicts report. You are spawned by `/gsd:ingest-docs` after all classifiers have completed.
|
|
16
16
|
|
|
17
17
|
You do NOT prompt the user. You do NOT write PROJECT.md, REQUIREMENTS.md, or ROADMAP.md — those are produced downstream by `gsd-roadmapper` using your output. Your job is synthesis + conflict surfacing.
|
|
18
18
|
|
|
@@ -14,7 +14,7 @@ color: orange
|
|
|
14
14
|
<role>
|
|
15
15
|
A documentation file has been submitted for factual verification against the live codebase. Every checkable claim must be verified — do not assume claims are correct because the doc was recently written.
|
|
16
16
|
|
|
17
|
-
Spawned by the `/gsd
|
|
17
|
+
Spawned by the `/gsd:docs-update` workflow. Each spawn receives a `<verify_assignment>` XML block containing:
|
|
18
18
|
- `doc_path`: path to the doc file to verify (relative to project_root)
|
|
19
19
|
- `project_root`: absolute path to project root
|
|
20
20
|
|
package/agents/gsd-doc-writer.md
CHANGED
|
@@ -14,7 +14,7 @@ color: purple
|
|
|
14
14
|
<role>
|
|
15
15
|
You are a GSD doc writer. You write and update project documentation files for a target project.
|
|
16
16
|
|
|
17
|
-
You are spawned by `/gsd
|
|
17
|
+
You are spawned by `/gsd:docs-update` workflow. Each spawn receives a `<doc_assignment>` XML block in the prompt containing:
|
|
18
18
|
- `type`: one of `readme`, `architecture`, `getting_started`, `development`, `testing`, `api`, `configuration`, `deployment`, `contributing`, or `custom`
|
|
19
19
|
- `mode`: `create` (new doc from scratch), `update` (revise existing GSD-generated doc), `supplement` (append missing sections to a hand-written doc), or `fix` (correct specific claims flagged by gsd-doc-verifier)
|
|
20
20
|
- `project_context`: JSON from docs-init output (project_root, project_type, doc_tooling, etc.)
|
|
@@ -593,7 +593,7 @@ change — only location and metadata change.
|
|
|
593
593
|
<critical_rules>
|
|
594
594
|
|
|
595
595
|
1. NEVER include GSD methodology content in generated docs — no references to phases, plans, `/gsd-` commands, PLAN.md, ROADMAP.md, or any GSD workflow concepts. Generated docs describe the TARGET PROJECT exclusively.
|
|
596
|
-
2. NEVER touch CHANGELOG.md — it is managed by `/gsd
|
|
596
|
+
2. NEVER touch CHANGELOG.md — it is managed by `/gsd:ship` and is out of scope.
|
|
597
597
|
3. Include the GSD marker `<!-- generated-by: gsd-doc-writer -->` as the first line of every generated doc file (except supplement mode — see rule 7).
|
|
598
598
|
4. Explore the actual codebase before writing — never fabricate file paths, function names, endpoints, or configuration values.
|
|
599
599
|
8. Use the Write tool to create files — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-domain-researcher
|
|
3
|
-
description: Researches the business domain and real-world application context of the AI system being built. Surfaces domain expert evaluation criteria, industry-specific failure modes, regulatory context, and what "good" looks like for practitioners in this field — before the eval-planner turns it into measurable rubrics. Spawned by /gsd
|
|
3
|
+
description: Researches the business domain and real-world application context of the AI system being built. Surfaces domain expert evaluation criteria, industry-specific failure modes, regulatory context, and what "good" looks like for practitioners in this field — before the eval-planner turns it into measurable rubrics. Spawned by /gsd:ai-integration-phase orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*
|
|
5
5
|
color: "#A78BFA"
|
|
6
6
|
# hooks:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-eval-auditor
|
|
3
|
-
description: Retroactive audit of an implemented AI phase's evaluation coverage. Checks implementation against the AI-SPEC.md evaluation plan. Scores each eval dimension as COVERED/PARTIAL/MISSING. Produces a scored EVAL-REVIEW.md with findings, gaps, and remediation guidance. Spawned by /gsd
|
|
3
|
+
description: Retroactive audit of an implemented AI phase's evaluation coverage. Checks implementation against the AI-SPEC.md evaluation plan. Scores each eval dimension as COVERED/PARTIAL/MISSING. Produces a scored EVAL-REVIEW.md with findings, gaps, and remediation guidance. Spawned by /gsd:eval-review orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob
|
|
5
5
|
color: "#EF4444"
|
|
6
6
|
# hooks:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-eval-planner
|
|
3
|
-
description: Designs a structured evaluation strategy for an AI phase. Identifies critical failure modes, selects eval dimensions with rubrics, recommends tooling, and specifies the reference dataset. Writes the Evaluation Strategy, Guardrails, and Production Monitoring sections of AI-SPEC.md. Spawned by /gsd
|
|
3
|
+
description: Designs a structured evaluation strategy for an AI phase. Identifies critical failure modes, selects eval dimensions with rubrics, recommends tooling, and specifies the reference dataset. Writes the Evaluation Strategy, Guardrails, and Production Monitoring sections of AI-SPEC.md. Spawned by /gsd:ai-integration-phase orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, AskUserQuestion
|
|
5
5
|
color: "#F59E0B"
|
|
6
6
|
# hooks:
|
package/agents/gsd-executor.md
CHANGED
|
@@ -14,7 +14,7 @@ color: yellow
|
|
|
14
14
|
<role>
|
|
15
15
|
You are a GSD plan executor. You execute PLAN.md files atomically, creating per-task commits, handling deviations automatically, pausing at checkpoints, and producing SUMMARY.md files.
|
|
16
16
|
|
|
17
|
-
Spawned by `/gsd
|
|
17
|
+
Spawned by `/gsd:execute-phase` orchestrator.
|
|
18
18
|
|
|
19
19
|
Your job: Execute the plan completely, commit each task, create SUMMARY.md, update STATE.md.
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-framework-selector
|
|
3
|
-
description: Presents an interactive decision matrix to surface the right AI/LLM framework for the user's specific use case. Produces a scored recommendation with rationale. Spawned by /gsd
|
|
3
|
+
description: Presents an interactive decision matrix to surface the right AI/LLM framework for the user's specific use case. Produces a scored recommendation with rationale. Spawned by /gsd:ai-integration-phase and /gsd-select-framework orchestrators.
|
|
4
4
|
tools: Read, Bash, Grep, Glob, WebSearch, AskUserQuestion
|
|
5
5
|
color: "#38BDF8"
|
|
6
6
|
---
|
|
@@ -44,15 +44,15 @@ Write machine-parseable, evidence-based intelligence. Every claim references act
|
|
|
44
44
|
<upstream_input>
|
|
45
45
|
## Upstream Input
|
|
46
46
|
|
|
47
|
-
### From `/gsd
|
|
47
|
+
### From `/gsd:map-codebase --query` Command
|
|
48
48
|
|
|
49
|
-
- **Spawned by:** `/gsd
|
|
49
|
+
- **Spawned by:** `/gsd:map-codebase --query` command
|
|
50
50
|
- **Receives:** Focus directive -- either `full` (all 5 files) or `partial --files <paths>` (update specific file entries only)
|
|
51
51
|
- **Input format:** Spawn prompt with `focus: full|partial` directive and project root path
|
|
52
52
|
|
|
53
53
|
### Config Gate
|
|
54
54
|
|
|
55
|
-
The /gsd
|
|
55
|
+
The /gsd:map-codebase --query command has already confirmed that intel.enabled is true before spawning this agent. Proceed directly to Step 1.
|
|
56
56
|
</upstream_input>
|
|
57
57
|
|
|
58
58
|
## Project Scope
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-pattern-mapper
|
|
3
|
-
description: Analyzes codebase for existing patterns and produces PATTERNS.md mapping new files to closest analogs. Read-only codebase analysis spawned by /gsd
|
|
3
|
+
description: Analyzes codebase for existing patterns and produces PATTERNS.md mapping new files to closest analogs. Read-only codebase analysis spawned by /gsd:plan-phase orchestrator before planning.
|
|
4
4
|
tools: Read, Bash, Glob, Grep, Write
|
|
5
5
|
color: magenta
|
|
6
6
|
# hooks:
|
|
@@ -14,7 +14,7 @@ color: magenta
|
|
|
14
14
|
<role>
|
|
15
15
|
You are a GSD pattern mapper. You answer "What existing code should new files copy patterns from?" and produce a single PATTERNS.md that the planner consumes.
|
|
16
16
|
|
|
17
|
-
Spawned by `/gsd
|
|
17
|
+
Spawned by `/gsd:plan-phase` orchestrator (between research and planning steps).
|
|
18
18
|
|
|
19
19
|
**CRITICAL: Mandatory Initial Read**
|
|
20
20
|
If the prompt contains a `<required_reading>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
|
|
@@ -44,7 +44,7 @@ This ensures pattern extraction aligns with project-specific conventions.
|
|
|
44
44
|
</project_context>
|
|
45
45
|
|
|
46
46
|
<upstream_input>
|
|
47
|
-
**CONTEXT.md** (if exists) — User decisions from `/gsd
|
|
47
|
+
**CONTEXT.md** (if exists) — User decisions from `/gsd:discuss-phase`
|
|
48
48
|
|
|
49
49
|
| Section | How You Use It |
|
|
50
50
|
|---------|----------------|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-phase-researcher
|
|
3
|
-
description: Researches how to implement a phase before planning. Produces RESEARCH.md consumed by gsd-planner. Spawned by /gsd
|
|
3
|
+
description: Researches how to implement a phase before planning. Produces RESEARCH.md consumed by gsd-planner. Spawned by /gsd:plan-phase orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*, mcp__firecrawl__*, mcp__exa__*
|
|
5
5
|
color: cyan
|
|
6
6
|
# hooks:
|
|
@@ -14,7 +14,7 @@ color: cyan
|
|
|
14
14
|
<role>
|
|
15
15
|
You are a GSD phase researcher. You answer "What do I need to know to PLAN this phase well?" and produce a single RESEARCH.md that the planner consumes.
|
|
16
16
|
|
|
17
|
-
Spawned by `/gsd
|
|
17
|
+
Spawned by `/gsd:plan-phase` (integrated) or `/gsd-research-phase` (standalone).
|
|
18
18
|
|
|
19
19
|
@~/.claude/get-shit-done/references/mandatory-initial-read.md
|
|
20
20
|
|
|
@@ -80,7 +80,7 @@ Before researching, discover project context:
|
|
|
80
80
|
</project_context>
|
|
81
81
|
|
|
82
82
|
<upstream_input>
|
|
83
|
-
**CONTEXT.md** (if exists) — User decisions from `/gsd
|
|
83
|
+
**CONTEXT.md** (if exists) — User decisions from `/gsd:discuss-phase`
|
|
84
84
|
|
|
85
85
|
| Section | How You Use It |
|
|
86
86
|
|---------|----------------|
|
|
@@ -528,7 +528,7 @@ Verified patterns from official sources:
|
|
|
528
528
|
### Sampling Rate
|
|
529
529
|
- **Per task commit:** `{quick run command}`
|
|
530
530
|
- **Per wave merge:** `{full suite command}`
|
|
531
|
-
- **Phase gate:** Full suite green before `/gsd
|
|
531
|
+
- **Phase gate:** Full suite green before `/gsd:verify-work`
|
|
532
532
|
|
|
533
533
|
### Wave 0 Gaps
|
|
534
534
|
- [ ] `{tests/test_file.py}` — covers REQ-{XX}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-plan-checker
|
|
3
|
-
description: Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by /gsd
|
|
3
|
+
description: Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by /gsd:plan-phase orchestrator.
|
|
4
4
|
tools: Read, Bash, Glob, Grep
|
|
5
5
|
color: green
|
|
6
6
|
---
|
|
@@ -8,7 +8,7 @@ color: green
|
|
|
8
8
|
<role>
|
|
9
9
|
A set of phase plans has been submitted for pre-execution review. Verify they WILL achieve the phase goal — do not credit effort or intent, only verifiable coverage.
|
|
10
10
|
|
|
11
|
-
Spawned by `/gsd
|
|
11
|
+
Spawned by `/gsd:plan-phase` orchestrator (after planner creates PLAN.md) or re-verification (after planner revises).
|
|
12
12
|
|
|
13
13
|
Goal-backward verification of PLANS before execution. Start from what the phase SHOULD deliver, verify plans address it.
|
|
14
14
|
|
|
@@ -64,7 +64,7 @@ This ensures verification checks that plans follow project-specific conventions.
|
|
|
64
64
|
</project_context>
|
|
65
65
|
|
|
66
66
|
<upstream_input>
|
|
67
|
-
**CONTEXT.md** (if exists) — User decisions from `/gsd
|
|
67
|
+
**CONTEXT.md** (if exists) — User decisions from `/gsd:discuss-phase`
|
|
68
68
|
|
|
69
69
|
| Section | How You Use It |
|
|
70
70
|
|---------|----------------|
|
|
@@ -299,7 +299,7 @@ issue:
|
|
|
299
299
|
|
|
300
300
|
## Dimension 7: Context Compliance (if CONTEXT.md exists)
|
|
301
301
|
|
|
302
|
-
**Question:** Do plans honor user decisions from /gsd
|
|
302
|
+
**Question:** Do plans honor user decisions from /gsd:discuss-phase?
|
|
303
303
|
|
|
304
304
|
**Only check if CONTEXT.md was provided in the verification context.**
|
|
305
305
|
|
|
@@ -447,7 +447,7 @@ Before running checks 8a-8d, verify VALIDATION.md exists:
|
|
|
447
447
|
ls "${PHASE_DIR}"/*-VALIDATION.md 2>/dev/null
|
|
448
448
|
```
|
|
449
449
|
|
|
450
|
-
**If missing:** **BLOCKING FAIL** — "VALIDATION.md not found for phase {N}. Re-run `/gsd
|
|
450
|
+
**If missing:** **BLOCKING FAIL** — "VALIDATION.md not found for phase {N}. Re-run `/gsd:plan-phase {N} --research` to regenerate."
|
|
451
451
|
Skip checks 8a-8d entirely. Report Dimension 8 as FAIL with this single issue.
|
|
452
452
|
|
|
453
453
|
**If exists:** Proceed to checks 8a-8d.
|
|
@@ -897,7 +897,7 @@ Return all issues as a structured `issues:` YAML list (see dimension examples fo
|
|
|
897
897
|
| 01 | 3 | 5 | 1 | Valid |
|
|
898
898
|
| 02 | 2 | 4 | 2 | Valid |
|
|
899
899
|
|
|
900
|
-
Plans verified. Run `/gsd
|
|
900
|
+
Plans verified. Run `/gsd:execute-phase {phase}` to proceed.
|
|
901
901
|
```
|
|
902
902
|
|
|
903
903
|
## ISSUES FOUND
|
package/agents/gsd-planner.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-planner
|
|
3
|
-
description: Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /gsd
|
|
3
|
+
description: Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /gsd:plan-phase orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Glob, Grep, WebFetch, mcp__context7__*
|
|
5
5
|
color: green
|
|
6
6
|
# hooks:
|
|
@@ -15,10 +15,10 @@ color: green
|
|
|
15
15
|
You are a GSD planner. You create executable phase plans with task breakdown, dependency analysis, and goal-backward verification.
|
|
16
16
|
|
|
17
17
|
Spawned by:
|
|
18
|
-
- `/gsd
|
|
19
|
-
- `/gsd
|
|
20
|
-
- `/gsd
|
|
21
|
-
- `/gsd
|
|
18
|
+
- `/gsd:plan-phase` orchestrator (standard phase planning)
|
|
19
|
+
- `/gsd:plan-phase --gaps` orchestrator (gap closure from verification failures)
|
|
20
|
+
- `/gsd:plan-phase` in revision mode (updating plans based on checker feedback)
|
|
21
|
+
- `/gsd:plan-phase --reviews` orchestrator (replanning with cross-AI review feedback)
|
|
22
22
|
|
|
23
23
|
Your job: Produce PLAN.md files that Claude executors can implement without interpretation. Plans are prompts, not documents that become prompts.
|
|
24
24
|
|
|
@@ -51,7 +51,7 @@ Before planning, discover project context:
|
|
|
51
51
|
<context_fidelity>
|
|
52
52
|
## CRITICAL: User Decision Fidelity
|
|
53
53
|
|
|
54
|
-
The orchestrator provides user decisions in `<user_decisions>` tags from `/gsd
|
|
54
|
+
The orchestrator provides user decisions in `<user_decisions>` tags from `/gsd:discuss-phase`.
|
|
55
55
|
|
|
56
56
|
**Before creating ANY task, verify:**
|
|
57
57
|
|
|
@@ -426,7 +426,7 @@ phase: XX-name
|
|
|
426
426
|
plan: NN
|
|
427
427
|
type: execute
|
|
428
428
|
wave: N # Execution wave (1, 2, 3...)
|
|
429
|
-
depends_on: [] #
|
|
429
|
+
depends_on: [] # Use `01-01`/`01-01-auth-hardening`
|
|
430
430
|
files_modified: [] # Files this plan touches
|
|
431
431
|
autonomous: true # false if plan has checkpoints
|
|
432
432
|
requirements: [] # REQUIRED — Requirement IDs from ROADMAP this plan addresses. MUST NOT be empty.
|
|
@@ -496,7 +496,7 @@ Output: [Artifacts created]
|
|
|
496
496
|
</success_criteria>
|
|
497
497
|
|
|
498
498
|
<output>
|
|
499
|
-
|
|
499
|
+
Create `.planning/phases/XX-name/{padded_phase}-{plan}-SUMMARY.md` when done
|
|
500
500
|
</output>
|
|
501
501
|
```
|
|
502
502
|
|
|
@@ -987,7 +987,7 @@ If `features.global_learnings` is `true`: run `gsd-sdk query learnings.query --t
|
|
|
987
987
|
Use `phase_dir` from init context (already loaded in load_project_state).
|
|
988
988
|
|
|
989
989
|
```bash
|
|
990
|
-
cat "$phase_dir"/*-CONTEXT.md 2>/dev/null # From /gsd
|
|
990
|
+
cat "$phase_dir"/*-CONTEXT.md 2>/dev/null # From /gsd:discuss-phase
|
|
991
991
|
cat "$phase_dir"/*-RESEARCH.md 2>/dev/null # From /gsd-research-phase
|
|
992
992
|
cat "$phase_dir"/*-DISCOVERY.md 2>/dev/null # From mandatory discovery
|
|
993
993
|
```
|
|
@@ -1196,7 +1196,7 @@ Return structured planning outcome to orchestrator.
|
|
|
1196
1196
|
|
|
1197
1197
|
### Next Steps
|
|
1198
1198
|
|
|
1199
|
-
Execute: `/gsd
|
|
1199
|
+
Execute: `/gsd:execute-phase {phase}`
|
|
1200
1200
|
|
|
1201
1201
|
<sub>`/clear` first - fresh context window</sub>
|
|
1202
1202
|
```
|
|
@@ -1217,7 +1217,7 @@ Execute: `/gsd-execute-phase {phase}`
|
|
|
1217
1217
|
|
|
1218
1218
|
### Next Steps
|
|
1219
1219
|
|
|
1220
|
-
Execute: `/gsd
|
|
1220
|
+
Execute: `/gsd:execute-phase {phase} --gaps-only`
|
|
1221
1221
|
```
|
|
1222
1222
|
|
|
1223
1223
|
## Checkpoint Reached / Revision Complete
|
|
@@ -1273,6 +1273,6 @@ Planning complete when:
|
|
|
1273
1273
|
- [ ] PLAN file(s) exist with gap_closure: true
|
|
1274
1274
|
- [ ] Each plan: tasks derived from gap.missing items
|
|
1275
1275
|
- [ ] PLAN file(s) committed to git
|
|
1276
|
-
- [ ] User knows to run `/gsd
|
|
1276
|
+
- [ ] User knows to run `/gsd:execute-phase {X}` next
|
|
1277
1277
|
|
|
1278
1278
|
</success_criteria>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-project-researcher
|
|
3
|
-
description: Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /gsd
|
|
3
|
+
description: Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /gsd:new-project or /gsd:new-milestone orchestrators.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*, mcp__firecrawl__*, mcp__exa__*
|
|
5
5
|
color: cyan
|
|
6
6
|
# hooks:
|
|
@@ -12,7 +12,7 @@ color: cyan
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<role>
|
|
15
|
-
You are a GSD project researcher spawned by `/gsd
|
|
15
|
+
You are a GSD project researcher spawned by `/gsd:new-project` or `/gsd:new-milestone` (Phase 6: Research).
|
|
16
16
|
|
|
17
17
|
Answer "What does this domain ecosystem look like?" Write research files in `.planning/research/` that inform roadmap creation.
|
|
18
18
|
|