gsd-antigravity-kit 2.0.0 → 2.1.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 (258) hide show
  1. package/.agent/skills/gsd/SKILL.md +26 -4
  2. package/.agent/skills/gsd/VERSION +1 -1
  3. package/.agent/skills/gsd/assets/templates/AI-SPEC.md +246 -0
  4. package/.agent/skills/gsd/assets/templates/DEBUG.md +7 -2
  5. package/.agent/skills/gsd/assets/templates/config.json +56 -48
  6. package/.agent/skills/gsd/assets/templates/research.md +40 -0
  7. package/.agent/skills/gsd/assets/templates/spec.md +307 -0
  8. package/.agent/skills/gsd/assets/templates/state.md +8 -0
  9. package/.agent/skills/gsd/bin/gsd-tools.cjs +212 -11
  10. package/.agent/skills/gsd/bin/help-manifest.json +8 -2
  11. package/.agent/skills/gsd/bin/hooks/gsd-check-update-worker.js +108 -0
  12. package/.agent/skills/gsd/bin/hooks/gsd-check-update.js +14 -89
  13. package/.agent/skills/gsd/bin/hooks/gsd-context-monitor.js +34 -5
  14. package/.agent/skills/gsd/bin/hooks/gsd-phase-boundary.sh +1 -0
  15. package/.agent/skills/gsd/bin/hooks/gsd-prompt-guard.js +1 -1
  16. package/.agent/skills/gsd/bin/hooks/gsd-read-guard.js +6 -1
  17. package/.agent/skills/gsd/bin/hooks/gsd-session-state.sh +1 -0
  18. package/.agent/skills/gsd/bin/hooks/gsd-statusline.js +150 -16
  19. package/.agent/skills/gsd/bin/hooks/gsd-validate-commit.sh +1 -0
  20. package/.agent/skills/gsd/bin/hooks/gsd-workflow-guard.js +1 -1
  21. package/.agent/skills/gsd/bin/lib/audit.cjs +757 -0
  22. package/.agent/skills/gsd/bin/lib/commands.cjs +17 -7
  23. package/.agent/skills/gsd/bin/lib/config.cjs +66 -20
  24. package/.agent/skills/gsd/bin/lib/core.cjs +212 -12
  25. package/.agent/skills/gsd/bin/lib/frontmatter.cjs +6 -8
  26. package/.agent/skills/gsd/bin/lib/graphify.cjs +494 -0
  27. package/.agent/skills/gsd/bin/lib/gsd2-import.cjs +511 -0
  28. package/.agent/skills/gsd/bin/lib/init.cjs +371 -18
  29. package/.agent/skills/gsd/bin/lib/intel.cjs +9 -30
  30. package/.agent/skills/gsd/bin/lib/milestone.cjs +18 -17
  31. package/.agent/skills/gsd/bin/lib/model-profiles.cjs +1 -0
  32. package/.agent/skills/gsd/bin/lib/phase.cjs +225 -98
  33. package/.agent/skills/gsd/bin/lib/profile-output.cjs +17 -5
  34. package/.agent/skills/gsd/bin/lib/roadmap.cjs +12 -5
  35. package/.agent/skills/gsd/bin/lib/state.cjs +394 -129
  36. package/.agent/skills/gsd/bin/lib/template.cjs +8 -4
  37. package/.agent/skills/gsd/bin/lib/uat.cjs +2 -1
  38. package/.agent/skills/gsd/bin/lib/verify.cjs +111 -42
  39. package/.agent/skills/gsd/migration_report.md +2 -2
  40. package/.agent/skills/gsd/references/agents/gsd-advisor-researcher.md +23 -0
  41. package/.agent/skills/gsd/references/agents/gsd-ai-researcher.md +133 -0
  42. package/.agent/skills/gsd/references/agents/gsd-code-fixer.md +11 -10
  43. package/.agent/skills/gsd/references/agents/gsd-code-reviewer.md +2 -2
  44. package/.agent/skills/gsd/references/agents/gsd-codebase-mapper.md +13 -2
  45. package/.agent/skills/gsd/references/agents/gsd-debug-session-manager.md +314 -0
  46. package/.agent/skills/gsd/references/agents/gsd-debugger.md +147 -76
  47. package/.agent/skills/gsd/references/agents/gsd-doc-verifier.md +1 -1
  48. package/.agent/skills/gsd/references/agents/gsd-doc-writer.md +615 -602
  49. package/.agent/skills/gsd/references/agents/gsd-domain-researcher.md +153 -0
  50. package/.agent/skills/gsd/references/agents/gsd-eval-auditor.md +175 -0
  51. package/.agent/skills/gsd/references/agents/gsd-eval-planner.md +154 -0
  52. package/.agent/skills/gsd/references/agents/gsd-executor.md +108 -38
  53. package/.agent/skills/gsd/references/agents/gsd-framework-selector.md +160 -0
  54. package/.agent/skills/gsd/references/agents/gsd-integration-checker.md +454 -443
  55. package/.agent/skills/gsd/references/agents/gsd-intel-updater.md +40 -20
  56. package/.agent/skills/gsd/references/agents/gsd-nyquist-auditor.md +187 -176
  57. package/.agent/skills/gsd/references/agents/gsd-pattern-mapper.md +335 -0
  58. package/.agent/skills/gsd/references/agents/gsd-phase-researcher.md +112 -13
  59. package/.agent/skills/gsd/references/agents/gsd-plan-checker.md +104 -10
  60. package/.agent/skills/gsd/references/agents/gsd-planner.md +125 -167
  61. package/.agent/skills/gsd/references/agents/gsd-project-researcher.md +25 -2
  62. package/.agent/skills/gsd/references/agents/gsd-research-synthesizer.md +3 -3
  63. package/.agent/skills/gsd/references/agents/gsd-roadmapper.md +12 -1
  64. package/.agent/skills/gsd/references/agents/gsd-security-auditor.md +139 -128
  65. package/.agent/skills/gsd/references/agents/gsd-ui-auditor.md +3 -3
  66. package/.agent/skills/gsd/references/agents/gsd-ui-checker.md +11 -2
  67. package/.agent/skills/gsd/references/agents/gsd-ui-researcher.md +27 -4
  68. package/.agent/skills/gsd/references/agents/gsd-verifier.md +13 -19
  69. package/.agent/skills/gsd/references/commands/atomic/add-todo.md +2 -2
  70. package/.agent/skills/gsd/references/commands/atomic/check-todos.md +2 -2
  71. package/.agent/skills/gsd/references/commands/atomic/cleanup.md +2 -2
  72. package/.agent/skills/gsd/references/commands/atomic/do.md +2 -2
  73. package/.agent/skills/gsd/references/commands/atomic/help.md +2 -2
  74. package/.agent/skills/gsd/references/commands/atomic/join-discord.md +2 -2
  75. package/.agent/skills/gsd/references/commands/atomic/note.md +2 -2
  76. package/.agent/skills/gsd/references/commands/atomic/session-report.md +2 -2
  77. package/.agent/skills/gsd/references/commands/atomic/ship.md +2 -2
  78. package/.agent/skills/gsd/references/commands/atomic/stats.md +2 -2
  79. package/.agent/skills/gsd/references/commands/atomic/thread.md +141 -41
  80. package/.agent/skills/gsd/references/commands/atomic/undo.md +2 -2
  81. package/.agent/skills/gsd/references/commands/milestone/add-backlog.md +15 -12
  82. package/.agent/skills/gsd/references/commands/milestone/audit-milestone.md +2 -2
  83. package/.agent/skills/gsd/references/commands/milestone/complete-milestone.md +2 -2
  84. package/.agent/skills/gsd/references/commands/milestone/milestone-summary.md +2 -2
  85. package/.agent/skills/gsd/references/commands/milestone/new-milestone.md +2 -2
  86. package/.agent/skills/gsd/references/commands/milestone/plan-milestone-gaps.md +2 -2
  87. package/.agent/skills/gsd/references/commands/milestone/plant-seed.md +2 -2
  88. package/.agent/skills/gsd/references/commands/milestone/review-backlog.md +4 -4
  89. package/.agent/skills/gsd/references/commands/misc/ai-integration-phase.md +38 -0
  90. package/.agent/skills/gsd/references/commands/misc/audit-fix.md +2 -2
  91. package/.agent/skills/gsd/references/commands/misc/audit-uat.md +2 -2
  92. package/.agent/skills/gsd/references/commands/misc/eval-review.md +34 -0
  93. package/.agent/skills/gsd/references/commands/misc/extract_learnings.md +24 -0
  94. package/.agent/skills/gsd/references/commands/misc/from-gsd2.md +49 -0
  95. package/.agent/skills/gsd/references/commands/misc/graphify.md +203 -0
  96. package/.agent/skills/gsd/references/commands/misc/inbox.md +40 -0
  97. package/.agent/skills/gsd/references/commands/misc/next.md +5 -3
  98. package/.agent/skills/gsd/references/commands/misc/progress.md +4 -3
  99. package/.agent/skills/gsd/references/commands/misc/sketch-wrap-up.md +33 -0
  100. package/.agent/skills/gsd/references/commands/misc/sketch.md +47 -0
  101. package/.agent/skills/gsd/references/commands/misc/spec-phase.md +64 -0
  102. package/.agent/skills/gsd/references/commands/misc/spike-wrap-up.md +33 -0
  103. package/.agent/skills/gsd/references/commands/misc/spike.md +43 -0
  104. package/.agent/skills/gsd/references/commands/misc/verify-work.md +2 -2
  105. package/.agent/skills/gsd/references/commands/phase/add-phase.md +2 -2
  106. package/.agent/skills/gsd/references/commands/phase/add-tests.md +2 -2
  107. package/.agent/skills/gsd/references/commands/phase/discuss-phase.md +5 -5
  108. package/.agent/skills/gsd/references/commands/phase/execute-phase.md +4 -4
  109. package/.agent/skills/gsd/references/commands/phase/insert-phase.md +2 -2
  110. package/.agent/skills/gsd/references/commands/phase/list-phase-assumptions.md +2 -2
  111. package/.agent/skills/gsd/references/commands/phase/plan-phase.md +3 -3
  112. package/.agent/skills/gsd/references/commands/phase/remove-phase.md +2 -2
  113. package/.agent/skills/gsd/references/commands/phase/research-phase.md +5 -5
  114. package/.agent/skills/gsd/references/commands/phase/secure-phase.md +2 -2
  115. package/.agent/skills/gsd/references/commands/phase/ui-phase.md +2 -2
  116. package/.agent/skills/gsd/references/commands/phase/ui-review.md +2 -2
  117. package/.agent/skills/gsd/references/commands/phase/validate-phase.md +2 -2
  118. package/.agent/skills/gsd/references/commands/phase/workstreams.md +9 -9
  119. package/.agent/skills/gsd/references/commands/project/analyze-dependencies.md +2 -2
  120. package/.agent/skills/gsd/references/commands/project/explore.md +2 -2
  121. package/.agent/skills/gsd/references/commands/project/import.md +2 -2
  122. package/.agent/skills/gsd/references/commands/project/intel.md +10 -10
  123. package/.agent/skills/gsd/references/commands/project/list-workspaces.md +2 -2
  124. package/.agent/skills/gsd/references/commands/project/map-codebase.md +2 -2
  125. package/.agent/skills/gsd/references/commands/project/new-project.md +2 -2
  126. package/.agent/skills/gsd/references/commands/project/new-workspace.md +2 -2
  127. package/.agent/skills/gsd/references/commands/project/remove-workspace.md +2 -2
  128. package/.agent/skills/gsd/references/commands/project/scan.md +2 -2
  129. package/.agent/skills/gsd/references/commands/system/autonomous.md +4 -3
  130. package/.agent/skills/gsd/references/commands/system/code-review-fix.md +3 -3
  131. package/.agent/skills/gsd/references/commands/system/code-review.md +3 -3
  132. package/.agent/skills/gsd/references/commands/system/debug.md +177 -100
  133. package/.agent/skills/gsd/references/commands/system/docs-update.md +2 -2
  134. package/.agent/skills/gsd/references/commands/system/fast.md +2 -2
  135. package/.agent/skills/gsd/references/commands/system/forensics.md +2 -2
  136. package/.agent/skills/gsd/references/commands/system/gsd-tools.md +153 -6
  137. package/.agent/skills/gsd/references/commands/system/health.md +2 -2
  138. package/.agent/skills/gsd/references/commands/system/manager.md +3 -3
  139. package/.agent/skills/gsd/references/commands/system/pause-work.md +2 -2
  140. package/.agent/skills/gsd/references/commands/system/pr-branch.md +2 -2
  141. package/.agent/skills/gsd/references/commands/system/profile-user.md +2 -2
  142. package/.agent/skills/gsd/references/commands/system/quick.md +127 -3
  143. package/.agent/skills/gsd/references/commands/system/reapply-patches.md +45 -6
  144. package/.agent/skills/gsd/references/commands/system/resume-work.md +2 -2
  145. package/.agent/skills/gsd/references/commands/system/review.md +6 -4
  146. package/.agent/skills/gsd/references/commands/system/set-profile.md +3 -3
  147. package/.agent/skills/gsd/references/commands/system/settings.md +2 -2
  148. package/.agent/skills/gsd/references/commands/system/update.md +2 -2
  149. package/.agent/skills/gsd/references/docs/ai-evals.md +156 -0
  150. package/.agent/skills/gsd/references/docs/ai-frameworks.md +186 -0
  151. package/.agent/skills/gsd/references/docs/artifact-types.md +18 -0
  152. package/.agent/skills/gsd/references/docs/autonomous-smart-discuss.md +277 -0
  153. package/.agent/skills/gsd/references/docs/checkpoints.md +30 -0
  154. package/.agent/skills/gsd/references/docs/common-bug-patterns.md +49 -49
  155. package/.agent/skills/gsd/references/docs/continuation-format.md +11 -7
  156. package/.agent/skills/gsd/references/docs/debugger-philosophy.md +76 -0
  157. package/.agent/skills/gsd/references/docs/decimal-phase-calculation.md +64 -64
  158. package/.agent/skills/gsd/references/docs/executor-examples.md +110 -0
  159. package/.agent/skills/gsd/references/docs/git-integration.md +4 -4
  160. package/.agent/skills/gsd/references/docs/git-planning-commit.md +40 -38
  161. package/.agent/skills/gsd/references/docs/ios-scaffold.md +123 -0
  162. package/.agent/skills/gsd/references/docs/mandatory-initial-read.md +2 -0
  163. package/.agent/skills/gsd/references/docs/phase-argument-parsing.md +61 -61
  164. package/.agent/skills/gsd/references/docs/planner-antipatterns.md +89 -0
  165. package/.agent/skills/gsd/references/docs/planner-revision.md +87 -87
  166. package/.agent/skills/gsd/references/docs/planner-source-audit.md +73 -0
  167. package/.agent/skills/gsd/references/docs/planning-config.md +33 -8
  168. package/.agent/skills/gsd/references/docs/project-skills-discovery.md +19 -0
  169. package/.agent/skills/gsd/references/docs/sketch-interactivity.md +41 -0
  170. package/.agent/skills/gsd/references/docs/sketch-theme-system.md +94 -0
  171. package/.agent/skills/gsd/references/docs/sketch-tooling.md +45 -0
  172. package/.agent/skills/gsd/references/docs/sketch-variant-patterns.md +81 -0
  173. package/.agent/skills/gsd/references/docs/tdd.md +67 -0
  174. package/.agent/skills/gsd/references/docs/universal-anti-patterns.md +5 -0
  175. package/.agent/skills/gsd/references/docs/workstream-flag.md +11 -11
  176. package/.agent/skills/gsd/references/mapping.md +1 -1
  177. package/.agent/skills/gsd/references/workflows/add-phase.md +112 -112
  178. package/.agent/skills/gsd/references/workflows/add-tests.md +6 -3
  179. package/.agent/skills/gsd/references/workflows/add-todo.md +5 -3
  180. package/.agent/skills/gsd/references/workflows/ai-integration-phase.md +284 -0
  181. package/.agent/skills/gsd/references/workflows/audit-fix.md +157 -157
  182. package/.agent/skills/gsd/references/workflows/audit-milestone.md +340 -340
  183. package/.agent/skills/gsd/references/workflows/audit-uat.md +109 -109
  184. package/.agent/skills/gsd/references/workflows/autonomous.md +20 -288
  185. package/.agent/skills/gsd/references/workflows/check-todos.md +4 -2
  186. package/.agent/skills/gsd/references/workflows/cleanup.md +3 -1
  187. package/.agent/skills/gsd/references/workflows/code-review-fix.md +497 -497
  188. package/.agent/skills/gsd/references/workflows/code-review.md +515 -515
  189. package/.agent/skills/gsd/references/workflows/complete-milestone.md +97 -24
  190. package/.agent/skills/gsd/references/workflows/diagnose-issues.md +238 -238
  191. package/.agent/skills/gsd/references/workflows/discovery-phase.md +2 -0
  192. package/.agent/skills/gsd/references/workflows/discuss-phase-assumptions.md +11 -11
  193. package/.agent/skills/gsd/references/workflows/discuss-phase.md +143 -19
  194. package/.agent/skills/gsd/references/workflows/do.md +8 -2
  195. package/.agent/skills/gsd/references/workflows/docs-update.md +5 -3
  196. package/.agent/skills/gsd/references/workflows/eval-review.md +155 -0
  197. package/.agent/skills/gsd/references/workflows/execute-phase.md +338 -54
  198. package/.agent/skills/gsd/references/workflows/execute-plan.md +80 -104
  199. package/.agent/skills/gsd/references/workflows/explore.md +3 -1
  200. package/.agent/skills/gsd/references/workflows/extract_learnings.md +232 -0
  201. package/.agent/skills/gsd/references/workflows/forensics.md +3 -3
  202. package/.agent/skills/gsd/references/workflows/health.md +2 -2
  203. package/.agent/skills/gsd/references/workflows/help.md +59 -1
  204. package/.agent/skills/gsd/references/workflows/import.md +3 -1
  205. package/.agent/skills/gsd/references/workflows/inbox.md +387 -384
  206. package/.agent/skills/gsd/references/workflows/insert-phase.md +130 -130
  207. package/.agent/skills/gsd/references/workflows/list-workspaces.md +56 -56
  208. package/.agent/skills/gsd/references/workflows/manager.md +5 -3
  209. package/.agent/skills/gsd/references/workflows/map-codebase.md +19 -5
  210. package/.agent/skills/gsd/references/workflows/milestone-summary.md +6 -6
  211. package/.agent/skills/gsd/references/workflows/new-milestone.md +63 -9
  212. package/.agent/skills/gsd/references/workflows/new-project.md +126 -22
  213. package/.agent/skills/gsd/references/workflows/new-workspace.md +6 -4
  214. package/.agent/skills/gsd/references/workflows/next.md +220 -153
  215. package/.agent/skills/gsd/references/workflows/note.md +2 -0
  216. package/.agent/skills/gsd/references/workflows/pause-work.md +11 -7
  217. package/.agent/skills/gsd/references/workflows/plan-milestone-gaps.md +273 -273
  218. package/.agent/skills/gsd/references/workflows/plan-phase.md +281 -62
  219. package/.agent/skills/gsd/references/workflows/plant-seed.md +4 -1
  220. package/.agent/skills/gsd/references/workflows/pr-branch.md +41 -13
  221. package/.agent/skills/gsd/references/workflows/profile-user.md +15 -13
  222. package/.agent/skills/gsd/references/workflows/progress.md +133 -21
  223. package/.agent/skills/gsd/references/workflows/quick.md +67 -27
  224. package/.agent/skills/gsd/references/workflows/remove-phase.md +155 -155
  225. package/.agent/skills/gsd/references/workflows/remove-workspace.md +4 -2
  226. package/.agent/skills/gsd/references/workflows/research-phase.md +3 -3
  227. package/.agent/skills/gsd/references/workflows/resume-project.md +3 -3
  228. package/.agent/skills/gsd/references/workflows/review.md +71 -8
  229. package/.agent/skills/gsd/references/workflows/scan.md +102 -102
  230. package/.agent/skills/gsd/references/workflows/secure-phase.md +7 -5
  231. package/.agent/skills/gsd/references/workflows/settings.md +24 -7
  232. package/.agent/skills/gsd/references/workflows/ship.md +71 -6
  233. package/.agent/skills/gsd/references/workflows/sketch-wrap-up.md +283 -0
  234. package/.agent/skills/gsd/references/workflows/sketch.md +263 -0
  235. package/.agent/skills/gsd/references/workflows/spec-phase.md +262 -0
  236. package/.agent/skills/gsd/references/workflows/spike-wrap-up.md +273 -0
  237. package/.agent/skills/gsd/references/workflows/spike.md +270 -0
  238. package/.agent/skills/gsd/references/workflows/stats.md +60 -60
  239. package/.agent/skills/gsd/references/workflows/transition.md +671 -671
  240. package/.agent/skills/gsd/references/workflows/ui-phase.md +33 -12
  241. package/.agent/skills/gsd/references/workflows/ui-review.md +6 -4
  242. package/.agent/skills/gsd/references/workflows/undo.md +3 -1
  243. package/.agent/skills/gsd/references/workflows/update.md +113 -2
  244. package/.agent/skills/gsd/references/workflows/validate-phase.md +7 -5
  245. package/.agent/skills/gsd/references/workflows/verify-phase.md +93 -10
  246. package/.agent/skills/gsd/references/workflows/verify-work.md +50 -10
  247. package/.agent/skills/gsd-converter/references/mapping.md +1 -1
  248. package/.agent/skills/gsd-converter/scripts/convert.py +36 -17
  249. package/.agent/skills/gsd-converter/scripts/regression_test.py +68 -33
  250. package/README.md +3 -2
  251. package/package.json +4 -2
  252. package/.agent/skills/release-manager/SKILL.md +0 -162
  253. package/.agent/skills/release-manager/bin/LICENSE +0 -21
  254. package/.agent/skills/release-manager/bin/gh.exe +0 -0
  255. package/.agent/skills/release-manager/references/update_kb_from_fixes.md +0 -29
  256. package/.agent/skills/release-manager/scripts/release.ps1 +0 -222
  257. package/.agent/skills/selectpaste-update/SKILL.md +0 -46
  258. package/.agent/skills/selectpaste-update/scripts/sync-commands.py +0 -317
