gsd-antigravity-kit 1.30.1 → 1.32.1

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 (164) hide show
  1. package/.agent/skills/gsd/SKILL.md +152 -123
  2. package/.agent/skills/gsd/VERSION +1 -0
  3. package/.agent/skills/gsd/assets/templates/user-profile.md +8 -8
  4. package/.agent/skills/gsd/bin/gsd-tools.cjs +81 -3
  5. package/.agent/skills/gsd/bin/help-manifest.json +24 -1
  6. package/.agent/skills/gsd/bin/hooks/gsd-check-update.js +15 -5
  7. package/.agent/skills/gsd/bin/hooks/gsd-context-monitor.js +1 -1
  8. package/.agent/skills/gsd/bin/hooks/gsd-phase-boundary.sh +27 -0
  9. package/.agent/skills/gsd/bin/hooks/gsd-prompt-guard.js +2 -1
  10. package/.agent/skills/gsd/bin/hooks/gsd-read-guard.js +1 -1
  11. package/.agent/skills/gsd/bin/hooks/gsd-session-state.sh +33 -0
  12. package/.agent/skills/gsd/bin/hooks/gsd-statusline.js +5 -5
  13. package/.agent/skills/gsd/bin/hooks/gsd-validate-commit.sh +47 -0
  14. package/.agent/skills/gsd/bin/hooks/gsd-workflow-guard.js +1 -1
  15. package/.agent/skills/gsd/bin/lib/config.cjs +31 -10
  16. package/.agent/skills/gsd/bin/lib/core.cjs +48 -13
  17. package/.agent/skills/gsd/bin/lib/frontmatter.cjs +34 -2
  18. package/.agent/skills/gsd/bin/lib/intel.cjs +660 -0
  19. package/.agent/skills/gsd/bin/lib/learnings.cjs +378 -0
  20. package/.agent/skills/gsd/bin/lib/milestone.cjs +13 -4
  21. package/.agent/skills/gsd/bin/lib/model-profiles.cjs +17 -17
  22. package/.agent/skills/gsd/bin/lib/profile-output.cjs +31 -31
  23. package/.agent/skills/gsd/bin/lib/security.cjs +119 -0
  24. package/.agent/skills/gsd/bin/lib/verify.cjs +15 -15
  25. package/.agent/skills/gsd/migration_report.md +7 -0
  26. package/.agent/skills/gsd/references/agents/gsd-code-fixer.md +516 -0
  27. package/.agent/skills/gsd/references/agents/gsd-code-reviewer.md +355 -0
  28. package/.agent/skills/gsd/references/agents/gsd-debugger.md +10 -1
  29. package/.agent/skills/gsd/references/agents/gsd-executor.md +3 -0
  30. package/.agent/skills/gsd/references/agents/gsd-intel-updater.md +314 -0
  31. package/.agent/skills/gsd/references/agents/gsd-phase-researcher.md +3 -0
  32. package/.agent/skills/gsd/references/agents/gsd-plan-checker.md +16 -4
  33. package/.agent/skills/gsd/references/agents/gsd-planner.md +7 -0
  34. package/.agent/skills/gsd/references/agents/gsd-user-profiler.md +5 -5
  35. package/.agent/skills/gsd/references/agents/gsd-verifier.md +55 -1
  36. package/.agent/skills/gsd/references/agents/profiles/dev.md +21 -0
  37. package/.agent/skills/gsd/references/agents/profiles/research.md +22 -0
  38. package/.agent/skills/gsd/references/agents/profiles/review.md +22 -0
  39. package/.agent/skills/gsd/references/commands/{gsd-add-todo.md → atomic/add-todo.md} +5 -4
  40. package/.agent/skills/gsd/references/commands/{gsd-check-todos.md → atomic/check-todos.md} +5 -4
  41. package/.agent/skills/gsd/references/commands/{gsd-cleanup.md → atomic/cleanup.md} +4 -3
  42. package/.agent/skills/gsd/references/commands/{gsd-do.md → atomic/do.md} +4 -3
  43. package/.agent/skills/gsd/references/commands/{gsd-help.md → atomic/help.md} +4 -3
  44. package/.agent/skills/gsd/references/commands/{gsd-join-discord.md → atomic/join-discord.md} +21 -19
  45. package/.agent/skills/gsd/references/commands/{gsd-note.md → atomic/note.md} +4 -3
  46. package/.agent/skills/gsd/references/commands/{gsd-session-report.md → atomic/session-report.md} +4 -3
  47. package/.agent/skills/gsd/references/commands/{gsd-ship.md → atomic/ship.md} +4 -3
  48. package/.agent/skills/gsd/references/commands/{gsd-stats.md → atomic/stats.md} +4 -3
  49. package/.agent/skills/gsd/references/commands/{gsd-thread.md → atomic/thread.md} +7 -6
  50. package/.agent/skills/gsd/references/commands/atomic/undo.md +36 -0
  51. package/.agent/skills/gsd/references/commands/{gsd-add-backlog.md → milestone/add-backlog.md} +8 -7
  52. package/.agent/skills/gsd/references/commands/{gsd-audit-milestone.md → milestone/audit-milestone.md} +4 -3
  53. package/.agent/skills/gsd/references/commands/{gsd-complete-milestone.md → milestone/complete-milestone.md} +6 -4
  54. package/.agent/skills/gsd/references/commands/{gsd-milestone-summary.md → milestone/milestone-summary.md} +5 -3
  55. package/.agent/skills/gsd/references/commands/{gsd-new-milestone.md → milestone/new-milestone.md} +4 -3
  56. package/.agent/skills/gsd/references/commands/{gsd-plan-milestone-gaps.md → milestone/plan-milestone-gaps.md} +4 -3
  57. package/.agent/skills/gsd/references/commands/{gsd-plant-seed.md → milestone/plant-seed.md} +4 -3
  58. package/.agent/skills/gsd/references/commands/{gsd-review-backlog.md → milestone/review-backlog.md} +6 -5
  59. package/.agent/skills/gsd/references/commands/misc/audit-fix.md +35 -0
  60. package/.agent/skills/gsd/references/commands/{gsd-audit-uat.md → misc/audit-uat.md} +4 -3
  61. package/.agent/skills/gsd/references/commands/{gsd-next.md → misc/next.md} +6 -3
  62. package/.agent/skills/gsd/references/commands/{gsd-progress.md → misc/progress.md} +4 -3
  63. package/.agent/skills/gsd/references/commands/{gsd-verify-work.md → misc/verify-work.md} +4 -3
  64. package/.agent/skills/gsd/references/commands/{gsd-add-phase.md → phase/add-phase.md} +5 -4
  65. package/.agent/skills/gsd/references/commands/{gsd-add-tests.md → phase/add-tests.md} +8 -3
  66. package/.agent/skills/gsd/references/commands/{gsd-discuss-phase.md → phase/discuss-phase.md} +5 -4
  67. package/.agent/skills/gsd/references/commands/{gsd-execute-phase.md → phase/execute-phase.md} +4 -3
  68. package/.agent/skills/gsd/references/commands/{gsd-insert-phase.md → phase/insert-phase.md} +5 -4
  69. package/.agent/skills/gsd/references/commands/{gsd-list-phase-assumptions.md → phase/list-phase-assumptions.md} +4 -3
  70. package/.agent/skills/gsd/references/commands/{gsd-plan-phase.md → phase/plan-phase.md} +4 -3
  71. package/.agent/skills/gsd/references/commands/{gsd-remove-phase.md → phase/remove-phase.md} +5 -4
  72. package/.agent/skills/gsd/references/commands/{gsd-research-phase.md → phase/research-phase.md} +7 -6
  73. package/.agent/skills/gsd/references/commands/{gsd-secure-phase.md → phase/secure-phase.md} +4 -3
  74. package/.agent/skills/gsd/references/commands/{gsd-ui-phase.md → phase/ui-phase.md} +4 -3
  75. package/.agent/skills/gsd/references/commands/{gsd-ui-review.md → phase/ui-review.md} +4 -3
  76. package/.agent/skills/gsd/references/commands/{gsd-validate-phase.md → phase/validate-phase.md} +4 -3
  77. package/.agent/skills/gsd/references/commands/{gsd-workstreams.md → phase/workstreams.md} +71 -70
  78. package/.agent/skills/gsd/references/commands/{gsd-analyze-dependencies.md → project/analyze-dependencies.md} +5 -4
  79. package/.agent/skills/gsd/references/commands/project/explore.md +29 -0
  80. package/.agent/skills/gsd/references/commands/project/import.md +38 -0
  81. package/.agent/skills/gsd/references/commands/project/intel.md +181 -0
  82. package/.agent/skills/gsd/references/commands/{gsd-list-workspaces.md → project/list-workspaces.md} +4 -3
  83. package/.agent/skills/gsd/references/commands/{gsd-map-codebase.md → project/map-codebase.md} +4 -3
  84. package/.agent/skills/gsd/references/commands/{gsd-new-project.md → project/new-project.md} +4 -3
  85. package/.agent/skills/gsd/references/commands/{gsd-new-workspace.md → project/new-workspace.md} +4 -3
  86. package/.agent/skills/gsd/references/commands/{gsd-remove-workspace.md → project/remove-workspace.md} +4 -3
  87. package/.agent/skills/gsd/references/commands/project/scan.md +28 -0
  88. package/.agent/skills/gsd/references/commands/{gsd-autonomous.md → system/autonomous.md} +4 -3
  89. package/.agent/skills/gsd/references/commands/system/code-review-fix.md +54 -0
  90. package/.agent/skills/gsd/references/commands/system/code-review.md +57 -0
  91. package/.agent/skills/gsd/references/commands/{gsd-debug.md → system/debug.md} +7 -6
  92. package/.agent/skills/gsd/references/commands/{gsd-docs-update.md → system/docs-update.md} +4 -3
  93. package/.agent/skills/gsd/references/commands/{gsd-fast.md → system/fast.md} +4 -3
  94. package/.agent/skills/gsd/references/commands/{gsd-forensics.md → system/forensics.md} +5 -3
  95. package/.agent/skills/gsd/references/commands/{gsd-health.md → system/health.md} +5 -4
  96. package/.agent/skills/gsd/references/commands/{gsd-manager.md → system/manager.md} +4 -3
  97. package/.agent/skills/gsd/references/commands/{gsd-pause-work.md → system/pause-work.md} +4 -3
  98. package/.agent/skills/gsd/references/commands/{gsd-pr-branch.md → system/pr-branch.md} +4 -3
  99. package/.agent/skills/gsd/references/commands/{gsd-profile-user.md → system/profile-user.md} +4 -3
  100. package/.agent/skills/gsd/references/commands/{gsd-quick.md → system/quick.md} +4 -3
  101. package/.agent/skills/gsd/references/commands/{gsd-reapply-patches.md → system/reapply-patches.md} +25 -7
  102. package/.agent/skills/gsd/references/commands/{gsd-resume-work.md → system/resume-work.md} +4 -3
  103. package/.agent/skills/gsd/references/commands/{gsd-review.md → system/review.md} +4 -3
  104. package/.agent/skills/gsd/references/commands/system/set-profile.md +14 -0
  105. package/.agent/skills/gsd/references/commands/{gsd-settings.md → system/settings.md} +4 -3
  106. package/.agent/skills/gsd/references/commands/{gsd-update.md → system/update.md} +4 -3
  107. package/.agent/skills/gsd/references/docs/agent-contracts.md +79 -0
  108. package/.agent/skills/gsd/references/docs/common-bug-patterns.md +114 -0
  109. package/.agent/skills/gsd/references/docs/context-budget.md +49 -0
  110. package/.agent/skills/gsd/references/docs/domain-probes.md +125 -0
  111. package/.agent/skills/gsd/references/docs/few-shot-examples/plan-checker.md +73 -0
  112. package/.agent/skills/gsd/references/docs/few-shot-examples/verifier.md +109 -0
  113. package/.agent/skills/gsd/references/docs/gate-prompts.md +100 -0
  114. package/.agent/skills/gsd/references/docs/gates.md +70 -0
  115. package/.agent/skills/gsd/references/docs/model-profile-resolution.md +2 -0
  116. package/.agent/skills/gsd/references/docs/model-profiles.md +20 -14
  117. package/.agent/skills/gsd/references/docs/planning-config.md +216 -1
  118. package/.agent/skills/gsd/references/docs/revision-loop.md +97 -0
  119. package/.agent/skills/gsd/references/docs/thinking-models-debug.md +44 -0
  120. package/.agent/skills/gsd/references/docs/thinking-models-execution.md +50 -0
  121. package/.agent/skills/gsd/references/docs/thinking-models-planning.md +62 -0
  122. package/.agent/skills/gsd/references/docs/thinking-models-research.md +50 -0
  123. package/.agent/skills/gsd/references/docs/thinking-models-verification.md +55 -0
  124. package/.agent/skills/gsd/references/docs/thinking-partner.md +96 -0
  125. package/.agent/skills/gsd/references/docs/universal-anti-patterns.md +58 -0
  126. package/.agent/skills/gsd/references/docs/user-profiling.md +10 -10
  127. package/.agent/skills/gsd/references/docs/verification-overrides.md +227 -0
  128. package/.agent/skills/gsd/references/docs/workstream-flag.md +2 -2
  129. package/.agent/skills/gsd/references/mapping.md +11 -21
  130. package/.agent/skills/gsd/references/workflows/analyze-dependencies.md +3 -3
  131. package/.agent/skills/gsd/references/workflows/audit-fix.md +157 -0
  132. package/.agent/skills/gsd/references/workflows/autonomous.md +22 -1
  133. package/.agent/skills/gsd/references/workflows/code-review-fix.md +497 -0
  134. package/.agent/skills/gsd/references/workflows/code-review.md +515 -0
  135. package/.agent/skills/gsd/references/workflows/discuss-phase-power.md +3 -3
  136. package/.agent/skills/gsd/references/workflows/discuss-phase.md +20 -0
  137. package/.agent/skills/gsd/references/workflows/execute-phase.md +103 -0
  138. package/.agent/skills/gsd/references/workflows/explore.md +139 -0
  139. package/.agent/skills/gsd/references/workflows/import.md +274 -0
  140. package/.agent/skills/gsd/references/workflows/inbox.md +384 -0
  141. package/.agent/skills/gsd/references/workflows/manager.md +5 -5
  142. package/.agent/skills/gsd/references/workflows/new-milestone.md +1 -1
  143. package/.agent/skills/gsd/references/workflows/next.md +56 -0
  144. package/.agent/skills/gsd/references/workflows/plan-phase.md +48 -1
  145. package/.agent/skills/gsd/references/workflows/quick.md +96 -2
  146. package/.agent/skills/gsd/references/workflows/review.md +23 -3
  147. package/.agent/skills/gsd/references/workflows/scan.md +102 -0
  148. package/.agent/skills/gsd/references/workflows/settings.md +1 -1
  149. package/.agent/skills/gsd/references/workflows/ui-review.md +2 -2
  150. package/.agent/skills/gsd/references/workflows/undo.md +312 -0
  151. package/.agent/skills/gsd/references/workflows/update.md +5 -5
  152. package/.agent/skills/gsd-converter/SKILL.md +67 -59
  153. package/.agent/skills/gsd-converter/assets/migration-manifest.json +74 -0
  154. package/.agent/skills/gsd-converter/references/mapping.md +6 -16
  155. package/.agent/skills/gsd-converter/scripts/convert.py +419 -80
  156. package/.agent/skills/gsd-converter/scripts/regression_test.py +33 -0
  157. package/.agent/skills/release-manager/scripts/release.ps1 +152 -110
  158. package/.agent/skills/selectpaste-update/SKILL.md +46 -0
  159. package/.agent/skills/selectpaste-update/scripts/sync-commands.py +317 -0
  160. package/README.md +5 -2
  161. package/package.json +1 -1
  162. package/.agent/skills/gsd/references/commands/gsd-set-profile.md +0 -12
  163. package/bin/install.js +0 -116
  164. /package/.agent/skills/gsd/references/commands/{gsd-tools.md → system/gsd-tools.md} +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: gsd
