gsd-code-first 1.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 (238) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja-JP.md +834 -0
  3. package/README.ko-KR.md +823 -0
  4. package/README.md +937 -0
  5. package/README.pt-BR.md +452 -0
  6. package/README.zh-CN.md +800 -0
  7. package/agents/gsd-advisor-researcher.md +104 -0
  8. package/agents/gsd-annotator.md +148 -0
  9. package/agents/gsd-arc-executor.md +537 -0
  10. package/agents/gsd-arc-planner.md +374 -0
  11. package/agents/gsd-assumptions-analyzer.md +105 -0
  12. package/agents/gsd-code-planner.md +155 -0
  13. package/agents/gsd-codebase-mapper.md +770 -0
  14. package/agents/gsd-debugger.md +1373 -0
  15. package/agents/gsd-executor.md +509 -0
  16. package/agents/gsd-integration-checker.md +443 -0
  17. package/agents/gsd-nyquist-auditor.md +176 -0
  18. package/agents/gsd-phase-researcher.md +698 -0
  19. package/agents/gsd-plan-checker.md +773 -0
  20. package/agents/gsd-planner.md +1354 -0
  21. package/agents/gsd-project-researcher.md +654 -0
  22. package/agents/gsd-prototyper.md +161 -0
  23. package/agents/gsd-research-synthesizer.md +247 -0
  24. package/agents/gsd-roadmapper.md +679 -0
  25. package/agents/gsd-ui-auditor.md +439 -0
  26. package/agents/gsd-ui-checker.md +300 -0
  27. package/agents/gsd-ui-researcher.md +357 -0
  28. package/agents/gsd-user-profiler.md +171 -0
  29. package/agents/gsd-verifier.md +700 -0
  30. package/bin/install.js +5009 -0
  31. package/commands/gsd/add-backlog.md +76 -0
  32. package/commands/gsd/add-phase.md +43 -0
  33. package/commands/gsd/add-tests.md +41 -0
  34. package/commands/gsd/add-todo.md +47 -0
  35. package/commands/gsd/annotate.md +54 -0
  36. package/commands/gsd/audit-milestone.md +36 -0
  37. package/commands/gsd/audit-uat.md +24 -0
  38. package/commands/gsd/autonomous.md +41 -0
  39. package/commands/gsd/check-todos.md +45 -0
  40. package/commands/gsd/cleanup.md +18 -0
  41. package/commands/gsd/complete-milestone.md +136 -0
  42. package/commands/gsd/debug.md +173 -0
  43. package/commands/gsd/deep-plan.md +52 -0
  44. package/commands/gsd/discuss-phase.md +64 -0
  45. package/commands/gsd/do.md +30 -0
  46. package/commands/gsd/execute-phase.md +59 -0
  47. package/commands/gsd/extract-plan.md +35 -0
  48. package/commands/gsd/fast.md +30 -0
  49. package/commands/gsd/forensics.md +56 -0
  50. package/commands/gsd/health.md +22 -0
  51. package/commands/gsd/help.md +22 -0
  52. package/commands/gsd/insert-phase.md +32 -0
  53. package/commands/gsd/iterate.md +124 -0
  54. package/commands/gsd/join-discord.md +18 -0
  55. package/commands/gsd/list-phase-assumptions.md +46 -0
  56. package/commands/gsd/list-workspaces.md +19 -0
  57. package/commands/gsd/manager.md +39 -0
  58. package/commands/gsd/map-codebase.md +71 -0
  59. package/commands/gsd/milestone-summary.md +51 -0
  60. package/commands/gsd/new-milestone.md +44 -0
  61. package/commands/gsd/new-project.md +42 -0
  62. package/commands/gsd/new-workspace.md +44 -0
  63. package/commands/gsd/next.md +24 -0
  64. package/commands/gsd/note.md +34 -0
  65. package/commands/gsd/pause-work.md +38 -0
  66. package/commands/gsd/plan-milestone-gaps.md +34 -0
  67. package/commands/gsd/plan-phase.md +47 -0
  68. package/commands/gsd/plant-seed.md +28 -0
  69. package/commands/gsd/pr-branch.md +25 -0
  70. package/commands/gsd/profile-user.md +46 -0
  71. package/commands/gsd/progress.md +24 -0
  72. package/commands/gsd/prototype.md +56 -0
  73. package/commands/gsd/quick.md +47 -0
  74. package/commands/gsd/reapply-patches.md +123 -0
  75. package/commands/gsd/remove-phase.md +31 -0
  76. package/commands/gsd/remove-workspace.md +26 -0
  77. package/commands/gsd/research-phase.md +195 -0
  78. package/commands/gsd/resume-work.md +40 -0
  79. package/commands/gsd/review-backlog.md +61 -0
  80. package/commands/gsd/review.md +37 -0
  81. package/commands/gsd/session-report.md +19 -0
  82. package/commands/gsd/set-mode.md +41 -0
  83. package/commands/gsd/set-profile.md +12 -0
  84. package/commands/gsd/settings.md +36 -0
  85. package/commands/gsd/ship.md +23 -0
  86. package/commands/gsd/stats.md +18 -0
  87. package/commands/gsd/thread.md +127 -0
  88. package/commands/gsd/ui-phase.md +34 -0
  89. package/commands/gsd/ui-review.md +32 -0
  90. package/commands/gsd/update.md +37 -0
  91. package/commands/gsd/validate-phase.md +35 -0
  92. package/commands/gsd/verify-work.md +38 -0
  93. package/commands/gsd/workstreams.md +63 -0
  94. package/get-shit-done/bin/gsd-tools.cjs +946 -0
  95. package/get-shit-done/bin/lib/arc-scanner.cjs +341 -0
  96. package/get-shit-done/bin/lib/commands.cjs +959 -0
  97. package/get-shit-done/bin/lib/config.cjs +466 -0
  98. package/get-shit-done/bin/lib/core.cjs +1230 -0
  99. package/get-shit-done/bin/lib/frontmatter.cjs +336 -0
  100. package/get-shit-done/bin/lib/init.cjs +1442 -0
  101. package/get-shit-done/bin/lib/milestone.cjs +252 -0
  102. package/get-shit-done/bin/lib/model-profiles.cjs +68 -0
  103. package/get-shit-done/bin/lib/phase.cjs +888 -0
  104. package/get-shit-done/bin/lib/profile-output.cjs +952 -0
  105. package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
  106. package/get-shit-done/bin/lib/roadmap.cjs +329 -0
  107. package/get-shit-done/bin/lib/security.cjs +382 -0
  108. package/get-shit-done/bin/lib/state.cjs +1031 -0
  109. package/get-shit-done/bin/lib/template.cjs +222 -0
  110. package/get-shit-done/bin/lib/uat.cjs +282 -0
  111. package/get-shit-done/bin/lib/verify.cjs +888 -0
  112. package/get-shit-done/bin/lib/workstream.cjs +491 -0
  113. package/get-shit-done/commands/gsd/workstreams.md +63 -0
  114. package/get-shit-done/references/arc-standard.md +315 -0
  115. package/get-shit-done/references/checkpoints.md +778 -0
  116. package/get-shit-done/references/continuation-format.md +249 -0
  117. package/get-shit-done/references/decimal-phase-calculation.md +64 -0
  118. package/get-shit-done/references/git-integration.md +295 -0
  119. package/get-shit-done/references/git-planning-commit.md +38 -0
  120. package/get-shit-done/references/model-profile-resolution.md +36 -0
  121. package/get-shit-done/references/model-profiles.md +139 -0
  122. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  123. package/get-shit-done/references/planning-config.md +202 -0
  124. package/get-shit-done/references/questioning.md +162 -0
  125. package/get-shit-done/references/tdd.md +263 -0
  126. package/get-shit-done/references/ui-brand.md +160 -0
  127. package/get-shit-done/references/user-profiling.md +681 -0
  128. package/get-shit-done/references/verification-patterns.md +612 -0
  129. package/get-shit-done/references/workstream-flag.md +58 -0
  130. package/get-shit-done/templates/DEBUG.md +164 -0
  131. package/get-shit-done/templates/UAT.md +265 -0
  132. package/get-shit-done/templates/UI-SPEC.md +100 -0
  133. package/get-shit-done/templates/VALIDATION.md +76 -0
  134. package/get-shit-done/templates/claude-md.md +122 -0
  135. package/get-shit-done/templates/codebase/architecture.md +255 -0
  136. package/get-shit-done/templates/codebase/concerns.md +310 -0
  137. package/get-shit-done/templates/codebase/conventions.md +307 -0
  138. package/get-shit-done/templates/codebase/integrations.md +280 -0
  139. package/get-shit-done/templates/codebase/stack.md +186 -0
  140. package/get-shit-done/templates/codebase/structure.md +285 -0
  141. package/get-shit-done/templates/codebase/testing.md +480 -0
  142. package/get-shit-done/templates/config.json +44 -0
  143. package/get-shit-done/templates/context.md +352 -0
  144. package/get-shit-done/templates/continue-here.md +78 -0
  145. package/get-shit-done/templates/copilot-instructions.md +7 -0
  146. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  147. package/get-shit-done/templates/dev-preferences.md +21 -0
  148. package/get-shit-done/templates/discovery.md +146 -0
  149. package/get-shit-done/templates/discussion-log.md +63 -0
  150. package/get-shit-done/templates/milestone-archive.md +123 -0
  151. package/get-shit-done/templates/milestone.md +115 -0
  152. package/get-shit-done/templates/phase-prompt.md +610 -0
  153. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  154. package/get-shit-done/templates/project.md +186 -0
  155. package/get-shit-done/templates/requirements.md +231 -0
  156. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  157. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  158. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  159. package/get-shit-done/templates/research-project/STACK.md +120 -0
  160. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  161. package/get-shit-done/templates/research.md +552 -0
  162. package/get-shit-done/templates/retrospective.md +54 -0
  163. package/get-shit-done/templates/roadmap.md +202 -0
  164. package/get-shit-done/templates/state.md +176 -0
  165. package/get-shit-done/templates/summary-complex.md +59 -0
  166. package/get-shit-done/templates/summary-minimal.md +41 -0
  167. package/get-shit-done/templates/summary-standard.md +48 -0
  168. package/get-shit-done/templates/summary.md +248 -0
  169. package/get-shit-done/templates/user-profile.md +146 -0
  170. package/get-shit-done/templates/user-setup.md +311 -0
  171. package/get-shit-done/templates/verification-report.md +322 -0
  172. package/get-shit-done/workflows/add-phase.md +112 -0
  173. package/get-shit-done/workflows/add-tests.md +351 -0
  174. package/get-shit-done/workflows/add-todo.md +158 -0
  175. package/get-shit-done/workflows/audit-milestone.md +340 -0
  176. package/get-shit-done/workflows/audit-uat.md +109 -0
  177. package/get-shit-done/workflows/autonomous.md +891 -0
  178. package/get-shit-done/workflows/check-todos.md +177 -0
  179. package/get-shit-done/workflows/cleanup.md +152 -0
  180. package/get-shit-done/workflows/complete-milestone.md +767 -0
  181. package/get-shit-done/workflows/diagnose-issues.md +231 -0
  182. package/get-shit-done/workflows/discovery-phase.md +289 -0
  183. package/get-shit-done/workflows/discuss-phase-assumptions.md +653 -0
  184. package/get-shit-done/workflows/discuss-phase.md +1049 -0
  185. package/get-shit-done/workflows/do.md +104 -0
  186. package/get-shit-done/workflows/execute-phase.md +846 -0
  187. package/get-shit-done/workflows/execute-plan.md +514 -0
  188. package/get-shit-done/workflows/fast.md +105 -0
  189. package/get-shit-done/workflows/forensics.md +265 -0
  190. package/get-shit-done/workflows/health.md +181 -0
  191. package/get-shit-done/workflows/help.md +634 -0
  192. package/get-shit-done/workflows/insert-phase.md +130 -0
  193. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  194. package/get-shit-done/workflows/list-workspaces.md +56 -0
  195. package/get-shit-done/workflows/manager.md +362 -0
  196. package/get-shit-done/workflows/map-codebase.md +377 -0
  197. package/get-shit-done/workflows/milestone-summary.md +223 -0
  198. package/get-shit-done/workflows/new-milestone.md +486 -0
  199. package/get-shit-done/workflows/new-project.md +1250 -0
  200. package/get-shit-done/workflows/new-workspace.md +237 -0
  201. package/get-shit-done/workflows/next.md +97 -0
  202. package/get-shit-done/workflows/node-repair.md +92 -0
  203. package/get-shit-done/workflows/note.md +156 -0
  204. package/get-shit-done/workflows/pause-work.md +176 -0
  205. package/get-shit-done/workflows/plan-milestone-gaps.md +273 -0
  206. package/get-shit-done/workflows/plan-phase.md +859 -0
  207. package/get-shit-done/workflows/plant-seed.md +169 -0
  208. package/get-shit-done/workflows/pr-branch.md +129 -0
  209. package/get-shit-done/workflows/profile-user.md +450 -0
  210. package/get-shit-done/workflows/progress.md +507 -0
  211. package/get-shit-done/workflows/quick.md +757 -0
  212. package/get-shit-done/workflows/remove-phase.md +155 -0
  213. package/get-shit-done/workflows/remove-workspace.md +90 -0
  214. package/get-shit-done/workflows/research-phase.md +82 -0
  215. package/get-shit-done/workflows/resume-project.md +326 -0
  216. package/get-shit-done/workflows/review.md +228 -0
  217. package/get-shit-done/workflows/session-report.md +146 -0
  218. package/get-shit-done/workflows/settings.md +283 -0
  219. package/get-shit-done/workflows/ship.md +228 -0
  220. package/get-shit-done/workflows/stats.md +60 -0
  221. package/get-shit-done/workflows/transition.md +671 -0
  222. package/get-shit-done/workflows/ui-phase.md +302 -0
  223. package/get-shit-done/workflows/ui-review.md +165 -0
  224. package/get-shit-done/workflows/update.md +323 -0
  225. package/get-shit-done/workflows/validate-phase.md +174 -0
  226. package/get-shit-done/workflows/verify-phase.md +254 -0
  227. package/get-shit-done/workflows/verify-work.md +637 -0
  228. package/hooks/dist/gsd-check-update.js +114 -0
  229. package/hooks/dist/gsd-context-monitor.js +156 -0
  230. package/hooks/dist/gsd-prompt-guard.js +96 -0
  231. package/hooks/dist/gsd-statusline.js +119 -0
  232. package/hooks/dist/gsd-workflow-guard.js +94 -0
  233. package/package.json +52 -0
  234. package/scripts/base64-scan.sh +262 -0
  235. package/scripts/build-hooks.js +82 -0
  236. package/scripts/prompt-injection-scan.sh +198 -0
  237. package/scripts/run-tests.cjs +29 -0
  238. package/scripts/secret-scan.sh +227 -0
