gsd-codex-cli 1.20.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/.codex/prompts/gsd-add-phase.md +44 -0
- package/.codex/prompts/gsd-add-todo.md +43 -0
- package/.codex/prompts/gsd-audit-milestone.md +43 -0
- package/.codex/prompts/gsd-check-todos.md +43 -0
- package/.codex/prompts/gsd-complete-milestone.md +43 -0
- package/.codex/prompts/gsd-debug.md +46 -0
- package/.codex/prompts/gsd-discuss-phase.md +43 -0
- package/.codex/prompts/gsd-execute-phase.md +43 -0
- package/.codex/prompts/gsd-help.md +43 -0
- package/.codex/prompts/gsd-insert-phase.md +43 -0
- package/.codex/prompts/gsd-list-phase-assumptions.md +43 -0
- package/.codex/prompts/gsd-map-codebase.md +43 -0
- package/.codex/prompts/gsd-new-milestone.md +43 -0
- package/.codex/prompts/gsd-new-project.md +43 -0
- package/.codex/prompts/gsd-pause-work.md +43 -0
- package/.codex/prompts/gsd-plan-milestone-gaps.md +43 -0
- package/.codex/prompts/gsd-plan-phase.md +43 -0
- package/.codex/prompts/gsd-progress.md +43 -0
- package/.codex/prompts/gsd-quick.md +43 -0
- package/.codex/prompts/gsd-remove-phase.md +43 -0
- package/.codex/prompts/gsd-research-phase.md +43 -0
- package/.codex/prompts/gsd-resume-work.md +43 -0
- package/.codex/prompts/gsd-set-profile.md +43 -0
- package/.codex/prompts/gsd-settings.md +43 -0
- package/.codex/prompts/gsd-update.md +43 -0
- package/.codex/prompts/gsd-verify-work.md +43 -0
- package/.codex/skills/get-shit-done-codex/SKILL.md +65 -0
- package/.codex/skills/get-shit-done-codex/references/compat.md +32 -0
- package/.codex/skills/get-shit-done-codex/references/windows.md +23 -0
- package/CHANGELOG.md +1434 -0
- package/LICENSE +21 -0
- package/README.md +690 -0
- package/agents/gsd-codebase-mapper.md +761 -0
- package/agents/gsd-debugger.md +1198 -0
- package/agents/gsd-executor.md +419 -0
- package/agents/gsd-integration-checker.md +423 -0
- package/agents/gsd-phase-researcher.md +469 -0
- package/agents/gsd-plan-checker.md +622 -0
- package/agents/gsd-planner.md +1159 -0
- package/agents/gsd-project-researcher.md +618 -0
- package/agents/gsd-research-synthesizer.md +236 -0
- package/agents/gsd-roadmapper.md +639 -0
- package/agents/gsd-verifier.md +541 -0
- package/bin/install-codex.js +100 -0
- package/bin/install.js +1806 -0
- package/commands/gsd/add-phase.md +39 -0
- package/commands/gsd/add-todo.md +42 -0
- package/commands/gsd/audit-milestone.md +42 -0
- package/commands/gsd/check-todos.md +41 -0
- package/commands/gsd/cleanup.md +18 -0
- package/commands/gsd/complete-milestone.md +136 -0
- package/commands/gsd/debug.md +162 -0
- package/commands/gsd/discuss-phase.md +87 -0
- package/commands/gsd/execute-phase.md +42 -0
- package/commands/gsd/health.md +22 -0
- package/commands/gsd/help.md +22 -0
- package/commands/gsd/insert-phase.md +33 -0
- package/commands/gsd/join-discord.md +18 -0
- package/commands/gsd/list-phase-assumptions.md +50 -0
- package/commands/gsd/map-codebase.md +71 -0
- package/commands/gsd/new-milestone.md +51 -0
- package/commands/gsd/new-project.md +42 -0
- package/commands/gsd/pause-work.md +35 -0
- package/commands/gsd/plan-milestone-gaps.md +40 -0
- package/commands/gsd/plan-phase.md +44 -0
- package/commands/gsd/progress.md +24 -0
- package/commands/gsd/quick.md +40 -0
- package/commands/gsd/reapply-patches.md +110 -0
- package/commands/gsd/remove-phase.md +32 -0
- package/commands/gsd/research-phase.md +187 -0
- package/commands/gsd/resume-work.md +40 -0
- package/commands/gsd/set-profile.md +34 -0
- package/commands/gsd/settings.md +36 -0
- package/commands/gsd/update.md +37 -0
- package/commands/gsd/verify-work.md +39 -0
- package/get-shit-done/bin/gsd-tools.cjs +5243 -0
- package/get-shit-done/bin/gsd-tools.test.cjs +2273 -0
- package/get-shit-done/references/checkpoints.md +775 -0
- package/get-shit-done/references/continuation-format.md +249 -0
- package/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/get-shit-done/references/git-integration.md +248 -0
- package/get-shit-done/references/git-planning-commit.md +38 -0
- package/get-shit-done/references/model-profile-resolution.md +34 -0
- package/get-shit-done/references/model-profiles.md +92 -0
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planning-config.md +196 -0
- package/get-shit-done/references/questioning.md +145 -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/verification-patterns.md +612 -0
- package/get-shit-done/templates/DEBUG.md +159 -0
- package/get-shit-done/templates/UAT.md +247 -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 +36 -0
- package/get-shit-done/templates/context.md +283 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/get-shit-done/templates/discovery.md +146 -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 +567 -0
- package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/get-shit-done/templates/project.md +184 -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/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 +246 -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 +111 -0
- package/get-shit-done/workflows/add-todo.md +157 -0
- package/get-shit-done/workflows/audit-milestone.md +242 -0
- package/get-shit-done/workflows/check-todos.md +176 -0
- package/get-shit-done/workflows/cleanup.md +152 -0
- package/get-shit-done/workflows/complete-milestone.md +674 -0
- package/get-shit-done/workflows/diagnose-issues.md +219 -0
- package/get-shit-done/workflows/discovery-phase.md +289 -0
- package/get-shit-done/workflows/discuss-phase.md +485 -0
- package/get-shit-done/workflows/execute-phase.md +408 -0
- package/get-shit-done/workflows/execute-plan.md +441 -0
- package/get-shit-done/workflows/health.md +156 -0
- package/get-shit-done/workflows/help.md +486 -0
- package/get-shit-done/workflows/insert-phase.md +129 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/map-codebase.md +327 -0
- package/get-shit-done/workflows/new-milestone.md +373 -0
- package/get-shit-done/workflows/new-project.md +1113 -0
- package/get-shit-done/workflows/pause-work.md +122 -0
- package/get-shit-done/workflows/plan-milestone-gaps.md +256 -0
- package/get-shit-done/workflows/plan-phase.md +448 -0
- package/get-shit-done/workflows/progress.md +393 -0
- package/get-shit-done/workflows/quick.md +444 -0
- package/get-shit-done/workflows/remove-phase.md +154 -0
- package/get-shit-done/workflows/research-phase.md +74 -0
- package/get-shit-done/workflows/resume-project.md +306 -0
- package/get-shit-done/workflows/set-profile.md +80 -0
- package/get-shit-done/workflows/settings.md +200 -0
- package/get-shit-done/workflows/transition.md +539 -0
- package/get-shit-done/workflows/update.md +214 -0
- package/get-shit-done/workflows/verify-phase.md +242 -0
- package/get-shit-done/workflows/verify-work.md +570 -0
- package/hooks/dist/gsd-check-update.js +62 -0
- package/hooks/dist/gsd-statusline.js +91 -0
- package/package.json +54 -0
- package/scripts/build-hooks.js +42 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Verify milestone achieved its definition of done by aggregating phase verifications, checking cross-phase integration, and assessing requirements coverage. Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates tech debt and deferred gaps, then spawns integration checker for cross-phase wiring.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
## 0. Initialize Milestone Context
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs init milestone-op)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Extract from init JSON: `milestone_version`, `milestone_name`, `phase_count`, `completed_phases`, `commit_docs`.
|
|
18
|
+
|
|
19
|
+
Resolve integration checker model:
|
|
20
|
+
```bash
|
|
21
|
+
CHECKER_MODEL=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-integration-checker --raw)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 1. Determine Milestone Scope
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Get phases in milestone (sorted numerically, handles decimals)
|
|
28
|
+
node ~/.claude/get-shit-done/bin/gsd-tools.cjs phases list
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- Parse version from arguments or detect current from ROADMAP.md
|
|
32
|
+
- Identify all phase directories in scope
|
|
33
|
+
- Extract milestone definition of done from ROADMAP.md
|
|
34
|
+
- Extract requirements mapped to this milestone from REQUIREMENTS.md
|
|
35
|
+
|
|
36
|
+
## 2. Read All Phase Verifications
|
|
37
|
+
|
|
38
|
+
For each phase directory, read the VERIFICATION.md:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# For each phase, use find-phase to resolve the directory (handles archived phases)
|
|
42
|
+
PHASE_INFO=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs find-phase 01 --raw)
|
|
43
|
+
# Extract directory from JSON, then read VERIFICATION.md from that directory
|
|
44
|
+
# Repeat for each phase number from ROADMAP.md
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
From each VERIFICATION.md, extract:
|
|
48
|
+
- **Status:** passed | gaps_found
|
|
49
|
+
- **Critical gaps:** (if any — these are blockers)
|
|
50
|
+
- **Non-critical gaps:** tech debt, deferred items, warnings
|
|
51
|
+
- **Anti-patterns found:** TODOs, stubs, placeholders
|
|
52
|
+
- **Requirements coverage:** which requirements satisfied/blocked
|
|
53
|
+
|
|
54
|
+
If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
|
|
55
|
+
|
|
56
|
+
## 3. Spawn Integration Checker
|
|
57
|
+
|
|
58
|
+
With phase context collected:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
Task(
|
|
62
|
+
prompt="Check cross-phase integration and E2E flows.
|
|
63
|
+
|
|
64
|
+
Phases: {phase_dirs}
|
|
65
|
+
Phase exports: {from SUMMARYs}
|
|
66
|
+
API routes: {routes created}
|
|
67
|
+
|
|
68
|
+
Verify cross-phase wiring and E2E user flows.",
|
|
69
|
+
subagent_type="gsd-integration-checker",
|
|
70
|
+
model="{integration_checker_model}"
|
|
71
|
+
)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## 4. Collect Results
|
|
75
|
+
|
|
76
|
+
Combine:
|
|
77
|
+
- Phase-level gaps and tech debt (from step 2)
|
|
78
|
+
- Integration checker's report (wiring gaps, broken flows)
|
|
79
|
+
|
|
80
|
+
## 5. Check Requirements Coverage
|
|
81
|
+
|
|
82
|
+
For each requirement in REQUIREMENTS.md mapped to this milestone:
|
|
83
|
+
- Find owning phase
|
|
84
|
+
- Check phase verification status
|
|
85
|
+
- Determine: satisfied | partial | unsatisfied
|
|
86
|
+
|
|
87
|
+
## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
|
|
88
|
+
|
|
89
|
+
Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
|
|
90
|
+
|
|
91
|
+
```yaml
|
|
92
|
+
---
|
|
93
|
+
milestone: {version}
|
|
94
|
+
audited: {timestamp}
|
|
95
|
+
status: passed | gaps_found | tech_debt
|
|
96
|
+
scores:
|
|
97
|
+
requirements: N/M
|
|
98
|
+
phases: N/M
|
|
99
|
+
integration: N/M
|
|
100
|
+
flows: N/M
|
|
101
|
+
gaps: # Critical blockers
|
|
102
|
+
requirements: [...]
|
|
103
|
+
integration: [...]
|
|
104
|
+
flows: [...]
|
|
105
|
+
tech_debt: # Non-critical, deferred
|
|
106
|
+
- phase: 01-auth
|
|
107
|
+
items:
|
|
108
|
+
- "TODO: add rate limiting"
|
|
109
|
+
- "Warning: no password strength validation"
|
|
110
|
+
- phase: 03-dashboard
|
|
111
|
+
items:
|
|
112
|
+
- "Deferred: mobile responsive layout"
|
|
113
|
+
---
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Plus full markdown report with tables for requirements, phases, integration, tech debt.
|
|
117
|
+
|
|
118
|
+
**Status values:**
|
|
119
|
+
- `passed` — all requirements met, no critical gaps, minimal tech debt
|
|
120
|
+
- `gaps_found` — critical blockers exist
|
|
121
|
+
- `tech_debt` — no blockers but accumulated deferred items need review
|
|
122
|
+
|
|
123
|
+
## 7. Present Results
|
|
124
|
+
|
|
125
|
+
Route by status (see `<offer_next>`).
|
|
126
|
+
|
|
127
|
+
</process>
|
|
128
|
+
|
|
129
|
+
<offer_next>
|
|
130
|
+
Output this markdown directly (not as a code block). Route based on status:
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
**If passed:**
|
|
135
|
+
|
|
136
|
+
## ✓ Milestone {version} — Audit Passed
|
|
137
|
+
|
|
138
|
+
**Score:** {N}/{M} requirements satisfied
|
|
139
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
140
|
+
|
|
141
|
+
All requirements covered. Cross-phase integration verified. E2E flows complete.
|
|
142
|
+
|
|
143
|
+
───────────────────────────────────────────────────────────────
|
|
144
|
+
|
|
145
|
+
## ▶ Next Up
|
|
146
|
+
|
|
147
|
+
**Complete milestone** — archive and tag
|
|
148
|
+
|
|
149
|
+
/gsd:complete-milestone {version}
|
|
150
|
+
|
|
151
|
+
<sub>/clear first → fresh context window</sub>
|
|
152
|
+
|
|
153
|
+
───────────────────────────────────────────────────────────────
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
**If gaps_found:**
|
|
158
|
+
|
|
159
|
+
## ⚠ Milestone {version} — Gaps Found
|
|
160
|
+
|
|
161
|
+
**Score:** {N}/{M} requirements satisfied
|
|
162
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
163
|
+
|
|
164
|
+
### Unsatisfied Requirements
|
|
165
|
+
|
|
166
|
+
{For each unsatisfied requirement:}
|
|
167
|
+
- **{REQ-ID}: {description}** (Phase {X})
|
|
168
|
+
- {reason}
|
|
169
|
+
|
|
170
|
+
### Cross-Phase Issues
|
|
171
|
+
|
|
172
|
+
{For each integration gap:}
|
|
173
|
+
- **{from} → {to}:** {issue}
|
|
174
|
+
|
|
175
|
+
### Broken Flows
|
|
176
|
+
|
|
177
|
+
{For each flow gap:}
|
|
178
|
+
- **{flow name}:** breaks at {step}
|
|
179
|
+
|
|
180
|
+
───────────────────────────────────────────────────────────────
|
|
181
|
+
|
|
182
|
+
## ▶ Next Up
|
|
183
|
+
|
|
184
|
+
**Plan gap closure** — create phases to complete milestone
|
|
185
|
+
|
|
186
|
+
/gsd:plan-milestone-gaps
|
|
187
|
+
|
|
188
|
+
<sub>/clear first → fresh context window</sub>
|
|
189
|
+
|
|
190
|
+
───────────────────────────────────────────────────────────────
|
|
191
|
+
|
|
192
|
+
**Also available:**
|
|
193
|
+
- cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
|
|
194
|
+
- /gsd:complete-milestone {version} — proceed anyway (accept tech debt)
|
|
195
|
+
|
|
196
|
+
───────────────────────────────────────────────────────────────
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
**If tech_debt (no blockers but accumulated debt):**
|
|
201
|
+
|
|
202
|
+
## ⚡ Milestone {version} — Tech Debt Review
|
|
203
|
+
|
|
204
|
+
**Score:** {N}/{M} requirements satisfied
|
|
205
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
206
|
+
|
|
207
|
+
All requirements met. No critical blockers. Accumulated tech debt needs review.
|
|
208
|
+
|
|
209
|
+
### Tech Debt by Phase
|
|
210
|
+
|
|
211
|
+
{For each phase with debt:}
|
|
212
|
+
**Phase {X}: {name}**
|
|
213
|
+
- {item 1}
|
|
214
|
+
- {item 2}
|
|
215
|
+
|
|
216
|
+
### Total: {N} items across {M} phases
|
|
217
|
+
|
|
218
|
+
───────────────────────────────────────────────────────────────
|
|
219
|
+
|
|
220
|
+
## ▶ Options
|
|
221
|
+
|
|
222
|
+
**A. Complete milestone** — accept debt, track in backlog
|
|
223
|
+
|
|
224
|
+
/gsd:complete-milestone {version}
|
|
225
|
+
|
|
226
|
+
**B. Plan cleanup phase** — address debt before completing
|
|
227
|
+
|
|
228
|
+
/gsd:plan-milestone-gaps
|
|
229
|
+
|
|
230
|
+
<sub>/clear first → fresh context window</sub>
|
|
231
|
+
|
|
232
|
+
───────────────────────────────────────────────────────────────
|
|
233
|
+
</offer_next>
|
|
234
|
+
|
|
235
|
+
<success_criteria>
|
|
236
|
+
- [ ] Milestone scope identified
|
|
237
|
+
- [ ] All phase VERIFICATION.md files read
|
|
238
|
+
- [ ] Tech debt and deferred gaps aggregated
|
|
239
|
+
- [ ] Integration checker spawned for cross-phase wiring
|
|
240
|
+
- [ ] v{version}-MILESTONE-AUDIT.md created
|
|
241
|
+
- [ ] Results presented with actionable next steps
|
|
242
|
+
</success_criteria>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
<step name="init_context">
|
|
12
|
+
Load todo context:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs init todos)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Extract from init JSON: `todo_count`, `todos`, `pending_dir`.
|
|
19
|
+
|
|
20
|
+
If `todo_count` is 0:
|
|
21
|
+
```
|
|
22
|
+
No pending todos.
|
|
23
|
+
|
|
24
|
+
Todos are captured during work sessions with /gsd:add-todo.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
Would you like to:
|
|
29
|
+
|
|
30
|
+
1. Continue with current phase (/gsd:progress)
|
|
31
|
+
2. Add a todo now (/gsd:add-todo)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Exit.
|
|
35
|
+
</step>
|
|
36
|
+
|
|
37
|
+
<step name="parse_filter">
|
|
38
|
+
Check for area filter in arguments:
|
|
39
|
+
- `/gsd:check-todos` → show all
|
|
40
|
+
- `/gsd:check-todos api` → filter to area:api only
|
|
41
|
+
</step>
|
|
42
|
+
|
|
43
|
+
<step name="list_todos">
|
|
44
|
+
Use the `todos` array from init context (already filtered by area if specified).
|
|
45
|
+
|
|
46
|
+
Parse and display as numbered list:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Pending Todos:
|
|
50
|
+
|
|
51
|
+
1. Add auth token refresh (api, 2d ago)
|
|
52
|
+
2. Fix modal z-index issue (ui, 1d ago)
|
|
53
|
+
3. Refactor database connection pool (database, 5h ago)
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
Reply with a number to view details, or:
|
|
58
|
+
- `/gsd:check-todos [area]` to filter by area
|
|
59
|
+
- `q` to exit
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Format age as relative time from created timestamp.
|
|
63
|
+
</step>
|
|
64
|
+
|
|
65
|
+
<step name="handle_selection">
|
|
66
|
+
Wait for user to reply with a number.
|
|
67
|
+
|
|
68
|
+
If valid: load selected todo, proceed.
|
|
69
|
+
If invalid: "Invalid selection. Reply with a number (1-[N]) or `q` to exit."
|
|
70
|
+
</step>
|
|
71
|
+
|
|
72
|
+
<step name="load_context">
|
|
73
|
+
Read the todo file completely. Display:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
## [title]
|
|
77
|
+
|
|
78
|
+
**Area:** [area]
|
|
79
|
+
**Created:** [date] ([relative time] ago)
|
|
80
|
+
**Files:** [list or "None"]
|
|
81
|
+
|
|
82
|
+
### Problem
|
|
83
|
+
[problem section content]
|
|
84
|
+
|
|
85
|
+
### Solution
|
|
86
|
+
[solution section content]
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If `files` field has entries, read and briefly summarize each.
|
|
90
|
+
</step>
|
|
91
|
+
|
|
92
|
+
<step name="check_roadmap">
|
|
93
|
+
Check for roadmap (can use init progress or directly check file existence):
|
|
94
|
+
|
|
95
|
+
If `.planning/ROADMAP.md` exists:
|
|
96
|
+
1. Check if todo's area matches an upcoming phase
|
|
97
|
+
2. Check if todo's files overlap with a phase's scope
|
|
98
|
+
3. Note any match for action options
|
|
99
|
+
</step>
|
|
100
|
+
|
|
101
|
+
<step name="offer_actions">
|
|
102
|
+
**If todo maps to a roadmap phase:**
|
|
103
|
+
|
|
104
|
+
Use AskUserQuestion:
|
|
105
|
+
- header: "Action"
|
|
106
|
+
- question: "This todo relates to Phase [N]: [name]. What would you like to do?"
|
|
107
|
+
- options:
|
|
108
|
+
- "Work on it now" — move to done, start working
|
|
109
|
+
- "Add to phase plan" — include when planning Phase [N]
|
|
110
|
+
- "Brainstorm approach" — think through before deciding
|
|
111
|
+
- "Put it back" — return to list
|
|
112
|
+
|
|
113
|
+
**If no roadmap match:**
|
|
114
|
+
|
|
115
|
+
Use AskUserQuestion:
|
|
116
|
+
- header: "Action"
|
|
117
|
+
- question: "What would you like to do with this todo?"
|
|
118
|
+
- options:
|
|
119
|
+
- "Work on it now" — move to done, start working
|
|
120
|
+
- "Create a phase" — /gsd:add-phase with this scope
|
|
121
|
+
- "Brainstorm approach" — think through before deciding
|
|
122
|
+
- "Put it back" — return to list
|
|
123
|
+
</step>
|
|
124
|
+
|
|
125
|
+
<step name="execute_action">
|
|
126
|
+
**Work on it now:**
|
|
127
|
+
```bash
|
|
128
|
+
mv ".planning/todos/pending/[filename]" ".planning/todos/done/"
|
|
129
|
+
```
|
|
130
|
+
Update STATE.md todo count. Present problem/solution context. Begin work or ask how to proceed.
|
|
131
|
+
|
|
132
|
+
**Add to phase plan:**
|
|
133
|
+
Note todo reference in phase planning notes. Keep in pending. Return to list or exit.
|
|
134
|
+
|
|
135
|
+
**Create a phase:**
|
|
136
|
+
Display: `/gsd:add-phase [description from todo]`
|
|
137
|
+
Keep in pending. User runs command in fresh context.
|
|
138
|
+
|
|
139
|
+
**Brainstorm approach:**
|
|
140
|
+
Keep in pending. Start discussion about problem and approaches.
|
|
141
|
+
|
|
142
|
+
**Put it back:**
|
|
143
|
+
Return to list_todos step.
|
|
144
|
+
</step>
|
|
145
|
+
|
|
146
|
+
<step name="update_state">
|
|
147
|
+
After any action that changes todo count:
|
|
148
|
+
|
|
149
|
+
Re-run `init todos` to get updated count, then update STATE.md "### Pending Todos" section if exists.
|
|
150
|
+
</step>
|
|
151
|
+
|
|
152
|
+
<step name="git_commit">
|
|
153
|
+
If todo was moved to done/, commit the change:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
|
|
157
|
+
node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "docs: start work on todo - [title]" --files .planning/todos/done/[filename] .planning/STATE.md
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Tool respects `commit_docs` config and gitignore automatically.
|
|
161
|
+
|
|
162
|
+
Confirm: "Committed: docs: start work on todo - [title]"
|
|
163
|
+
</step>
|
|
164
|
+
|
|
165
|
+
</process>
|
|
166
|
+
|
|
167
|
+
<success_criteria>
|
|
168
|
+
- [ ] All pending todos listed with title, area, age
|
|
169
|
+
- [ ] Area filter applied if specified
|
|
170
|
+
- [ ] Selected todo's full context loaded
|
|
171
|
+
- [ ] Roadmap context checked for phase match
|
|
172
|
+
- [ ] Appropriate actions offered
|
|
173
|
+
- [ ] Selected action executed
|
|
174
|
+
- [ ] STATE.md updated if todo count changed
|
|
175
|
+
- [ ] Changes committed to git (if todo moved to done/)
|
|
176
|
+
</success_criteria>
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
|
|
3
|
+
Archive accumulated phase directories from completed milestones into `.planning/milestones/v{X.Y}-phases/`. Identifies which phases belong to each completed milestone, shows a dry-run summary, and moves directories on confirmation.
|
|
4
|
+
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<required_reading>
|
|
8
|
+
|
|
9
|
+
1. `.planning/MILESTONES.md`
|
|
10
|
+
2. `.planning/milestones/` directory listing
|
|
11
|
+
3. `.planning/phases/` directory listing
|
|
12
|
+
|
|
13
|
+
</required_reading>
|
|
14
|
+
|
|
15
|
+
<process>
|
|
16
|
+
|
|
17
|
+
<step name="identify_completed_milestones">
|
|
18
|
+
|
|
19
|
+
Read `.planning/MILESTONES.md` to identify completed milestones and their versions.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cat .planning/MILESTONES.md
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Extract each milestone version (e.g., v1.0, v1.1, v2.0).
|
|
26
|
+
|
|
27
|
+
Check which milestone archive dirs already exist:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
ls -d .planning/milestones/v*-phases 2>/dev/null
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Filter to milestones that do NOT already have a `-phases` archive directory.
|
|
34
|
+
|
|
35
|
+
If all milestones already have phase archives:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
All completed milestones already have phase directories archived. Nothing to clean up.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Stop here.
|
|
42
|
+
|
|
43
|
+
</step>
|
|
44
|
+
|
|
45
|
+
<step name="determine_phase_membership">
|
|
46
|
+
|
|
47
|
+
For each completed milestone without a `-phases` archive, read the archived ROADMAP snapshot to determine which phases belong to it:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
cat .planning/milestones/v{X.Y}-ROADMAP.md
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Extract phase numbers and names from the archived roadmap (e.g., Phase 1: Foundation, Phase 2: Auth).
|
|
54
|
+
|
|
55
|
+
Check which of those phase directories still exist in `.planning/phases/`:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
ls -d .planning/phases/*/ 2>/dev/null
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Match phase directories to milestone membership. Only include directories that still exist in `.planning/phases/`.
|
|
62
|
+
|
|
63
|
+
</step>
|
|
64
|
+
|
|
65
|
+
<step name="show_dry_run">
|
|
66
|
+
|
|
67
|
+
Present a dry-run summary for each milestone:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
## Cleanup Summary
|
|
71
|
+
|
|
72
|
+
### v{X.Y} — {Milestone Name}
|
|
73
|
+
These phase directories will be archived:
|
|
74
|
+
- 01-foundation/
|
|
75
|
+
- 02-auth/
|
|
76
|
+
- 03-core-features/
|
|
77
|
+
|
|
78
|
+
Destination: .planning/milestones/v{X.Y}-phases/
|
|
79
|
+
|
|
80
|
+
### v{X.Z} — {Milestone Name}
|
|
81
|
+
These phase directories will be archived:
|
|
82
|
+
- 04-security/
|
|
83
|
+
- 05-hardening/
|
|
84
|
+
|
|
85
|
+
Destination: .planning/milestones/v{X.Z}-phases/
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
If no phase directories remain to archive (all already moved or deleted):
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
No phase directories found to archive. Phases may have been removed or archived previously.
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Stop here.
|
|
95
|
+
|
|
96
|
+
AskUserQuestion: "Proceed with archiving?" with options: "Yes — archive listed phases" | "Cancel"
|
|
97
|
+
|
|
98
|
+
If "Cancel": Stop.
|
|
99
|
+
|
|
100
|
+
</step>
|
|
101
|
+
|
|
102
|
+
<step name="archive_phases">
|
|
103
|
+
|
|
104
|
+
For each milestone, move phase directories:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
mkdir -p .planning/milestones/v{X.Y}-phases
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
For each phase directory belonging to this milestone:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
mv .planning/phases/{dir} .planning/milestones/v{X.Y}-phases/
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Repeat for all milestones in the cleanup set.
|
|
117
|
+
|
|
118
|
+
</step>
|
|
119
|
+
|
|
120
|
+
<step name="commit">
|
|
121
|
+
|
|
122
|
+
Commit the changes:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "chore: archive phase directories from completed milestones" --files .planning/milestones/ .planning/phases/
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
</step>
|
|
129
|
+
|
|
130
|
+
<step name="report">
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
Archived:
|
|
134
|
+
{For each milestone}
|
|
135
|
+
- v{X.Y}: {N} phase directories → .planning/milestones/v{X.Y}-phases/
|
|
136
|
+
|
|
137
|
+
.planning/phases/ cleaned up.
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
</step>
|
|
141
|
+
|
|
142
|
+
</process>
|
|
143
|
+
|
|
144
|
+
<success_criteria>
|
|
145
|
+
|
|
146
|
+
- [ ] All completed milestones without existing phase archives identified
|
|
147
|
+
- [ ] Phase membership determined from archived ROADMAP snapshots
|
|
148
|
+
- [ ] Dry-run summary shown and user confirmed
|
|
149
|
+
- [ ] Phase directories moved to `.planning/milestones/v{X.Y}-phases/`
|
|
150
|
+
- [ ] Changes committed
|
|
151
|
+
|
|
152
|
+
</success_criteria>
|