pi-gsd 1.12.3 → 2.0.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.
Files changed (120) hide show
  1. package/.gsd/extensions/pi-gsd-hooks.ts +330 -150
  2. package/.gsd/harnesses/pi/get-shit-done/workflows/add-phase.md +66 -11
  3. package/.gsd/harnesses/pi/get-shit-done/workflows/add-tests.md +69 -4
  4. package/.gsd/harnesses/pi/get-shit-done/workflows/add-todo.md +30 -4
  5. package/.gsd/harnesses/pi/get-shit-done/workflows/audit-milestone.md +75 -17
  6. package/.gsd/harnesses/pi/get-shit-done/workflows/audit-uat.md +38 -0
  7. package/.gsd/harnesses/pi/get-shit-done/workflows/autonomous.md +95 -286
  8. package/.gsd/harnesses/pi/get-shit-done/workflows/check-todos.md +67 -4
  9. package/.gsd/harnesses/pi/get-shit-done/workflows/cleanup.md +25 -0
  10. package/.gsd/harnesses/pi/get-shit-done/workflows/complete-milestone.md +51 -529
  11. package/.gsd/harnesses/pi/get-shit-done/workflows/diagnose-issues.md +39 -0
  12. package/.gsd/harnesses/pi/get-shit-done/workflows/discovery-phase.md +2 -0
  13. package/.gsd/harnesses/pi/get-shit-done/workflows/discuss-phase-assumptions.md +80 -5
  14. package/.gsd/harnesses/pi/get-shit-done/workflows/discuss-phase.md +43 -5
  15. package/.gsd/harnesses/pi/get-shit-done/workflows/discuss-phase.md.bak +1049 -0
  16. package/.gsd/harnesses/pi/get-shit-done/workflows/do.md +30 -3
  17. package/.gsd/harnesses/pi/get-shit-done/workflows/execute-milestone.md +64 -0
  18. package/.gsd/harnesses/pi/get-shit-done/workflows/execute-phase.md +78 -20
  19. package/.gsd/harnesses/pi/get-shit-done/workflows/execute-phase.md.bak +846 -0
  20. package/.gsd/harnesses/pi/get-shit-done/workflows/execute-plan.md +56 -19
  21. package/.gsd/harnesses/pi/get-shit-done/workflows/fast.md +2 -0
  22. package/.gsd/harnesses/pi/get-shit-done/workflows/forensics.md +40 -0
  23. package/.gsd/harnesses/pi/get-shit-done/workflows/health.md +25 -0
  24. package/.gsd/harnesses/pi/get-shit-done/workflows/help.md +2 -0
  25. package/.gsd/harnesses/pi/get-shit-done/workflows/insert-phase.md +69 -11
  26. package/.gsd/harnesses/pi/get-shit-done/workflows/list-phase-assumptions.md +2 -0
  27. package/.gsd/harnesses/pi/get-shit-done/workflows/list-workspaces.md +51 -4
  28. package/.gsd/harnesses/pi/get-shit-done/workflows/manager.md +81 -8
  29. package/.gsd/harnesses/pi/get-shit-done/workflows/map-codebase.md +40 -5
  30. package/.gsd/harnesses/pi/get-shit-done/workflows/milestone-summary.md +66 -48
  31. package/.gsd/harnesses/pi/get-shit-done/workflows/new-milestone.md +41 -13
  32. package/.gsd/harnesses/pi/get-shit-done/workflows/new-milestone.md.bak +486 -0
  33. package/.gsd/harnesses/pi/get-shit-done/workflows/new-project.md +43 -7
  34. package/.gsd/harnesses/pi/get-shit-done/workflows/new-project.md.bak +1250 -0
  35. package/.gsd/harnesses/pi/get-shit-done/workflows/new-workspace.md +55 -4
  36. package/.gsd/harnesses/pi/get-shit-done/workflows/next.md +39 -0
  37. package/.gsd/harnesses/pi/get-shit-done/workflows/node-repair.md +2 -0
  38. package/.gsd/harnesses/pi/get-shit-done/workflows/note.md +2 -0
  39. package/.gsd/harnesses/pi/get-shit-done/workflows/pause-work.md +46 -0
  40. package/.gsd/harnesses/pi/get-shit-done/workflows/plan-milestone-gaps.md +39 -0
  41. package/.gsd/harnesses/pi/get-shit-done/workflows/plan-milestone.md +40 -0
  42. package/.gsd/harnesses/pi/get-shit-done/workflows/plan-phase.md +57 -7
  43. package/.gsd/harnesses/pi/get-shit-done/workflows/plan-phase.md.bak +859 -0
  44. package/.gsd/harnesses/pi/get-shit-done/workflows/plant-seed.md +28 -0
  45. package/.gsd/harnesses/pi/get-shit-done/workflows/pr-branch.md +2 -0
  46. package/.gsd/harnesses/pi/get-shit-done/workflows/profile-user.md +51 -0
  47. package/.gsd/harnesses/pi/get-shit-done/workflows/progress.md +52 -4
  48. package/.gsd/harnesses/pi/get-shit-done/workflows/quick.md +99 -32
  49. package/.gsd/harnesses/pi/get-shit-done/workflows/remove-phase.md +66 -4
  50. package/.gsd/harnesses/pi/get-shit-done/workflows/remove-workspace.md +55 -4
  51. package/.gsd/harnesses/pi/get-shit-done/workflows/research-phase.md +79 -22
  52. package/.gsd/harnesses/pi/get-shit-done/workflows/resume-project.md +66 -4
  53. package/.gsd/harnesses/pi/get-shit-done/workflows/review.md +66 -36
  54. package/.gsd/harnesses/pi/get-shit-done/workflows/session-report.md +2 -0
  55. package/.gsd/harnesses/pi/get-shit-done/workflows/settings.md +27 -5
  56. package/.gsd/harnesses/pi/get-shit-done/workflows/ship.md +41 -4
  57. package/.gsd/harnesses/pi/get-shit-done/workflows/stats.md +24 -0
  58. package/.gsd/harnesses/pi/get-shit-done/workflows/transition.md +54 -0
  59. package/.gsd/harnesses/pi/get-shit-done/workflows/ui-phase.md +91 -6
  60. package/.gsd/harnesses/pi/get-shit-done/workflows/ui-review.md +80 -5
  61. package/.gsd/harnesses/pi/get-shit-done/workflows/update.md +2 -0
  62. package/.gsd/harnesses/pi/get-shit-done/workflows/validate-phase.md +90 -17
  63. package/.gsd/harnesses/pi/get-shit-done/workflows/verify-phase.md +79 -4
  64. package/.gsd/harnesses/pi/get-shit-done/workflows/verify-work.md +87 -31
  65. package/README.md +146 -112
  66. package/dist/pi-gsd-tools.js +166 -163
  67. package/package.json +13 -5
  68. package/prompts/gsd-add-backlog.md +2 -3
  69. package/prompts/gsd-add-phase.md +3 -2
  70. package/prompts/gsd-add-tests.md +3 -2
  71. package/prompts/gsd-add-todo.md +3 -2
  72. package/prompts/gsd-audit-milestone.md +3 -2
  73. package/prompts/gsd-audit-uat.md +3 -2
  74. package/prompts/gsd-autonomous.md +3 -2
  75. package/prompts/gsd-check-todos.md +3 -2
  76. package/prompts/gsd-cleanup.md +3 -2
  77. package/prompts/gsd-complete-milestone.md +2 -3
  78. package/prompts/gsd-debug.md +2 -3
  79. package/prompts/gsd-discuss-phase.md +4 -3
  80. package/prompts/gsd-do.md +3 -2
  81. package/prompts/gsd-execute-milestone.md +3 -2
  82. package/prompts/gsd-execute-phase.md +3 -2
  83. package/prompts/gsd-fast.md +2 -1
  84. package/prompts/gsd-forensics.md +3 -2
  85. package/prompts/gsd-insert-phase.md +3 -2
  86. package/prompts/gsd-join-discord.md +2 -3
  87. package/prompts/gsd-list-phase-assumptions.md +2 -1
  88. package/prompts/gsd-list-workspaces.md +3 -2
  89. package/prompts/gsd-manager.md +3 -2
  90. package/prompts/gsd-map-codebase.md +3 -2
  91. package/prompts/gsd-milestone-summary.md +3 -2
  92. package/prompts/gsd-new-milestone.md +3 -2
  93. package/prompts/gsd-new-project.md +3 -2
  94. package/prompts/gsd-new-workspace.md +3 -2
  95. package/prompts/gsd-note.md +2 -1
  96. package/prompts/gsd-pause-work.md +3 -2
  97. package/prompts/gsd-plan-milestone-gaps.md +3 -2
  98. package/prompts/gsd-plan-milestone.md +3 -2
  99. package/prompts/gsd-plan-phase.md +3 -2
  100. package/prompts/gsd-plant-seed.md +3 -2
  101. package/prompts/gsd-pr-branch.md +2 -1
  102. package/prompts/gsd-profile-user.md +3 -2
  103. package/prompts/gsd-quick.md +3 -2
  104. package/prompts/gsd-reapply-patches.md +2 -3
  105. package/prompts/gsd-remove-phase.md +3 -2
  106. package/prompts/gsd-remove-workspace.md +3 -2
  107. package/prompts/gsd-research-phase.md +2 -3
  108. package/prompts/gsd-resume-work.md +3 -2
  109. package/prompts/gsd-review-backlog.md +2 -3
  110. package/prompts/gsd-review.md +3 -2
  111. package/prompts/gsd-session-report.md +2 -1
  112. package/prompts/gsd-set-profile.md +2 -3
  113. package/prompts/gsd-settings.md +3 -2
  114. package/prompts/gsd-ship.md +3 -2
  115. package/prompts/gsd-thread.md +2 -3
  116. package/prompts/gsd-ui-phase.md +3 -2
  117. package/prompts/gsd-ui-review.md +3 -2
  118. package/prompts/gsd-validate-phase.md +3 -2
  119. package/prompts/gsd-verify-work.md +3 -2
  120. package/prompts/gsd-workstreams.md +2 -3