3
- version: 1.32.0
3
+ version: 1.34.2
4
4
  description: "Antigravity GSD (Get Stuff Done) - A spec-driven hierarchical planning and execution system. Triggers on project planning, phase management, and GSD slash commands."
5
5
  ---
6
6
 
@@ -21,67 +21,75 @@ This skill should be used when:
21
21
  **Triggers:**
22
22
  - Keywords: "plan phase", "execute phase", "new project spec", "gsd", "gsd-tools"
23
23
  - Commands:
24
- - `gsd:gsd-add-backlog`
25
- - `gsd:gsd-add-phase`
26
- - `gsd:gsd-add-tests`
27
- - `gsd:gsd-add-todo`
28
- - `gsd:gsd-analyze-dependencies`
29
- - `gsd:gsd-audit-milestone`
30
- - `gsd:gsd-audit-uat`
31
- - `gsd:gsd-autonomous`
32
- - `gsd:gsd-check-todos`
33
- - `gsd:gsd-cleanup`
34
- - `gsd:gsd-complete-milestone`
35
- - `gsd:gsd-debug`
36
- - `gsd:gsd-discuss-phase`
37
- - `gsd:gsd-do`
38
- - `gsd:gsd-docs-update`
39
- - `gsd:gsd-execute-phase`
40
- - `gsd:gsd-fast`
41
- - `gsd:gsd-forensics`
42
- - `gsd:gsd-health`
43
- - `gsd:gsd-help`
44
- - `gsd:gsd-insert-phase`
45
- - `gsd:gsd-join-discord`
46
- - `gsd:gsd-list-phase-assumptions`
47
- - `gsd:gsd-list-workspaces`
48
- - `gsd:gsd-manager`
49
- - `gsd:gsd-map-codebase`
50
- - `gsd:gsd-milestone-summary`
51
- - `gsd:gsd-new-milestone`
52
- - `gsd:gsd-new-project`
53
- - `gsd:gsd-new-workspace`
54
- - `gsd:gsd-next`
55
- - `gsd:gsd-note`
56
- - `gsd:gsd-pause-work`
57
- - `gsd:gsd-plan-milestone-gaps`
58
- - `gsd:gsd-plan-phase`
59
- - `gsd:gsd-plant-seed`
60
- - `gsd:gsd-pr-branch`
61
- - `gsd:gsd-profile-user`
62
- - `gsd:gsd-progress`
63
- - `gsd:gsd-quick`
64
- - `gsd:gsd-reapply-patches`
65
- - `gsd:gsd-remove-phase`
66
- - `gsd:gsd-remove-workspace`
67
- - `gsd:gsd-research-phase`
68
- - `gsd:gsd-resume-work`
69
- - `gsd:gsd-review-backlog`
70
- - `gsd:gsd-review`
71
- - `gsd:gsd-secure-phase`
72
- - `gsd:gsd-session-report`
73
- - `gsd:gsd-set-profile`
74
- - `gsd:gsd-settings`
75
- - `gsd:gsd-ship`
76
- - `gsd:gsd-stats`
77
- - `gsd:gsd-thread`
24
+ - `gsd:add-backlog`
25
+ - `gsd:add-phase`
26
+ - `gsd:add-tests`
27
+ - `gsd:add-todo`
28
+ - `gsd:analyze-dependencies`
29
+ - `gsd:audit-fix`
30
+ - `gsd:audit-milestone`
31
+ - `gsd:audit-uat`
32
+ - `gsd:autonomous`
33
+ - `gsd:check-todos`
34
+ - `gsd:cleanup`
35
+ - `gsd:code-review`
36
+ - `gsd:code-review-fix`
37
+ - `gsd:complete-milestone`
38
+ - `gsd:debug`
39
+ - `gsd:discuss-phase`
40
+ - `gsd:do`
41
+ - `gsd:docs-update`
42
+ - `gsd:execute-phase`
43
+ - `gsd:explore`
44
+ - `gsd:fast`
45
+ - `gsd:forensics`
78
46
  - `gsd:gsd-tools`