@@ -1,109 +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
- .agent/skills/gsd/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>
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=$(gsd-sdk query 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>
@@ -48,7 +48,7 @@ When `--interactive` is set, discuss runs inline with questions (not auto-answer
48
48
  Bootstrap via milestone-level init:
49
49
 
50
50
  ```bash
51
- .agent/skills/gsd/bin/gsd-tools.cjs" init milestone-op)
51
+ INIT=$(gsd-sdk query init.milestone-op)
52
52
  if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
53
53
  ```
54
54
 
@@ -82,7 +82,7 @@ If `INTERACTIVE` is set, display: `Mode: Interactive (discuss inline, plan+execu
82
82
  Run phase discovery:
83
83
 
84
84
  ```bash
85
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap analyze)
85
+ ROADMAP=$(gsd-sdk query roadmap.analyze)
86
86
  ```
87
87
 
88
88
  Parse the JSON `phases` array.
@@ -141,7 +141,7 @@ Exit cleanly.
141
141
  **Fetch details for each phase:**
142
142
 
143
143
  ```bash
144
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap get-phase ${PHASE_NUM})
144
+ DETAIL=$(gsd-sdk query roadmap.get-phase ${PHASE_NUM})
145
145
  ```
146
146
 
147
147
  Extract `phase_name`, `goal`, `success_criteria` from each. Store for use in execute_phase and transition messages.
@@ -169,7 +169,7 @@ Where N = current phase number (from the ROADMAP, e.g., 63), T = total milestone
169
169
  Check if CONTEXT.md already exists for this phase:
170
170
 
171
171
  ```bash
