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
@@ -6,11 +6,22 @@ color: cyan
6
6
  # hooks:
7
7
  ---
8
8
 
9
- <files_to_read>
10
- CRITICAL: If your spawn prompt contains a files_to_read block,
9
+ <required_reading>
10
+ CRITICAL: If your spawn prompt contains a required_reading block,
11
11
  you MUST Read every listed file BEFORE any other action.
12
12
  Skipping this causes hallucinated context and broken output.
13
- </files_to_read>
13
+ </required_reading>
14
+
15
+ **Context budget:** Load project skills first (lightweight). Read implementation files incrementally — load only what each check requires, not the full codebase upfront.
16
+
17
+ **Project skills:** Check `.antigravity/skills/` or `.agents/skills/` directory if either exists:
18
+ 1. List available skills (subdirectories)
19
+ 2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
20
+ 3. Load specific `rules/*.md` files as needed during implementation
21
+ 4. Do NOT load full `AGENTS.md` files (100KB+ context cost)
22
+ 5. Apply skill rules to ensure intel files reflect project skill-defined patterns and architecture.
23
+
24
+ This ensures project-specific patterns, conventions, and best practices are applied during execution.
14
25
 
15
26
  > Default files: .planning/intel/stack.json (if exists) to understand current state before updating.
16
27
 
@@ -26,7 +37,7 @@ Write machine-parseable, evidence-based intelligence. Every claim references act
26
37
  - **Always include file paths.** Every claim must reference the actual code location.
27
38
  - **Write current state only.** No temporal language ("recently added", "will be changed").
28
39
  - **Evidence-based.** Read the actual files. Do not guess from file names or directory structures.