79
- - `gsd:gsd-ui-phase`
80
- - `gsd:gsd-ui-review`
81
- - `gsd:gsd-update`
82
- - `gsd:gsd-validate-phase`
83
- - `gsd:gsd-verify-work`
84
- - `gsd:gsd-workstreams`
47
+ - `gsd:health`
48
+ - `gsd:help`
49
+ - `gsd:import`
50
+ - `gsd:insert-phase`
51
+ - `gsd:intel`
52
+ - `gsd:join-discord`
53
+ - `gsd:list-phase-assumptions`
54
+ - `gsd:list-workspaces`
55
+ - `gsd:manager`
56
+ - `gsd:map-codebase`
57
+ - `gsd:milestone-summary`
58
+ - `gsd:new-milestone`
59
+ - `gsd:new-project`
60
+ - `gsd:new-workspace`
61
+ - `gsd:next`
62
+ - `gsd:note`
63
+ - `gsd:pause-work`
64
+ - `gsd:plan-milestone-gaps`
65
+ - `gsd:plan-phase`
66
+ - `gsd:plant-seed`
67
+ - `gsd:pr-branch`
68
+ - `gsd:profile-user`
69
+ - `gsd:progress`
70
+ - `gsd:quick`
71
+ - `gsd:reapply-patches`
72
+ - `gsd:remove-phase`
73
+ - `gsd:remove-workspace`
74
+ - `gsd:research-phase`
75
+ - `gsd:resume-work`
76
+ - `gsd:review`
77
+ - `gsd:review-backlog`
78
+ - `gsd:scan`
79
+ - `gsd:secure-phase`
80
+ - `gsd:session-report`
81
+ - `gsd:set-profile`
82
+ - `gsd:settings`
83
+ - `gsd:ship`
84
+ - `gsd:stats`
85
+ - `gsd:thread`
86
+ - `gsd:ui-phase`
87
+ - `gsd:ui-review`
88
+ - `gsd:undo`
89
+ - `gsd:update`
90
+ - `gsd:validate-phase`
91
+ - `gsd:verify-work`
92
+ - `gsd:workstreams`
85
93
 