172
- .agent/skills/gsd/bin/gsd-tools.cjs" init phase-op ${PHASE_NUM})
172
+ PHASE_STATE=$(gsd-sdk query init.phase-op ${PHASE_NUM})
173
173
  ```
174
174
 
175
175
  Parse `has_context` from JSON.
@@ -185,7 +185,7 @@ Proceed to 3b.
185
185
  **If has_context is false:** Check if discuss is disabled via settings:
186
186
 
187
187
  ```bash
188
- .agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.skip_discuss 2>/dev/null || echo "false")
188
+ SKIP_DISCUSS=$(gsd-sdk query config-get workflow.skip_discuss 2>/dev/null || echo "false")
189
189
  ```
190
190
 
191
191
  **If SKIP_DISCUSS is `true`:** Skip discuss entirely — the ROADMAP phase description is the spec. Display:
@@ -197,7 +197,7 @@ Phase ${PHASE_NUM}: Discuss skipped (workflow.skip_discuss=true) — using ROADM
197
197
  Write a minimal CONTEXT.md so downstream plan-phase has valid input. Get phase details:
198
198
 
199
199
  ```bash
200
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap get-phase ${PHASE_NUM})
200
+ DETAIL=$(gsd-sdk query roadmap.get-phase ${PHASE_NUM})
201
201
  ```
202
202
 
203
203
  Extract `goal` and `requirements` from JSON. Write `${phase_dir}/${padded_phase}-CONTEXT.md` with:
@@ -249,7 +249,7 @@ None — discuss phase skipped.
249
249
  Commit the minimal context:
250
250
 
251
251
  ```bash
