@undeemed/get-shit-done-codex 1.6.12 → 1.20.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.
Files changed (104) hide show
  1. package/README.md +22 -3
  2. package/agents/gsd-codebase-mapper.md +761 -0
  3. package/agents/gsd-debugger.md +1198 -0
  4. package/agents/gsd-executor.md +419 -0
  5. package/agents/gsd-integration-checker.md +423 -0
  6. package/agents/gsd-phase-researcher.md +469 -0
  7. package/agents/gsd-plan-checker.md +622 -0
  8. package/agents/gsd-planner.md +1159 -0
  9. package/agents/gsd-project-researcher.md +618 -0
  10. package/agents/gsd-research-synthesizer.md +236 -0
  11. package/agents/gsd-roadmapper.md +639 -0
  12. package/agents/gsd-verifier.md +541 -0
  13. package/bin/install.js +106 -100
  14. package/commands/gsd/add-phase.md +17 -185
  15. package/commands/gsd/add-todo.md +23 -163
  16. package/commands/gsd/audit-milestone.md +3 -219
  17. package/commands/gsd/check-todos.md +20 -196
  18. package/commands/gsd/cleanup.md +18 -0
  19. package/commands/gsd/debug.md +13 -0
  20. package/commands/gsd/discuss-phase.md +10 -3
  21. package/commands/gsd/execute-phase.md +3 -265
  22. package/commands/gsd/health.md +22 -0
  23. package/commands/gsd/help.md +8 -369
  24. package/commands/gsd/insert-phase.md +9 -203
  25. package/commands/gsd/join-discord.md +18 -0
  26. package/commands/gsd/new-milestone.md +12 -678
  27. package/commands/gsd/new-project.md +8 -862
  28. package/commands/gsd/new-project.md.bak +1041 -0
  29. package/commands/gsd/pause-work.md +17 -105
  30. package/commands/gsd/plan-milestone-gaps.md +3 -247
  31. package/commands/gsd/plan-phase.md +13 -444
  32. package/commands/gsd/progress.md +5 -337
  33. package/commands/gsd/quick.md +40 -0
  34. package/commands/gsd/reapply-patches.md +110 -0
  35. package/commands/gsd/remove-phase.md +9 -315
  36. package/commands/gsd/research-phase.md +26 -19
  37. package/commands/gsd/set-profile.md +34 -0
  38. package/commands/gsd/settings.md +36 -0
  39. package/commands/gsd/update.md +25 -160
  40. package/commands/gsd/verify-work.md +3 -183
  41. package/get-shit-done/bin/gsd-tools.cjs +5243 -0
  42. package/get-shit-done/bin/gsd-tools.test.cjs +2273 -0
  43. package/get-shit-done/references/checkpoints.md +254 -267
  44. package/get-shit-done/references/decimal-phase-calculation.md +65 -0
  45. package/get-shit-done/references/git-integration.md +3 -9
  46. package/get-shit-done/references/git-planning-commit.md +38 -0
  47. package/get-shit-done/references/model-profile-resolution.md +34 -0
  48. package/get-shit-done/references/model-profiles.md +92 -0
  49. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  50. package/get-shit-done/references/planning-config.md +196 -0
  51. package/get-shit-done/references/questioning.md +4 -0
  52. package/get-shit-done/references/verification-patterns.md +17 -0
  53. package/get-shit-done/templates/UAT.md +1 -1
  54. package/get-shit-done/templates/codebase/structure.md +3 -3
  55. package/get-shit-done/templates/config.json +10 -0
  56. package/get-shit-done/templates/context.md +2 -10
  57. package/get-shit-done/templates/phase-prompt.md +18 -27
  58. package/get-shit-done/templates/planner-subagent-prompt.md +4 -4
  59. package/get-shit-done/templates/research-project/ARCHITECTURE.md +1 -1
  60. package/get-shit-done/templates/research.md +25 -2
  61. package/get-shit-done/templates/state.md +0 -30
  62. package/get-shit-done/templates/summary-complex.md +59 -0
  63. package/get-shit-done/templates/summary-minimal.md +41 -0
  64. package/get-shit-done/templates/summary-standard.md +48 -0
  65. package/get-shit-done/templates/summary.md +5 -28
  66. package/get-shit-done/templates/user-setup.md +1 -13
  67. package/get-shit-done/templates/verification-report.md +1 -1
  68. package/get-shit-done/workflows/add-phase.md +111 -0
  69. package/get-shit-done/workflows/add-todo.md +157 -0
  70. package/get-shit-done/workflows/audit-milestone.md +242 -0
  71. package/get-shit-done/workflows/check-todos.md +176 -0
  72. package/get-shit-done/workflows/cleanup.md +152 -0
  73. package/get-shit-done/workflows/complete-milestone.md +225 -301
  74. package/get-shit-done/workflows/diagnose-issues.md +3 -17
  75. package/get-shit-done/workflows/discovery-phase.md +6 -10
  76. package/get-shit-done/workflows/discuss-phase.md +99 -36
  77. package/get-shit-done/workflows/execute-phase.md +205 -349
  78. package/get-shit-done/workflows/execute-plan.md +179 -1569
  79. package/get-shit-done/workflows/health.md +156 -0
  80. package/get-shit-done/workflows/help.md +486 -0
  81. package/get-shit-done/workflows/insert-phase.md +129 -0
  82. package/get-shit-done/workflows/list-phase-assumptions.md +2 -2
  83. package/get-shit-done/workflows/map-codebase.md +55 -17
  84. package/get-shit-done/workflows/new-milestone.md +373 -0
  85. package/get-shit-done/workflows/new-project.md +1113 -0
  86. package/get-shit-done/workflows/pause-work.md +122 -0
  87. package/get-shit-done/workflows/plan-milestone-gaps.md +256 -0
  88. package/get-shit-done/workflows/plan-phase.md +448 -0
  89. package/get-shit-done/workflows/progress.md +393 -0
  90. package/get-shit-done/workflows/quick.md +444 -0
  91. package/get-shit-done/workflows/remove-phase.md +154 -0
  92. package/get-shit-done/workflows/research-phase.md +74 -0
  93. package/get-shit-done/workflows/resume-project.md +18 -23
  94. package/get-shit-done/workflows/set-profile.md +80 -0
  95. package/get-shit-done/workflows/settings.md +200 -0
  96. package/get-shit-done/workflows/transition.md +78 -103
  97. package/get-shit-done/workflows/update.md +214 -0
  98. package/get-shit-done/workflows/verify-phase.md +107 -494
  99. package/get-shit-done/workflows/verify-work.md +18 -11
  100. package/hooks/dist/gsd-check-update.js +66 -0
  101. package/hooks/dist/gsd-statusline.js +91 -0
  102. package/package.json +19 -3
  103. package/scripts/build-hooks.js +42 -0
  104. package/commands/gsd/whats-new.md +0 -124