@@ -1,3 +1,69 @@
1
+ <gsd-version v="1.12.4" />
2
+
3
+ <gsd-arguments>
4
+ <settings><keep-extra-args /></settings>
5
+ </gsd-arguments>
6
+
7
+ <gsd-execute>
8
+ <shell command="pi-gsd-tools">
9
+ <args>
10
+ <arg string="pi-gsd-tools" />
11
+ <arg string="init" />
12
+ <arg string="todos" />
13
+ <arg string="0" />
14
+ </args>
15
+ <outs>
16
+ <out type="string" name="todos-data" />
17
+ </outs>
18
+ </shell>
19
+ <if>
20
+ <condition>
21
+ <starts-with>
22
+ <left name="todos-data" />
23
+ <right type="string" value="@file:" />
24
+ </starts-with>
25
+ </condition>
26
+ <then>
27
+ <string-op op="split">
28
+ <args>
29
+ <arg name="todos-data" />
30
+ <arg type="string" value="@file:" />
31
+ </args>
32
+ <outs>
33
+ <out type="string" name="todos-data-file" />
34
+ </outs>
35
+ </string-op>
36
+ <shell command="cat">
37
+ <args>
38
+ <arg name="todos-data-file" wrap='"' />
39
+ </args>
40
+ <outs>
41
+ <out type="string" name="todos-data" />
42
+ </outs>
43
+ </shell>
44
+ </then>
45
+ </if>
46
+ <shell command="pi-gsd-tools">
47
+ <args>
48
+ <arg string="pi-gsd-tools" />
49
+ <arg string="state" />
50
+ <arg string="json" />
51
+ <arg string="--raw" />
52
+ </args>
53
+ <outs>
54
+ <out type="string" name="state" />
55
+ </outs>
56
+ </shell>
57
+ </gsd-execute>
58
+
59
+ ## Context (pre-injected)
60
+
61
+ **Todos:**
62
+ <gsd-paste name="todos-data" />
63
+
64
+ **State:**
65
+ <gsd-paste name="state" />
66
+
1
67
  <purpose>