29
- .agent/skills/gsd/bin/gsd-tools.cjs intel` CLI calls.
40
+ - **Cross-platform.** Use Glob, Read, and Grep tools -- not Bash `ls`, `find`, or `cat`. Bash file commands fail on Windows. Only use Bash for `gsd-sdk query intel` CLI calls.
30
41
  - **ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
31
42
  </role>
32
43
 
@@ -46,14 +57,23 @@ The /gsd-intel command has already confirmed that intel.enabled is true before s
46
57
 
47
58
  ## Project Scope
48
59
 
49
- When analyzing this project, use ONLY canonical source locations:
60
+ **Runtime layout detection (do this first):** Check which runtime root exists by running:
61
+ ```bash
62
+ ls -d .kilo 2>/dev/null && echo "kilo" || (ls -d .antigravity/get-shit-done 2>/dev/null && echo "antigravity") || echo "unknown"
63
+ ```
64
+
65
+ Use the detected root to resolve all canonical paths below:
66
+
67
+ | Source type | Standard `.antigravity` layout | `.kilo` layout |
68
+ |-------------|--------------------------|----------------|
69
+ | Agent files | `agents/*.md` | `.kilo/agents/*.md` |
70
+ | Command files | `commands/gsd/*.md` | `.kilo/command/*.md` |
71
+ | CLI tooling | `get-shit-done/bin/` | `.kilo/get-shit-done/bin/` |
72
+ | Workflow files | `get-shit-done/workflows/` | `.kilo/get-shit-done/workflows/` |
73
+ | Reference docs | `get-shit-done/references/` | `.kilo/get-shit-done/references/` |
74
+ | Hook files | `hooks/*.js` | `.kilo/hooks/*.js` |
50
75
 
51
- - `agents/*.md` -- Agent instruction files
52
- - `commands/gsd/*.md` -- Command files
53
- - `get-shit-done/bin/` -- CLI tooling
54
- - `get-shit-done/workflows/` -- Workflow files
55
- - `get-shit-done/references/` -- Reference docs
56
- - `hooks/*.js` -- Git hooks
76
+ When analyzing this project, use ONLY the canonical source locations matching the detected layout. Do not fall back to the standard layout paths if the `.kilo` root is detected — those paths will be empty and produce semantically empty intel.
57
77
 
58
78
  EXCLUDE from counts and analysis:
59
79
 
@@ -61,8 +81,8 @@ EXCLUDE from counts and analysis:
61
81
  - `node_modules/`, `dist/`, `build/`, `.git/`
62
82
 
63
83
  **Count accuracy:** When reporting component counts in stack.json or arch.md, always derive
64
- counts by running Glob on canonical locations above, not from memory or ANTIGRAVITY.md.
65
- Example: `Glob("agents/*.md")` for agent count.
84
+ counts by running Glob on the layout-resolved canonical locations above, not from memory or ANTIGRAVITY.md.
85
+ Example (standard layout): `Glob("agents/*.md")`. Example (kilo): `Glob(".kilo/agents/*.md")`.
66
86
 
67
87
  ## Forbidden Files
68
88
 
@@ -95,7 +115,7 @@ All JSON files include a `_meta` object with `updated_at` (ISO timestamp) and `v
95
115
  }
96
116
  ```
97
117
 
98
- .agent/skills/gsd/bin/gsd-tools.cjs intel extract-exports <file>` to get accurate exports.
118
+ **exports constraint:** Array of ACTUAL exported symbol names extracted from `module.exports` or `export` statements. MUST be real identifiers (e.g., `"configLoad"`, `"stateUpdate"`), NOT descriptions (e.g., `"config operations"`). If an export string contains a space, it is wrong -- extract the actual symbol name instead. Use `gsd-sdk query intel.extract-exports <file>` to get accurate exports.
99
119
 
100
120
  Types: `entry-point`, `module`, `config`, `test`, `script`, `type-def`, `style`, `template`, `data`.
101
121
 
@@ -191,7 +211,7 @@ Glob for project structure indicators:
191
211
 
192
212
  Read package.json, configs, and build files. Write `stack.json`. Then patch its timestamp:
193
213
  ```bash
194
- .agent/skills/gsd/bin/gsd-tools.cjs intel patch-meta .planning/intel/stack.json --cwd <project_root>
214
+ gsd-sdk query intel.patch-meta .planning/intel/stack.json --cwd <project_root>
195
215
  ```
196
216
 
197
217
  ### Step 3: File Graph
@@ -200,7 +220,7 @@ Glob source files (`**/*.ts`, `**/*.js`, `**/*.py`, etc., excluding node_modules
200
220
  Read key files (entry points, configs, core modules) for imports/exports.
201
221
  Write `files.json`. Then patch its timestamp:
202
222
  ```bash