@@ -6,177 +6,37 @@ allowed-tools:
6
6
  - Read
7
7
  - Write
8
8
  - Bash
9
- - Glob
9
+ - AskUserQuestion
10
10
  ---
11
11
 
12
12
  <objective>
13
13
  Capture an idea, task, or issue that surfaces during a GSD session as a structured todo for later work.
14
14
 
15
- Enables "thought capture continue" flow without losing context or derailing current work.
15
+ Routes to the add-todo workflow which handles:
16
+ - Directory structure creation
17
+ - Content extraction from arguments or conversation
18
+ - Area inference from file paths
19
+ - Duplicate detection and resolution
20
+ - Todo file creation with frontmatter
21
+ - STATE.md updates
22
+ - Git commits
16
23
  </objective>
17
24
 
18
- <context>
25
+ <execution_context>
19
26
  @.planning/STATE.md
20
- </context>
27
+ @~/.claude/get-shit-done/workflows/add-todo.md
28
+ </execution_context>
21
29
 
22
30
  <process>
23
-
24
- <step name="ensure_directory">
25
- ```bash
26
- mkdir -p .planning/todos/pending .planning/todos/done
27
- ```
28
- </step>
29
-
30
- <step name="check_existing_areas">
31
- ```bash
32
- ls .planning/todos/pending/*.md 2>/dev/null | xargs -I {} grep "^area:" {} 2>/dev/null | cut -d' ' -f2 | sort -u
33
- ```
34
-
35
- Note existing areas for consistency in infer_area step.
36
- </step>
37
-
38
- <step name="extract_content">
39
- **With arguments:** Use as the title/focus.
40
- - `/gsd:add-todo Add auth token refresh` → title = "Add auth token refresh"
41
-
42
- **Without arguments:** Analyze recent conversation to extract:
43
- - The specific problem, idea, or task discussed
44
- - Relevant file paths mentioned
45
- - Technical details (error messages, line numbers, constraints)
46
-
47
- Formulate:
48
- - `title`: 3-10 word descriptive title (action verb preferred)
49
- - `problem`: What's wrong or why this is needed
50
- - `solution`: Approach hints or "TBD" if just an idea
51
- - `files`: Relevant paths with line numbers from conversation
52
- </step>
53
-
54
- <step name="infer_area">
55
- Infer area from file paths:
56
-
57
- | Path pattern | Area |
58
- |--------------|------|
59
- | `src/api/*`, `api/*` | `api` |
60
- | `src/components/*`, `src/ui/*` | `ui` |
61
- | `src/auth/*`, `auth/*` | `auth` |
62
- | `src/db/*`, `database/*` | `database` |
63
- | `tests/*`, `__tests__/*` | `testing` |
64
- | `docs/*` | `docs` |
65
- | `.planning/*` | `planning` |
66
- | `scripts/*`, `bin/*` | `tooling` |
67
- | No files or unclear | `general` |
68
-
69
- Use existing area from step 2 if similar match exists.
70
- </step>
71
-
72
- <step name="check_duplicates">
73
- ```bash
74
- grep -l -i "[key words from title]" .planning/todos/pending/*.md 2>/dev/null
75
- ```
76
-
77
- If potential duplicate found:
78
- 1. Read the existing todo
79
- 2. Compare scope
80
-
81
- If overlapping, use AskUserQuestion:
82
- - header: "Duplicate?"
83
- - question: "Similar todo exists: [title]. What would you like to do?"
84
- - options:
85
- - "Skip" — keep existing todo
86
- - "Replace" — update existing with new context
87
- - "Add anyway" — create as separate todo
88
- </step>
89
-
90
- <step name="create_file">
91
- ```bash
92
- timestamp=$(date "+%Y-%m-%dT%H:%M")
93
- date_prefix=$(date "+%Y-%m-%d")
94
- ```
95
-
96
- Generate slug from title (lowercase, hyphens, no special chars).
97
-
98
- Write to `.planning/todos/pending/${date_prefix}-${slug}.md`:
99
-
100
- ```markdown
101
- ---
102
- created: [timestamp]
103
- title: [title]
104
- area: [area]
105
- files:
106
- - [file:lines]
107
- ---
108
-
109
- ## Problem
110
-
111
- [problem description - enough context for future Claude to understand weeks later]
112
-
113
- ## Solution
114
-
115
- [approach hints or "TBD"]
116
- ```
117
- </step>
118
-
119
- <step name="update_state">
120
- If `.planning/STATE.md` exists:
121
-
122
- 1. Count todos: `ls .planning/todos/pending/*.md 2>/dev/null | wc -l`
123
- 2. Update "### Pending Todos" under "## Accumulated Context"
124
- </step>
125
-
126
- <step name="git_commit">
127
- Commit the todo and any updated state:
128
-
129
- ```bash
130
- git add .planning/todos/pending/[filename]
131
- [ -f .planning/STATE.md ] && git add .planning/STATE.md
132
- git commit -m "$(cat <<'EOF'
133
- docs: capture todo - [title]
134
-
135
- Area: [area]
136
- EOF
137
- )"
138
- ```
139
-
140
- Confirm: "Committed: docs: capture todo - [title]"
141
- </step>
142
-
143
- <step name="confirm">
144
- ```
145
- Todo saved: .planning/todos/pending/[filename]
146
-
147
- [title]
148
- Area: [area]
149
- Files: [count] referenced
150
-
151
- ---
152
-
153
- Would you like to:
154
-
155
- 1. Continue with current work
156
- 2. Add another todo
157
- 3. View all todos (/gsd:check-todos)
158
- ```
159
- </step>
160
-
31
+ **Follow the add-todo workflow** from `@~/.claude/get-shit-done/workflows/add-todo.md`.
32
+
33
+ The workflow handles all logic including:
34
+ 1. Directory ensuring
35
+ 2. Existing area checking
36
+ 3. Content extraction (arguments or conversation)
37
+ 4. Area inference
38
+ 5. Duplicate checking
39
+ 6. File creation with slug generation
40
+ 7. STATE.md updates
41
+ 8. Git commits
161
42
  </process>