86
94
  ## System Overview
87
95
 
@@ -94,67 +102,88 @@ The system enforces distinct phases. You typically cannot execute until you have
94
102
  ### 2. Available Commands
95
103
  The following slash commands are available in this skill. Use them to drive the GSD process:
96
104
 
97
- - **[`gsd:gsd-add-backlog`](references/commands/gsd-add-backlog.md)**: Add an idea to the backlog parking lot (999.x numbering)
98
- - **[`gsd:gsd-add-phase`](references/commands/gsd-add-phase.md)**: Add phase to end of current milestone in roadmap
99
- - **[`gsd:gsd-add-tests`](references/commands/gsd-add-tests.md)**: Generate tests for a completed phase based on UAT criteria and implementation
100
- - **[`gsd:gsd-add-todo`](references/commands/gsd-add-todo.md)**: Capture idea or task as todo from current conversation context
101
- - **[`gsd:gsd-analyze-dependencies`](references/commands/gsd-analyze-dependencies.md)**: Analyze phase dependencies and suggest Depends on entries for ROADMAP.md
102
- - **[`gsd:gsd-audit-milestone`](references/commands/gsd-audit-milestone.md)**: Audit milestone completion against original intent before archiving
103
- - **[`gsd:gsd-audit-uat`](references/commands/gsd-audit-uat.md)**: Cross-phase audit of all outstanding UAT and verification items
104
- - **[`gsd:gsd-autonomous`](references/commands/gsd-autonomous.md)**: Run all remaining phases autonomously — discuss→plan→execute per phase
105
- - **[`gsd:gsd-check-todos`](references/commands/gsd-check-todos.md)**: List pending todos and select one to work on
106
- - **[`gsd:gsd-cleanup`](references/commands/gsd-cleanup.md)**: Archive accumulated phase directories from completed milestones
107
- - **[`gsd:gsd-complete-milestone`](references/commands/gsd-complete-milestone.md)**: Archive completed milestone and prepare for next version
108
- - **[`gsd:gsd-debug`](references/commands/gsd-debug.md)**: Systematic debugging with persistent state across context resets
109
- - **[`gsd:gsd-discuss-phase`](references/commands/gsd-discuss-phase.md)**: Gather phase context through adaptive questioning before planning. Use --auto to skip interactive questions (Antigravity picks recommended defaults). Use --chain for interactive discuss followed by automatic plan+execute. Use --power for bulk question generation into a file-based UI (answer at your own pace).
110
- - **[`gsd:gsd-do`](references/commands/gsd-do.md)**: Route freeform text to the right GSD command automatically
111
- - **[`gsd:gsd-docs-update`](references/commands/gsd-docs-update.md)**: Generate or update project documentation verified against the codebase
112
- - **[`gsd:gsd-execute-phase`](references/commands/gsd-execute-phase.md)**: Execute all plans in a phase with wave-based parallelization
113
- - **[`gsd:gsd-fast`](references/commands/gsd-fast.md)**: Execute a trivial task inline no subagents, no planning overhead
114
- - **[`gsd:gsd-forensics`](references/commands/gsd-forensics.md)**: Post-mortem investigation for failed GSD workflows analyzes git history, artifacts, and state to diagnose what went wrong
115
- - **[`gsd:gsd-health`](references/commands/gsd-health.md)**: Diagnose planning directory health and optionally repair issues
116
- - **[`gsd:gsd-help`](references/commands/gsd-help.md)**: Show available GSD commands and usage guide
117
- - **[`gsd:gsd-insert-phase`](references/commands/gsd-insert-phase.md)**: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
118
- - **[`gsd:gsd-join-discord`](references/commands/gsd-join-discord.md)**: Join the GSD Discord community
119
- - **[`gsd:gsd-list-phase-assumptions`](references/commands/gsd-list-phase-assumptions.md)**: Surface Antigravity's assumptions about a phase approach before planning
120
- - **[`gsd:gsd-list-workspaces`](references/commands/gsd-list-workspaces.md)**: List active GSD workspaces and their status
121
- - **[`gsd:gsd-manager`](references/commands/gsd-manager.md)**: Interactive command center for managing multiple phases from one terminal
122
- - **[`gsd:gsd-map-codebase`](references/commands/gsd-map-codebase.md)**: Analyze codebase with parallel mapper agents to produce .planning/codebase/ documents
123
- - **[`gsd:gsd-milestone-summary`](references/commands/gsd-milestone-summary.md)**: Generate a comprehensive project summary from milestone artifacts for team onboarding and review
124
- - **[`gsd:gsd-new-milestone`](references/commands/gsd-new-milestone.md)**: Start a new milestone cycle update PROJECT.md and route to requirements
125
- - **[`gsd:gsd-new-project`](references/commands/gsd-new-project.md)**: Initialize a new project with deep context gathering and PROJECT.md
126
- - **[`gsd:gsd-new-workspace`](references/commands/gsd-new-workspace.md)**: Create an isolated workspace with repo copies and independent .planning/
127
- - **[`gsd:gsd-next`](references/commands/gsd-next.md)**: Automatically advance to the next logical step in the GSD workflow
128
- - **[`gsd:gsd-note`](references/commands/gsd-note.md)**: Zero-friction idea capture. Append, list, or promote notes to todos.
129
- - **[`gsd:gsd-pause-work`](references/commands/gsd-pause-work.md)**: Create context handoff when pausing work mid-phase
130
- - **[`gsd:gsd-plan-milestone-gaps`](references/commands/gsd-plan-milestone-gaps.md)**: Create phases to close all gaps identified by milestone audit
131
- - **[`gsd:gsd-plan-phase`](references/commands/gsd-plan-phase.md)**: Create detailed phase plan (PLAN.md) with verification loop
132
- - **[`gsd:gsd-plant-seed`](references/commands/gsd-plant-seed.md)**: Capture a forward-looking idea with trigger conditions surfaces automatically at the right milestone
133
- - **[`gsd:gsd-pr-branch`](references/commands/gsd-pr-branch.md)**: Create a clean PR branch by filtering out .planning/ commits — ready for code review
134
- - **[`gsd:gsd-profile-user`](references/commands/gsd-profile-user.md)**: Generate developer behavioral profile and create Antigravity-discoverable artifacts
135
- - **[`gsd:gsd-progress`](references/commands/gsd-progress.md)**: Check project progress, show context, and route to next action (execute or plan)
136
- - **[`gsd:gsd-quick`](references/commands/gsd-quick.md)**: Execute a quick task with GSD guarantees (atomic commits, state tracking) but skip optional agents
137
- - **[`gsd:gsd-reapply-patches`](references/commands/gsd-reapply-patches.md)**: Reapply local modifications after a GSD update
138
- - **[`gsd:gsd-remove-phase`](references/commands/gsd-remove-phase.md)**: Remove a future phase from roadmap and renumber subsequent phases
139
- - **[`gsd:gsd-remove-workspace`](references/commands/gsd-remove-workspace.md)**: Remove a GSD workspace and clean up worktrees
140
- - **[`gsd:gsd-research-phase`](references/commands/gsd-research-phase.md)**: Research how to implement a phase (standalone - usually use /gsd-plan-phase instead)
141
- - **[`gsd:gsd-resume-work`](references/commands/gsd-resume-work.md)**: Resume work from previous session with full context restoration
142
- - **[`gsd:gsd-review-backlog`](references/commands/gsd-review-backlog.md)**: Review and promote backlog items to active milestone
143
- - **[`gsd:gsd-review`](references/commands/gsd-review.md)**: Request cross-AI peer review of phase plans from external AI CLIs
144
- - **[`gsd:gsd-secure-phase`](references/commands/gsd-secure-phase.md)**: Retroactively verify threat mitigations for a completed phase
145
- - **[`gsd:gsd-session-report`](references/commands/gsd-session-report.md)**: Generate a session report with token usage estimates, work summary, and outcomes
146
- - **[`gsd:gsd-set-profile`](references/commands/gsd-set-profile.md)**: Switch model profile for GSD agents (quality/balanced/budget/inherit)
147
- - **[`gsd:gsd-settings`](references/commands/gsd-settings.md)**: Configure GSD workflow toggles and model profile
148
- - **[`gsd:gsd-ship`](references/commands/gsd-ship.md)**: Create PR, run review, and prepare for merge after verification passes
149
- - **[`gsd:gsd-stats`](references/commands/gsd-stats.md)**: Display project statistics phases, plans, requirements, git metrics, and timeline
150
- - **[`gsd:gsd-thread`](references/commands/gsd-thread.md)**: Manage persistent context threads for cross-session work
151
- - **[`gsd:gsd-tools`](references/commands/gsd-tools.md)**: Direct access to GSD internal CLI tools for atomic operations (state, roadmap, phase, config, etc.)
152
- - **[`gsd:gsd-ui-phase`](references/commands/gsd-ui-phase.md)**: Generate UI design contract (UI-SPEC.md) for frontend phases
153
- - **[`gsd:gsd-ui-review`](references/commands/gsd-ui-review.md)**: Retroactive 6-pillar visual audit of implemented frontend code
154
- - **[`gsd:gsd-update`](references/commands/gsd-update.md)**: Update GSD to latest version with changelog display
155
- - **[`gsd:gsd-validate-phase`](references/commands/gsd-validate-phase.md)**: Retroactively audit and fill Nyquist validation gaps for a completed phase
156
- - **[`gsd:gsd-verify-work`](references/commands/gsd-verify-work.md)**: Validate built features through conversational UAT
157
- - **[`gsd:gsd-workstreams`](references/commands/gsd-workstreams.md)**: Manage parallel workstreams — list, create, switch, status, progress, complete, and resume
105
+
106
+ ### Atomic Commands
107
+ - **[`gsd:add-todo`](references/commands/atomic/add-todo.md)**: Capture idea or task as todo from current conversation context
108
+ - **[`gsd:check-todos`](references/commands/atomic/check-todos.md)**: List pending todos and select one to work on
109
+ - **[`gsd:cleanup`](references/commands/atomic/cleanup.md)**: Archive accumulated phase directories from completed milestones
110
+ - **[`gsd:do`](references/commands/atomic/do.md)**: Route freeform text to the right GSD command automatically
111
+ - **[`gsd:help`](references/commands/atomic/help.md)**: Show available GSD commands and usage guide
112
+ - **[`gsd:join-discord`](references/commands/atomic/join-discord.md)**: Join the GSD Discord community
113
+ - **[`gsd:note`](references/commands/atomic/note.md)**: Zero-friction idea capture. Append, list, or promote notes to todos.
114
+ - **[`gsd:session-report`](references/commands/atomic/session-report.md)**: Generate a session report with token usage estimates, work summary, and outcomes
115
+ - **[`gsd:ship`](references/commands/atomic/ship.md)**: Create PR, run review, and prepare for merge after verification passes
116
+ - **[`gsd:stats`](references/commands/atomic/stats.md)**: Display project statistics phases, plans, requirements, git metrics, and timeline
117
+ - **[`gsd:thread`](references/commands/atomic/thread.md)**: Manage persistent context threads for cross-session work
118
+ - **[`gsd:undo`](references/commands/atomic/undo.md)**: Safe git revert. Roll back phase or plan commits using the phase manifest with dependency checks.
119
+
120
+ ### Milestone Commands
121
+ - **[`gsd:add-backlog`](references/commands/milestone/add-backlog.md)**: Add an idea to the backlog parking lot (999.x numbering)
122
+ - **[`gsd:audit-milestone`](references/commands/milestone/audit-milestone.md)**: Audit milestone completion against original intent before archiving
123
+ - **[`gsd:complete-milestone`](references/commands/milestone/complete-milestone.md)**: Archive completed milestone and prepare for next version
124
+ - **[`gsd:milestone-summary`](references/commands/milestone/milestone-summary.md)**: Generate a comprehensive project summary from milestone artifacts for team onboarding and review
125
+ - **[`gsd:new-milestone`](references/commands/milestone/new-milestone.md)**: Start a new milestone cycle update PROJECT.md and route to requirements
126
+ - **[`gsd:plan-milestone-gaps`](references/commands/milestone/plan-milestone-gaps.md)**: Create phases to close all gaps identified by milestone audit
127
+ - **[`gsd:plant-seed`](references/commands/milestone/plant-seed.md)**: Capture a forward-looking idea with trigger conditions surfaces automatically at the right milestone
128
+ - **[`gsd:review-backlog`](references/commands/milestone/review-backlog.md)**: Review and promote backlog items to active milestone
129
+
130
+ ### Misc Commands
131
+ - **[`gsd:audit-fix`](references/commands/misc/audit-fix.md)**: Autonomous audit-to-fix pipeline find issues, classify, fix, test, commit
132
+ - **[`gsd:audit-uat`](references/commands/misc/audit-uat.md)**: Cross-phase audit of all outstanding UAT and verification items
133
+ - **[`gsd:next`](references/commands/misc/next.md)**: Automatically advance to the next logical step in the GSD workflow
134
+ - **[`gsd:progress`](references/commands/misc/progress.md)**: Check project progress, show context, and route to next action (execute or plan)
135
+ - **[`gsd:verify-work`](references/commands/misc/verify-work.md)**: Validate built features through conversational UAT
136
+
137
+ ### Phase Commands
138
+ - **[`gsd:add-phase`](references/commands/phase/add-phase.md)**: Add phase to end of current milestone in roadmap
139
+ - **[`gsd:add-tests`](references/commands/phase/add-tests.md)**: Generate tests for a completed phase based on UAT criteria and implementation
140
+ - **[`gsd:discuss-phase`](references/commands/phase/discuss-phase.md)**: Gather phase context through adaptive questioning before planning. Use --auto to skip interactive questions (Antigravity picks recommended defaults). Use --chain for interactive discuss followed by automatic plan+execute. Use --power for bulk question generation into a file-based UI (answer at your own pace).
141
+ - **[`gsd:execute-phase`](references/commands/phase/execute-phase.md)**: Execute all plans in a phase with wave-based parallelization
142
+ - **[`gsd:insert-phase`](references/commands/phase/insert-phase.md)**: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
143
+ - **[`gsd:list-phase-assumptions`](references/commands/phase/list-phase-assumptions.md)**: Surface Antigravity's assumptions about a phase approach before planning
144
+ - **[`gsd:plan-phase`](references/commands/phase/plan-phase.md)**: Create detailed phase plan (PLAN.md) with verification loop
145
+ - **[`gsd:remove-phase`](references/commands/phase/remove-phase.md)**: Remove a future phase from roadmap and renumber subsequent phases
146
+ - **[`gsd:research-phase`](references/commands/phase/research-phase.md)**: Research how to implement a phase (standalone - usually use /gsd-plan-phase instead)
147
+ - **[`gsd:secure-phase`](references/commands/phase/secure-phase.md)**: Retroactively verify threat mitigations for a completed phase
148
+ - **[`gsd:ui-phase`](references/commands/phase/ui-phase.md)**: Generate UI design contract (UI-SPEC.md) for frontend phases
149
+ - **[`gsd:ui-review`](references/commands/phase/ui-review.md)**: Retroactive 6-pillar visual audit of implemented frontend code
150
+ - **[`gsd:validate-phase`](references/commands/phase/validate-phase.md)**: Retroactively audit and fill Nyquist validation gaps for a completed phase
151
+ - **[`gsd:workstreams`](references/commands/phase/workstreams.md)**: Manage parallel workstreams list, create, switch, status, progress, complete, and resume
152
+
153
+ ### Project Commands
154
+ - **[`gsd:analyze-dependencies`](references/commands/project/analyze-dependencies.md)**: Analyze phase dependencies and suggest Depends on entries for ROADMAP.md
155
+ - **[`gsd:explore`](references/commands/project/explore.md)**: Socratic ideation and idea routing think through ideas before committing to plans
156
+ - **[`gsd:import`](references/commands/project/import.md)**: Ingest external plans with conflict detection against project decisions before writing anything.
157
+ - **[`gsd:intel`](references/commands/project/intel.md)**: Query, inspect, or refresh codebase intelligence files in .planning/intel/
158
+ - **[`gsd:list-workspaces`](references/commands/project/list-workspaces.md)**: List active GSD workspaces and their status
159
+ - **[`gsd:map-codebase`](references/commands/project/map-codebase.md)**: Analyze codebase with parallel mapper agents to produce .planning/codebase/ documents
160
+ - **[`gsd:new-project`](references/commands/project/new-project.md)**: Initialize a new project with deep context gathering and PROJECT.md
161
+ - **[`gsd:new-workspace`](references/commands/project/new-workspace.md)**: Create an isolated workspace with repo copies and independent .planning/
162
+ - **[`gsd:remove-workspace`](references/commands/project/remove-workspace.md)**: Remove a GSD workspace and clean up worktrees
163
+ - **[`gsd:scan`](references/commands/project/scan.md)**: Rapid codebase assessment lightweight alternative to /gsd-map-codebase
164
+
165
+ ### System Commands
166
+ - **[`gsd:autonomous`](references/commands/system/autonomous.md)**: Run all remaining phases autonomously — discuss→plan→execute per phase
167
+ - **[`gsd:code-review-fix`](references/commands/system/code-review-fix.md)**: Auto-fix issues found by code review in REVIEW.md. Spawns fixer agent, commits each fix atomically, produces REVIEW-FIX.md summary.
168
+ - **[`gsd:code-review`](references/commands/system/code-review.md)**: Review source files changed during a phase for bugs, security issues, and code quality problems
169
+ - **[`gsd:debug`](references/commands/system/debug.md)**: Systematic debugging with persistent state across context resets
170
+ - **[`gsd:docs-update`](references/commands/system/docs-update.md)**: Generate or update project documentation verified against the codebase
171
+ - **[`gsd:fast`](references/commands/system/fast.md)**: Execute a trivial task inline — no subagents, no planning overhead
172
+ - **[`gsd:forensics`](references/commands/system/forensics.md)**: Post-mortem investigation for failed GSD workflows — analyzes git history, artifacts, and state to diagnose what went wrong
173
+ - **[`gsd:gsd-tools`](references/commands/system/gsd-tools.md)**: Direct access to GSD internal CLI tools for atomic operations (state, roadmap, phase, config, etc.)
174
+ - **[`gsd:health`](references/commands/system/health.md)**: Diagnose planning directory health and optionally repair issues
175
+ - **[`gsd:manager`](references/commands/system/manager.md)**: Interactive command center for managing multiple phases from one terminal
176
+ - **[`gsd:pause-work`](references/commands/system/pause-work.md)**: Create context handoff when pausing work mid-phase
177
+ - **[`gsd:pr-branch`](references/commands/system/pr-branch.md)**: Create a clean PR branch by filtering out .planning/ commits — ready for code review
178
+ - **[`gsd:profile-user`](references/commands/system/profile-user.md)**: Generate developer behavioral profile and create Antigravity-discoverable artifacts
179
+ - **[`gsd:quick`](references/commands/system/quick.md)**: Execute a quick task with GSD guarantees (atomic commits, state tracking) but skip optional agents
180
+ - **[`gsd:reapply-patches`](references/commands/system/reapply-patches.md)**: Reapply local modifications after a GSD update
181
+ - **[`gsd:resume-work`](references/commands/system/resume-work.md)**: Resume work from previous session with full context restoration
182
+ - **[`gsd:review`](references/commands/system/review.md)**: Request cross-AI peer review of phase plans from external AI CLIs
183
+ - **[`gsd:set-profile`](references/commands/system/set-profile.md)**: Switch model profile for GSD agents (quality/balanced/budget/inherit)
184
+ - **[`gsd:settings`](references/commands/system/settings.md)**: Configure GSD workflow toggles and model profile
185
+ - **[`gsd:update`](references/commands/system/update.md)**: Update GSD to latest version with changelog display
186
+
158
187
 
