get-shit-done-cc 1.4.21 → 1.4.23
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 +0 -2
- package/commands/gsd/_archive/execute-phase.md +0 -1
- package/commands/gsd/debug.md +160 -17
- package/commands/gsd/execute-phase.md +0 -1
- package/commands/gsd/help.md +0 -14
- package/commands/gsd/progress.md +3 -3
- package/get-shit-done/templates/UAT.md +0 -12
- package/get-shit-done/templates/debug-subagent-prompt.md +267 -71
- package/get-shit-done/templates/state.md +1 -16
- package/get-shit-done/templates/summary.md +2 -17
- package/get-shit-done/workflows/_archive/execute-phase.md +0 -1
- package/get-shit-done/workflows/complete-milestone.md +0 -1
- package/get-shit-done/workflows/create-milestone.md +1 -1
- package/get-shit-done/workflows/create-roadmap.md +2 -2
- package/get-shit-done/workflows/debug.md +173 -11
- package/get-shit-done/workflows/diagnose-issues.md +29 -12
- package/get-shit-done/workflows/discuss-milestone.md +3 -3
- package/get-shit-done/workflows/execute-phase.md +0 -1
- package/get-shit-done/workflows/execute-plan.md +4 -92
- package/get-shit-done/workflows/plan-phase.md +7 -7
- package/get-shit-done/workflows/resume-project.md +7 -7
- package/get-shit-done/workflows/transition.md +0 -16
- package/package.json +1 -1
- package/commands/gsd/consider-issues.md +0 -202
- package/get-shit-done/templates/issues.md +0 -32
package/README.md
CHANGED
|
@@ -251,7 +251,6 @@ GSD handles it for you:
|
|
|
251
251
|
| `STATE.md` | Decisions, blockers, position — memory across sessions |
|
|
252
252
|
| `PLAN.md` | Atomic task with XML structure, verification steps |
|
|
253
253
|
| `SUMMARY.md` | What happened, what changed, committed to history |
|
|
254
|
-
| `ISSUES.md` | Deferred enhancements tracked across sessions |
|
|
255
254
|
| `todos/` | Captured ideas and tasks for later work |
|
|
256
255
|
|
|
257
256
|
Size limits based on where Claude's quality degrades. Stay under, get consistent excellence.
|
|
@@ -342,7 +341,6 @@ You're never locked in. The system adapts.
|
|
|
342
341
|
| `/gsd:list-phase-assumptions [N]` | See what Claude thinks before you correct it |
|
|
343
342
|
| `/gsd:pause-work` | Create handoff file when stopping mid-phase |
|
|
344
343
|
| `/gsd:resume-work` | Restore from last session |
|
|
345
|
-
| `/gsd:consider-issues` | Review deferred issues, close resolved, identify urgent |
|
|
346
344
|
| `/gsd:add-todo [desc]` | Capture idea or task from conversation for later |
|
|
347
345
|
| `/gsd:check-todos [area]` | List pending todos, select one to work on |
|
|
348
346
|
| `/gsd:debug [desc]` | Systematic debugging with persistent state across `/clear` |
|
|
@@ -81,7 +81,6 @@ During execution, handle discoveries automatically:
|
|
|
81
81
|
2. **Auto-add critical** - Security/correctness gaps, add and document
|
|
82
82
|
3. **Auto-fix blockers** - Can't proceed without fix, do it and document
|
|
83
83
|
4. **Ask about architectural** - Major structural changes, stop and ask user
|
|
84
|
-
5. **Log enhancements** - Nice-to-haves, log to ISSUES.md, continue
|
|
85
84
|
|
|
86
85
|
Only rule 4 requires user intervention.
|
|
87
86
|
</deviation_rules>
|
package/commands/gsd/debug.md
CHANGED
|
@@ -9,19 +9,22 @@ allowed-tools:
|
|
|
9
9
|
- Bash
|
|
10
10
|
- Grep
|
|
11
11
|
- Glob
|
|
12
|
+
- Task
|
|
12
13
|
- AskUserQuestion
|
|
13
14
|
---
|
|
14
15
|
|
|
15
16
|
<objective>
|
|
16
|
-
Debug issues using scientific method with
|
|
17
|
+
Debug issues using scientific method with subagent isolation for investigation.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
**Orchestrator role:** Gather symptoms interactively, spawn investigation subagent, handle checkpoints, spawn continuation agents as needed.
|
|
20
|
+
|
|
21
|
+
**Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation attempt. Main context stays lean for user interaction.
|
|
20
22
|
</objective>
|
|
21
23
|
|
|
22
24
|
<execution_context>
|
|
23
25
|
@~/.claude/get-shit-done/workflows/debug.md
|
|
24
26
|
@~/.claude/get-shit-done/templates/DEBUG.md
|
|
27
|
+
@~/.claude/get-shit-done/templates/debug-subagent-prompt.md
|
|
25
28
|
</execution_context>
|
|
26
29
|
|
|
27
30
|
<context>
|
|
@@ -29,30 +32,170 @@ User's issue: $ARGUMENTS
|
|
|
29
32
|
|
|
30
33
|
Check for active debug sessions:
|
|
31
34
|
```bash
|
|
32
|
-
ls .planning/debug/*.md 2>/dev/null | head -5
|
|
35
|
+
ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
|
|
33
36
|
```
|
|
34
37
|
</context>
|
|
35
38
|
|
|
36
39
|
<process>
|
|
37
|
-
Follow the workflow in @~/.claude/get-shit-done/workflows/debug.md
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
## 1. Check Active Sessions
|
|
42
|
+
|
|
43
|
+
If active sessions exist AND no $ARGUMENTS:
|
|
44
|
+
- List sessions with status, hypothesis, next action
|
|
45
|
+
- User picks number to resume OR describes new issue
|
|
46
|
+
|
|
47
|
+
If $ARGUMENTS provided OR user describes new issue:
|
|
48
|
+
- Continue to symptom gathering
|
|
49
|
+
|
|
50
|
+
## 2. Gather Symptoms (Main Context)
|
|
51
|
+
|
|
52
|
+
Use AskUserQuestion for each:
|
|
53
|
+
|
|
54
|
+
1. **Expected behavior** - What should happen?
|
|
55
|
+
2. **Actual behavior** - What happens instead?
|
|
56
|
+
3. **Error messages** - Any errors? (paste or describe)
|
|
57
|
+
4. **Timeline** - When did this start? Ever worked?
|
|
58
|
+
5. **Reproduction** - How do you trigger it?
|
|
59
|
+
|
|
60
|
+
After each answer, note it. After all gathered, confirm ready to investigate.
|
|
61
|
+
|
|
62
|
+
## 3. Create Debug File
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
mkdir -p .planning/debug
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Create `.planning/debug/{slug}.md` with:
|
|
69
|
+
- status: investigating
|
|
70
|
+
- trigger: user's original description
|
|
71
|
+
- Symptoms section filled from gathering
|
|
72
|
+
- Empty Evidence, Eliminated, Resolution sections
|
|
73
|
+
|
|
74
|
+
## 4. Spawn Investigation Subagent
|
|
40
75
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
76
|
+
Fill debug-subagent-prompt template with:
|
|
77
|
+
- `{slug}`: Generated slug
|
|
78
|
+
- `{trigger}`: Original issue description
|
|
79
|
+
- `{expected}`: From symptom gathering
|
|
80
|
+
- `{actual}`: From symptom gathering
|
|
81
|
+
- `{errors}`: From symptom gathering
|
|
82
|
+
- `{reproduction}`: From symptom gathering
|
|
83
|
+
- `{timeline}`: From symptom gathering
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Task(
|
|
87
|
+
prompt=filled_debug_subagent_prompt,
|
|
88
|
+
subagent_type="general-purpose",
|
|
89
|
+
description="Debug {slug}"
|
|
90
|
+
)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## 5. Handle Subagent Return
|
|
94
|
+
|
|
95
|
+
**If `## ROOT CAUSE FOUND`:**
|
|
96
|
+
- Display root cause and evidence summary
|
|
97
|
+
- Offer options:
|
|
98
|
+
- "Fix now" → spawn fix subagent
|
|
99
|
+
- "Plan fix" → suggest /gsd:plan-fix
|
|
100
|
+
- "Manual fix" → done
|
|
101
|
+
|
|
102
|
+
**If `## CHECKPOINT REACHED`:**
|
|
103
|
+
- Present checkpoint details to user
|
|
104
|
+
- Get user response
|
|
105
|
+
- Spawn continuation agent (see step 6)
|
|
106
|
+
|
|
107
|
+
**If `## INVESTIGATION INCONCLUSIVE`:**
|
|
108
|
+
- Show what was checked and eliminated
|
|
109
|
+
- Offer options:
|
|
110
|
+
- "Continue investigating" → spawn new agent with additional context
|
|
111
|
+
- "Manual investigation" → done
|
|
112
|
+
- "Add more context" → gather more symptoms, spawn again
|
|
113
|
+
|
|
114
|
+
## 6. Spawn Continuation Agent (After Checkpoint)
|
|
115
|
+
|
|
116
|
+
When user responds to checkpoint, spawn fresh agent:
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
<objective>
|
|
120
|
+
Continue debugging {slug}.
|
|
121
|
+
|
|
122
|
+
**DO NOT REDO** previous investigation. Evidence is in the debug file.
|
|
123
|
+
</objective>
|
|
124
|
+
|
|
125
|
+
<prior_state>
|
|
126
|
+
Debug file: @.planning/debug/{slug}.md
|
|
127
|
+
|
|
128
|
+
Read this file - it contains all evidence gathered so far.
|
|
129
|
+
</prior_state>
|
|
130
|
+
|
|
131
|
+
<checkpoint_response>
|
|
132
|
+
**Checkpoint was:** {checkpoint_type}
|
|
133
|
+
**User response:** {user_response}
|
|
134
|
+
|
|
135
|
+
{interpretation based on checkpoint type}
|
|
136
|
+
</checkpoint_response>
|
|
137
|
+
|
|
138
|
+
<execution_context>
|
|
139
|
+
@~/.claude/get-shit-done/workflows/debug.md
|
|
140
|
+
@~/.claude/get-shit-done/templates/DEBUG.md
|
|
141
|
+
</execution_context>
|
|
142
|
+
|
|
143
|
+
<instructions>
|
|
144
|
+
1. Read the debug file to understand current state
|
|
145
|
+
2. Incorporate user's checkpoint response
|
|
146
|
+
3. Continue investigation from Current Focus
|
|
147
|
+
4. Update debug file continuously
|
|
148
|
+
5. Return with ROOT CAUSE FOUND, CHECKPOINT REACHED, or INVESTIGATION INCONCLUSIVE
|
|
149
|
+
</instructions>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## 7. Fix (Optional)
|
|
153
|
+
|
|
154
|
+
If user chooses "Fix now" after root cause found:
|
|
155
|
+
|
|
156
|
+
```markdown
|
|
157
|
+
<objective>
|
|
158
|
+
Fix the root cause identified in {slug} debug session.
|
|
159
|
+
</objective>
|
|
160
|
+
|
|
161
|
+
<context>
|
|
162
|
+
Debug file: @.planning/debug/{slug}.md
|
|
163
|
+
Root cause: {root_cause}
|
|
164
|
+
Files involved: {files}
|
|
165
|
+
</context>
|
|
166
|
+
|
|
167
|
+
<instructions>
|
|
168
|
+
1. Implement minimal fix addressing root cause
|
|
169
|
+
2. Verify fix against original symptoms
|
|
170
|
+
3. Update debug file Resolution section
|
|
171
|
+
4. Commit with message referencing debug session
|
|
172
|
+
5. Archive to .planning/debug/resolved/
|
|
173
|
+
</instructions>
|
|
174
|
+
```
|
|
47
175
|
|
|
48
|
-
**Key principle:** The DEBUG.md is your memory. Update it constantly. It survives `/clear`.
|
|
49
176
|
</process>
|
|
50
177
|
|
|
178
|
+
<checkpoint_types>
|
|
179
|
+
Subagent may return checkpoints for:
|
|
180
|
+
|
|
181
|
+
**human-verify:** "Can you confirm you see X when you do Y?"
|
|
182
|
+
- Present verification request
|
|
183
|
+
- User responds with confirmation or what they see instead
|
|
184
|
+
|
|
185
|
+
**human-action:** "I need you to run this command / check this thing"
|
|
186
|
+
- Present action request
|
|
187
|
+
- User responds "done" or with results
|
|
188
|
+
|
|
189
|
+
**decision:** "Should I investigate path A or path B?"
|
|
190
|
+
- Present options with context
|
|
191
|
+
- User picks direction
|
|
192
|
+
</checkpoint_types>
|
|
193
|
+
|
|
51
194
|
<success_criteria>
|
|
52
|
-
- [ ]
|
|
53
|
-
- [ ]
|
|
54
|
-
- [ ]
|
|
55
|
-
- [ ]
|
|
195
|
+
- [ ] Symptoms gathered interactively in main context
|
|
196
|
+
- [ ] Investigation runs in subagent (fresh context)
|
|
197
|
+
- [ ] Debug file tracks all state across agent boundaries
|
|
198
|
+
- [ ] Checkpoints handled via continuation agents
|
|
56
199
|
- [ ] Root cause confirmed with evidence before fixing
|
|
57
200
|
- [ ] Fix verified and session archived
|
|
58
201
|
</success_criteria>
|
|
@@ -99,7 +99,6 @@ During execution, handle discoveries automatically:
|
|
|
99
99
|
2. **Auto-add critical** - Security/correctness gaps, add and document
|
|
100
100
|
3. **Auto-fix blockers** - Can't proceed without fix, do it and document
|
|
101
101
|
4. **Ask about architectural** - Major structural changes, stop and ask user
|
|
102
|
-
5. **Log enhancements** - Nice-to-haves, log to ISSUES.md, continue
|
|
103
102
|
|
|
104
103
|
Only rule 4 requires user intervention.
|
|
105
104
|
</deviation_rules>
|
package/commands/gsd/help.md
CHANGED
|
@@ -235,19 +235,6 @@ Create context handoff when pausing work mid-phase.
|
|
|
235
235
|
|
|
236
236
|
Usage: `/gsd:pause-work`
|
|
237
237
|
|
|
238
|
-
### Issue Management
|
|
239
|
-
|
|
240
|
-
**`/gsd:consider-issues`**
|
|
241
|
-
Review deferred issues with codebase context.
|
|
242
|
-
|
|
243
|
-
- Analyzes all open issues against current codebase state
|
|
244
|
-
- Identifies resolved issues (can close)
|
|
245
|
-
- Identifies urgent issues (should address now)
|
|
246
|
-
- Identifies natural fits for upcoming phases
|
|
247
|
-
- Offers batch actions (close, insert phase, note for planning)
|
|
248
|
-
|
|
249
|
-
Usage: `/gsd:consider-issues`
|
|
250
|
-
|
|
251
238
|
### Debugging
|
|
252
239
|
|
|
253
240
|
**`/gsd:debug [issue description]`**
|
|
@@ -300,7 +287,6 @@ Show this command reference.
|
|
|
300
287
|
├── PROJECT.md # Project vision
|
|
301
288
|
├── ROADMAP.md # Current phase breakdown
|
|
302
289
|
├── STATE.md # Project memory & context
|
|
303
|
-
├── ISSUES.md # Deferred enhancements (created when needed)
|
|
304
290
|
├── config.json # Workflow mode & gates
|
|
305
291
|
├── todos/ # Captured ideas and tasks
|
|
306
292
|
│ ├── pending/ # Todos waiting to be worked on
|
package/commands/gsd/progress.md
CHANGED
|
@@ -55,7 +55,7 @@ If missing STATE.md or ROADMAP.md: inform what's missing, suggest running `/gsd:
|
|
|
55
55
|
|
|
56
56
|
- From STATE.md: current phase, plan number, status
|
|
57
57
|
- Calculate: total plans, completed plans, remaining plans
|
|
58
|
-
- Note any blockers
|
|
58
|
+
- Note any blockers or concerns
|
|
59
59
|
- Check for CONTEXT.md: For phases without PLAN.md files, check if `{phase}-CONTEXT.md` exists in phase directory
|
|
60
60
|
- Count pending todos: `ls .planning/todos/pending/*.md 2>/dev/null | wc -l`
|
|
61
61
|
- Check for active debug sessions: `ls .planning/debug/*.md 2>/dev/null | grep -v resolved | wc -l`
|
|
@@ -82,8 +82,8 @@ CONTEXT: [✓ if CONTEXT.md exists | - if not]
|
|
|
82
82
|
- [decision 1 from STATE.md]
|
|
83
83
|
- [decision 2]
|
|
84
84
|
|
|
85
|
-
##
|
|
86
|
-
- [any
|
|
85
|
+
## Blockers/Concerns
|
|
86
|
+
- [any blockers or concerns from STATE.md]
|
|
87
87
|
|
|
88
88
|
## Pending Todos
|
|
89
89
|
- [count] pending — /gsd:check-todos to review
|
|
@@ -243,15 +243,3 @@ skipped: 0
|
|
|
243
243
|
root_cause: useEffect in CommentList.tsx missing commentCount dependency
|
|
244
244
|
```
|
|
245
245
|
</good_example>
|
|
246
|
-
|
|
247
|
-
<difference_from_issues_md>
|
|
248
|
-
|
|
249
|
-
| UAT.md | ISSUES.md (global) |
|
|
250
|
-
|--------|-------------------|
|
|
251
|
-
| Created by /gsd:verify-work | Created by deviation rule 5 during execution |
|
|
252
|
-
| Tracks test session state | Tracks deferred enhancements |
|
|
253
|
-
| Phase-scoped, one per phase | Global, one per project |
|
|
254
|
-
| Feeds into /gsd:plan-fix | Feeds into /gsd:consider-issues |
|
|
255
|
-
| Contains pass/fail/skip results | Contains only deferred items |
|
|
256
|
-
|
|
257
|
-
</difference_from_issues_md>
|