2
68
  List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
3
69
  </purpose>
@@ -11,10 +77,7 @@ Read all files referenced by the invoking prompt's execution_context before star
11
77
  <step name="init_context">
12
78
  Load todo context:
13
79
 
14
- ```bash
15
- INIT=$(pi-gsd-tools init todos)
16
- if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
17
- ```
80
+ <!-- Context pre-injected above via WXP — variables available via <gsd-paste name="..."> -->
18
81
 
19
82
  Extract from init JSON: `todo_count`, `todos`, `pending_dir`.
20
83
 
@@ -1,3 +1,28 @@
1
+ <gsd-version v="1.12.4" />
2
+
3
+ <gsd-arguments>
4
+ <settings><keep-extra-args /></settings>
5
+ </gsd-arguments>
6
+
7
+ <gsd-execute>
8
+ <shell command="pi-gsd-tools">
9
+ <args>
10
+ <arg string="pi-gsd-tools" />
11
+ <arg string="state" />
12
+ <arg string="json" />
13
+ <arg string="--raw" />
14
+ </args>
15
+ <outs>
16
+ <out type="string" name="state" />
17
+ </outs>
18
+ </shell>
19
+ </gsd-execute>
20
+
21
+ ## Context (pre-injected)
22
+
23
+ **State:**
24
+ <gsd-paste name="state" />
25
+
1
26
  <purpose>