159
188
  ### 3. Directory Structure
160
189
  The skill uses a standardized directory structure for portability and organization:
@@ -189,4 +218,4 @@ General documentation on the GSD philosophy, usage patterns, and configuration.
189
218
  5. **CLI Invocation**: `gsd-tools` is **NOT** a global command. Always invoke it with the full node path: `node .agent/skills/gsd/bin/gsd-tools.cjs <command> [args]`. Never run `gsd-tools` bare.
190
219
 
191
220
  ---
192
- *Generated by gsd-converter on 2026-04-05*
221
+ *Generated by gsd-converter on 2026-04-08*
@@ -0,0 +1 @@
1
+ 1.34.2
@@ -22,7 +22,7 @@
22
22
 
23
23
  **Rating:** {{communication_style.rating}} | **Confidence:** {{communication_style.confidence}}
24
24
 
25
- **Directive:** {{communication_style.claude_instruction}}
25
+ **Directive:** {{communication_style.antigravity_instruction}}
26
26
 
27
27
  {{communication_style.summary}}
28
28
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  **Rating:** {{decision_speed.rating}} | **Confidence:** {{decision_speed.confidence}}
38
38
 
39
- **Directive:** {{decision_speed.claude_instruction}}
39
+ **Directive:** {{decision_speed.antigravity_instruction}}
40
40
 