162
-
163
- <output>
164
- - `.planning/todos/pending/[date]-[slug].md`
165
- - Updated `.planning/STATE.md` (if exists)
166
- </output>
167
-
168
- <anti_patterns>
169
- - Don't create todos for work in current plan (that's deviation rule territory)
170
- - Don't create elaborate solution sections — captures ideas, not plans
171
- - Don't block on missing information — "TBD" is fine
172
- </anti_patterns>
173
-
174
- <success_criteria>
175
- - [ ] Directory structure exists
176
- - [ ] Todo file created with valid frontmatter
177
- - [ ] Problem section has enough context for future Claude
178
- - [ ] No duplicates (checked and resolved)
179
- - [ ] Area consistent with existing todos
180
- - [ ] STATE.md updated if exists
181
- - [ ] Todo and state committed to git
182
- </success_criteria>
@@ -10,7 +10,6 @@ allowed-tools:
10
10
  - Task
11
11
  - Write
12
12
  ---
13
-
14
13
  <objective>
15
14
  Verify milestone achieved its definition of done. Check requirements coverage, cross-phase integration, and end-to-end flows.
16
15
 
@@ -18,7 +17,7 @@ Verify milestone achieved its definition of done. Check requirements coverage, c
18
17
  </objective>
19
18
 