2
27
 
3
28
  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.
@@ -1,39 +1,53 @@
1
- <purpose>
2
-
3
- Mark a shipped version (v1.0, v1.1, v2.0) as complete. Creates historical record in MILESTONES.md, performs full PROJECT.md evolution review, reorganizes ROADMAP.md with milestone groupings, and tags the release in git.
4
-
5
- </purpose>
6
-
7
- <required_reading>
8
-
9
- 1. templates/milestone.md
10
- 2. templates/milestone-archive.md
11
- 3. `.planning/ROADMAP.md`
12
- 4. `.planning/REQUIREMENTS.md`
13
- 5. `.planning/PROJECT.md`
14
-
15
- </required_reading>
16
-
17
- <archival_behavior>
18
-
19
- When a milestone completes:
20
-
21
- 1. Extract full milestone details to `.planning/milestones/v[X.Y]-ROADMAP.md`
22
- 2. Archive requirements to `.planning/milestones/v[X.Y]-REQUIREMENTS.md`
23
- 3. Update ROADMAP.md - replace milestone details with one-line summary
24
- 4. Delete REQUIREMENTS.md (fresh one for next milestone)
25
- 5. Perform full PROJECT.md evolution review
26
- 6. Offer to create next milestone inline
27
- 7. Archive UI artifacts (`*-UI-SPEC.md`, `*-UI-REVIEW.md`) alongside other phase documents
28
- 8. Clean up `.planning/ui-reviews/` screenshot files (binary assets, never archived)
29
-
30
- **Context Efficiency:** Archives keep ROADMAP.md constant-size and REQUIREMENTS.md milestone-scoped.
31
-
32
- **ROADMAP archive** uses `templates/milestone-archive.md` - includes milestone header (status, phases, date), full phase details, milestone summary (decisions, issues, tech debt).
33
-
34
- **REQUIREMENTS archive** contains all requirements marked complete with outcomes, traceability table with final status, notes on changed requirements.
35
-
36
- </archival_behavior>
1
+ <gsd-version v="1.12.4" />
2
+
3
+ <gsd-arguments>
4
+ <settings>
5
+ <keep-extra-args />
6
+ </settings>
7
+ <arg name="version" type="string" optional />
8
+ </gsd-arguments>
9
+
10
+ <gsd-execute>
11
+ <shell command="pi-gsd-tools">
12
+ <args>
13
+ <arg string="roadmap" />
14
+ <arg string="analyze" />
15
+ <arg string="--raw" />
16
+ </args>
17
+ <outs>
18
+ <out type="string" name="roadmap" />
19
+ </outs>
20
+ </shell>
21
+ <shell command="pi-gsd-tools">
22
+ <args>
23
+ <arg string="state" />
24
+ <arg string="json" />
25
+ <arg string="--raw" />
26
+ </args>
27
+ <outs>
28
+ <out type="string" name="state" />
29
+ </outs>
30
+ </shell>
31
+ <!-- CLEAR _auto_chain_active — chain ends here -->
32
+ <shell command="pi-gsd-tools">
33
+ <args>
34
+ <arg string="config-set" />
35
+ <arg string="workflow._auto_chain_active" />
36
+ <arg string="false" />
37
+ </args>
38
+ <outs><suppress-errors /></outs>
39
+ </shell>
40
+ </gsd-execute>
41
+
42
+ ## Milestone Context (pre-injected by WXP)
43
+
44
+ **Version to complete:** <gsd-paste name="version" />
45
+
46
+ **Roadmap:**
47
+ <gsd-paste name="roadmap" />
48
+
49
+ **State:**
50
+ <gsd-paste name="state" />
37
51
 
38
52
  <process>
39
53
 
@@ -41,499 +55,7 @@ When a milestone completes:
41
55
 
42
56
  **Use `roadmap analyze` for comprehensive readiness check:**
43
57
 