41
41
  {{decision_speed.summary}}
42
42
 
@@ -50,7 +50,7 @@
50
50
 
51
51
  **Rating:** {{explanation_depth.rating}} | **Confidence:** {{explanation_depth.confidence}}
52
52
 
53
- **Directive:** {{explanation_depth.claude_instruction}}
53
+ **Directive:** {{explanation_depth.antigravity_instruction}}
54
54
 
55
55
  {{explanation_depth.summary}}
56
56
 
@@ -64,7 +64,7 @@
64
64
 
65
65
  **Rating:** {{debugging_approach.rating}} | **Confidence:** {{debugging_approach.confidence}}
66
66
 
67
- **Directive:** {{debugging_approach.claude_instruction}}
67
+ **Directive:** {{debugging_approach.antigravity_instruction}}
68
68
 
69
69
  {{debugging_approach.summary}}
70
70
 
@@ -78,7 +78,7 @@
78
78
 
79
79
  **Rating:** {{ux_philosophy.rating}} | **Confidence:** {{ux_philosophy.confidence}}
80
80
 
81
- **Directive:** {{ux_philosophy.claude_instruction}}
81
+ **Directive:** {{ux_philosophy.antigravity_instruction}}
82
82
 
83
83
  {{ux_philosophy.summary}}