252
- .agent/skills/gsd/bin/gsd-tools.cjs" commit "docs(${PADDED_PHASE}): auto-generated context (discuss skipped)" --files "${phase_dir}/${padded_phase}-CONTEXT.md"
252
+ gsd-sdk query commit "docs(${PADDED_PHASE}): auto-generated context (discuss skipped)" "${phase_dir}/${padded_phase}-CONTEXT.md"
253
253
  ```
254
254
 
255
255
  Proceed to 3b.
@@ -270,7 +270,7 @@ Skill(skill="gsd:discuss-phase", args="${PHASE_NUM}")
270
270
  After discuss completes (either mode), verify context was written:
271
271
 
272
272
  ```bash
273
- .agent/skills/gsd/bin/gsd-tools.cjs" init phase-op ${PHASE_NUM})
273
+ PHASE_STATE=$(gsd-sdk query init.phase-op ${PHASE_NUM})
274
274
  ```
275
275
 
276
276
  Check `has_context`. If false → go to handle_blocker: "Discuss for phase ${PHASE_NUM} did not produce CONTEXT.md."
@@ -280,7 +280,7 @@ Check `has_context`. If false → go to handle_blocker: "Discuss for phase ${PHA
280
280
  Check if this phase has frontend indicators and whether a UI-SPEC already exists:
281
281
 
282
282
  ```bash