44
- ```bash
45
- ROADMAP=$(pi-gsd-tools roadmap analyze)
46
- ```
47
-
48
- This returns all phases with plan/summary counts and disk status. Use this to verify:
49
- - Which phases belong to this milestone?
50
- - All phases complete (all plans have summaries)? Check `disk_status === 'complete'` for each.
51
- - `progress_percent` should be 100%.
52
-
53
- **Requirements completion check (REQUIRED before presenting):**
54
-
55
- Parse REQUIREMENTS.md traceability table:
56
- - Count total v1 requirements vs checked-off (`[x]`) requirements
57
- - Identify any non-Complete rows in the traceability table
58
-
59
- Present:
60
-
61
- ```
62
- Milestone: [Name, e.g., "v1.0 MVP"]
63
-
64
- Includes:
65
- - Phase 1: Foundation (2/2 plans complete)
66
- - Phase 2: Authentication (2/2 plans complete)
67
- - Phase 3: Core Features (3/3 plans complete)
68
- - Phase 4: Polish (1/1 plan complete)
69
-
70
- Total: {phase_count} phases, {total_plans} plans, all complete
71
- Requirements: {N}/{M} v1 requirements checked off
72
- ```
73
-
74
- **If requirements incomplete** (N < M):
75
-
76
- ```
77
- ⚠ Unchecked Requirements:
78
-
79
- - [ ] {REQ-ID}: {description} (Phase {X})
80
- - [ ] {REQ-ID}: {description} (Phase {Y})
81
- ```
82
-
83
- MUST present 3 options:
84
- 1. **Proceed anyway** - mark milestone complete with known gaps
85
- 2. **Run audit first** - `/gsd-audit-milestone` to assess gap severity
86
- 3. **Abort** - return to development
87
-
88
- If user selects "Proceed anyway": note incomplete requirements in MILESTONES.md under `### Known Gaps` with REQ-IDs and descriptions.
89
-
90
- <config-check>
91
-
92
- ```bash
93
- cat .planning/config.json 2>/dev/null || true
94
- ```
95
-
96
- </config-check>
97
-
98
- <if mode="yolo">
99
-
100
- ```
101
- ⚡ Auto-approved: Milestone scope verification
102
- [Show breakdown summary without prompting]
103
- Proceeding to stats gathering...
104
- ```
105
-
106
- Proceed to gather_stats.
107
-
108
- </if>
109
-
110
- <if mode="interactive" OR="custom with gates.confirm_milestone_scope true">
111
-
112
- ```
113
- Ready to mark this milestone as shipped?
114
- (yes / wait / adjust scope)
115
- ```
116
-
117
- Wait for confirmation.
118
- - "adjust scope": Ask which phases to include.
119
- - "wait": Stop, user returns when ready.
120
-
121
- </if>
122
-
123
- </step>
124
-
125
- <step name="gather_stats">
126
-
127
- Calculate milestone statistics:
128
-
129
- ```bash
130
- git log --oneline --grep="feat(" | head -20
131
- git diff --stat FIRST_COMMIT..LAST_COMMIT | tail -1
132
- find . -name "*.swift" -o -name "*.ts" -o -name "*.py" | xargs wc -l 2>/dev/null || true
133
- git log --format="%ai" FIRST_COMMIT | tail -1
134
- git log --format="%ai" LAST_COMMIT | head -1
135
- ```
136
-
137
- Present:
138
-
139
- ```
140
- Milestone Stats:
141
- - Phases: [X-Y]
142
- - Plans: [Z] total
143
- - Tasks: [N] total (from phase summaries)
144
- - Files modified: [M]
145
- - Lines of code: [LOC] [language]
146
- - Timeline: [Days] days ([Start] → [End])
147
- - Git range: feat(XX-XX) → feat(YY-YY)
148
- ```
149
-
150
- </step>
151
-
152
- <step name="extract_accomplishments">
153
-
154
- Extract one-liners from SUMMARY.md files using summary-extract:
155
-
156
- ```bash
157
- # For each phase in milestone, extract one-liner
158
- for summary in .planning/phases/*-*/*-SUMMARY.md; do
159
- [ -e "$summary" ] || continue
160
- pi-gsd-tools summary-extract "$summary" --fields one_liner --pick one_liner
161
- done
162
- ```
163
-
164
- Extract 4-6 key accomplishments. Present:
165
-
166
- ```
167
- Key accomplishments for this milestone:
168
- 1. [Achievement from phase 1]
169
- 2. [Achievement from phase 2]
170
- 3. [Achievement from phase 3]
171
- 4. [Achievement from phase 4]
172
- 5. [Achievement from phase 5]
173
- ```
174
-
175
- </step>
176
-
177
- <step name="create_milestone_entry">
178
-
179
- **Note:** MILESTONES.md entry is now created automatically by `gsd-tools milestone complete` in the archive_milestone step. The entry includes version, date, phase/plan/task counts, and accomplishments extracted from SUMMARY.md files.
180
-
181
- If additional details are needed (e.g., user-provided "Delivered" summary, git range, LOC stats), add them manually after the CLI creates the base entry.
182
-
183
- </step>
184
-
185
- <step name="evolve_project_full_review">
186
-
187
- Full PROJECT.md evolution review at milestone completion.
188
-
189
- Read all phase summaries:
190
-
191
- ```bash
192
- cat .planning/phases/*-*/*-SUMMARY.md
193
- ```
194
-
195
- **Full review checklist:**
196
-
197
- 1. **"What This Is" accuracy:**
198
- - Compare current description to what was built
199
- - Update if product has meaningfully changed
200
-
201
- 2. **Core Value check:**
202
- - Still the right priority? Did shipping reveal a different core value?
203
- - Update if the ONE thing has shifted
204
-
205
- 3. **Requirements audit:**
206
-
207
- **Validated section:**
208
- - All Active requirements shipped this milestone → Move to Validated
209
- - Format: `- ✓ [Requirement] - v[X.Y]`
210
-
211
- **Active section:**
212
- - Remove requirements moved to Validated
213
- - Add new requirements for next milestone
214
- - Keep unaddressed requirements
215
-
216
- **Out of Scope audit:**
217
- - Review each item - reasoning still valid?
218
- - Remove irrelevant items
219
- - Add requirements invalidated during milestone
220
-
221
- 4. **Context update:**
222
- - Current codebase state (LOC, tech stack)
223
- - User feedback themes (if any)
224
- - Known issues or technical debt
225
-
226
- 5. **Key Decisions audit:**
227
- - Extract all decisions from milestone phase summaries
228
- - Add to Key Decisions table with outcomes
229
- - Mark ✓ Good, ⚠️ Revisit, or - Pending
230
-
231
- 6. **Constraints check:**
232
- - Any constraints changed during development? Update as needed
233
-
234
- Update PROJECT.md inline. Update "Last updated" footer:
235
-
236
- ```markdown
237
- ---
238
- *Last updated: [date] after v[X.Y] milestone*
239
- ```
240
-
241
- **Example full evolution (v1.0 → v1.1 prep):**
242
-
243
- Before:
244
-
245
- ```markdown
246
- ## What This Is
247
-
248
- A real-time collaborative whiteboard for remote teams.
249
-
250
- ## Core Value
251
-
252
- Real-time sync that feels instant.
253
-
254
- ## Requirements
255
-
256
- ### Validated
257
-
258
- (None yet - ship to validate)
259
-
260
- ### Active
261
-
262
- - [ ] Canvas drawing tools
263
- - [ ] Real-time sync < 500ms
264
- - [ ] User authentication
265
- - [ ] Export to PNG
266
-
267
- ### Out of Scope
268
-
269
- - Mobile app - web-first approach
270
- - Video chat - use external tools
271
- ```
272
-
273
- After v1.0:
274
-
275
- ```markdown
276
- ## What This Is
277
-
278
- A real-time collaborative whiteboard for remote teams with instant sync and drawing tools.
279
-
280
- ## Core Value
281
-
282
- Real-time sync that feels instant.
283
-
284
- ## Requirements
285
-
286
- ### Validated
287
-
288
- - ✓ Canvas drawing tools - v1.0
289
- - ✓ Real-time sync < 500ms - v1.0 (achieved 200ms avg)
290
- - ✓ User authentication - v1.0
291
-
292
- ### Active
293
-
294
- - [ ] Export to PNG
295
- - [ ] Undo/redo history
296
- - [ ] Shape tools (rectangles, circles)
297
-
298
- ### Out of Scope
299
-
300
- - Mobile app - web-first approach, PWA works well
301
- - Video chat - use external tools
302
- - Offline mode - real-time is core value
303
-
304
- ## Context
305
-
306
- Shipped v1.0 with 2,400 LOC TypeScript.
307
- Tech stack: Next.js, Supabase, Canvas API.
308
- Initial user testing showed demand for shape tools.
309
- ```
310
-
311
- **Step complete when:**
312
-
313
- - [ ] "What This Is" reviewed and updated if needed
314
- - [ ] Core Value verified as still correct
315
- - [ ] All shipped requirements moved to Validated
316
- - [ ] New requirements added to Active for next milestone
317
- - [ ] Out of Scope reasoning audited
318
- - [ ] Context updated with current state
319
- - [ ] All milestone decisions added to Key Decisions
320
- - [ ] "Last updated" footer reflects milestone completion
321
-
322
- </step>
323
-
324
- <step name="reorganize_roadmap">
325
-
326
- Update `.planning/ROADMAP.md` - group completed milestone phases:
327
-
328
- ```markdown
329
- # Roadmap: [Project Name]
330
-
331
- ## Milestones
332
-
333
- - ✅ **v1.0 MVP** - Phases 1-4 (shipped YYYY-MM-DD)
334
- - 🚧 **v1.1 Security** - Phases 5-6 (in progress)
335
- - 📋 **v2.0 Redesign** - Phases 7-10 (planned)
336
-
337
- ## Phases
338
-
339
- <details>
340
- <summary>✅ v1.0 MVP (Phases 1-4) - SHIPPED YYYY-MM-DD</summary>
341
-
342
- - [x] Phase 1: Foundation (2/2 plans) - completed YYYY-MM-DD
343
- - [x] Phase 2: Authentication (2/2 plans) - completed YYYY-MM-DD
344
- - [x] Phase 3: Core Features (3/3 plans) - completed YYYY-MM-DD
345
- - [x] Phase 4: Polish (1/1 plan) - completed YYYY-MM-DD
346
-
347
- </details>
348
-
349
- ### 🚧 v[Next] [Name] (In Progress / Planned)
350
-
351
- - [ ] Phase 5: [Name] ([N] plans)
352
- - [ ] Phase 6: [Name] ([N] plans)
353
-
354
- ## Progress
355
-
356
- | Phase | Milestone | Plans Complete | Status | Completed |
357
- | ----------------- | --------- | -------------- | ----------- | ---------- |
358
- | 1. Foundation | v1.0 | 2/2 | Complete | YYYY-MM-DD |
359
- | 2. Authentication | v1.0 | 2/2 | Complete | YYYY-MM-DD |
360
- | 3. Core Features | v1.0 | 3/3 | Complete | YYYY-MM-DD |
361
- | 4. Polish | v1.0 | 1/1 | Complete | YYYY-MM-DD |
362
- | 5. Security Audit | v1.1 | 0/1 | Not started | - |
363
- | 6. Hardening | v1.1 | 0/2 | Not started | - |
364
- ```
365
-
366
- </step>
367
-
368
- <step name="archive_milestone">
369
-
370
- **Delegate archival to gsd-tools:**
371
-
372
- ```bash
373
- ARCHIVE=$(pi-gsd-tools milestone complete "v[X.Y]" --name "[Milestone Name]")
374
- ```
375
-
376
- The CLI handles:
377
- - Creating `.planning/milestones/` directory
378
- - Archiving ROADMAP.md to `milestones/v[X.Y]-ROADMAP.md`
379
- - Archiving REQUIREMENTS.md to `milestones/v[X.Y]-REQUIREMENTS.md` with archive header
380
- - Moving audit file to milestones if it exists
381
- - Creating/appending MILESTONES.md entry with accomplishments from SUMMARY.md files
382
- - Updating STATE.md (status, last activity)
383
-
384
- Extract from result: `version`, `date`, `phases`, `plans`, `tasks`, `accomplishments`, `archived`.
385
-
386
- Verify: `✅ Milestone archived to .planning/milestones/`
387
-
388
- **Phase archival (optional):** After archival completes, ask the user:
389
-
390
- AskUserQuestion(header="Archive Phases", question="Archive phase directories to milestones/?", options: "Yes - move to milestones/v[X.Y]-phases/" | "Skip - keep phases in place")
391
-
392
- If "Yes": move phase directories to the milestone archive:
393
- ```bash
394
- mkdir -p .planning/milestones/v[X.Y]-phases
395
- # For each phase directory in .planning/phases/:
396
- mv .planning/phases/{phase-dir} .planning/milestones/v[X.Y]-phases/
397
- ```
398
- Verify: `✅ Phase directories archived to .planning/milestones/v[X.Y]-phases/`
399
-
400
- If "Skip": Phase directories remain in `.planning/phases/` as raw execution history. Use `/gsd-cleanup` later to archive retroactively.
401
-
402
- After archival, the AI still handles:
403
- - Reorganizing ROADMAP.md with milestone grouping (requires judgment)
404
- - Full PROJECT.md evolution review (requires understanding)
405
- - Deleting original ROADMAP.md and REQUIREMENTS.md
406
- - These are NOT fully delegated because they require AI interpretation of content
407
-
408
- </step>
409
-
410
- <step name="reorganize_roadmap_and_delete_originals">
411
-
412
- After `milestone complete` has archived, reorganize ROADMAP.md with milestone groupings, then delete originals:
413
-
414
- **Reorganize ROADMAP.md** - group completed milestone phases:
415
-
416
- ```markdown
417
- # Roadmap: [Project Name]
418
-
419
- ## Milestones
420
-
421
- - ✅ **v1.0 MVP** - Phases 1-4 (shipped YYYY-MM-DD)
422
- - 🚧 **v1.1 Security** - Phases 5-6 (in progress)
423
-
424
- ## Phases
425
-
426
- <details>
427
- <summary>✅ v1.0 MVP (Phases 1-4) - SHIPPED YYYY-MM-DD</summary>
428
-
429
- - [x] Phase 1: Foundation (2/2 plans) - completed YYYY-MM-DD
430
- - [x] Phase 2: Authentication (2/2 plans) - completed YYYY-MM-DD
431
-
432
- </details>
433
- ```
434
-
435
- **Then delete originals:**
436
-
437
- ```bash
438
- rm .planning/ROADMAP.md
439
- rm .planning/REQUIREMENTS.md
440
- ```
441
-
442
- </step>
443
-
444
- <step name="write_retrospective">
445
-
446
- **Append to living retrospective:**
447
-
448
- Check for existing retrospective:
449
- ```bash
450
- ls .planning/RETROSPECTIVE.md 2>/dev/null || true
451
- ```
452
-
453
- **If exists:** Read the file, append new milestone section before the "## Cross-Milestone Trends" section.
454
-
455
- **If doesn't exist:** Create from template at `.pi/gsd/templates/retrospective.md`.
456
-
457
- **Gather retrospective data:**
458
-
459
- 1. From SUMMARY.md files: Extract key deliverables, one-liners, tech decisions
460
- 2. From VERIFICATION.md files: Extract verification scores, gaps found
461
- 3. From UAT.md files: Extract test results, issues found
462
- 4. From git log: Count commits, calculate timeline
463
- 5. From the milestone work: Reflect on what worked and what didn't
464
-
465
- **Write the milestone section:**
466
-
467
- ```markdown
468
- ## Milestone: v{version} - {name}
469
-
470
- **Shipped:** {date}
471
- **Phases:** {phase_count} | **Plans:** {plan_count}
472
-
473
- ### What Was Built
474
- {Extract from SUMMARY.md one-liners}
475
-
476
- ### What Worked
477
- {Patterns that led to smooth execution}
478
-
479
- ### What Was Inefficient
480
- {Missed opportunities, rework, bottlenecks}
481
-
482
- ### Patterns Established
483
- {New conventions discovered during this milestone}
484
-
485
- ### Key Lessons
486
- {Specific, actionable takeaways}
487
-
488
- ### Cost Observations
489
- - Model mix: {X}% opus, {Y}% sonnet, {Z}% haiku
490
- - Sessions: {count}
491
- - Notable: {efficiency observation}
492
- ```
493
-
494
- **Update cross-milestone trends:**
495
-
496
- If the "## Cross-Milestone Trends" section exists, update the tables with new data from this milestone.
497
-
498
- **Commit:**
499
- ```bash
500
- pi-gsd-tools commit "docs: update retrospective for v${VERSION}" --files .planning/RETROSPECTIVE.md
501
- ```
502
-
503
- </step>
504
-
505
- <step name="update_state">
506
-
507
- Most STATE.md updates were handled by `milestone complete`, but verify and update remaining fields:
508
-
509
- **Project Reference:**
510
-
511
- ```markdown
512
- ## Project Reference
513
-
514
- See: .planning/PROJECT.md (updated [today])
515
-
516
- **Core value:** [Current core value from PROJECT.md]
517
- **Current focus:** [Next milestone or "Planning next milestone"]
518
- ```
519
-
520
- **Accumulated Context:**
521
- - Clear decisions summary (full log in PROJECT.md)
522
- - Clear resolved blockers
523
- - Keep open blockers for next milestone
524
-
525
- </step>
526
-
527
- <step name="handle_branches">
528
-
529
- Check branching strategy and offer merge options.
530
-
531
- Use `init milestone-op` for context, or load config directly:
532
-
533
- ```bash
534
- INIT=$(pi-gsd-tools init execute-phase "1")
535
- if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
536
- ```
58
+ <!-- Context pre-injected above via WXP — variables available via <gsd-paste name="..."> -->
537
59
 
538
60
  Extract `branching_strategy`, `phase_branch_template`, `milestone_branch_template`, and `commit_docs` from init JSON.
539
61