@@ -0,0 +1,340 @@
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
+ <available_agent_types>
10
+ Valid GSD subagent types (use exact names — do not fall back to 'general-purpose'):
11
+ - gsd-integration-checker — Checks cross-phase integration
12
+ </available_agent_types>
13
+
14
+ <process>
15
+
16
+ ## 0. Initialize Milestone Context
17
+
18
+ ```bash
19
+ INIT=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" init milestone-op)
20
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
21
+ AGENT_SKILLS_CHECKER=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" agent-skills gsd-integration-checker 2>/dev/null)
22
+ ```
23
+
24
+ Extract from init JSON: `milestone_version`, `milestone_name`, `phase_count`, `completed_phases`, `commit_docs`.
25
+
26
+ Resolve integration checker model:
27
+ ```bash
28
+ integration_checker_model=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" resolve-model gsd-integration-checker --raw)
29
+ ```
30
+
31
+ ## 1. Determine Milestone Scope
32
+
33
+ ```bash
34
+ # Get phases in milestone (sorted numerically, handles decimals)
35
+ node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" phases list
36
+ ```
37
+
38
+ - Parse version from arguments or detect current from ROADMAP.md
39
+ - Identify all phase directories in scope
40
+ - Extract milestone definition of done from ROADMAP.md
41
+ - Extract requirements mapped to this milestone from REQUIREMENTS.md
42
+
43
+ ## 2. Read All Phase Verifications
44
+
45
+ For each phase directory, read the VERIFICATION.md:
46
+
47
+ ```bash
48
+ # For each phase, use find-phase to resolve the directory (handles archived phases)
49
+ PHASE_INFO=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" find-phase 01 --raw)
50
+ # Extract directory from JSON, then read VERIFICATION.md from that directory
51
+ # Repeat for each phase number from ROADMAP.md
52
+ ```
53
+
54
+ From each VERIFICATION.md, extract:
55
+ - **Status:** passed | gaps_found
56
+ - **Critical gaps:** (if any — these are blockers)
57
+ - **Non-critical gaps:** tech debt, deferred items, warnings
58
+ - **Anti-patterns found:** TODOs, stubs, placeholders
59
+ - **Requirements coverage:** which requirements satisfied/blocked
60
+
61
+ If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
62
+
63
+ ## 3. Spawn Integration Checker
64
+
65
+ With phase context collected:
66
+
67
+ Extract `MILESTONE_REQ_IDS` from REQUIREMENTS.md traceability table — all REQ-IDs assigned to phases in this milestone.
68
+
69
+ ```
70
+ Task(
71
+ prompt="Check cross-phase integration and E2E flows.
72
+
73
+ Phases: {phase_dirs}
74
+ Phase exports: {from SUMMARYs}
75
+ API routes: {routes created}
76
+
77
+ Milestone Requirements:
78
+ {MILESTONE_REQ_IDS — list each REQ-ID with description and assigned phase}
79
+
80
+ MUST map each integration finding to affected requirement IDs where applicable.
81
+
82
+ Verify cross-phase wiring and E2E user flows.
83
+ ${AGENT_SKILLS_CHECKER}",
84
+ subagent_type="gsd-integration-checker",
85
+ model="{integration_checker_model}"
86
+ )
87
+ ```
88
+
89
+ ## 4. Collect Results
90
+
91
+ Combine:
92
+ - Phase-level gaps and tech debt (from step 2)
93
+ - Integration checker's report (wiring gaps, broken flows)
94
+
95
+ ## 5. Check Requirements Coverage (3-Source Cross-Reference)
96
+
97
+ MUST cross-reference three independent sources for each requirement:
98
+
99
+ ### 5a. Parse REQUIREMENTS.md Traceability Table
100
+
101
+ Extract all REQ-IDs mapped to milestone phases from the traceability table:
102
+ - Requirement ID, description, assigned phase, current status, checked-off state (`[x]` vs `[ ]`)
103
+
104
+ ### 5b. Parse Phase VERIFICATION.md Requirements Tables
105
+
106
+ For each phase's VERIFICATION.md, extract the expanded requirements table:
107
+ - Requirement | Source Plan | Description | Status | Evidence
108
+ - Map each entry back to its REQ-ID
109
+
110
+ ### 5c. Extract SUMMARY.md Frontmatter Cross-Check
111
+
112
+ For each phase's SUMMARY.md, extract `requirements-completed` from YAML frontmatter:
113
+ ```bash
114
+ for summary in .planning/phases/*-*/*-SUMMARY.md; do
115
+ [ -e "$summary" ] || continue
116
+ node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" summary-extract "$summary" --fields requirements_completed --pick requirements_completed
117
+ done
118
+ ```
119
+
120
+ ### 5d. Status Determination Matrix
121
+
122
+ For each REQ-ID, determine status using all three sources:
123
+
124
+ | VERIFICATION.md Status | SUMMARY Frontmatter | REQUIREMENTS.md | → Final Status |
125
+ |------------------------|---------------------|-----------------|----------------|
126
+ | passed | listed | `[x]` | **satisfied** |
127
+ | passed | listed | `[ ]` | **satisfied** (update checkbox) |
128
+ | passed | missing | any | **partial** (verify manually) |
129
+ | gaps_found | any | any | **unsatisfied** |
130
+ | missing | listed | any | **partial** (verification gap) |
131
+ | missing | missing | any | **unsatisfied** |
132
+
133
+ ### 5e. FAIL Gate and Orphan Detection
134
+
135
+ **REQUIRED:** Any `unsatisfied` requirement MUST force `gaps_found` status on the milestone audit.
136
+
137
+ **Orphan detection:** Requirements present in REQUIREMENTS.md traceability table but absent from ALL phase VERIFICATION.md files MUST be flagged as orphaned. Orphaned requirements are treated as `unsatisfied` — they were assigned but never verified by any phase.
138
+
139
+ ## 5.5. Nyquist Compliance Discovery
140
+
141
+ Skip if `workflow.nyquist_validation` is explicitly `false` (absent = enabled).
142
+
143
+ ```bash
144
+ NYQUIST_CONFIG=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" config-get workflow.nyquist_validation --raw 2>/dev/null)
145
+ ```
146
+
147
+ If `false`: skip entirely.
148
+
149
+ For each phase directory, check `*-VALIDATION.md`. If exists, parse frontmatter (`nyquist_compliant`, `wave_0_complete`).
150
+
151
+ Classify per phase:
152
+
153
+ | Status | Condition |
154
+ |--------|-----------|
155
+ | COMPLIANT | `nyquist_compliant: true` and all tasks green |
156
+ | PARTIAL | VALIDATION.md exists, `nyquist_compliant: false` or red/pending |
157
+ | MISSING | No VALIDATION.md |
158
+
159
+ Add to audit YAML: `nyquist: { compliant_phases, partial_phases, missing_phases, overall }`
160
+
161
+ Discovery only — never auto-calls `/gsd:validate-phase`.
162
+
163
+ ## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
164
+
165
+ Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
166
+
167
+ ```yaml
168
+ ---
169
+ milestone: {version}
170
+ audited: {timestamp}
171
+ status: passed | gaps_found | tech_debt
172
+ scores:
173
+ requirements: N/M
174
+ phases: N/M
175
+ integration: N/M
176
+ flows: N/M
177
+ gaps: # Critical blockers
178
+ requirements:
179
+ - id: "{REQ-ID}"
180
+ status: "unsatisfied | partial | orphaned"
181
+ phase: "{assigned phase}"
182
+ claimed_by_plans: ["{plan files that reference this requirement}"]
183
+ completed_by_plans: ["{plan files whose SUMMARY marks it complete}"]
184
+ verification_status: "passed | gaps_found | missing | orphaned"
185
+ evidence: "{specific evidence or lack thereof}"
186
+ integration: [...]
187
+ flows: [...]
188
+ tech_debt: # Non-critical, deferred
189
+ - phase: 01-auth
190
+ items:
191
+ - "TODO: add rate limiting"
192
+ - "Warning: no password strength validation"
193
+ - phase: 03-dashboard
194
+ items:
195
+ - "Deferred: mobile responsive layout"
196
+ ---
197
+ ```
198
+
199
+ Plus full markdown report with tables for requirements, phases, integration, tech debt.
200
+
201
+ **Status values:**
202
+ - `passed` — all requirements met, no critical gaps, minimal tech debt
203
+ - `gaps_found` — critical blockers exist
204
+ - `tech_debt` — no blockers but accumulated deferred items need review
205
+
206
+ ## 7. Present Results
207
+
208
+ Route by status (see `<offer_next>`).
209
+
210
+ </process>
211
+
212
+ <offer_next>
213
+ Output this markdown directly (not as a code block). Route based on status:
214
+
215
+ ---
216
+
217
+ **If passed:**
218
+
219
+ ## ✓ Milestone {version} — Audit Passed
220
+
221
+ **Score:** {N}/{M} requirements satisfied
222
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
223
+
224
+ All requirements covered. Cross-phase integration verified. E2E flows complete.
225
+
226
+ ───────────────────────────────────────────────────────────────
227
+
228
+ ## ▶ Next Up
229
+
230
+ **Complete milestone** — archive and tag
231
+
232
+ /gsd:complete-milestone {version}
233
+
234
+ <sub>/clear first → fresh context window</sub>
235
+
236
+ ───────────────────────────────────────────────────────────────
237
+
238
+ ---
239
+
240
+ **If gaps_found:**
241
+
242
+ ## ⚠ Milestone {version} — Gaps Found
243
+
244
+ **Score:** {N}/{M} requirements satisfied
245
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
246
+
247
+ ### Unsatisfied Requirements
248
+
249
+ {For each unsatisfied requirement:}
250
+ - **{REQ-ID}: {description}** (Phase {X})
251
+ - {reason}
252
+
253
+ ### Cross-Phase Issues
254
+
255
+ {For each integration gap:}
256
+ - **{from} → {to}:** {issue}
257
+
258
+ ### Broken Flows
259
+
260
+ {For each flow gap:}
261
+ - **{flow name}:** breaks at {step}
262
+
263
+ ### Nyquist Coverage
264
+
265
+ | Phase | VALIDATION.md | Compliant | Action |
266
+ |-------|---------------|-----------|--------|
267
+ | {phase} | exists/missing | true/false/partial | `/gsd:validate-phase {N}` |
268
+
269
+ Phases needing validation: run `/gsd:validate-phase {N}` for each flagged phase.
270
+
271
+ ───────────────────────────────────────────────────────────────
272
+
273
+ ## ▶ Next Up
274
+
275
+ **Plan gap closure** — create phases to complete milestone
276
+
277
+ /gsd:plan-milestone-gaps
278
+
279
+ <sub>/clear first → fresh context window</sub>
280
+
281
+ ───────────────────────────────────────────────────────────────
282
+
283
+ **Also available:**
284
+ - cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
285
+ - /gsd:complete-milestone {version} — proceed anyway (accept tech debt)
286
+
287
+ ───────────────────────────────────────────────────────────────
288
+
289
+ ---
290
+
291
+ **If tech_debt (no blockers but accumulated debt):**
292
+
293
+ ## ⚡ Milestone {version} — Tech Debt Review
294
+
295
+ **Score:** {N}/{M} requirements satisfied
296
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
297
+
298
+ All requirements met. No critical blockers. Accumulated tech debt needs review.
299
+
300
+ ### Tech Debt by Phase
301
+
302
+ {For each phase with debt:}
303
+ **Phase {X}: {name}**
304
+ - {item 1}
305
+ - {item 2}
306
+
307
+ ### Total: {N} items across {M} phases
308
+
309
+ ───────────────────────────────────────────────────────────────
310
+
311
+ ## ▶ Options
312
+
313
+ **A. Complete milestone** — accept debt, track in backlog
314
+
315
+ /gsd:complete-milestone {version}
316
+
317
+ **B. Plan cleanup phase** — address debt before completing
318
+
319
+ /gsd:plan-milestone-gaps
320
+
321
+ <sub>/clear first → fresh context window</sub>
322
+
323
+ ───────────────────────────────────────────────────────────────
324
+ </offer_next>
325
+
326
+ <success_criteria>
327
+ - [ ] Milestone scope identified
328
+ - [ ] All phase VERIFICATION.md files read
329
+ - [ ] SUMMARY.md `requirements-completed` frontmatter extracted for each phase
330
+ - [ ] REQUIREMENTS.md traceability table parsed for all milestone REQ-IDs
331
+ - [ ] 3-source cross-reference completed (VERIFICATION + SUMMARY + traceability)
332
+ - [ ] Orphaned requirements detected (in traceability but absent from all VERIFICATIONs)
333
+ - [ ] Tech debt and deferred gaps aggregated
334
+ - [ ] Integration checker spawned with milestone requirement IDs
335
+ - [ ] v{version}-MILESTONE-AUDIT.md created with structured requirement gap objects
336
+ - [ ] FAIL gate enforced — any unsatisfied requirement forces gaps_found status
337
+ - [ ] Nyquist compliance scanned for all milestone phases (if enabled)
338
+ - [ ] Missing VALIDATION.md phases flagged with validate-phase suggestion
339
+ - [ ] Results presented with actionable next steps
340
+ </success_criteria>
@@ -0,0 +1,109 @@
1
+ <purpose>
2
+ Cross-phase audit of all UAT and verification files. Finds every outstanding item (pending, skipped, blocked, human_needed), optionally verifies against the codebase to detect stale docs, and produces a prioritized human test plan.
3
+ </purpose>
4
+
5
+ <process>
6
+
7
+ <step name="initialize">
8
+ Run the CLI audit:
9
+
10
+ ```bash
11
+ AUDIT=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" audit-uat --raw)
12
+ ```
13
+
14
+ Parse JSON for `results` array and `summary` object.
15
+
16
+ If `summary.total_items` is 0:
17
+ ```
18
+ ## All Clear
19
+
20
+ No outstanding UAT or verification items found across all phases.
21
+ All tests are passing, resolved, or diagnosed with fix plans.
22
+ ```
23
+ Stop here.
24
+ </step>
25
+
26
+ <step name="categorize">
27
+ Group items by what's actionable NOW vs. what needs prerequisites:
28
+
29
+ **Testable Now** (no external dependencies):
30
+ - `pending` — tests never run
31
+ - `human_uat` — human verification items
32
+ - `skipped_unresolved` — skipped without clear blocking reason
33
+
34
+ **Needs Prerequisites:**
35
+ - `server_blocked` — needs external server running
36
+ - `device_needed` — needs physical device (not simulator)
37
+ - `build_needed` — needs release/preview build
38
+ - `third_party` — needs external service configuration
39
+
40
+ For each item in "Testable Now", use Grep/Read to check if the underlying feature still exists in the codebase:
41
+ - If the test references a component/function that no longer exists → mark as `stale`
42
+ - If the test references code that has been significantly rewritten → mark as `needs_update`
43
+ - Otherwise → mark as `active`
44
+ </step>
45
+
46
+ <step name="present">
47
+ Present the audit report:
48
+
49
+ ```
50
+ ## UAT Audit Report
51
+
52
+ **{total_items} outstanding items across {total_files} files in {phase_count} phases**
53
+
54
+ ### Testable Now ({count})
55
+
56
+ | # | Phase | Test | Description | Status |
57
+ |---|-------|------|-------------|--------|
58
+ | 1 | {phase} | {test_name} | {expected} | {active/stale/needs_update} |
59
+ ...
60
+
61
+ ### Needs Prerequisites ({count})
62
+
63
+ | # | Phase | Test | Blocked By | Description |
64
+ |---|-------|------|------------|-------------|
65
+ | 1 | {phase} | {test_name} | {category} | {expected} |
66
+ ...
67
+
68
+ ### Stale (can be closed) ({count})
69
+
70
+ | # | Phase | Test | Why Stale |
71
+ |---|-------|------|-----------|
72
+ | 1 | {phase} | {test_name} | {reason} |
73
+ ...
74
+
75
+ ---
76
+
77
+ ## Recommended Actions
78
+
79
+ 1. **Close stale items:** `/gsd:verify-work {phase}` — mark stale tests as resolved
80
+ 2. **Run active tests:** Human UAT test plan below
81
+ 3. **When prerequisites met:** Retest blocked items with `/gsd:verify-work {phase}`
82
+ ```
83
+ </step>
84
+
85
+ <step name="test_plan">
86
+ Generate a human UAT test plan for "Testable Now" + "active" items only:
87
+
88
+ Group by what can be tested together (same screen, same feature, same prerequisite):
89
+
90
+ ```
91
+ ## Human UAT Test Plan
92
+
93
+ ### Group 1: {category — e.g., "Billing Flow"}
94
+ Prerequisites: {what needs to be running/configured}
95
+
96
+ 1. **{Test name}** (Phase {N})
97
+ - Navigate to: {where}
98
+ - Do: {action}
99
+ - Expected: {expected behavior}
100
+
101
+ 2. **{Test name}** (Phase {N})
102
+ ...
103
+
104
+ ### Group 2: {category}
105
+ ...
106
+ ```
107
+ </step>
108
+
109
+ </process>