84
84
 
@@ -92,7 +92,7 @@
92
92
 
93
93
  **Rating:** {{vendor_philosophy.rating}} | **Confidence:** {{vendor_philosophy.confidence}}
94
94
 
95
- **Directive:** {{vendor_philosophy.claude_instruction}}
95
+ **Directive:** {{vendor_philosophy.antigravity_instruction}}
96
96
 
97
97
  {{vendor_philosophy.summary}}
98
98
 
@@ -106,7 +106,7 @@
106
106
 
107
107
  **Rating:** {{frustration_triggers.rating}} | **Confidence:** {{frustration_triggers.confidence}}
108
108
 
109
- **Directive:** {{frustration_triggers.claude_instruction}}
109
+ **Directive:** {{frustration_triggers.antigravity_instruction}}
110
110
 
111
111
  {{frustration_triggers.summary}}
112
112
 
@@ -120,7 +120,7 @@
120
120
 
121
121
  **Rating:** {{learning_style.rating}} | **Confidence:** {{learning_style.confidence}}
122
122
 
123
- **Directive:** {{learning_style.claude_instruction}}
123
+ **Directive:** {{learning_style.antigravity_instruction}}
124
124
 
125
125
  {{learning_style.summary}}
126
126
 
@@ -50,6 +50,7 @@ const profilePipeline = require('./lib/profile-pipeline.cjs');
50
50
  const profileOutput = require('./lib/profile-output.cjs');
51
51
  const workstream = require('./lib/workstream.cjs');
52
52
  const docs = require('./lib/docs.cjs');
53
+ const learnings = require('./lib/learnings.cjs');
53
54
 
54
55
  // ─── Arg parsing helpers ──────────────────────────────────────────────────────
55
56
 
@@ -187,6 +188,16 @@ async function main() {
187
188
  error('Usage: node .agent/skills/gsd/bin/gsd-tools.cjs <command> [args] [--raw] [--pick <field>] [--cwd <path>] [--ws <name>]\nCommands: state, resolve-model, find-phase, commit, verify-summary, verify, frontmatter, template, generate-slug, current-timestamp, list-todos, verify-path-exists, config-ensure-section, config-new-project, init, workstream, docs-init');
188
189
  }
189
190
 
191
+ // Reject flags that are never valid for any gsd-tools command. AI agents
192
+ // sometimes hallucinate --help or --version on tool invocations; silently
193
+ // ignoring them can cause destructive operations to proceed unchecked.
194
+ const NEVER_VALID_FLAGS = new Set(['-h', '--help', '-?', '--h', '--version', '-v', '--usage']);
195
+ for (const arg of args) {
196
+ if (NEVER_VALID_FLAGS.has(arg)) {
197
+ error(`Unknown flag: ${arg}\ngsd-tools does not accept help or version flags. Run "gsd-tools" with no arguments for usage.`);
198
+ }
199
+ }
200
+
190
201
  // Multi-repo guard: resolve project root for commands that read/write .planning/.
191
202
  // Skip for pure-utility commands that don't touch .planning/ to avoid unnecessary
192
203
  // filesystem traversal on every invocation.
@@ -497,7 +508,7 @@ async function runCommand(command, args, cwd, raw) {
497
508
  };
498
509
  phase.cmdPhasesList(cwd, options, raw);
499
510
  } else if (subcommand === 'clear') {
500
- milestone.cmdPhasesClear(cwd, raw);
511
+ milestone.cmdPhasesClear(cwd, raw, args.slice(2));
501
512
  } else {
502
513
  error('Unknown phases subcommand. Available: list, clear');
503
514
  }
@@ -803,7 +814,7 @@ async function runCommand(command, args, cwd, raw) {
803
814
  const outputIdx = args.indexOf('--output');
804
815
  const outputPath = outputIdx !== -1 ? args[outputIdx + 1] : null;
805
816
  const globalFlag = args.includes('--global');
806
- profileOutput.cmdGenerateClaudeProfile(cwd, { analysis: analysisPath, output: outputPath, global: globalFlag }, raw);
817
+ profileOutput.cmdGenerateAntigravityProfile(cwd, { analysis: analysisPath, output: outputPath, global: globalFlag }, raw);
807
818
  break;
808
819
  }
809
820
 
@@ -812,7 +823,7 @@ async function runCommand(command, args, cwd, raw) {
812
823
  const outputPath = outputIdx !== -1 ? args[outputIdx + 1] : null;
813
824
  const autoFlag = args.includes('--auto');
814
825
  const forceFlag = args.includes('--force');
815
- profileOutput.cmdGenerateClaudeMd(cwd, { output: outputPath, auto: autoFlag, force: forceFlag }, raw);
826
+ profileOutput.cmdGenerateAntigravityMd(cwd, { output: outputPath, auto: autoFlag, force: forceFlag }, raw);
816
827
  break;
817
828
  }
818
829
 
@@ -843,6 +854,45 @@ async function runCommand(command, args, cwd, raw) {
843
854
  break;
844
855
  }
845
856
 
857
+ // ─── Intel ────────────────────────────────────────────────────────────
858
+
859
+ case 'intel': {
860
+ const intel = require('./lib/intel.cjs');
861
+ const subcommand = args[1];
862
+ if (subcommand === 'query') {
863
+ const term = args[2];
864
+ if (!term) error('Usage: gsd-tools intel query <term>');
865
+ const planningDir = path.join(cwd, '.planning');
866
+ core.output(intel.intelQuery(term, planningDir), raw);
867
+ } else if (subcommand === 'status') {
868
+ const planningDir = path.join(cwd, '.planning');
869
+ core.output(intel.intelStatus(planningDir), raw);
870
+ } else if (subcommand === 'diff') {
871
+ const planningDir = path.join(cwd, '.planning');
872
+ core.output(intel.intelDiff(planningDir), raw);
873
+ } else if (subcommand === 'snapshot') {
874
+ const planningDir = path.join(cwd, '.planning');
875
+ core.output(intel.intelSnapshot(planningDir), raw);
876
+ } else if (subcommand === 'patch-meta') {
877
+ const filePath = args[2];
878
+ if (!filePath) error('Usage: gsd-tools intel patch-meta <file-path>');
879
+ core.output(intel.intelPatchMeta(path.resolve(cwd, filePath)), raw);
880
+ } else if (subcommand === 'validate') {
881
+ const planningDir = path.join(cwd, '.planning');
882
+ core.output(intel.intelValidate(planningDir), raw);
883
+ } else if (subcommand === 'extract-exports') {
884
+ const filePath = args[2];
885
+ if (!filePath) error('Usage: gsd-tools intel extract-exports <file-path>');
886
+ core.output(intel.intelExtractExports(path.resolve(cwd, filePath)), raw);
887
+ } else if (subcommand === 'update') {
888
+ const planningDir = path.join(cwd, '.planning');
889
+ core.output(intel.intelUpdate(planningDir), raw);
890
+ } else {
891
+ error('Unknown intel subcommand. Available: query, status, update, diff, snapshot, patch-meta, validate, extract-exports');
892
+ }
893
+ break;
894
+ }
895
+
846
896
  // ─── Documentation ────────────────────────────────────────────────────
