get-shit-done-cc 1.3.27 → 1.3.28
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 +1 -0
- package/commands/gsd/help.md +11 -0
- package/commands/gsd/remove-phase.md +338 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -307,6 +307,7 @@ You're never locked in. The system adapts.
|
|
|
307
307
|
| `/gsd:new-milestone [name]` | Create new milestone with phases |
|
|
308
308
|
| `/gsd:add-phase` | Append phase to roadmap |
|
|
309
309
|
| `/gsd:insert-phase [N]` | Insert urgent work |
|
|
310
|
+
| `/gsd:remove-phase [N]` | Remove future phase, renumber subsequent |
|
|
310
311
|
| `/gsd:discuss-phase [N]` | Gather context before planning |
|
|
311
312
|
| `/gsd:research-phase [N]` | Deep ecosystem research for niche domains |
|
|
312
313
|
| `/gsd:list-phase-assumptions [N]` | See what Claude thinks before you correct it |
|
package/commands/gsd/help.md
CHANGED
|
@@ -137,6 +137,17 @@ Insert urgent work as decimal phase between existing phases.
|
|
|
137
137
|
Usage: `/gsd:insert-phase 7 "Fix critical auth bug"`
|
|
138
138
|
Result: Creates Phase 7.1
|
|
139
139
|
|
|
140
|
+
**`/gsd:remove-phase <number>`**
|
|
141
|
+
Remove a future phase and renumber subsequent phases.
|
|
142
|
+
|
|
143
|
+
- Deletes phase directory and all references
|
|
144
|
+
- Renumbers all subsequent phases to close the gap
|
|
145
|
+
- Only works on future (unstarted) phases
|
|
146
|
+
- Git commit preserves historical record
|
|
147
|
+
|
|
148
|
+
Usage: `/gsd:remove-phase 17`
|
|
149
|
+
Result: Phase 17 deleted, phases 18-20 become 17-19
|
|
150
|
+
|
|
140
151
|
### Milestone Management
|
|
141
152
|
|
|
142
153
|
**`/gsd:discuss-milestone`**
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:remove-phase
|
|
3
|
+
description: Remove a future phase from roadmap and renumber subsequent phases
|
|
4
|
+
argument-hint: <phase-number>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
|
|
14
|
+
|
|
15
|
+
Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
|
|
16
|
+
Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@.planning/ROADMAP.md
|
|
21
|
+
@.planning/STATE.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
|
|
26
|
+
<step name="parse_arguments">
|
|
27
|
+
Parse the command arguments:
|
|
28
|
+
- Argument is the phase number to remove (integer or decimal)
|
|
29
|
+
- Example: `/gsd:remove-phase 17` → phase = 17
|
|
30
|
+
- Example: `/gsd:remove-phase 16.1` → phase = 16.1
|
|
31
|
+
|
|
32
|
+
If no argument provided:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
ERROR: Phase number required
|
|
36
|
+
Usage: /gsd:remove-phase <phase-number>
|
|
37
|
+
Example: /gsd:remove-phase 17
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Exit.
|
|
41
|
+
</step>
|
|
42
|
+
|
|
43
|
+
<step name="load_state">
|
|
44
|
+
Load project state:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
cat .planning/STATE.md 2>/dev/null
|
|
48
|
+
cat .planning/ROADMAP.md 2>/dev/null
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Parse current phase number from STATE.md "Current Position" section.
|
|
52
|
+
</step>
|
|
53
|
+
|
|
54
|
+
<step name="validate_phase_exists">
|
|
55
|
+
Verify the target phase exists in ROADMAP.md:
|
|
56
|
+
|
|
57
|
+
1. Search for `### Phase {target}:` heading
|
|
58
|
+
2. If not found:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
ERROR: Phase {target} not found in roadmap
|
|
62
|
+
Available phases: [list phase numbers]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Exit.
|
|
66
|
+
</step>
|
|
67
|
+
|
|
68
|
+
<step name="validate_future_phase">
|
|
69
|
+
Verify the phase is a future phase (not started):
|
|
70
|
+
|
|
71
|
+
1. Compare target phase to current phase from STATE.md
|
|
72
|
+
2. Target must be > current phase number
|
|
73
|
+
|
|
74
|
+
If target <= current phase:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
ERROR: Cannot remove Phase {target}
|
|
78
|
+
|
|
79
|
+
Only future phases can be removed:
|
|
80
|
+
- Current phase: {current}
|
|
81
|
+
- Phase {target} is current or completed
|
|
82
|
+
|
|
83
|
+
To abandon current work, use /gsd:pause-work instead.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Exit.
|
|
87
|
+
|
|
88
|
+
3. Check for SUMMARY.md files in phase directory:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
ls .planning/phases/{target}-*/*-SUMMARY.md 2>/dev/null
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
If any SUMMARY.md files exist:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
ERROR: Phase {target} has completed work
|
|
98
|
+
|
|
99
|
+
Found executed plans:
|
|
100
|
+
- {list of SUMMARY.md files}
|
|
101
|
+
|
|
102
|
+
Cannot remove phases with completed work.
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Exit.
|
|
106
|
+
</step>
|
|
107
|
+
|
|
108
|
+
<step name="gather_phase_info">
|
|
109
|
+
Collect information about the phase being removed:
|
|
110
|
+
|
|
111
|
+
1. Extract phase name from ROADMAP.md heading: `### Phase {target}: {Name}`
|
|
112
|
+
2. Find phase directory: `.planning/phases/{target}-{slug}/`
|
|
113
|
+
3. Find all subsequent phases (integer and decimal) that need renumbering
|
|
114
|
+
|
|
115
|
+
**Subsequent phase detection:**
|
|
116
|
+
|
|
117
|
+
For integer phase removal (e.g., 17):
|
|
118
|
+
- Find all phases > 17 (integers: 18, 19, 20...)
|
|
119
|
+
- Find all decimal phases >= 17.0 and < 18.0 (17.1, 17.2...) → these become 16.x
|
|
120
|
+
- Find all decimal phases for subsequent integers (18.1, 19.1...) → renumber with their parent
|
|
121
|
+
|
|
122
|
+
For decimal phase removal (e.g., 17.1):
|
|
123
|
+
- Find all decimal phases > 17.1 and < 18 (17.2, 17.3...) → renumber down
|
|
124
|
+
- Integer phases unchanged
|
|
125
|
+
|
|
126
|
+
List all phases that will be renumbered.
|
|
127
|
+
</step>
|
|
128
|
+
|
|
129
|
+
<step name="confirm_removal">
|
|
130
|
+
Present removal summary and confirm:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
Removing Phase {target}: {Name}
|
|
134
|
+
|
|
135
|
+
This will:
|
|
136
|
+
- Delete: .planning/phases/{target}-{slug}/
|
|
137
|
+
- Renumber {N} subsequent phases:
|
|
138
|
+
- Phase 18 → Phase 17
|
|
139
|
+
- Phase 18.1 → Phase 17.1
|
|
140
|
+
- Phase 19 → Phase 18
|
|
141
|
+
[etc.]
|
|
142
|
+
|
|
143
|
+
Proceed? (y/n)
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Wait for confirmation.
|
|
147
|
+
</step>
|
|
148
|
+
|
|
149
|
+
<step name="delete_phase_directory">
|
|
150
|
+
Delete the target phase directory if it exists:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
if [ -d ".planning/phases/{target}-{slug}" ]; then
|
|
154
|
+
rm -rf ".planning/phases/{target}-{slug}"
|
|
155
|
+
echo "Deleted: .planning/phases/{target}-{slug}/"
|
|
156
|
+
fi
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
If directory doesn't exist, note: "No directory to delete (phase not yet created)"
|
|
160
|
+
</step>
|
|
161
|
+
|
|
162
|
+
<step name="renumber_directories">
|
|
163
|
+
Rename all subsequent phase directories:
|
|
164
|
+
|
|
165
|
+
For each phase directory that needs renumbering (in reverse order to avoid conflicts):
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# Example: renaming 18-dashboard to 17-dashboard
|
|
169
|
+
mv ".planning/phases/18-dashboard" ".planning/phases/17-dashboard"
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Process in descending order (20→19, then 19→18, then 18→17) to avoid overwriting.
|
|
173
|
+
|
|
174
|
+
Also rename decimal phase directories:
|
|
175
|
+
- `17.1-fix-bug` → `16.1-fix-bug` (if removing integer 17)
|
|
176
|
+
- `17.2-hotfix` → `17.1-hotfix` (if removing decimal 17.1)
|
|
177
|
+
</step>
|
|
178
|
+
|
|
179
|
+
<step name="rename_files_in_directories">
|
|
180
|
+
Rename plan files inside renumbered directories:
|
|
181
|
+
|
|
182
|
+
For each renumbered directory, rename files that contain the phase number:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Inside 17-dashboard (was 18-dashboard):
|
|
186
|
+
mv "18-01-PLAN.md" "17-01-PLAN.md"
|
|
187
|
+
mv "18-02-PLAN.md" "17-02-PLAN.md"
|
|
188
|
+
mv "18-01-SUMMARY.md" "17-01-SUMMARY.md" # if exists
|
|
189
|
+
# etc.
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Also handle CONTEXT.md and DISCOVERY.md (these don't have phase prefixes, so no rename needed).
|
|
193
|
+
</step>
|
|
194
|
+
|
|
195
|
+
<step name="update_roadmap">
|
|
196
|
+
Update ROADMAP.md:
|
|
197
|
+
|
|
198
|
+
1. **Remove the phase section entirely:**
|
|
199
|
+
- Delete from `### Phase {target}:` to the next phase heading (or section end)
|
|
200
|
+
|
|
201
|
+
2. **Remove from phase list:**
|
|
202
|
+
- Delete line `- [ ] **Phase {target}: {Name}**` or similar
|
|
203
|
+
|
|
204
|
+
3. **Remove from Progress table:**
|
|
205
|
+
- Delete the row for Phase {target}
|
|
206
|
+
|
|
207
|
+
4. **Renumber all subsequent phases:**
|
|
208
|
+
- `### Phase 18:` → `### Phase 17:`
|
|
209
|
+
- `- [ ] **Phase 18:` → `- [ ] **Phase 17:`
|
|
210
|
+
- Table rows: `| 18. Dashboard |` → `| 17. Dashboard |`
|
|
211
|
+
- Plan references: `18-01:` → `17-01:`
|
|
212
|
+
|
|
213
|
+
5. **Update dependency references:**
|
|
214
|
+
- `**Depends on:** Phase 18` → `**Depends on:** Phase 17`
|
|
215
|
+
- For the phase that depended on the removed phase:
|
|
216
|
+
- `**Depends on:** Phase 17` (removed) → `**Depends on:** Phase 16`
|
|
217
|
+
|
|
218
|
+
6. **Renumber decimal phases:**
|
|
219
|
+
- `### Phase 17.1:` → `### Phase 16.1:` (if integer 17 removed)
|
|
220
|
+
- Update all references consistently
|
|
221
|
+
|
|
222
|
+
Write updated ROADMAP.md.
|
|
223
|
+
</step>
|
|
224
|
+
|
|
225
|
+
<step name="update_state">
|
|
226
|
+
Update STATE.md:
|
|
227
|
+
|
|
228
|
+
1. **Update total phase count:**
|
|
229
|
+
- `Phase: 16 of 20` → `Phase: 16 of 19`
|
|
230
|
+
|
|
231
|
+
2. **Recalculate progress percentage:**
|
|
232
|
+
- New percentage based on completed plans / new total plans
|
|
233
|
+
|
|
234
|
+
Do NOT add a "Roadmap Evolution" note - the git commit is the record.
|
|
235
|
+
|
|
236
|
+
Write updated STATE.md.
|
|
237
|
+
</step>
|
|
238
|
+
|
|
239
|
+
<step name="update_file_contents">
|
|
240
|
+
Search for and update phase references inside plan files:
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
# Find files that reference the old phase numbers
|
|
244
|
+
grep -r "Phase 18" .planning/phases/17-*/ 2>/dev/null
|
|
245
|
+
grep -r "Phase 19" .planning/phases/18-*/ 2>/dev/null
|
|
246
|
+
# etc.
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Update any internal references to reflect new numbering.
|
|
250
|
+
</step>
|
|
251
|
+
|
|
252
|
+
<step name="commit">
|
|
253
|
+
Stage and commit the removal:
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
git add .planning/
|
|
257
|
+
git commit -m "chore: remove phase {target} ({original-phase-name})"
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
The commit message preserves the historical record of what was removed.
|
|
261
|
+
</step>
|
|
262
|
+
|
|
263
|
+
<step name="completion">
|
|
264
|
+
Present completion summary:
|
|
265
|
+
|
|
266
|
+
```
|
|
267
|
+
Phase {target} ({original-name}) removed.
|
|
268
|
+
|
|
269
|
+
Changes:
|
|
270
|
+
- Deleted: .planning/phases/{target}-{slug}/
|
|
271
|
+
- Renumbered: Phases {first-renumbered}-{last-old} → {first-renumbered-1}-{last-new}
|
|
272
|
+
- Updated: ROADMAP.md, STATE.md
|
|
273
|
+
- Committed: chore: remove phase {target} ({original-name})
|
|
274
|
+
|
|
275
|
+
Current roadmap: {total-remaining} phases
|
|
276
|
+
Current position: Phase {current} of {new-total}
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## What's Next
|
|
281
|
+
|
|
282
|
+
Would you like to:
|
|
283
|
+
- `/gsd:progress` — see updated roadmap status
|
|
284
|
+
- Continue with current phase
|
|
285
|
+
- Review roadmap
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
```
|
|
289
|
+
</step>
|
|
290
|
+
|
|
291
|
+
</process>
|
|
292
|
+
|
|
293
|
+
<anti_patterns>
|
|
294
|
+
|
|
295
|
+
- Don't remove completed phases (have SUMMARY.md files)
|
|
296
|
+
- Don't remove current or past phases
|
|
297
|
+
- Don't leave gaps in numbering - always renumber
|
|
298
|
+
- Don't add "removed phase" notes to STATE.md - git commit is the record
|
|
299
|
+
- Don't ask about each decimal phase - just renumber them
|
|
300
|
+
- Don't modify completed phase directories
|
|
301
|
+
</anti_patterns>
|
|
302
|
+
|
|
303
|
+
<edge_cases>
|
|
304
|
+
|
|
305
|
+
**Removing a decimal phase (e.g., 17.1):**
|
|
306
|
+
- Only affects other decimals in same series (17.2 → 17.1, 17.3 → 17.2)
|
|
307
|
+
- Integer phases unchanged
|
|
308
|
+
- Simpler operation
|
|
309
|
+
|
|
310
|
+
**No subsequent phases to renumber:**
|
|
311
|
+
- Removing the last phase (e.g., Phase 20 when that's the end)
|
|
312
|
+
- Just delete and update ROADMAP.md, no renumbering needed
|
|
313
|
+
|
|
314
|
+
**Phase directory doesn't exist:**
|
|
315
|
+
- Phase may be in ROADMAP.md but directory not created yet
|
|
316
|
+
- Skip directory deletion, proceed with ROADMAP.md updates
|
|
317
|
+
|
|
318
|
+
**Decimal phases under removed integer:**
|
|
319
|
+
- Removing Phase 17 when 17.1, 17.2 exist
|
|
320
|
+
- 17.1 → 16.1, 17.2 → 16.2
|
|
321
|
+
- They maintain their position in execution order (after current last integer)
|
|
322
|
+
|
|
323
|
+
</edge_cases>
|
|
324
|
+
|
|
325
|
+
<success_criteria>
|
|
326
|
+
Phase removal is complete when:
|
|
327
|
+
|
|
328
|
+
- [ ] Target phase validated as future/unstarted
|
|
329
|
+
- [ ] Phase directory deleted (if existed)
|
|
330
|
+
- [ ] All subsequent phase directories renumbered
|
|
331
|
+
- [ ] Files inside directories renamed ({old}-01-PLAN.md → {new}-01-PLAN.md)
|
|
332
|
+
- [ ] ROADMAP.md updated (section removed, all references renumbered)
|
|
333
|
+
- [ ] STATE.md updated (phase count, progress percentage)
|
|
334
|
+
- [ ] Dependency references updated in subsequent phases
|
|
335
|
+
- [ ] Changes committed with descriptive message
|
|
336
|
+
- [ ] No gaps in phase numbering
|
|
337
|
+
- [ ] User informed of changes
|
|
338
|
+
</success_criteria>
|
package/package.json
CHANGED