20
19
  <execution_context>
21
- <!-- Spawns gsd-integration-checker agent which has all audit expertise baked in -->
20
+ @~/.claude/get-shit-done/workflows/audit-milestone.md
22
21
  </execution_context>
23
22
 
24
23
  <context>
@@ -38,221 +37,6 @@ Glob: .planning/phases/*/*-VERIFICATION.md
38
37
  </context>
39
38
 
40
39
  <process>
41
-
42
- ## 1. Determine Milestone Scope
43
-
44
- ```bash
45
- # Get phases in milestone
46
- ls -d .planning/phases/*/ | sort -V
47
- ```
48
-
49
- - Parse version from arguments or detect current from ROADMAP.md
50
- - Identify all phase directories in scope
51
- - Extract milestone definition of done from ROADMAP.md
52
- - Extract requirements mapped to this milestone from REQUIREMENTS.md
53
-
54
- ## 2. Read All Phase Verifications
55
-
56
- For each phase directory, read the VERIFICATION.md:
57
-
58
- ```bash
59
- cat .planning/phases/01-*/*-VERIFICATION.md
60
- cat .planning/phases/02-*/*-VERIFICATION.md
61
- # etc.
62
- ```
63
-
64
- From each VERIFICATION.md, extract:
65
- - **Status:** passed | gaps_found
66
- - **Critical gaps:** (if any — these are blockers)
67
- - **Non-critical gaps:** tech debt, deferred items, warnings
68
- - **Anti-patterns found:** TODOs, stubs, placeholders
69
- - **Requirements coverage:** which requirements satisfied/blocked
70
-
71
- If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
72
-
73
- ## 3. Spawn Integration Checker
74
-
75
- With phase context collected:
76
-
77
- ```
78
- Task(
79
- prompt="Check cross-phase integration and E2E flows.
80
-
81
- Phases: {phase_dirs}
82
- Phase exports: {from SUMMARYs}
83
- API routes: {routes created}
84
-
85
- Verify cross-phase wiring and E2E user flows.",
86
- subagent_type="gsd-integration-checker"
87
- )
88
- ```
89
-
90
- ## 4. Collect Results
91
-
92
- Combine:
93
- - Phase-level gaps and tech debt (from step 2)
94
- - Integration checker's report (wiring gaps, broken flows)
95
-
96
- ## 5. Check Requirements Coverage
97
-
98
- For each requirement in REQUIREMENTS.md mapped to this milestone:
99
- - Find owning phase
100
- - Check phase verification status
101
- - Determine: satisfied | partial | unsatisfied
102
-
103
- ## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
104
-
105
- Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
106
-
107
- ```yaml
108
- ---
109
- milestone: {version}
110
- audited: {timestamp}
111
- status: passed | gaps_found | tech_debt
112
- scores:
113
- requirements: N/M
114
- phases: N/M
115
- integration: N/M
116
- flows: N/M
117
- gaps: # Critical blockers
118
- requirements: [...]
119
- integration: [...]
120
- flows: [...]
121
- tech_debt: # Non-critical, deferred
122
- - phase: 01-auth
123
- items:
124
- - "TODO: add rate limiting"
125
- - "Warning: no password strength validation"
126
- - phase: 03-dashboard
127
- items:
128
- - "Deferred: mobile responsive layout"
129
- ---
130
- ```
131
-
132
- Plus full markdown report with tables for requirements, phases, integration, tech debt.
133
-
134
- **Status values:**
135
- - `passed` — all requirements met, no critical gaps, minimal tech debt
136
- - `gaps_found` — critical blockers exist
137
- - `tech_debt` — no blockers but accumulated deferred items need review
138
-
139
- ## 7. Present Results
140
-
141
- Route by status (see `<offer_next>`).
142
-
40
+ Execute the audit-milestone workflow from @~/.claude/get-shit-done/workflows/audit-milestone.md end-to-end.
41
+ Preserve all workflow gates (scope determination, verification reading, integration check, requirements coverage, routing).
143
42
  </process>
144
-
145
- <offer_next>
146
- Output this markdown directly (not as a code block). Route based on status:
147
-
148
- ---
149
-
150
- **If passed:**
151
-
152
- ## ✓ Milestone {version} — Audit Passed
153
-
154
- **Score:** {N}/{M} requirements satisfied
155
- **Report:** .planning/v{version}-MILESTONE-AUDIT.md
156
-
157
- All requirements covered. Cross-phase integration verified. E2E flows complete.
158
-
159
- ───────────────────────────────────────────────────────────────
160
-
161
- ## ▶ Next Up
162
-
163
- **Complete milestone** — archive and tag
164
-
165
- /gsd:complete-milestone {version}
166
-
167
- <sub>/clear first → fresh context window</sub>
168
-
169
- ───────────────────────────────────────────────────────────────
170
-
171
- ---
172
-
173
- **If gaps_found:**
174
-
175
- ## ⚠ Milestone {version} — Gaps Found
176
-
177
- **Score:** {N}/{M} requirements satisfied
178
- **Report:** .planning/v{version}-MILESTONE-AUDIT.md
179
-
180
- ### Unsatisfied Requirements
181
-
182
- {For each unsatisfied requirement:}
183
- - **{REQ-ID}: {description}** (Phase {X})
184
- - {reason}
185
-
186
- ### Cross-Phase Issues
187
-
188
- {For each integration gap:}
189
- - **{from} → {to}:** {issue}
190
-
191
- ### Broken Flows
192
-
193
- {For each flow gap:}
194
- - **{flow name}:** breaks at {step}
195
-
196
- ───────────────────────────────────────────────────────────────
197
-
198
- ## ▶ Next Up
199
-
200
- **Plan gap closure** — create phases to complete milestone
201
-
202
- /gsd:plan-milestone-gaps
203
-
204
- <sub>/clear first → fresh context window</sub>
205
-
206
- ───────────────────────────────────────────────────────────────
207
-
208
- **Also available:**
209
- - cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
210
- - /gsd:complete-milestone {version} — proceed anyway (accept tech debt)
211
-
212
- ───────────────────────────────────────────────────────────────
213
-
214
- ---
215
-
216
- **If tech_debt (no blockers but accumulated debt):**
217
-
218
- ## ⚡ Milestone {version} — Tech Debt Review
219
-
220
- **Score:** {N}/{M} requirements satisfied
221
- **Report:** .planning/v{version}-MILESTONE-AUDIT.md
222
-
223
- All requirements met. No critical blockers. Accumulated tech debt needs review.
224
-
225
- ### Tech Debt by Phase
226
-
227
- {For each phase with debt:}
228
- **Phase {X}: {name}**
229
- - {item 1}
230
- - {item 2}
231
-
232
- ### Total: {N} items across {M} phases
233
-
234
- ───────────────────────────────────────────────────────────────
235
-
236
- ## ▶ Options
237
-
238
- **A. Complete milestone** — accept debt, track in backlog
239
-
240
- /gsd:complete-milestone {version}
241
-
242
- **B. Plan cleanup phase** — address debt before completing
243
-
244
- /gsd:plan-milestone-gaps
245
-
246
- <sub>/clear first → fresh context window</sub>
247
-
248
- ───────────────────────────────────────────────────────────────
249
- </offer_next>
250
-
251
- <success_criteria>
252
- - [ ] Milestone scope identified
253
- - [ ] All phase VERIFICATION.md files read
254
- - [ ] Tech debt and deferred gaps aggregated
255
- - [ ] Integration checker spawned for cross-phase wiring
256
- - [ ] v{version}-MILESTONE-AUDIT.md created
257
- - [ ] Results presented with actionable next steps
258
- </success_criteria>
@@ -6,212 +6,36 @@ allowed-tools:
6
6
  - Read
7
7
  - Write
8
8
  - Bash
9
- - Glob
10
9
  - AskUserQuestion
11
10
  ---
12
11
 
13
12
  <objective>
14
13
  List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
15
14
 
16
- Enables reviewing captured ideas and deciding what to work on next.
15
+ Routes to the check-todos workflow which handles:
16
+ - Todo counting and listing with area filtering
17
+ - Interactive selection with full context loading
18
+ - Roadmap correlation checking
19
+ - Action routing (work now, add to phase, brainstorm, create phase)
20
+ - STATE.md updates and git commits
17
21
  </objective>
18
22
 
19
- <context>
23
+ <execution_context>
20
24
  @.planning/STATE.md
21
25
  @.planning/ROADMAP.md
22
- </context>
26
+ @~/.claude/get-shit-done/workflows/check-todos.md
27
+ </execution_context>
23
28
 
24
29
  <process>
25
-
26
- <step name="check_exist">
27
- ```bash
28
- TODO_COUNT=$(ls .planning/todos/pending/*.md 2>/dev/null | wc -l | tr -d ' ')
29
- echo "Pending todos: $TODO_COUNT"
30
- ```
31
-
32
- If count is 0:
33
- ```
34
- No pending todos.
35
-
36
- Todos are captured during work sessions with /gsd:add-todo.
37
-
38
- ---
39
-
40
- Would you like to:
41
-
42
- 1. Continue with current phase (/gsd:progress)
43
- 2. Add a todo now (/gsd:add-todo)
44
- ```
45
-
46
- Exit.
47
- </step>
48
-
49
- <step name="parse_filter">
50
- Check for area filter in arguments:
51
- - `/gsd:check-todos` → show all
52
- - `/gsd:check-todos api` → filter to area:api only
53
- </step>
54
-
55
- <step name="list_todos">
56
- ```bash
57
- for file in .planning/todos/pending/*.md; do
58
- created=$(grep "^created:" "$file" | cut -d' ' -f2)
59
- title=$(grep "^title:" "$file" | cut -d':' -f2- | xargs)
60
- area=$(grep "^area:" "$file" | cut -d' ' -f2)
61
- echo "$created|$title|$area|$file"
62
- done | sort
63
- ```
64
-
65
- Apply area filter if specified. Display as numbered list:
66
-
67
- ```
68
- Pending Todos:
69
-
70
- 1. Add auth token refresh (api, 2d ago)
71
- 2. Fix modal z-index issue (ui, 1d ago)
72
- 3. Refactor database connection pool (database, 5h ago)
73
-
74
- ---
75
-
76
- Reply with a number to view details, or:
77
- - `/gsd:check-todos [area]` to filter by area
78
- - `q` to exit
79
- ```
80
-
81
- Format age as relative time.
82
- </step>
83
-
84
- <step name="handle_selection">
85
- Wait for user to reply with a number.
86
-
87
- If valid: load selected todo, proceed.
88
- If invalid: "Invalid selection. Reply with a number (1-[N]) or `q` to exit."
89
- </step>
90
-
91
- <step name="load_context">
92
- Read the todo file completely. Display:
93
-
94
- ```
95
- ## [title]
96
-
97
- **Area:** [area]
98
- **Created:** [date] ([relative time] ago)
99
- **Files:** [list or "None"]
100
-
101
- ### Problem
102
- [problem section content]
103
-
104
- ### Solution
105
- [solution section content]
106
- ```
107
-
108
- If `files` field has entries, read and briefly summarize each.
109
- </step>
110
-
111
- <step name="check_roadmap">
112
- ```bash
113
- ls .planning/ROADMAP.md 2>/dev/null && echo "Roadmap exists"
114
- ```
115
-
116
- If roadmap exists:
117
- 1. Check if todo's area matches an upcoming phase
118
- 2. Check if todo's files overlap with a phase's scope
119
- 3. Note any match for action options
120
- </step>
121
-
122
- <step name="offer_actions">
123
- **If todo maps to a roadmap phase:**
124
-
125
- Use AskUserQuestion:
126
- - header: "Action"
127
- - question: "This todo relates to Phase [N]: [name]. What would you like to do?"
128
- - options:
129
- - "Work on it now" — move to done, start working
130
- - "Add to phase plan" — include when planning Phase [N]
131
- - "Brainstorm approach" — think through before deciding
132
- - "Put it back" — return to list
133
-
134
- **If no roadmap match:**
135
-
136
- Use AskUserQuestion:
137
- - header: "Action"
138
- - question: "What would you like to do with this todo?"
139
- - options:
140
- - "Work on it now" — move to done, start working
141
- - "Create a phase" — /gsd:add-phase with this scope
142
- - "Brainstorm approach" — think through before deciding
143
- - "Put it back" — return to list
144
- </step>
145
-
146
- <step name="execute_action">
147
- **Work on it now:**
148
- ```bash
149
- mv ".planning/todos/pending/[filename]" ".planning/todos/done/"
150
- ```
151
- Update STATE.md todo count. Present problem/solution context. Begin work or ask how to proceed.
152
-
153
- **Add to phase plan:**
154
- Note todo reference in phase planning notes. Keep in pending. Return to list or exit.
155
-
156
- **Create a phase:**
157
- Display: `/gsd:add-phase [description from todo]`
158
- Keep in pending. User runs command in fresh context.
159
-
160
- **Brainstorm approach:**
161
- Keep in pending. Start discussion about problem and approaches.
162
-
163
- **Put it back:**
164
- Return to list_todos step.
165
- </step>
166
-
167
- <step name="update_state">
168
- After any action that changes todo count:
169
-
170
- ```bash
171
- ls .planning/todos/pending/*.md 2>/dev/null | wc -l
172
- ```
173
-
174
- Update STATE.md "### Pending Todos" section if exists.
175
- </step>
176
-
177
- <step name="git_commit">
178
- If todo was moved to done/, commit the change:
179
-
180
- ```bash
181
- git add .planning/todos/done/[filename]
182
- git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
183
- [ -f .planning/STATE.md ] && git add .planning/STATE.md
184
- git commit -m "$(cat <<'EOF'
185
- docs: start work on todo - [title]
186
-
187
- Moved to done/, beginning implementation.
188
- EOF
189
- )"
190
- ```
191
-
192
- Confirm: "Committed: docs: start work on todo - [title]"
193
- </step>
194
-
30
+ **Follow the check-todos workflow** from `@~/.claude/get-shit-done/workflows/check-todos.md`.
31
+
32
+ The workflow handles all logic including:
33
+ 1. Todo existence checking
34
+ 2. Area filtering
35
+ 3. Interactive listing and selection
36
+ 4. Full context loading with file summaries
37
+ 5. Roadmap correlation checking
38
+ 6. Action offering and execution
39
+ 7. STATE.md updates
40
+ 8. Git commits
195
41
  </process>
196
-
197
- <output>
198
- - Moved todo to `.planning/todos/done/` (if "Work on it now")
199
- - Updated `.planning/STATE.md` (if todo count changed)
200
- </output>
201
-
202
- <anti_patterns>
203
- - Don't delete todos — move to done/ when work begins
204
- - Don't start work without moving to done/ first
205
- - Don't create plans from this command — route to /gsd:plan-phase or /gsd:add-phase
206
- </anti_patterns>
207
-
208
- <success_criteria>
209
- - [ ] All pending todos listed with title, area, age
210
- - [ ] Area filter applied if specified
211
- - [ ] Selected todo's full context loaded
212
- - [ ] Roadmap context checked for phase match
213
- - [ ] Appropriate actions offered
214
- - [ ] Selected action executed
215
- - [ ] STATE.md updated if todo count changed
216
- - [ ] Changes committed to git (if todo moved to done/)
217
- </success_criteria>
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: gsd:cleanup
3
+ description: Archive accumulated phase directories from completed milestones
4
+ ---
5
+ <objective>
6
+ Archive phase directories from completed milestones into `.planning/milestones/v{X.Y}-phases/`.
7
+
8
+ Use when `.planning/phases/` has accumulated directories from past milestones.
9
+ </objective>
10
+
11
+ <execution_context>
12
+ @~/.claude/get-shit-done/workflows/cleanup.md
13
+ </execution_context>
14
+
15
+ <process>
16
+ Follow the cleanup workflow at @~/.claude/get-shit-done/workflows/cleanup.md.
17
+ Identify completed milestones, show a dry-run summary, and archive on confirmation.
18
+ </process>