847
897
 
848
898
  case 'docs-init': {
@@ -850,6 +900,34 @@ async function runCommand(command, args, cwd, raw) {
850
900
  break;
851
901
  }
852
902
 
903
+ // ─── Learnings ─────────────────────────────────────────────────────────
904
+
905
+ case 'learnings': {
906
+ const subcommand = args[1];
907
+ if (subcommand === 'list') {
908
+ learnings.cmdLearningsList(raw);
909
+ } else if (subcommand === 'query') {
910
+ const tagIdx = args.indexOf('--tag');
911
+ const tag = tagIdx !== -1 ? args[tagIdx + 1] : null;
912
+ if (!tag) error('Usage: gsd-tools learnings query --tag <tag>');
913
+ learnings.cmdLearningsQuery(tag, raw);
914
+ } else if (subcommand === 'copy') {
915
+ learnings.cmdLearningsCopy(cwd, raw);
916
+ } else if (subcommand === 'prune') {
917
+ const olderIdx = args.indexOf('--older-than');
918
+ const olderThan = olderIdx !== -1 ? args[olderIdx + 1] : null;
919
+ if (!olderThan) error('Usage: gsd-tools learnings prune --older-than <duration>');
920
+ learnings.cmdLearningsPrune(olderThan, raw);
921
+ } else if (subcommand === 'delete') {
922
+ const id = args[2];
923
+ if (!id) error('Usage: gsd-tools learnings delete <id>');
924
+ learnings.cmdLearningsDelete(id, raw);
925
+ } else {
926
+ error('Unknown learnings subcommand. Available: list, query, copy, prune, delete');
927
+ }
928
+ break;
929
+ }
930
+
853
931
  default:
854
932
  error(`Unknown command: ${command}`);
855
933
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.32.0",
2
+ "version": "1.34.2",
3
3
  "commands": {
4
4
  "state": {
5
5
  "description": "State operations.",
@@ -141,6 +141,19 @@
141
141
  "audit-uat": {
142
142
  "description": "Scan all phases for unresolved UAT/verification items"
143
143
  },
144
+ "intel": {
145
+ "description": "Intel operations.",
146
+ "subcommands": {
147
+ "query": "Query intel files for a term",
148
+ "status": "Show intel file freshness",
149
+ "update": "Trigger intel refresh (returns agent spawn hint)",
150
+ "diff": "Show changed intel entries since last snapshot",
151
+ "snapshot": "Save current intel state as diff baseline",
152
+ "patch-meta": "Update _meta.updated_at in an intel file",
153
+ "validate": "Validate intel file structure",
154
+ "extract-exports": "Extract exported symbols from a source file"
155
+ }
156
+ },
144
157
  "scaffold": {
145
158
  "description": "Scaffold operations.",
146
159
  "subcommands": {
@@ -192,6 +205,16 @@
192
205
  },
193
206
  "docs-init": {
194
207
  "description": "Project context for docs-update workflow"
208
+ },
209
+ "learnings": {
210
+ "description": "Learnings operations.",
211
+ "subcommands": {
212
+ "list": "List all global learnings (JSON)",
213
+ "query": "Query learnings by tag",
214
+ "copy": "Copy from current project's LEARNINGS.md",
215
+ "prune": "Remove entries older than duration (e.g. 90d)",
216
+ "delete": "Delete a learning by ID"
217
+ }
195
218
  }
196
219
  },
197
220
  "tools_usage": "Commands: state, roadmap, requirements, phase, milestone, todo, workstream,\nfind-phase, resolve-model, commit, verify, template, init, check-commit,\nstats, audit-uat, uat, agent-skills, phases, docs-init, scan-sessions,\nextract-messages, profile-sample, write-profile, generate-antigravity-profile,\ngenerate-antigravity-md, history-digest, progress, scaffold, state-snapshot\n Run with gsd:help <command> for detailed usage."
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // gsd-hook-version: 1.32.0
2
+ // gsd-hook-version: 1.34.2
3
3
  // Check for GSD updates in background, write result to cache
4
4
  // Called by SessionStart hook - runs once per session
5
5
 
@@ -12,14 +12,14 @@ const homeDir = os.homedir();
12
12
  const cwd = process.cwd();
13
13
 
14
14
  // Detect runtime config directory (supports Antigravity, OpenCode, Kilo, Gemini)
15
- // Respects CLAUDE_CONFIG_DIR for custom config directory setups
15
+ // Respects ANTIGRAVITY_CONFIG_DIR for custom config directory setups
16
16
  function detectConfigDir(baseDir) {
17
17
  // Check env override first (supports multi-account setups)
18
- const envDir = process.env.CLAUDE_CONFIG_DIR;
18
+ const envDir = process.env.ANTIGRAVITY_CONFIG_DIR;
19
19
  if (envDir && fs.existsSync(path.join(envDir, 'get-shit-done', 'VERSION'))) {
20
20
  return envDir;
21
21
  }
22
- for (const dir of ['.config/kilo', '.kilo', '.config/opencode', '.opencode', '.gemini', '.antigravity']) {
22
+ for (const dir of ['.antigravity', '.gemini', '.config/kilo', '.kilo', '.config/opencode', '.opencode']) {
23
23
  if (fs.existsSync(path.join(baseDir, dir, 'get-shit-done', 'VERSION'))) {
24
24
  return path.join(baseDir, dir);
25
25
  }
@@ -81,12 +81,22 @@ const child = spawn(process.execPath, ['-e', `
81
81
 
82
82
  // Check for stale hooks — compare hook version headers against installed VERSION
83
83
  .agent/skills/gsd/bin/hooks/) (#1421)
84
+ // Only check hooks that GSD currently ships — orphaned files from removed features
85
+ // (e.g., gsd-intel-*.js) must be ignored to avoid permanent stale warnings (#1750)
86
+ const MANAGED_HOOKS = [
87
+ 'gsd-check-update.js',
88
+ 'gsd-context-monitor.js',
89
+ 'gsd-prompt-guard.js',
90
+ 'gsd-read-guard.js',
91
+ 'gsd-statusline.js',
92
+ 'gsd-workflow-guard.js',
93
+ ];
84
94
  let staleHooks = [];
85
95
  if (configDir) {
86
96
  const hooksDir = path.join(configDir, 'hooks');
87
97
  try {
88
98
  if (fs.existsSync(hooksDir)) {
89
- const hookFiles = fs.readdirSync(hooksDir).filter(f => f.startsWith('gsd-') && f.endsWith('.js'));
99
+ const hookFiles = fs.readdirSync(hooksDir).filter(f => MANAGED_HOOKS.includes(f));
90
100
  for (const hookFile of hookFiles) {
91
101
  try {
92
102
  const content = fs.readFileSync(path.join(hooksDir, hookFile), 'utf8');
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // gsd-hook-version: 1.32.0
2
+ // gsd-hook-version: 1.34.2
3
3
  // Context Monitor - PostToolUse/AfterTool hook (Gemini uses AfterTool)
4
4
  // Reads context metrics from the statusline bridge file and injects
5
5
  // warnings when context usage is high. This makes the AGENT aware of