gsd-code-first 1.0.0
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/LICENSE +21 -0
- package/README.ja-JP.md +834 -0
- package/README.ko-KR.md +823 -0
- package/README.md +937 -0
- package/README.pt-BR.md +452 -0
- package/README.zh-CN.md +800 -0
- package/agents/gsd-advisor-researcher.md +104 -0
- package/agents/gsd-annotator.md +148 -0
- package/agents/gsd-arc-executor.md +537 -0
- package/agents/gsd-arc-planner.md +374 -0
- package/agents/gsd-assumptions-analyzer.md +105 -0
- package/agents/gsd-code-planner.md +155 -0
- package/agents/gsd-codebase-mapper.md +770 -0
- package/agents/gsd-debugger.md +1373 -0
- package/agents/gsd-executor.md +509 -0
- package/agents/gsd-integration-checker.md +443 -0
- package/agents/gsd-nyquist-auditor.md +176 -0
- package/agents/gsd-phase-researcher.md +698 -0
- package/agents/gsd-plan-checker.md +773 -0
- package/agents/gsd-planner.md +1354 -0
- package/agents/gsd-project-researcher.md +654 -0
- package/agents/gsd-prototyper.md +161 -0
- package/agents/gsd-research-synthesizer.md +247 -0
- package/agents/gsd-roadmapper.md +679 -0
- package/agents/gsd-ui-auditor.md +439 -0
- package/agents/gsd-ui-checker.md +300 -0
- package/agents/gsd-ui-researcher.md +357 -0
- package/agents/gsd-user-profiler.md +171 -0
- package/agents/gsd-verifier.md +700 -0
- package/bin/install.js +5009 -0
- package/commands/gsd/add-backlog.md +76 -0
- package/commands/gsd/add-phase.md +43 -0
- package/commands/gsd/add-tests.md +41 -0
- package/commands/gsd/add-todo.md +47 -0
- package/commands/gsd/annotate.md +54 -0
- package/commands/gsd/audit-milestone.md +36 -0
- package/commands/gsd/audit-uat.md +24 -0
- package/commands/gsd/autonomous.md +41 -0
- package/commands/gsd/check-todos.md +45 -0
- package/commands/gsd/cleanup.md +18 -0
- package/commands/gsd/complete-milestone.md +136 -0
- package/commands/gsd/debug.md +173 -0
- package/commands/gsd/deep-plan.md +52 -0
- package/commands/gsd/discuss-phase.md +64 -0
- package/commands/gsd/do.md +30 -0
- package/commands/gsd/execute-phase.md +59 -0
- package/commands/gsd/extract-plan.md +35 -0
- package/commands/gsd/fast.md +30 -0
- package/commands/gsd/forensics.md +56 -0
- package/commands/gsd/health.md +22 -0
- package/commands/gsd/help.md +22 -0
- package/commands/gsd/insert-phase.md +32 -0
- package/commands/gsd/iterate.md +124 -0
- package/commands/gsd/join-discord.md +18 -0
- package/commands/gsd/list-phase-assumptions.md +46 -0
- package/commands/gsd/list-workspaces.md +19 -0
- package/commands/gsd/manager.md +39 -0
- package/commands/gsd/map-codebase.md +71 -0
- package/commands/gsd/milestone-summary.md +51 -0
- package/commands/gsd/new-milestone.md +44 -0
- package/commands/gsd/new-project.md +42 -0
- package/commands/gsd/new-workspace.md +44 -0
- package/commands/gsd/next.md +24 -0
- package/commands/gsd/note.md +34 -0
- package/commands/gsd/pause-work.md +38 -0
- package/commands/gsd/plan-milestone-gaps.md +34 -0
- package/commands/gsd/plan-phase.md +47 -0
- package/commands/gsd/plant-seed.md +28 -0
- package/commands/gsd/pr-branch.md +25 -0
- package/commands/gsd/profile-user.md +46 -0
- package/commands/gsd/progress.md +24 -0
- package/commands/gsd/prototype.md +56 -0
- package/commands/gsd/quick.md +47 -0
- package/commands/gsd/reapply-patches.md +123 -0
- package/commands/gsd/remove-phase.md +31 -0
- package/commands/gsd/remove-workspace.md +26 -0
- package/commands/gsd/research-phase.md +195 -0
- package/commands/gsd/resume-work.md +40 -0
- package/commands/gsd/review-backlog.md +61 -0
- package/commands/gsd/review.md +37 -0
- package/commands/gsd/session-report.md +19 -0
- package/commands/gsd/set-mode.md +41 -0
- package/commands/gsd/set-profile.md +12 -0
- package/commands/gsd/settings.md +36 -0
- package/commands/gsd/ship.md +23 -0
- package/commands/gsd/stats.md +18 -0
- package/commands/gsd/thread.md +127 -0
- package/commands/gsd/ui-phase.md +34 -0
- package/commands/gsd/ui-review.md +32 -0
- package/commands/gsd/update.md +37 -0
- package/commands/gsd/validate-phase.md +35 -0
- package/commands/gsd/verify-work.md +38 -0
- package/commands/gsd/workstreams.md +63 -0
- package/get-shit-done/bin/gsd-tools.cjs +946 -0
- package/get-shit-done/bin/lib/arc-scanner.cjs +341 -0
- package/get-shit-done/bin/lib/commands.cjs +959 -0
- package/get-shit-done/bin/lib/config.cjs +466 -0
- package/get-shit-done/bin/lib/core.cjs +1230 -0
- package/get-shit-done/bin/lib/frontmatter.cjs +336 -0
- package/get-shit-done/bin/lib/init.cjs +1442 -0
- package/get-shit-done/bin/lib/milestone.cjs +252 -0
- package/get-shit-done/bin/lib/model-profiles.cjs +68 -0
- package/get-shit-done/bin/lib/phase.cjs +888 -0
- package/get-shit-done/bin/lib/profile-output.cjs +952 -0
- package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
- package/get-shit-done/bin/lib/roadmap.cjs +329 -0
- package/get-shit-done/bin/lib/security.cjs +382 -0
- package/get-shit-done/bin/lib/state.cjs +1031 -0
- package/get-shit-done/bin/lib/template.cjs +222 -0
- package/get-shit-done/bin/lib/uat.cjs +282 -0
- package/get-shit-done/bin/lib/verify.cjs +888 -0
- package/get-shit-done/bin/lib/workstream.cjs +491 -0
- package/get-shit-done/commands/gsd/workstreams.md +63 -0
- package/get-shit-done/references/arc-standard.md +315 -0
- package/get-shit-done/references/checkpoints.md +778 -0
- package/get-shit-done/references/continuation-format.md +249 -0
- package/get-shit-done/references/decimal-phase-calculation.md +64 -0
- package/get-shit-done/references/git-integration.md +295 -0
- package/get-shit-done/references/git-planning-commit.md +38 -0
- package/get-shit-done/references/model-profile-resolution.md +36 -0
- package/get-shit-done/references/model-profiles.md +139 -0
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planning-config.md +202 -0
- package/get-shit-done/references/questioning.md +162 -0
- package/get-shit-done/references/tdd.md +263 -0
- package/get-shit-done/references/ui-brand.md +160 -0
- package/get-shit-done/references/user-profiling.md +681 -0
- package/get-shit-done/references/verification-patterns.md +612 -0
- package/get-shit-done/references/workstream-flag.md +58 -0
- package/get-shit-done/templates/DEBUG.md +164 -0
- package/get-shit-done/templates/UAT.md +265 -0
- package/get-shit-done/templates/UI-SPEC.md +100 -0
- package/get-shit-done/templates/VALIDATION.md +76 -0
- package/get-shit-done/templates/claude-md.md +122 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +44 -0
- package/get-shit-done/templates/context.md +352 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/copilot-instructions.md +7 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/get-shit-done/templates/dev-preferences.md +21 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/discussion-log.md +63 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +610 -0
- package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/get-shit-done/templates/project.md +186 -0
- package/get-shit-done/templates/requirements.md +231 -0
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/get-shit-done/templates/research-project/STACK.md +120 -0
- package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/get-shit-done/templates/research.md +552 -0
- package/get-shit-done/templates/retrospective.md +54 -0
- package/get-shit-done/templates/roadmap.md +202 -0
- package/get-shit-done/templates/state.md +176 -0
- package/get-shit-done/templates/summary-complex.md +59 -0
- package/get-shit-done/templates/summary-minimal.md +41 -0
- package/get-shit-done/templates/summary-standard.md +48 -0
- package/get-shit-done/templates/summary.md +248 -0
- package/get-shit-done/templates/user-profile.md +146 -0
- package/get-shit-done/templates/user-setup.md +311 -0
- package/get-shit-done/templates/verification-report.md +322 -0
- package/get-shit-done/workflows/add-phase.md +112 -0
- package/get-shit-done/workflows/add-tests.md +351 -0
- package/get-shit-done/workflows/add-todo.md +158 -0
- package/get-shit-done/workflows/audit-milestone.md +340 -0
- package/get-shit-done/workflows/audit-uat.md +109 -0
- package/get-shit-done/workflows/autonomous.md +891 -0
- package/get-shit-done/workflows/check-todos.md +177 -0
- package/get-shit-done/workflows/cleanup.md +152 -0
- package/get-shit-done/workflows/complete-milestone.md +767 -0
- package/get-shit-done/workflows/diagnose-issues.md +231 -0
- package/get-shit-done/workflows/discovery-phase.md +289 -0
- package/get-shit-done/workflows/discuss-phase-assumptions.md +653 -0
- package/get-shit-done/workflows/discuss-phase.md +1049 -0
- package/get-shit-done/workflows/do.md +104 -0
- package/get-shit-done/workflows/execute-phase.md +846 -0
- package/get-shit-done/workflows/execute-plan.md +514 -0
- package/get-shit-done/workflows/fast.md +105 -0
- package/get-shit-done/workflows/forensics.md +265 -0
- package/get-shit-done/workflows/health.md +181 -0
- package/get-shit-done/workflows/help.md +634 -0
- package/get-shit-done/workflows/insert-phase.md +130 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/list-workspaces.md +56 -0
- package/get-shit-done/workflows/manager.md +362 -0
- package/get-shit-done/workflows/map-codebase.md +377 -0
- package/get-shit-done/workflows/milestone-summary.md +223 -0
- package/get-shit-done/workflows/new-milestone.md +486 -0
- package/get-shit-done/workflows/new-project.md +1250 -0
- package/get-shit-done/workflows/new-workspace.md +237 -0
- package/get-shit-done/workflows/next.md +97 -0
- package/get-shit-done/workflows/node-repair.md +92 -0
- package/get-shit-done/workflows/note.md +156 -0
- package/get-shit-done/workflows/pause-work.md +176 -0
- package/get-shit-done/workflows/plan-milestone-gaps.md +273 -0
- package/get-shit-done/workflows/plan-phase.md +859 -0
- package/get-shit-done/workflows/plant-seed.md +169 -0
- package/get-shit-done/workflows/pr-branch.md +129 -0
- package/get-shit-done/workflows/profile-user.md +450 -0
- package/get-shit-done/workflows/progress.md +507 -0
- package/get-shit-done/workflows/quick.md +757 -0
- package/get-shit-done/workflows/remove-phase.md +155 -0
- package/get-shit-done/workflows/remove-workspace.md +90 -0
- package/get-shit-done/workflows/research-phase.md +82 -0
- package/get-shit-done/workflows/resume-project.md +326 -0
- package/get-shit-done/workflows/review.md +228 -0
- package/get-shit-done/workflows/session-report.md +146 -0
- package/get-shit-done/workflows/settings.md +283 -0
- package/get-shit-done/workflows/ship.md +228 -0
- package/get-shit-done/workflows/stats.md +60 -0
- package/get-shit-done/workflows/transition.md +671 -0
- package/get-shit-done/workflows/ui-phase.md +302 -0
- package/get-shit-done/workflows/ui-review.md +165 -0
- package/get-shit-done/workflows/update.md +323 -0
- package/get-shit-done/workflows/validate-phase.md +174 -0
- package/get-shit-done/workflows/verify-phase.md +254 -0
- package/get-shit-done/workflows/verify-work.md +637 -0
- package/hooks/dist/gsd-check-update.js +114 -0
- package/hooks/dist/gsd-context-monitor.js +156 -0
- package/hooks/dist/gsd-prompt-guard.js +96 -0
- package/hooks/dist/gsd-statusline.js +119 -0
- package/hooks/dist/gsd-workflow-guard.js +94 -0
- package/package.json +52 -0
- package/scripts/base64-scan.sh +262 -0
- package/scripts/build-hooks.js +82 -0
- package/scripts/prompt-injection-scan.sh +198 -0
- package/scripts/run-tests.cjs +29 -0
- package/scripts/secret-scan.sh +227 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:debug
|
|
3
|
+
description: Systematic debugging with persistent state across context resets
|
|
4
|
+
argument-hint: [issue description]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Task
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Debug issues using scientific method with subagent isolation.
|
|
14
|
+
|
|
15
|
+
**Orchestrator role:** Gather symptoms, spawn gsd-debugger agent, handle checkpoints, spawn continuations.
|
|
16
|
+
|
|
17
|
+
**Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<available_agent_types>
|
|
21
|
+
Valid GSD subagent types (use exact names — do not fall back to 'general-purpose'):
|
|
22
|
+
- gsd-debugger — Diagnoses and fixes issues
|
|
23
|
+
</available_agent_types>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
User's issue: $ARGUMENTS
|
|
27
|
+
|
|
28
|
+
Check for active sessions:
|
|
29
|
+
```bash
|
|
30
|
+
ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
|
|
31
|
+
```
|
|
32
|
+
</context>
|
|
33
|
+
|
|
34
|
+
<process>
|
|
35
|
+
|
|
36
|
+
## 0. Initialize Context
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
INIT=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" state load)
|
|
40
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Extract `commit_docs` from init JSON. Resolve debugger model:
|
|
44
|
+
```bash
|
|
45
|
+
debugger_model=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" resolve-model gsd-debugger --raw)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 1. Check Active Sessions
|
|
49
|
+
|
|
50
|
+
If active sessions exist AND no $ARGUMENTS:
|
|
51
|
+
- List sessions with status, hypothesis, next action
|
|
52
|
+
- User picks number to resume OR describes new issue
|
|
53
|
+
|
|
54
|
+
If $ARGUMENTS provided OR user describes new issue:
|
|
55
|
+
- Continue to symptom gathering
|
|
56
|
+
|
|
57
|
+
## 2. Gather Symptoms (if new issue)
|
|
58
|
+
|
|
59
|
+
Use AskUserQuestion for each:
|
|
60
|
+
|
|
61
|
+
1. **Expected behavior** - What should happen?
|
|
62
|
+
2. **Actual behavior** - What happens instead?
|
|
63
|
+
3. **Error messages** - Any errors? (paste or describe)
|
|
64
|
+
4. **Timeline** - When did this start? Ever worked?
|
|
65
|
+
5. **Reproduction** - How do you trigger it?
|
|
66
|
+
|
|
67
|
+
After all gathered, confirm ready to investigate.
|
|
68
|
+
|
|
69
|
+
## 3. Spawn gsd-debugger Agent
|
|
70
|
+
|
|
71
|
+
Fill prompt and spawn:
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
<objective>
|
|
75
|
+
Investigate issue: {slug}
|
|
76
|
+
|
|
77
|
+
**Summary:** {trigger}
|
|
78
|
+
</objective>
|
|
79
|
+
|
|
80
|
+
<symptoms>
|
|
81
|
+
expected: {expected}
|
|
82
|
+
actual: {actual}
|
|
83
|
+
errors: {errors}
|
|
84
|
+
reproduction: {reproduction}
|
|
85
|
+
timeline: {timeline}
|
|
86
|
+
</symptoms>
|
|
87
|
+
|
|
88
|
+
<mode>
|
|
89
|
+
symptoms_prefilled: true
|
|
90
|
+
goal: find_and_fix
|
|
91
|
+
</mode>
|
|
92
|
+
|
|
93
|
+
<debug_file>
|
|
94
|
+
Create: .planning/debug/{slug}.md
|
|
95
|
+
</debug_file>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
Task(
|
|
100
|
+
prompt=filled_prompt,
|
|
101
|
+
subagent_type="gsd-debugger",
|
|
102
|
+
model="{debugger_model}",
|
|
103
|
+
description="Debug {slug}"
|
|
104
|
+
)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## 4. Handle Agent Return
|
|
108
|
+
|
|
109
|
+
**If `## ROOT CAUSE FOUND`:**
|
|
110
|
+
- Display root cause and evidence summary
|
|
111
|
+
- Offer options:
|
|
112
|
+
- "Fix now" - spawn fix subagent
|
|
113
|
+
- "Plan fix" - suggest /gsd:plan-phase --gaps
|
|
114
|
+
- "Manual fix" - done
|
|
115
|
+
|
|
116
|
+
**If `## CHECKPOINT REACHED`:**
|
|
117
|
+
- Present checkpoint details to user
|
|
118
|
+
- Get user response
|
|
119
|
+
- If checkpoint type is `human-verify`:
|
|
120
|
+
- If user confirms fixed: continue so agent can finalize/resolve/archive
|
|
121
|
+
- If user reports issues: continue so agent returns to investigation/fixing
|
|
122
|
+
- Spawn continuation agent (see step 5)
|
|
123
|
+
|
|
124
|
+
**If `## INVESTIGATION INCONCLUSIVE`:**
|
|
125
|
+
- Show what was checked and eliminated
|
|
126
|
+
- Offer options:
|
|
127
|
+
- "Continue investigating" - spawn new agent with additional context
|
|
128
|
+
- "Manual investigation" - done
|
|
129
|
+
- "Add more context" - gather more symptoms, spawn again
|
|
130
|
+
|
|
131
|
+
## 5. Spawn Continuation Agent (After Checkpoint)
|
|
132
|
+
|
|
133
|
+
When user responds to checkpoint, spawn fresh agent:
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
<objective>
|
|
137
|
+
Continue debugging {slug}. Evidence is in the debug file.
|
|
138
|
+
</objective>
|
|
139
|
+
|
|
140
|
+
<prior_state>
|
|
141
|
+
<files_to_read>
|
|
142
|
+
- .planning/debug/{slug}.md (Debug session state)
|
|
143
|
+
</files_to_read>
|
|
144
|
+
</prior_state>
|
|
145
|
+
|
|
146
|
+
<checkpoint_response>
|
|
147
|
+
**Type:** {checkpoint_type}
|
|
148
|
+
**Response:** {user_response}
|
|
149
|
+
</checkpoint_response>
|
|
150
|
+
|
|
151
|
+
<mode>
|
|
152
|
+
goal: find_and_fix
|
|
153
|
+
</mode>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
Task(
|
|
158
|
+
prompt=continuation_prompt,
|
|
159
|
+
subagent_type="gsd-debugger",
|
|
160
|
+
model="{debugger_model}",
|
|
161
|
+
description="Continue debug {slug}"
|
|
162
|
+
)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
</process>
|
|
166
|
+
|
|
167
|
+
<success_criteria>
|
|
168
|
+
- [ ] Active sessions checked
|
|
169
|
+
- [ ] Symptoms gathered (if new)
|
|
170
|
+
- [ ] gsd-debugger spawned with context
|
|
171
|
+
- [ ] Checkpoints handled correctly
|
|
172
|
+
- [ ] Root cause confirmed before fixing
|
|
173
|
+
</success_criteria>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:deep-plan
|
|
3
|
+
description: Chain discuss-phase then plan-phase for phases needing upfront reasoning (Code-First fork)
|
|
4
|
+
argument-hint: "<phase-number> [flags]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Bash
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Task
|
|
11
|
+
- Glob
|
|
12
|
+
- Grep
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<objective>
|
|
16
|
+
Chains `/gsd:discuss-phase` followed by `/gsd:plan-phase` for phases where upfront reasoning is valuable before code-first iteration. Use deep-plan when a phase has significant unknowns or architectural decisions that benefit from structured discussion before building.
|
|
17
|
+
|
|
18
|
+
**Arguments:**
|
|
19
|
+
- `phase-number` — the phase number to plan (e.g., `3`)
|
|
20
|
+
- All other flags are passed through to both discuss-phase and plan-phase
|
|
21
|
+
|
|
22
|
+
Deep-plan is a gsd-code-first convenience command. The two constituent commands remain independently usable.
|
|
23
|
+
</objective>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
$ARGUMENTS
|
|
27
|
+
|
|
28
|
+
@.planning/PROJECT.md
|
|
29
|
+
@.planning/ROADMAP.md
|
|
30
|
+
</context>
|
|
31
|
+
|
|
32
|
+
<process>
|
|
33
|
+
|
|
34
|
+
1. **Extract phase number** from `$ARGUMENTS` (first positional argument).
|
|
35
|
+
|
|
36
|
+
2. **Run `/gsd:discuss-phase`** with `$ARGUMENTS` (all flags pass through):
|
|
37
|
+
```
|
|
38
|
+
/gsd:discuss-phase $ARGUMENTS
|
|
39
|
+
```
|
|
40
|
+
This produces a `CONTEXT.md` for the phase capturing open questions, research findings, and architectural decisions.
|
|
41
|
+
|
|
42
|
+
3. **Wait for discuss-phase to complete** and confirm that `CONTEXT.md` was produced in the phase directory.
|
|
43
|
+
|
|
44
|
+
4. **Run `/gsd:plan-phase`** with `$ARGUMENTS` (all flags pass through):
|
|
45
|
+
```
|
|
46
|
+
/gsd:plan-phase $ARGUMENTS
|
|
47
|
+
```
|
|
48
|
+
This reads the `CONTEXT.md` produced in step 2 and generates `PLAN.md` files for the phase.
|
|
49
|
+
|
|
50
|
+
5. **Show summary:** "Deep plan complete for phase N. CONTEXT.md and PLAN.md(s) created."
|
|
51
|
+
|
|
52
|
+
</process>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:discuss-phase
|
|
3
|
+
description: Gather phase context through adaptive questioning before planning. Use --auto to skip interactive questions (Claude picks recommended defaults).
|
|
4
|
+
argument-hint: "<phase> [--auto] [--batch] [--analyze] [--text]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
- Task
|
|
13
|
+
- mcp__context7__resolve-library-id
|
|
14
|
+
- mcp__context7__query-docs
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<objective>
|
|
18
|
+
Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
|
|
19
|
+
|
|
20
|
+
**How it works:**
|
|
21
|
+
1. Load prior context (PROJECT.md, REQUIREMENTS.md, STATE.md, prior CONTEXT.md files)
|
|
22
|
+
2. Scout codebase for reusable assets and patterns
|
|
23
|
+
3. Analyze phase — skip gray areas already decided in prior phases
|
|
24
|
+
4. Present remaining gray areas — user selects which to discuss
|
|
25
|
+
5. Deep-dive each selected area until satisfied
|
|
26
|
+
6. Create CONTEXT.md with decisions that guide research and planning
|
|
27
|
+
|
|
28
|
+
**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
|
|
29
|
+
</objective>
|
|
30
|
+
|
|
31
|
+
<execution_context>
|
|
32
|
+
@~/.claude/get-shit-done/workflows/discuss-phase.md
|
|
33
|
+
@~/.claude/get-shit-done/workflows/discuss-phase-assumptions.md
|
|
34
|
+
@~/.claude/get-shit-done/templates/context.md
|
|
35
|
+
</execution_context>
|
|
36
|
+
|
|
37
|
+
<context>
|
|
38
|
+
Phase number: $ARGUMENTS (required)
|
|
39
|
+
|
|
40
|
+
Context files are resolved in-workflow using `init phase-op` and roadmap/state tool calls.
|
|
41
|
+
</context>
|
|
42
|
+
|
|
43
|
+
<process>
|
|
44
|
+
**Mode routing:**
|
|
45
|
+
```bash
|
|
46
|
+
DISCUSS_MODE=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" config-get workflow.discuss_mode 2>/dev/null || echo "discuss")
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
If `DISCUSS_MODE` is `"assumptions"`: Read and execute @~/.claude/get-shit-done/workflows/discuss-phase-assumptions.md end-to-end.
|
|
50
|
+
|
|
51
|
+
If `DISCUSS_MODE` is `"discuss"` (or unset, or any other value): Read and execute @~/.claude/get-shit-done/workflows/discuss-phase.md end-to-end.
|
|
52
|
+
|
|
53
|
+
**MANDATORY:** The execution_context files listed above ARE the instructions. Read the workflow file BEFORE taking any action. The objective and success_criteria sections in this command file are summaries — the workflow file contains the complete step-by-step process with all required behaviors, config checks, and interaction patterns. Do not improvise from the summary.
|
|
54
|
+
</process>
|
|
55
|
+
|
|
56
|
+
<success_criteria>
|
|
57
|
+
- Prior context loaded and applied (no re-asking decided questions)
|
|
58
|
+
- Gray areas identified through intelligent analysis
|
|
59
|
+
- User chose which areas to discuss
|
|
60
|
+
- Each selected area explored until satisfied
|
|
61
|
+
- Scope creep redirected to deferred ideas
|
|
62
|
+
- CONTEXT.md captures decisions, not vague vision
|
|
63
|
+
- User knows next steps
|
|
64
|
+
</success_criteria>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:do
|
|
3
|
+
description: Route freeform text to the right GSD command automatically
|
|
4
|
+
argument-hint: "<description of what you want to do>"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- AskUserQuestion
|
|
9
|
+
---
|
|
10
|
+
<objective>
|
|
11
|
+
Analyze freeform natural language input and dispatch to the most appropriate GSD command.
|
|
12
|
+
|
|
13
|
+
Acts as a smart dispatcher — never does the work itself. Matches intent to the best GSD command using routing rules, confirms the match, then hands off.
|
|
14
|
+
|
|
15
|
+
Use when you know what you want but don't know which `/gsd:*` command to run.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<execution_context>
|
|
19
|
+
@~/.claude/get-shit-done/workflows/do.md
|
|
20
|
+
@~/.claude/get-shit-done/references/ui-brand.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
$ARGUMENTS
|
|
25
|
+
</context>
|
|
26
|
+
|
|
27
|
+
<process>
|
|
28
|
+
Execute the do workflow from @~/.claude/get-shit-done/workflows/do.md end-to-end.
|
|
29
|
+
Route user intent to the best GSD command and invoke it.
|
|
30
|
+
</process>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:execute-phase
|
|
3
|
+
description: Execute all plans in a phase with wave-based parallelization
|
|
4
|
+
argument-hint: "<phase-number> [--wave N] [--gaps-only] [--interactive]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Bash
|
|
12
|
+
- Task
|
|
13
|
+
- TodoWrite
|
|
14
|
+
- AskUserQuestion
|
|
15
|
+
---
|
|
16
|
+
<objective>
|
|
17
|
+
Execute all plans in a phase using wave-based parallel execution.
|
|
18
|
+
|
|
19
|
+
Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent loads the full execute-plan context and handles its own plan.
|
|
20
|
+
|
|
21
|
+
Optional wave filter:
|
|
22
|
+
- `--wave N` executes only Wave `N` for pacing, quota management, or staged rollout
|
|
23
|
+
- phase verification/completion still only happens when no incomplete plans remain after the selected wave finishes
|
|
24
|
+
|
|
25
|
+
Flag handling rule:
|
|
26
|
+
- The optional flags documented below are available behaviors, not implied active behaviors
|
|
27
|
+
- A flag is active only when its literal token appears in `$ARGUMENTS`
|
|
28
|
+
- If a documented flag is absent from `$ARGUMENTS`, treat it as inactive
|
|
29
|
+
|
|
30
|
+
Context budget: ~15% orchestrator, 100% fresh per subagent.
|
|
31
|
+
</objective>
|
|
32
|
+
|
|
33
|
+
<execution_context>
|
|
34
|
+
@~/.claude/get-shit-done/workflows/execute-phase.md
|
|
35
|
+
@~/.claude/get-shit-done/references/ui-brand.md
|
|
36
|
+
</execution_context>
|
|
37
|
+
|
|
38
|
+
<context>
|
|
39
|
+
Phase: $ARGUMENTS
|
|
40
|
+
|
|
41
|
+
**Available optional flags (documentation only — not automatically active):**
|
|
42
|
+
- `--wave N` — Execute only Wave `N` in the phase. Use when you want to pace execution or stay inside usage limits.
|
|
43
|
+
- `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
|
|
44
|
+
- `--interactive` — Execute plans sequentially inline (no subagents) with user checkpoints between tasks. Lower token usage, pair-programming style. Best for small phases, bug fixes, and verification gaps.
|
|
45
|
+
|
|
46
|
+
**Active flags must be derived from `$ARGUMENTS`:**
|
|
47
|
+
- `--wave N` is active only if the literal `--wave` token is present in `$ARGUMENTS`
|
|
48
|
+
- `--gaps-only` is active only if the literal `--gaps-only` token is present in `$ARGUMENTS`
|
|
49
|
+
- `--interactive` is active only if the literal `--interactive` token is present in `$ARGUMENTS`
|
|
50
|
+
- If none of these tokens appear, run the standard full-phase execution flow with no flag-specific filtering
|
|
51
|
+
- Do not infer that a flag is active just because it is documented in this prompt
|
|
52
|
+
|
|
53
|
+
Context files are resolved inside the workflow via `gsd-tools init execute-phase` and per-subagent `<files_to_read>` blocks.
|
|
54
|
+
</context>
|
|
55
|
+
|
|
56
|
+
<process>
|
|
57
|
+
Execute the execute-phase workflow from @~/.claude/get-shit-done/workflows/execute-phase.md end-to-end.
|
|
58
|
+
Preserve all workflow gates (wave execution, checkpoint handling, verification, state updates, routing).
|
|
59
|
+
</process>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:extract-plan
|
|
3
|
+
description: Scan codebase for @gsd-tags and produce .planning/prototype/CODE-INVENTORY.md
|
|
4
|
+
argument-hint: "[path] [--phase N] [--type TYPE]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Scan the project for @gsd-tags using gsd-tools.cjs extract-tags and write the results to .planning/prototype/CODE-INVENTORY.md. The output is grouped by tag type, file, and phase reference.
|
|
13
|
+
|
|
14
|
+
Optional arguments:
|
|
15
|
+
- path: Directory or file to scan (defaults to project root)
|
|
16
|
+
- --phase N: Filter tags by phase number
|
|
17
|
+
- --type TYPE: Filter tags by tag type (context, decision, todo, constraint, pattern, ref, risk, api)
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
$ARGUMENTS
|
|
22
|
+
</context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
1. Run the following command to scan for @gsd-tags and write CODE-INVENTORY.md:
|
|
26
|
+
node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" extract-tags --format md --output .planning/prototype/CODE-INVENTORY.md $ARGUMENTS
|
|
27
|
+
|
|
28
|
+
2. Read .planning/prototype/CODE-INVENTORY.md to get the tag count and type breakdown from the Summary Statistics table.
|
|
29
|
+
|
|
30
|
+
3. Show the user a summary including:
|
|
31
|
+
- Total tags found
|
|
32
|
+
- Count per tag type
|
|
33
|
+
- Output path: .planning/prototype/CODE-INVENTORY.md
|
|
34
|
+
- Timestamp of generation
|
|
35
|
+
</process>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:fast
|
|
3
|
+
description: Execute a trivial task inline — no subagents, no planning overhead
|
|
4
|
+
argument-hint: "[task description]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Execute a trivial task directly in the current context without spawning subagents
|
|
16
|
+
or generating PLAN.md files. For tasks too small to justify planning overhead:
|
|
17
|
+
typo fixes, config changes, small refactors, forgotten commits, simple additions.
|
|
18
|
+
|
|
19
|
+
This is NOT a replacement for /gsd:quick — use /gsd:quick for anything that
|
|
20
|
+
needs research, multi-step planning, or verification. /gsd:fast is for tasks
|
|
21
|
+
you could describe in one sentence and execute in under 2 minutes.
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@~/.claude/get-shit-done/workflows/fast.md
|
|
26
|
+
</execution_context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
Execute the fast workflow from @~/.claude/get-shit-done/workflows/fast.md end-to-end.
|
|
30
|
+
</process>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: prompt
|
|
3
|
+
name: gsd:forensics
|
|
4
|
+
description: Post-mortem investigation for failed GSD workflows — analyzes git history, artifacts, and state to diagnose what went wrong
|
|
5
|
+
argument-hint: "[problem description]"
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Investigate what went wrong during a GSD workflow execution. Analyzes git history, `.planning/` artifacts, and file system state to detect anomalies and generate a structured diagnostic report.
|
|
16
|
+
|
|
17
|
+
Purpose: Diagnose failed or stuck workflows so the user can understand root cause and take corrective action.
|
|
18
|
+
Output: Forensic report saved to `.planning/forensics/`, presented inline, with optional issue creation.
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@~/.claude/get-shit-done/workflows/forensics.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
**Data sources:**
|
|
27
|
+
- `git log` (recent commits, patterns, time gaps)
|
|
28
|
+
- `git status` / `git diff` (uncommitted work, conflicts)
|
|
29
|
+
- `.planning/STATE.md` (current position, session history)
|
|
30
|
+
- `.planning/ROADMAP.md` (phase scope and progress)
|
|
31
|
+
- `.planning/phases/*/` (PLAN.md, SUMMARY.md, VERIFICATION.md, CONTEXT.md)
|
|
32
|
+
- `.planning/reports/SESSION_REPORT.md` (last session outcomes)
|
|
33
|
+
|
|
34
|
+
**User input:**
|
|
35
|
+
- Problem description: $ARGUMENTS (optional — will ask if not provided)
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<process>
|
|
39
|
+
Read and execute the forensics workflow from @~/.claude/get-shit-done/workflows/forensics.md end-to-end.
|
|
40
|
+
</process>
|
|
41
|
+
|
|
42
|
+
<success_criteria>
|
|
43
|
+
- Evidence gathered from all available data sources
|
|
44
|
+
- At least 4 anomaly types checked (stuck loop, missing artifacts, abandoned work, crash/interruption)
|
|
45
|
+
- Structured forensic report written to `.planning/forensics/report-{timestamp}.md`
|
|
46
|
+
- Report presented inline with findings, anomalies, and recommendations
|
|
47
|
+
- Interactive investigation offered for deeper analysis
|
|
48
|
+
- GitHub issue creation offered if actionable findings exist
|
|
49
|
+
</success_criteria>
|
|
50
|
+
|
|
51
|
+
<critical_rules>
|
|
52
|
+
- **Read-only investigation:** Do not modify project source files during forensics. Only write the forensic report and update STATE.md session tracking.
|
|
53
|
+
- **Redact sensitive data:** Strip absolute paths, API keys, tokens from reports and issues.
|
|
54
|
+
- **Ground findings in evidence:** Every anomaly must cite specific commits, files, or state data.
|
|
55
|
+
- **No speculation without evidence:** If data is insufficient, say so — do not fabricate root causes.
|
|
56
|
+
</critical_rules>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:health
|
|
3
|
+
description: Diagnose planning directory health and optionally repair issues
|
|
4
|
+
argument-hint: [--repair]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
<objective>
|
|
12
|
+
Validate `.planning/` directory integrity and report actionable issues. Checks for missing files, invalid configurations, inconsistent state, and orphaned plans.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@~/.claude/get-shit-done/workflows/health.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Execute the health workflow from @~/.claude/get-shit-done/workflows/health.md end-to-end.
|
|
21
|
+
Parse --repair flag from arguments and pass to workflow.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:help
|
|
3
|
+
description: Show available GSD commands and usage guide
|
|
4
|
+
---
|
|
5
|
+
<objective>
|
|
6
|
+
Display the complete GSD command reference.
|
|
7
|
+
|
|
8
|
+
Output ONLY the reference content below. Do NOT add:
|
|
9
|
+
- Project-specific analysis
|
|
10
|
+
- Git status or file context
|
|
11
|
+
- Next-step suggestions
|
|
12
|
+
- Any commentary beyond the reference
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@~/.claude/get-shit-done/workflows/help.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Output the complete GSD command reference from @~/.claude/get-shit-done/workflows/help.md.
|
|
21
|
+
Display the reference content directly — no additions or modifications.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:insert-phase
|
|
3
|
+
description: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
|
|
4
|
+
argument-hint: <after> <description>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
|
|
13
|
+
|
|
14
|
+
Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
|
|
15
|
+
|
|
16
|
+
Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@~/.claude/get-shit-done/workflows/insert-phase.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Arguments: $ARGUMENTS (format: <after-phase-number> <description>)
|
|
25
|
+
|
|
26
|
+
Roadmap and state are resolved in-workflow via `init phase-op` and targeted tool calls.
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
Execute the insert-phase workflow from @~/.claude/get-shit-done/workflows/insert-phase.md end-to-end.
|
|
31
|
+
Preserve all validation gates (argument parsing, phase verification, decimal calculation, roadmap updates).
|
|
32
|
+
</process>
|