283
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap get-phase ${PHASE_NUM} 2>/dev/null)
283
+ PHASE_SECTION=$(gsd-sdk query roadmap.get-phase ${PHASE_NUM} 2>/dev/null)
284
284
  echo "$PHASE_SECTION" | grep -iE "UI|interface|frontend|component|layout|page|screen|view|form|dashboard|widget" > /dev/null 2>&1
285
285
  HAS_UI=$?
286
286
  UI_SPEC_FILE=$(ls "${PHASE_DIR}"/*-UI-SPEC.md 2>/dev/null | head -1)
@@ -289,7 +289,7 @@ UI_SPEC_FILE=$(ls "${PHASE_DIR}"/*-UI-SPEC.md 2>/dev/null | head -1)
289
289
  Check if UI phase workflow is enabled:
290
290
 
291
291
  ```bash
292
- .agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.ui_phase 2>/dev/null || echo "true")
292
+ UI_PHASE_CFG=$(gsd-sdk query config-get workflow.ui_phase 2>/dev/null || echo "true")
293
293
  ```
294
294
 
295
295
  **If `HAS_UI` is 0 (frontend indicators found) AND `UI_SPEC_FILE` is empty (no UI-SPEC exists) AND `UI_PHASE_CFG` is not `false`:**
@@ -362,7 +362,7 @@ Auto-invoke code review and fix chain. Autonomous mode chains both review and fi
362
362
 
363
363
  **Config gate:**
364
364
  ```bash
365
- .agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.code_review 2>/dev/null || echo "true")
365
+ CODE_REVIEW_ENABLED=$(gsd-sdk query config-get workflow.code_review 2>/dev/null || echo "true")
366
366
  ```
367
367
  If `"false"`: display "Code review skipped (workflow.code_review=false)" and proceed to 3d.
368
368
 
@@ -390,7 +390,7 @@ VERIFY_STATUS=$(grep "^status:" "${PHASE_DIR}"/*-VERIFICATION.md 2>/dev/null | h
390
390
  Where `PHASE_DIR` comes from the `init phase-op` call already made in step 3a. If the variable is not in scope, re-fetch:
391
391
 
392
392
  ```bash
393
- .agent/skills/gsd/bin/gsd-tools.cjs" init phase-op ${PHASE_NUM})
393
+ PHASE_STATE=$(gsd-sdk query init.phase-op ${PHASE_NUM})
394
394
  ```
395
395
 
396
396
  Parse `phase_dir` from the JSON.
@@ -412,6 +412,8 @@ Proceed to iterate step.
412
412
 
413
413
  Read the human_verification section from VERIFICATION.md to get the count and items requiring manual testing.
414
414
 
415
+
416
+ **Text mode (`workflow.text_mode: true` in config or `--text` flag):** Set `TEXT_MODE=true` if `--text` is present in `$ARGUMENTS` OR `text_mode` from init JSON is `true`. When TEXT_MODE is active, replace every `AskUserQuestion` call with a plain-text numbered list and ask the user to type their choice number. This is required for non-Antigravity runtimes (OpenAI Codex, Gemini CLI, etc.) where `AskUserQuestion` is not available.
415
417
  Display the items, then ask user via AskUserQuestion:
416
418
  - **question:** "Phase ${PHASE_NUM} has items needing manual verification. Validate now or continue to next phase?"
417
419
  - **options:** "Validate now" / "Continue without validation"
@@ -484,7 +486,7 @@ UI_SPEC_FILE=$(ls "${PHASE_DIR}"/*-UI-SPEC.md 2>/dev/null | head -1)
484
486
  Check if UI review is enabled:
485
487
 
486
488
  ```bash
487
- .agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.ui_review 2>/dev/null || echo "true")
489
+ UI_REVIEW_CFG=$(gsd-sdk query config-get workflow.ui_review 2>/dev/null || echo "true")
488
490
  ```
489
491
 
490
492
  **If `UI_SPEC_FILE` is not empty AND `UI_REVIEW_CFG` is not `false`:**
@@ -509,283 +511,13 @@ Display the review result summary (score from UI-REVIEW.md if produced). Continu
509
511
 
510
512
  ## Smart Discuss
511
513
 
512
- Run smart discuss for the current phase. Proposes grey area answers in batch tables — the user accepts or overrides per area. Produces identical CONTEXT.md output to regular discuss-phase.
513
-
514
- > **Note:** Smart discuss is an autonomous-optimized variant of the `gsd-discuss-phase` skill. It produces identical CONTEXT.md output but uses batch table proposals instead of sequential questioning. The original `gsd-discuss-phase` skill remains unchanged (per CTRL-03). Future milestones may extract this to a separate skill file.
515
-
516
- **Inputs:** `PHASE_NUM` from execute_phase. Run init to get phase paths:
517
-
518
- ```bash
519
- .agent/skills/gsd/bin/gsd-tools.cjs" init phase-op ${PHASE_NUM})
520
- ```
521
-
522
- Parse from JSON: `phase_dir`, `phase_slug`, `padded_phase`, `phase_name`.
523
-
524
- ---
525
-
526
- ### Sub-step 1: Load prior context
527
-
528
- Read project-level and prior phase context to avoid re-asking decided questions.
529
-
530
- **Read project files:**
531
-
532
- ```bash
533
- cat .planning/PROJECT.md 2>/dev/null || true
534
- cat .planning/REQUIREMENTS.md 2>/dev/null || true
535
- cat .planning/STATE.md 2>/dev/null || true
536
- ```
537
-
538
- Extract from these:
539
- - **PROJECT.md** — Vision, principles, non-negotiables, user preferences
540
- - **REQUIREMENTS.md** — Acceptance criteria, constraints, must-haves vs nice-to-haves
541
- - **STATE.md** — Current progress, decisions logged so far
542
-
543
- **Read all prior CONTEXT.md files:**
544
-
545
- ```bash
546
- (find .planning/phases -name "*-CONTEXT.md" 2>/dev/null || true) | sort
547
- ```
548
-
549
- For each CONTEXT.md where phase number < current phase:
550
- - Read the `<decisions>` section — these are locked preferences
551
- - Read `<specifics>` — particular references or "I want it like X" moments
552
- - Note patterns (e.g., "user consistently prefers minimal UI", "user rejected verbose output")
553
-
554
- **Build internal prior_decisions context** (do not write to file):
555
-
556
- ```
557
- <prior_decisions>
558
- ## Project-Level
559
- - [Key principle or constraint from PROJECT.md]
560
- - [Requirement affecting this phase from REQUIREMENTS.md]
561
-
562
- ## From Prior Phases
563
- ### Phase N: [Name]
564
- - [Decision relevant to current phase]
565
- - [Preference that establishes a pattern]
566
- </prior_decisions>
567
- ```
568
-
569
- If no prior context exists, continue without — expected for early phases.
570
-
571
- ---
572
-
573
- ### Sub-step 2: Scout Codebase
574
-
575
- Lightweight codebase scan to inform grey area identification and proposals. Keep under ~5% context.
576
-
577
- **Check for existing codebase maps:**
578
-
579
- ```bash
580
- ls .planning/codebase/*.md 2>/dev/null || true
581
- ```
582
-
583
- **If codebase maps exist:** Read the most relevant ones (CONVENTIONS.md, STRUCTURE.md, STACK.md based on phase type). Extract reusable components, established patterns, integration points. Skip to building context below.
584
-
585
- **If no codebase maps, do targeted grep:**
586
-
587
- Extract key terms from the phase goal. Search for related files:
588
-
589
- ```bash
590
- grep -rl "{term1}\|{term2}" src/ app/ --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" 2>/dev/null | head -10 || true
591
- ls src/components/ src/hooks/ src/lib/ src/utils/ 2>/dev/null || true
592
- ```
593
-
594
- Read the 3-5 most relevant files to understand existing patterns.
595
-
596
- **Build internal codebase_context** (do not write to file):
597
- - **Reusable assets** — existing components, hooks, utilities usable in this phase
598
- - **Established patterns** — how the codebase does state management, styling, data fetching
599
- - **Integration points** — where new code connects (routes, nav, providers)
600
-
601
- ---
602
-
603
- ### Sub-step 3: Analyze Phase and Generate Proposals
604
-
605
- **Get phase details:**
606
-
607
- ```bash
608
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap get-phase ${PHASE_NUM})
609
- ```
610
-
611
- Extract `goal`, `requirements`, `success_criteria` from the JSON response.
612
-
613
- **Infrastructure detection — check FIRST before generating grey areas:**
614
-
615
- A phase is pure infrastructure when ALL of these are true:
616
- 1. Goal keywords match: "scaffolding", "plumbing", "setup", "configuration", "migration", "refactor", "rename", "restructure", "upgrade", "infrastructure"
617
- 2. AND success criteria are all technical: "file exists", "test passes", "config valid", "command runs"
618
- 3. AND no user-facing behavior is described (no "users can", "displays", "shows", "presents")
619
-
620
- **If infrastructure-only:** Skip Sub-step 4. Jump directly to Sub-step 5 with minimal CONTEXT.md. Display:
621
-
622
- ```
623
- Phase ${PHASE_NUM}: Infrastructure phase — skipping discuss, writing minimal context.
624
- ```
625
-
626
- Use these defaults for the CONTEXT.md:
627
- - `<domain>`: Phase boundary from ROADMAP goal
628
- - `<decisions>`: Single "### Antigravity's Discretion" subsection — "All implementation choices are at Antigravity's discretion — pure infrastructure phase"
629
- - `<code_context>`: Whatever the codebase scout found
630
- - `<specifics>`: "No specific requirements — infrastructure phase"
631
- - `<deferred>`: "None"
632
-
633
- **If NOT infrastructure — generate grey area proposals:**
634
-
635
- Determine domain type from the phase goal:
636
- - Something users **SEE** → visual: layout, interactions, states, density
637
- - Something users **CALL** → interface: contracts, responses, errors, auth
638
- - Something users **RUN** → execution: invocation, output, behavior modes, flags
639
- - Something users **READ** → content: structure, tone, depth, flow
640
- - Something being **ORGANIZED** → organization: criteria, grouping, exceptions, naming
641
-
642
- Check prior_decisions — skip grey areas already decided in prior phases.
643
-
644
- Generate **3-4 grey areas** with **~4 questions each**. For each question:
645
- - **Pre-select a recommended answer** based on: prior decisions (consistency), codebase patterns (reuse), domain conventions (standard approaches), ROADMAP success criteria
646
- - Generate **1-2 alternatives** per question
647
- - **Annotate** with prior decision context ("You decided X in Phase N") and code context ("Component Y exists with Z variants") where relevant
648
-
649
- ---
650
-
651
- ### Sub-step 4: Present Proposals Per Area
652
-
653
- Present grey areas **one at a time**. For each area (M of N):
654
-
655
- Display a table:
656
-
657
- ```
658
- ### Grey Area {M}/{N}: {Area Name}
659
-
660
- | # | Question | ✅ Recommended | Alternative(s) |
661
- |---|----------|---------------|-----------------|
662
- | 1 | {question} | {answer} — {rationale} | {alt1}; {alt2} |
663
- | 2 | {question} | {answer} — {rationale} | {alt1} |
664
- | 3 | {question} | {answer} — {rationale} | {alt1}; {alt2} |
665
- | 4 | {question} | {answer} — {rationale} | {alt1} |
666
- ```
514
+ > Full instructions are in `get-shit-done/references/autonomous-smart-discuss.md`. Read that file now and follow it exactly.
667
515
 
668
- Then prompt the user via **AskUserQuestion**:
669
- - **header:** "Area {M}/{N}"
670
- - **question:** "Accept these answers for {Area Name}?"
671
- - **options:** Build dynamically — always "Accept all" first, then "Change Q1" through "Change QN" for each question (up to 4), then "Discuss deeper" last. Cap at 6 explicit options max (AskUserQuestion adds "Other" automatically).
516
+ Smart discuss is an autonomous-optimized variant of `gsd-discuss-phase`. It proposes grey area answers in batch tables — the user accepts or overrides per area — and writes an identical CONTEXT.md to what discuss-phase produces.
672
517
 
673
- **On "Accept all":** Record all recommended answers for this area. Move to next area.
518
+ **Inputs:** `PHASE_NUM` from execute_phase.
674
519
 
675
- **On "Change QN":** Use AskUserQuestion with the alternatives for that specific question:
676
- - **header:** "{Area Name}"
677
- - **question:** "Q{N}: {question text}"
678
- - **options:** List the 1-2 alternatives plus "You decide" (maps to Antigravity's Discretion)
679
-
680
- Record the user's choice. Re-display the updated table with the change reflected. Re-present the full acceptance prompt so the user can make additional changes or accept.
681
-
682
- **On "Discuss deeper":** Switch to interactive mode for this area only — ask questions one at a time using AskUserQuestion with 2-3 concrete options per question plus "You decide". After 4 questions, prompt:
683
- - **header:** "{Area Name}"
684
- - **question:** "More questions about {area name}, or move to next?"
685
- - **options:** "More questions" / "Next area"
686
-
687
- If "More questions", ask 4 more. If "Next area", display final summary table of captured answers for this area and move on.
688
-
689
- **On "Other" (free text):** Interpret as either a specific change request or general feedback. Incorporate into the area's decisions, re-display updated table, re-present acceptance prompt.
690
-
691
- **Scope creep handling:** If user mentions something outside the phase domain:
692
-
693
- ```
694
- "{Feature} sounds like a new capability — that belongs in its own phase.
695
- I'll note it as a deferred idea.
696
-
697
- Back to {current area}: {return to current question}"
698
- ```
699
-
700
- Track deferred ideas internally for inclusion in CONTEXT.md.
701
-
702
- ---
703
-
704
- ### Sub-step 5: Write CONTEXT.md
705
-
706
- After all areas are resolved (or infrastructure skip), write the CONTEXT.md file.
707
-
708
- **File path:** `${phase_dir}/${padded_phase}-CONTEXT.md`
709
-
710
- Use **exactly** this structure (identical to discuss-phase output):
711
-
712
- ```markdown
713
- # Phase {PHASE_NUM}: {Phase Name} - Context
714
-
715
- **Gathered:** {date}
716
- **Status:** Ready for planning
717
-
718
- <domain>
719
- ## Phase Boundary
720
-
721
- {Domain boundary statement from analysis — what this phase delivers}
722
-
723
- </domain>
724
-
725
- <decisions>
726
- ## Implementation Decisions
727
-
728
- ### {Area 1 Name}
729
- - {Accepted/chosen answer for Q1}
730
- - {Accepted/chosen answer for Q2}
731
- - {Accepted/chosen answer for Q3}
732
- - {Accepted/chosen answer for Q4}
733
-
734
- ### {Area 2 Name}
735
- - {Accepted/chosen answer for Q1}
736
- - {Accepted/chosen answer for Q2}
737
- ...
738
-
739
- ### Antigravity's Discretion
740
- {Any "You decide" answers collected — note Antigravity has flexibility here}
741
-
742
- </decisions>
743
-
744
- <code_context>
745
- ## Existing Code Insights
746
-
747
- ### Reusable Assets
748
- - {From codebase scout — components, hooks, utilities}
749
-
750
- ### Established Patterns
751
- - {From codebase scout — state management, styling, data fetching}
752
-
753
- ### Integration Points
754
- - {From codebase scout — where new code connects}
755
-
756
- </code_context>
757
-
758
- <specifics>
759
- ## Specific Ideas
760
-
761
- {Any specific references or "I want it like X" from discussion}
762
- {If none: "No specific requirements — open to standard approaches"}
763
-
764
- </specifics>
765
-
766
- <deferred>
767
- ## Deferred Ideas
768
-
769
- {Ideas captured but out of scope for this phase}
770
- {If none: "None — discussion stayed within phase scope"}
771
-
772
- </deferred>
773
- ```
774
-
775
- Write the file.
776
-
777
- **Commit:**
778
-
779
- ```bash
780
- .agent/skills/gsd/bin/gsd-tools.cjs" commit "docs(${PADDED_PHASE}): smart discuss context" --files "${phase_dir}/${padded_phase}-CONTEXT.md"
781
- ```
782
-
783
- Display confirmation:
784
-
785
- ```
786
- Created: {path}
787
- Decisions captured: {count} across {area_count} areas
788
- ```
520
+ Read and execute: `C:/projects/GSD-Antigravity/.antigravity/get-shit-done/references/autonomous-smart-discuss.md`
789
521
 
790
522
  </step>
791
523
 
@@ -813,7 +545,7 @@ Proceed directly to lifecycle step (which handles partial completion — skips a
813
545
  **Otherwise:** After each phase completes, re-read ROADMAP.md to catch phases inserted mid-execution (decimal phases like 5.1):
814
546
 
815
547
  ```bash
816
- .agent/skills/gsd/bin/gsd-tools.cjs" roadmap analyze)
548
+ ROADMAP=$(gsd-sdk query roadmap.analyze)
817
549
  ```
818
550
 
819
551
  Re-filter incomplete phases using the same logic as discover_phases:
@@ -12,7 +12,7 @@ Read all files referenced by the invoking prompt's execution_context before star
12
12
  Load todo context:
13
13
 
14
14
  ```bash
15
- .agent/skills/gsd/bin/gsd-tools.cjs" init todos)
15
+ INIT=$(gsd-sdk query init.todos)
16
16
  if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
17
17
  ```
18
18
 
@@ -102,6 +102,8 @@ If `.planning/ROADMAP.md` exists:
102
102
  <step name="offer_actions">
103
103
  **If todo maps to a roadmap phase:**
104
104
 
105
+
106
+ **Text mode (`workflow.text_mode: true` in config or `--text` flag):** Set `TEXT_MODE=true` if `--text` is present in `$ARGUMENTS` OR `text_mode` from init JSON is `true`. When TEXT_MODE is active, replace every `AskUserQuestion` call with a plain-text numbered list and ask the user to type their choice number. This is required for non-Antigravity runtimes (OpenAI Codex, Gemini CLI, etc.) where `AskUserQuestion` is not available.
105
107
  Use AskUserQuestion:
106
108
  - header: "Action"
107
109
  - question: "This todo relates to Phase [N]: [name]. What would you like to do?"
@@ -155,7 +157,7 @@ If todo was moved to done/, commit the change:
155
157
 
156
158
  ```bash
157
159
  git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
158
- .agent/skills/gsd/bin/gsd-tools.cjs" commit "docs: start work on todo - [title]" --files .planning/todos/completed/[filename] .planning/STATE.md
160
+ gsd-sdk query commit "docs: start work on todo - [title]" .planning/todos/completed/[filename] .planning/STATE.md
159
161
  ```
160
162
 
161
163
  Tool respects `commit_docs` config and gitignore automatically.