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,539 @@
|
|
|
1
|
+
<required_reading>
|
|
2
|
+
|
|
3
|
+
**Read these files NOW:**
|
|
4
|
+
|
|
5
|
+
1. `.planning/STATE.md`
|
|
6
|
+
2. `.planning/PROJECT.md`
|
|
7
|
+
3. `.planning/ROADMAP.md`
|
|
8
|
+
4. Current phase's plan files (`*-PLAN.md`)
|
|
9
|
+
5. Current phase's summary files (`*-SUMMARY.md`)
|
|
10
|
+
|
|
11
|
+
</required_reading>
|
|
12
|
+
|
|
13
|
+
<purpose>
|
|
14
|
+
|
|
15
|
+
Mark current phase complete and advance to next. This is the natural point where progress tracking and PROJECT.md evolution happen.
|
|
16
|
+
|
|
17
|
+
"Planning next phase" = "current phase is done"
|
|
18
|
+
|
|
19
|
+
</purpose>
|
|
20
|
+
|
|
21
|
+
<process>
|
|
22
|
+
|
|
23
|
+
<step name="load_project_state" priority="first">
|
|
24
|
+
|
|
25
|
+
Before transition, read project state:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
cat .planning/STATE.md 2>/dev/null
|
|
29
|
+
cat .planning/PROJECT.md 2>/dev/null
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Parse current position to verify we're transitioning the right phase.
|
|
33
|
+
Note accumulated context that may need updating after transition.
|
|
34
|
+
|
|
35
|
+
</step>
|
|
36
|
+
|
|
37
|
+
<step name="verify_completion">
|
|
38
|
+
|
|
39
|
+
Check current phase has all plan summaries:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
ls .planning/phases/XX-current/*-PLAN.md 2>/dev/null | sort
|
|
43
|
+
ls .planning/phases/XX-current/*-SUMMARY.md 2>/dev/null | sort
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Verification logic:**
|
|
47
|
+
|
|
48
|
+
- Count PLAN files
|
|
49
|
+
- Count SUMMARY files
|
|
50
|
+
- If counts match: all plans complete
|
|
51
|
+
- If counts don't match: incomplete
|
|
52
|
+
|
|
53
|
+
<config-check>
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
cat .planning/config.json 2>/dev/null
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
</config-check>
|
|
60
|
+
|
|
61
|
+
**If all plans complete:**
|
|
62
|
+
|
|
63
|
+
<if mode="yolo">
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
⚡ Auto-approved: Transition Phase [X] → Phase [X+1]
|
|
67
|
+
Phase [X] complete — all [Y] plans finished.
|
|
68
|
+
|
|
69
|
+
Proceeding to mark done and advance...
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Proceed directly to cleanup_handoff step.
|
|
73
|
+
|
|
74
|
+
</if>
|
|
75
|
+
|
|
76
|
+
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
77
|
+
|
|
78
|
+
Ask: "Phase [X] complete — all [Y] plans finished. Ready to mark done and move to Phase [X+1]?"
|
|
79
|
+
|
|
80
|
+
Wait for confirmation before proceeding.
|
|
81
|
+
|
|
82
|
+
</if>
|
|
83
|
+
|
|
84
|
+
**If plans incomplete:**
|
|
85
|
+
|
|
86
|
+
**SAFETY RAIL: always_confirm_destructive applies here.**
|
|
87
|
+
Skipping incomplete plans is destructive — ALWAYS prompt regardless of mode.
|
|
88
|
+
|
|
89
|
+
Present:
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Phase [X] has incomplete plans:
|
|
93
|
+
- {phase}-01-SUMMARY.md ✓ Complete
|
|
94
|
+
- {phase}-02-SUMMARY.md ✗ Missing
|
|
95
|
+
- {phase}-03-SUMMARY.md ✗ Missing
|
|
96
|
+
|
|
97
|
+
⚠️ Safety rail: Skipping plans requires confirmation (destructive action)
|
|
98
|
+
|
|
99
|
+
Options:
|
|
100
|
+
1. Continue current phase (execute remaining plans)
|
|
101
|
+
2. Mark complete anyway (skip remaining plans)
|
|
102
|
+
3. Review what's left
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Wait for user decision.
|
|
106
|
+
|
|
107
|
+
</step>
|
|
108
|
+
|
|
109
|
+
<step name="cleanup_handoff">
|
|
110
|
+
|
|
111
|
+
Check for lingering handoffs:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
ls .planning/phases/XX-current/.continue-here*.md 2>/dev/null
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
If found, delete them — phase is complete, handoffs are stale.
|
|
118
|
+
|
|
119
|
+
</step>
|
|
120
|
+
|
|
121
|
+
<step name="update_roadmap_and_state">
|
|
122
|
+
|
|
123
|
+
**Delegate ROADMAP.md and STATE.md updates to gsd-tools:**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
TRANSITION=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs phase complete "${current_phase}")
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
The CLI handles:
|
|
130
|
+
- Marking the phase checkbox as `[x]` complete with today's date
|
|
131
|
+
- Updating plan count to final (e.g., "3/3 plans complete")
|
|
132
|
+
- Updating the Progress table (Status → Complete, adding date)
|
|
133
|
+
- Advancing STATE.md to next phase (Current Phase, Status → Ready to plan, Current Plan → Not started)
|
|
134
|
+
- Detecting if this is the last phase in the milestone
|
|
135
|
+
|
|
136
|
+
Extract from result: `completed_phase`, `plans_executed`, `next_phase`, `next_phase_name`, `is_last_phase`.
|
|
137
|
+
|
|
138
|
+
</step>
|
|
139
|
+
|
|
140
|
+
<step name="archive_prompts">
|
|
141
|
+
|
|
142
|
+
If prompts were generated for the phase, they stay in place.
|
|
143
|
+
The `completed/` subfolder pattern from create-meta-prompts handles archival.
|
|
144
|
+
|
|
145
|
+
</step>
|
|
146
|
+
|
|
147
|
+
<step name="evolve_project">
|
|
148
|
+
|
|
149
|
+
Evolve PROJECT.md to reflect learnings from completed phase.
|
|
150
|
+
|
|
151
|
+
**Read phase summaries:**
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
cat .planning/phases/XX-current/*-SUMMARY.md
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Assess requirement changes:**
|
|
158
|
+
|
|
159
|
+
1. **Requirements validated?**
|
|
160
|
+
- Any Active requirements shipped in this phase?
|
|
161
|
+
- Move to Validated with phase reference: `- ✓ [Requirement] — Phase X`
|
|
162
|
+
|
|
163
|
+
2. **Requirements invalidated?**
|
|
164
|
+
- Any Active requirements discovered to be unnecessary or wrong?
|
|
165
|
+
- Move to Out of Scope with reason: `- [Requirement] — [why invalidated]`
|
|
166
|
+
|
|
167
|
+
3. **Requirements emerged?**
|
|
168
|
+
- Any new requirements discovered during building?
|
|
169
|
+
- Add to Active: `- [ ] [New requirement]`
|
|
170
|
+
|
|
171
|
+
4. **Decisions to log?**
|
|
172
|
+
- Extract decisions from SUMMARY.md files
|
|
173
|
+
- Add to Key Decisions table with outcome if known
|
|
174
|
+
|
|
175
|
+
5. **"What This Is" still accurate?**
|
|
176
|
+
- If the product has meaningfully changed, update the description
|
|
177
|
+
- Keep it current and accurate
|
|
178
|
+
|
|
179
|
+
**Update PROJECT.md:**
|
|
180
|
+
|
|
181
|
+
Make the edits inline. Update "Last updated" footer:
|
|
182
|
+
|
|
183
|
+
```markdown
|
|
184
|
+
---
|
|
185
|
+
*Last updated: [date] after Phase [X]*
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Example evolution:**
|
|
189
|
+
|
|
190
|
+
Before:
|
|
191
|
+
|
|
192
|
+
```markdown
|
|
193
|
+
### Active
|
|
194
|
+
|
|
195
|
+
- [ ] JWT authentication
|
|
196
|
+
- [ ] Real-time sync < 500ms
|
|
197
|
+
- [ ] Offline mode
|
|
198
|
+
|
|
199
|
+
### Out of Scope
|
|
200
|
+
|
|
201
|
+
- OAuth2 — complexity not needed for v1
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
After (Phase 2 shipped JWT auth, discovered rate limiting needed):
|
|
205
|
+
|
|
206
|
+
```markdown
|
|
207
|
+
### Validated
|
|
208
|
+
|
|
209
|
+
- ✓ JWT authentication — Phase 2
|
|
210
|
+
|
|
211
|
+
### Active
|
|
212
|
+
|
|
213
|
+
- [ ] Real-time sync < 500ms
|
|
214
|
+
- [ ] Offline mode
|
|
215
|
+
- [ ] Rate limiting on sync endpoint
|
|
216
|
+
|
|
217
|
+
### Out of Scope
|
|
218
|
+
|
|
219
|
+
- OAuth2 — complexity not needed for v1
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**Step complete when:**
|
|
223
|
+
|
|
224
|
+
- [ ] Phase summaries reviewed for learnings
|
|
225
|
+
- [ ] Validated requirements moved from Active
|
|
226
|
+
- [ ] Invalidated requirements moved to Out of Scope with reason
|
|
227
|
+
- [ ] Emerged requirements added to Active
|
|
228
|
+
- [ ] New decisions logged with rationale
|
|
229
|
+
- [ ] "What This Is" updated if product changed
|
|
230
|
+
- [ ] "Last updated" footer reflects this transition
|
|
231
|
+
|
|
232
|
+
</step>
|
|
233
|
+
|
|
234
|
+
<step name="update_current_position_after_transition">
|
|
235
|
+
|
|
236
|
+
**Note:** Basic position updates (Current Phase, Status, Current Plan, Last Activity) were already handled by `gsd-tools phase complete` in the update_roadmap_and_state step.
|
|
237
|
+
|
|
238
|
+
Verify the updates are correct by reading STATE.md. If the progress bar needs updating, use:
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
PROGRESS=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs progress bar --raw)
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Update the progress bar line in STATE.md with the result.
|
|
245
|
+
|
|
246
|
+
**Step complete when:**
|
|
247
|
+
|
|
248
|
+
- [ ] Phase number incremented to next phase (done by phase complete)
|
|
249
|
+
- [ ] Plan status reset to "Not started" (done by phase complete)
|
|
250
|
+
- [ ] Status shows "Ready to plan" (done by phase complete)
|
|
251
|
+
- [ ] Progress bar reflects total completed plans
|
|
252
|
+
|
|
253
|
+
</step>
|
|
254
|
+
|
|
255
|
+
<step name="update_project_reference">
|
|
256
|
+
|
|
257
|
+
Update Project Reference section in STATE.md.
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
## Project Reference
|
|
261
|
+
|
|
262
|
+
See: .planning/PROJECT.md (updated [today])
|
|
263
|
+
|
|
264
|
+
**Core value:** [Current core value from PROJECT.md]
|
|
265
|
+
**Current focus:** [Next phase name]
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Update the date and current focus to reflect the transition.
|
|
269
|
+
|
|
270
|
+
</step>
|
|
271
|
+
|
|
272
|
+
<step name="review_accumulated_context">
|
|
273
|
+
|
|
274
|
+
Review and update Accumulated Context section in STATE.md.
|
|
275
|
+
|
|
276
|
+
**Decisions:**
|
|
277
|
+
|
|
278
|
+
- Note recent decisions from this phase (3-5 max)
|
|
279
|
+
- Full log lives in PROJECT.md Key Decisions table
|
|
280
|
+
|
|
281
|
+
**Blockers/Concerns:**
|
|
282
|
+
|
|
283
|
+
- Review blockers from completed phase
|
|
284
|
+
- If addressed in this phase: Remove from list
|
|
285
|
+
- If still relevant for future: Keep with "Phase X" prefix
|
|
286
|
+
- Add any new concerns from completed phase's summaries
|
|
287
|
+
|
|
288
|
+
**Example:**
|
|
289
|
+
|
|
290
|
+
Before:
|
|
291
|
+
|
|
292
|
+
```markdown
|
|
293
|
+
### Blockers/Concerns
|
|
294
|
+
|
|
295
|
+
- ⚠️ [Phase 1] Database schema not indexed for common queries
|
|
296
|
+
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
After (if database indexing was addressed in Phase 2):
|
|
300
|
+
|
|
301
|
+
```markdown
|
|
302
|
+
### Blockers/Concerns
|
|
303
|
+
|
|
304
|
+
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**Step complete when:**
|
|
308
|
+
|
|
309
|
+
- [ ] Recent decisions noted (full log in PROJECT.md)
|
|
310
|
+
- [ ] Resolved blockers removed from list
|
|
311
|
+
- [ ] Unresolved blockers kept with phase prefix
|
|
312
|
+
- [ ] New concerns from completed phase added
|
|
313
|
+
|
|
314
|
+
</step>
|
|
315
|
+
|
|
316
|
+
<step name="update_session_continuity_after_transition">
|
|
317
|
+
|
|
318
|
+
Update Session Continuity section in STATE.md to reflect transition completion.
|
|
319
|
+
|
|
320
|
+
**Format:**
|
|
321
|
+
|
|
322
|
+
```markdown
|
|
323
|
+
Last session: [today]
|
|
324
|
+
Stopped at: Phase [X] complete, ready to plan Phase [X+1]
|
|
325
|
+
Resume file: None
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
**Step complete when:**
|
|
329
|
+
|
|
330
|
+
- [ ] Last session timestamp updated to current date and time
|
|
331
|
+
- [ ] Stopped at describes phase completion and next phase
|
|
332
|
+
- [ ] Resume file confirmed as None (transitions don't use resume files)
|
|
333
|
+
|
|
334
|
+
</step>
|
|
335
|
+
|
|
336
|
+
<step name="offer_next_phase">
|
|
337
|
+
|
|
338
|
+
**MANDATORY: Verify milestone status before presenting next steps.**
|
|
339
|
+
|
|
340
|
+
**Use the transition result from `gsd-tools phase complete`:**
|
|
341
|
+
|
|
342
|
+
The `is_last_phase` field from the phase complete result tells you directly:
|
|
343
|
+
- `is_last_phase: false` → More phases remain → Go to **Route A**
|
|
344
|
+
- `is_last_phase: true` → Milestone complete → Go to **Route B**
|
|
345
|
+
|
|
346
|
+
The `next_phase` and `next_phase_name` fields give you the next phase details.
|
|
347
|
+
|
|
348
|
+
If you need additional context, use:
|
|
349
|
+
```bash
|
|
350
|
+
ROADMAP=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs roadmap analyze)
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
This returns all phases with goals, disk status, and completion info.
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
**Route A: More phases remain in milestone**
|
|
358
|
+
|
|
359
|
+
Read ROADMAP.md to get the next phase's name and goal.
|
|
360
|
+
|
|
361
|
+
**Check if next phase has CONTEXT.md:**
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
ls .planning/phases/*[X+1]*/*-CONTEXT.md 2>/dev/null
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
**If next phase exists:**
|
|
368
|
+
|
|
369
|
+
<if mode="yolo">
|
|
370
|
+
|
|
371
|
+
**If CONTEXT.md exists:**
|
|
372
|
+
|
|
373
|
+
```
|
|
374
|
+
Phase [X] marked complete.
|
|
375
|
+
|
|
376
|
+
Next: Phase [X+1] — [Name]
|
|
377
|
+
|
|
378
|
+
⚡ Auto-continuing: Plan Phase [X+1] in detail
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
Exit skill and invoke SlashCommand("/gsd:plan-phase [X+1] --auto")
|
|
382
|
+
|
|
383
|
+
**If CONTEXT.md does NOT exist:**
|
|
384
|
+
|
|
385
|
+
```
|
|
386
|
+
Phase [X] marked complete.
|
|
387
|
+
|
|
388
|
+
Next: Phase [X+1] — [Name]
|
|
389
|
+
|
|
390
|
+
⚡ Auto-continuing: Discuss Phase [X+1] first
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
Exit skill and invoke SlashCommand("/gsd:discuss-phase [X+1] --auto")
|
|
394
|
+
|
|
395
|
+
</if>
|
|
396
|
+
|
|
397
|
+
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
398
|
+
|
|
399
|
+
**If CONTEXT.md does NOT exist:**
|
|
400
|
+
|
|
401
|
+
```
|
|
402
|
+
## ✓ Phase [X] Complete
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
## ▶ Next Up
|
|
407
|
+
|
|
408
|
+
**Phase [X+1]: [Name]** — [Goal from ROADMAP.md]
|
|
409
|
+
|
|
410
|
+
`/gsd:discuss-phase [X+1]` — gather context and clarify approach
|
|
411
|
+
|
|
412
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
**Also available:**
|
|
417
|
+
- `/gsd:plan-phase [X+1]` — skip discussion, plan directly
|
|
418
|
+
- `/gsd:research-phase [X+1]` — investigate unknowns
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
**If CONTEXT.md exists:**
|
|
424
|
+
|
|
425
|
+
```
|
|
426
|
+
## ✓ Phase [X] Complete
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
## ▶ Next Up
|
|
431
|
+
|
|
432
|
+
**Phase [X+1]: [Name]** — [Goal from ROADMAP.md]
|
|
433
|
+
<sub>✓ Context gathered, ready to plan</sub>
|
|
434
|
+
|
|
435
|
+
`/gsd:plan-phase [X+1]`
|
|
436
|
+
|
|
437
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
438
|
+
|
|
439
|
+
---
|
|
440
|
+
|
|
441
|
+
**Also available:**
|
|
442
|
+
- `/gsd:discuss-phase [X+1]` — revisit context
|
|
443
|
+
- `/gsd:research-phase [X+1]` — investigate unknowns
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
</if>
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
**Route B: Milestone complete (all phases done)**
|
|
453
|
+
|
|
454
|
+
<if mode="yolo">
|
|
455
|
+
|
|
456
|
+
```
|
|
457
|
+
Phase {X} marked complete.
|
|
458
|
+
|
|
459
|
+
🎉 Milestone {version} is 100% complete — all {N} phases finished!
|
|
460
|
+
|
|
461
|
+
⚡ Auto-continuing: Complete milestone and archive
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
Exit skill and invoke SlashCommand("/gsd:complete-milestone {version}")
|
|
465
|
+
|
|
466
|
+
</if>
|
|
467
|
+
|
|
468
|
+
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
469
|
+
|
|
470
|
+
```
|
|
471
|
+
## ✓ Phase {X}: {Phase Name} Complete
|
|
472
|
+
|
|
473
|
+
🎉 Milestone {version} is 100% complete — all {N} phases finished!
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
## ▶ Next Up
|
|
478
|
+
|
|
479
|
+
**Complete Milestone {version}** — archive and prepare for next
|
|
480
|
+
|
|
481
|
+
`/gsd:complete-milestone {version}`
|
|
482
|
+
|
|
483
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
484
|
+
|
|
485
|
+
---
|
|
486
|
+
|
|
487
|
+
**Also available:**
|
|
488
|
+
- Review accomplishments before archiving
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
</if>
|
|
494
|
+
|
|
495
|
+
</step>
|
|
496
|
+
|
|
497
|
+
</process>
|
|
498
|
+
|
|
499
|
+
<implicit_tracking>
|
|
500
|
+
Progress tracking is IMPLICIT: planning phase N implies phases 1-(N-1) complete. No separate progress step—forward motion IS progress.
|
|
501
|
+
</implicit_tracking>
|
|
502
|
+
|
|
503
|
+
<partial_completion>
|
|
504
|
+
|
|
505
|
+
If user wants to move on but phase isn't fully complete:
|
|
506
|
+
|
|
507
|
+
```
|
|
508
|
+
Phase [X] has incomplete plans:
|
|
509
|
+
- {phase}-02-PLAN.md (not executed)
|
|
510
|
+
- {phase}-03-PLAN.md (not executed)
|
|
511
|
+
|
|
512
|
+
Options:
|
|
513
|
+
1. Mark complete anyway (plans weren't needed)
|
|
514
|
+
2. Defer work to later phase
|
|
515
|
+
3. Stay and finish current phase
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
Respect user judgment — they know if work matters.
|
|
519
|
+
|
|
520
|
+
**If marking complete with incomplete plans:**
|
|
521
|
+
|
|
522
|
+
- Update ROADMAP: "2/3 plans complete" (not "3/3")
|
|
523
|
+
- Note in transition message which plans were skipped
|
|
524
|
+
|
|
525
|
+
</partial_completion>
|
|
526
|
+
|
|
527
|
+
<success_criteria>
|
|
528
|
+
|
|
529
|
+
Transition is complete when:
|
|
530
|
+
|
|
531
|
+
- [ ] Current phase plan summaries verified (all exist or user chose to skip)
|
|
532
|
+
- [ ] Any stale handoffs deleted
|
|
533
|
+
- [ ] ROADMAP.md updated with completion status and plan count
|
|
534
|
+
- [ ] PROJECT.md evolved (requirements, decisions, description if needed)
|
|
535
|
+
- [ ] STATE.md updated (position, project reference, context, session)
|
|
536
|
+
- [ ] Progress table updated
|
|
537
|
+
- [ ] User knows next steps
|
|
538
|
+
|
|
539
|
+
</success_criteria>
|