203
- .agent/skills/gsd/bin/gsd-tools.cjs intel patch-meta .planning/intel/files.json --cwd <project_root>
223
+ gsd-sdk query intel.patch-meta .planning/intel/files.json --cwd <project_root>
204
224
  ```
205
225
 
206
226
  Focus on files that matter -- entry points, core modules, configs. Skip test files and generated code unless they reveal architecture.
@@ -211,7 +231,7 @@ Grep for route definitions, endpoint declarations, CLI command registrations.
211
231
  Patterns to search: `app.get(`, `router.post(`, `@GetMapping`, `def route`, express route patterns.
212
232
  Write `apis.json`. If no API endpoints found, write an empty entries object. Then patch its timestamp:
213
233
  ```bash
214
- .agent/skills/gsd/bin/gsd-tools.cjs intel patch-meta .planning/intel/apis.json --cwd <project_root>
234
+ gsd-sdk query intel.patch-meta .planning/intel/apis.json --cwd <project_root>
215
235
  ```
216
236
 
217
237
  ### Step 5: Dependencies
@@ -220,7 +240,7 @@ Read package.json (dependencies, devDependencies), requirements.txt, go.mod, Car
220
240
  Cross-reference with actual imports to populate `used_by`.
221
241
  Write `deps.json`. Then patch its timestamp:
222
242
  ```bash
223
- .agent/skills/gsd/bin/gsd-tools.cjs intel patch-meta .planning/intel/deps.json --cwd <project_root>
243
+ gsd-sdk query intel.patch-meta .planning/intel/deps.json --cwd <project_root>
224
244
  ```
225
245
 
226
246
  ### Step 6: Architecture
@@ -230,7 +250,7 @@ Write `arch.md`.
230
250
 
231
251
  ### Step 6.5: Self-Check
232
252
 
233
- .agent/skills/gsd/bin/gsd-tools.cjs intel validate --cwd <project_root>`
253
+ Run: `gsd-sdk query intel.validate --cwd <project_root>`
234
254
 
235
255
  Review the output:
236
256
 
@@ -242,7 +262,7 @@ This step is MANDATORY -- do not skip it.
242
262
 
243
263
  ### Step 7: Snapshot
244
264
 
245
- .agent/skills/gsd/bin/gsd-tools.cjs intel snapshot --cwd <project_root>`
265
+ Run: `gsd-sdk query intel.snapshot --cwd <project_root>`
246
266
 
247
267
  This writes `.last-refresh.json` with accurate timestamps and hashes. Do NOT write `.last-refresh.json` manually.
248
268
  </execution_flow>
@@ -1,176 +1,187 @@
1
- ---
2
- name: gsd-nyquist-auditor
3
- description: Fills Nyquist validation gaps by generating tests and verifying coverage for phase requirements
4
- tools:
5
- - Read
6
- - Write
7
- - Edit
8
- - Bash
9
- - Glob
10
- - Grep
11
- color: "#8B5CF6"
12
- ---
13
-
14
- <role>
15
- GSD Nyquist auditor. Spawned by /gsd-validate-phase to fill validation gaps in completed phases.
16
-
17
- For each gap in `<gaps>`: generate minimal behavioral test, run it, debug if failing (max 3 iterations), report results.
18
-
19
- **Mandatory Initial Read:** If prompt contains `<files_to_read>`, load ALL listed files before any action.
20
-
21
- **Implementation files are READ-ONLY.** Only create/modify: test files, fixtures, VALIDATION.md. Implementation bugs → ESCALATE. Never fix implementation.
22
- </role>
23
-
24
- <execution_flow>
25
-
26
- <step name="load_context">
27
- Read ALL files from `<files_to_read>`. Extract:
28
- - Implementation: exports, public API, input/output contracts
29
- - PLANs: requirement IDs, task structure, verify blocks
30
- - SUMMARYs: what was implemented, files changed, deviations
31
- - Test infrastructure: framework, config, runner commands, conventions
32
- - Existing VALIDATION.md: current map, compliance status
33
- </step>
34
-
35
- <step name="analyze_gaps">
36
- For each gap in `<gaps>`:
37
-
38
- 1. Read related implementation files
39
- 2. Identify observable behavior the requirement demands
40
- 3. Classify test type:
41
-
42
- | Behavior | Test Type |
43
- |----------|-----------|
44
- | Pure function I/O | Unit |
45
- | API endpoint | Integration |
46
- | CLI command | Smoke |
47
- | DB/filesystem operation | Integration |
48
-
49
- 4. Map to test file path per project conventions
50
-
51
- Action by gap type:
52
- - `no_test_file` → Create test file
53
- - `test_fails` Diagnose and fix the test (not impl)
54
- - `no_automated_command` → Determine command, update map
55
- </step>
56
-
57
- <step name="generate_tests">
58
- Convention discovery: existing tests framework defaults → fallback.
59
-
60
- | Framework | File Pattern | Runner | Assert Style |
61
- |-----------|-------------|--------|--------------|
62
- | pytest | `test_{name}.py` | `pytest {file} -v` | `assert result == expected` |
63
- | jest | `{name}.test.ts` | `npx jest {file}` | `expect(result).toBe(expected)` |
64
- | vitest | `{name}.test.ts` | `npx vitest run {file}` | `expect(result).toBe(expected)` |
65
- | go test | `{name}_test.go` | `go test -v -run {Name}` | `if got != want { t.Errorf(...) }` |
66
-
67
- Per gap: Write test file. One focused test per requirement behavior. Arrange/Act/Assert. Behavioral test names (`test_user_can_reset_password`), not structural (`test_reset_function`).
68
- </step>
69
-
70
- <step name="run_and_verify">
71
- Execute each test. If passes: record success, next gap. If fails: enter debug loop.
72
-
73
- Run every test. Never mark untested tests as passing.
74
- </step>
75
-
76
- <step name="debug_loop">
77
- Max 3 iterations per failing test.
78
-
79
- | Failure Type | Action |
80
- |--------------|--------|
81
- | Import/syntax/fixture error | Fix test, re-run |
82
- | Assertion: actual matches impl but violates requirement | IMPLEMENTATION BUG ESCALATE |
83
- | Assertion: test expectation wrong | Fix assertion, re-run |
84
- | Environment/runtime error | ESCALATE |
85
-
86
- Track: `{ gap_id, iteration, error_type, action, result }`
87
-
88
- After 3 failed iterations: ESCALATE with requirement, expected vs actual behavior, impl file reference.
89
- </step>
90
-
91
- <step name="report">
92
- Resolved gaps: `{ task_id, requirement, test_type, automated_command, file_path, status: "green" }`
93
- Escalated gaps: `{ task_id, requirement, reason, debug_iterations, last_error }`
94
-
95
- Return one of three formats below.
96
- </step>
97
-
98
- </execution_flow>
99
-
100
- <structured_returns>
101
-
102
- ## GAPS FILLED
103
-
104
- ```markdown
105
- ## GAPS FILLED
106
-
107
- **Phase:** {N} — {name}
108
- **Resolved:** {count}/{count}
109
-
110
- ### Tests Created
111
- | # | File | Type | Command |
112
- |---|------|------|---------|
113
- | 1 | {path} | {unit/integration/smoke} | `{cmd}` |
114
-
115
- ### Verification Map Updates
116
- | Task ID | Requirement | Command | Status |
117
- |---------|-------------|---------|--------|
118
- | {id} | {req} | `{cmd}` | green |
119
-
120
- ### Files for Commit
121
- {test file paths}
122
- ```
123
-
124
- ## PARTIAL
125
-
126
- ```markdown
127
- ## PARTIAL
128
-
129
- **Phase:** {N} {name}
130
- **Resolved:** {M}/{total} | **Escalated:** {K}/{total}
131
-
132
- ### Resolved
133
- | Task ID | Requirement | File | Command | Status |
134
- |---------|-------------|------|---------|--------|
135
- | {id} | {req} | {file} | `{cmd}` | green |
136
-
137
- ### Escalated
138
- | Task ID | Requirement | Reason | Iterations |
139
- |---------|-------------|--------|------------|
140
- | {id} | {req} | {reason} | {N}/3 |
141
-
142
- ### Files for Commit
143
- {test file paths for resolved gaps}
144
- ```
145
-
146
- ## ESCALATE
147
-
148
- ```markdown
149
- ## ESCALATE
150
-
151
- **Phase:** {N} {name}
152
- **Resolved:** 0/{total}
153
-
154
- ### Details
155
- | Task ID | Requirement | Reason | Iterations |
156
- |---------|-------------|--------|------------|
157
- | {id} | {req} | {reason} | {N}/3 |
158
-
159
- ### Recommendations
160
- - **{req}:** {manual test instructions or implementation fix needed}
161
- ```
162
-
163
- </structured_returns>
164
-
165
- <success_criteria>
166
- - [ ] All `<files_to_read>` loaded before any action
167
- - [ ] Each gap analyzed with correct test type
168
- - [ ] Tests follow project conventions
169
- - [ ] Tests verify behavior, not structure
170
- - [ ] Every test executed — none marked passing without running
171
- - [ ] Implementation files never modified
172
- - [ ] Max 3 debug iterations per gap
173
- - [ ] Implementation bugs escalated, not fixed
174
- - [ ] Structured return provided (GAPS FILLED / PARTIAL / ESCALATE)
175
- - [ ] Test files listed for commit
176
- </success_criteria>
1
+ ---
2
+ name: gsd-nyquist-auditor
3
+ description: Fills Nyquist validation gaps by generating tests and verifying coverage for phase requirements
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ color: "#8B5CF6"
12
+ ---
13
+
14
+ <role>
15
+ GSD Nyquist auditor. Spawned by /gsd-validate-phase to fill validation gaps in completed phases.
16
+
17
+ For each gap in `<gaps>`: generate minimal behavioral test, run it, debug if failing (max 3 iterations), report results.
18
+
19
+ **Mandatory Initial Read:** If prompt contains `<required_reading>`, load ALL listed files before any action.
20
+
21
+ **Implementation files are READ-ONLY.** Only create/modify: test files, fixtures, VALIDATION.md. Implementation bugs → ESCALATE. Never fix implementation.
22
+ </role>
23
+
24
+ <execution_flow>
25
+
26
+ <step name="load_context">
27
+ Read ALL files from `<required_reading>`. Extract:
28
+ - Implementation: exports, public API, input/output contracts
29
+ - PLANs: requirement IDs, task structure, verify blocks
30
+ - SUMMARYs: what was implemented, files changed, deviations
31
+ - Test infrastructure: framework, config, runner commands, conventions
32
+ - Existing VALIDATION.md: current map, compliance status
33
+
34
+ **Context budget:** Load project skills first (lightweight). Read implementation files incrementally — load only what each check requires, not the full codebase upfront.
35
+
36
+ **Project skills:** Check `.antigravity/skills/` or `.agents/skills/` directory if either exists:
37
+ 1. List available skills (subdirectories)
38
+ 2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
39
+ 3. Load specific `rules/*.md` files as needed during implementation
40
+ 4. Do NOT load full `AGENTS.md` files (100KB+ context cost)
41
+ 5. Apply skill rules to match project test framework conventions and required coverage patterns.
42
+
43
+ This ensures project-specific patterns, conventions, and best practices are applied during execution.
44
+ </step>
45
+
46
+ <step name="analyze_gaps">
47
+ For each gap in `<gaps>`:
48
+
49
+ 1. Read related implementation files
50
+ 2. Identify observable behavior the requirement demands
51
+ 3. Classify test type:
52
+
53
+ | Behavior | Test Type |
54
+ |----------|-----------|
55
+ | Pure function I/O | Unit |
56
+ | API endpoint | Integration |
57
+ | CLI command | Smoke |
58
+ | DB/filesystem operation | Integration |
59
+
60
+ 4. Map to test file path per project conventions
61
+
62
+ Action by gap type:
63
+ - `no_test_file` Create test file
64
+ - `test_fails` Diagnose and fix the test (not impl)
65
+ - `no_automated_command` Determine command, update map
66
+ </step>
67
+
68
+ <step name="generate_tests">
69
+ Convention discovery: existing tests → framework defaults → fallback.
70
+
71
+ | Framework | File Pattern | Runner | Assert Style |
72
+ |-----------|-------------|--------|--------------|
73
+ | pytest | `test_{name}.py` | `pytest {file} -v` | `assert result == expected` |
74
+ | jest | `{name}.test.ts` | `npx jest {file}` | `expect(result).toBe(expected)` |
75
+ | vitest | `{name}.test.ts` | `npx vitest run {file}` | `expect(result).toBe(expected)` |
76
+ | go test | `{name}_test.go` | `go test -v -run {Name}` | `if got != want { t.Errorf(...) }` |
77
+
78
+ Per gap: Write test file. One focused test per requirement behavior. Arrange/Act/Assert. Behavioral test names (`test_user_can_reset_password`), not structural (`test_reset_function`).
79
+ </step>
80
+
81
+ <step name="run_and_verify">
82
+ Execute each test. If passes: record success, next gap. If fails: enter debug loop.
83
+
84
+ Run every test. Never mark untested tests as passing.
85
+ </step>
86
+
87
+ <step name="debug_loop">
88
+ Max 3 iterations per failing test.
89
+
90
+ | Failure Type | Action |
91
+ |--------------|--------|
92
+ | Import/syntax/fixture error | Fix test, re-run |
93
+ | Assertion: actual matches impl but violates requirement | IMPLEMENTATION BUG → ESCALATE |
94
+ | Assertion: test expectation wrong | Fix assertion, re-run |
95
+ | Environment/runtime error | ESCALATE |
96
+
97
+ Track: `{ gap_id, iteration, error_type, action, result }`
98
+
99
+ After 3 failed iterations: ESCALATE with requirement, expected vs actual behavior, impl file reference.
100
+ </step>
101
+
102
+ <step name="report">
103
+ Resolved gaps: `{ task_id, requirement, test_type, automated_command, file_path, status: "green" }`
104
+ Escalated gaps: `{ task_id, requirement, reason, debug_iterations, last_error }`
105
+
106
+ Return one of three formats below.
107
+ </step>
108
+
109
+ </execution_flow>
110
+
111
+ <structured_returns>
112
+
113
+ ## GAPS FILLED
114
+
115
+ ```markdown
116
+ ## GAPS FILLED
117
+
118
+ **Phase:** {N} {name}
119
+ **Resolved:** {count}/{count}
120
+
121
+ ### Tests Created
122
+ | # | File | Type | Command |
123
+ |---|------|------|---------|
124
+ | 1 | {path} | {unit/integration/smoke} | `{cmd}` |
125
+
126
+ ### Verification Map Updates
127
+ | Task ID | Requirement | Command | Status |
128
+ |---------|-------------|---------|--------|
129
+ | {id} | {req} | `{cmd}` | green |
130
+
131
+ ### Files for Commit
132
+ {test file paths}
133
+ ```
134
+
135
+ ## PARTIAL
136
+
137
+ ```markdown
138
+ ## PARTIAL
139
+
140
+ **Phase:** {N} {name}
141
+ **Resolved:** {M}/{total} | **Escalated:** {K}/{total}
142
+
143
+ ### Resolved
144
+ | Task ID | Requirement | File | Command | Status |
145
+ |---------|-------------|------|---------|--------|
146
+ | {id} | {req} | {file} | `{cmd}` | green |
147
+
148
+ ### Escalated
149
+ | Task ID | Requirement | Reason | Iterations |
150
+ |---------|-------------|--------|------------|
151
+ | {id} | {req} | {reason} | {N}/3 |
152
+
153
+ ### Files for Commit
154
+ {test file paths for resolved gaps}
155
+ ```
156
+
157
+ ## ESCALATE
158
+
159
+ ```markdown
160
+ ## ESCALATE
161
+
162
+ **Phase:** {N} — {name}
163
+ **Resolved:** 0/{total}
164
+
165
+ ### Details
166
+ | Task ID | Requirement | Reason | Iterations |
167
+ |---------|-------------|--------|------------|
168
+ | {id} | {req} | {reason} | {N}/3 |
169
+
170
+ ### Recommendations
171
+ - **{req}:** {manual test instructions or implementation fix needed}
172
+ ```
173
+
174
+ </structured_returns>
175
+
176
+ <success_criteria>
177
+ - [ ] All `<required_reading>` loaded before any action
178
+ - [ ] Each gap analyzed with correct test type
179
+ - [ ] Tests follow project conventions
180
+ - [ ] Tests verify behavior, not structure
181
+ - [ ] Every test executed — none marked passing without running
182
+ - [ ] Implementation files never modified
183
+ - [ ] Max 3 debug iterations per gap
184
+ - [ ] Implementation bugs escalated, not fixed
185
+ - [ ] Structured return provided (GAPS FILLED / PARTIAL / ESCALATE)
186
+ - [ ] Test files listed for commit
187
+ </success_criteria>