get-shit-done-cc 1.34.2 → 1.37.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 (205) hide show
  1. package/README.md +39 -14
  2. package/README.zh-CN.md +8 -4
  3. package/agents/gsd-advisor-researcher.md +23 -0
  4. package/agents/gsd-ai-researcher.md +133 -0
  5. package/agents/gsd-code-fixer.md +11 -10
  6. package/agents/gsd-code-reviewer.md +2 -2
  7. package/agents/gsd-codebase-mapper.md +13 -2
  8. package/agents/gsd-debug-session-manager.md +314 -0
  9. package/agents/gsd-debugger.md +147 -76
  10. package/agents/gsd-doc-verifier.md +1 -1
  11. package/agents/gsd-doc-writer.md +14 -1
  12. package/agents/gsd-domain-researcher.md +153 -0
  13. package/agents/gsd-eval-auditor.md +175 -0
  14. package/agents/gsd-eval-planner.md +154 -0
  15. package/agents/gsd-executor.md +108 -38
  16. package/agents/gsd-framework-selector.md +160 -0
  17. package/agents/gsd-integration-checker.md +12 -1
  18. package/agents/gsd-intel-updater.md +40 -20
  19. package/agents/gsd-nyquist-auditor.md +14 -3
  20. package/agents/gsd-pattern-mapper.md +335 -0
  21. package/agents/gsd-phase-researcher.md +112 -13
  22. package/agents/gsd-plan-checker.md +104 -10
  23. package/agents/gsd-planner.md +125 -167
  24. package/agents/gsd-project-researcher.md +25 -2
  25. package/agents/gsd-research-synthesizer.md +3 -3
  26. package/agents/gsd-roadmapper.md +12 -1
  27. package/agents/gsd-security-auditor.md +14 -3
  28. package/agents/gsd-ui-auditor.md +3 -3
  29. package/agents/gsd-ui-checker.md +11 -2
  30. package/agents/gsd-ui-researcher.md +27 -4
  31. package/agents/gsd-verifier.md +13 -19
  32. package/bin/install.js +671 -77
  33. package/commands/gsd/add-backlog.md +13 -10
  34. package/commands/gsd/ai-integration-phase.md +36 -0
  35. package/commands/gsd/autonomous.md +2 -1
  36. package/commands/gsd/code-review-fix.md +1 -1
  37. package/commands/gsd/code-review.md +1 -1
  38. package/commands/gsd/debug.md +175 -98
  39. package/commands/gsd/discuss-phase.md +3 -3
  40. package/commands/gsd/eval-review.md +32 -0
  41. package/commands/gsd/execute-phase.md +2 -2
  42. package/commands/gsd/extract_learnings.md +22 -0
  43. package/commands/gsd/from-gsd2.md +47 -0
  44. package/commands/gsd/graphify.md +201 -0
  45. package/commands/gsd/inbox.md +38 -0
  46. package/commands/gsd/intel.md +9 -9
  47. package/commands/gsd/manager.md +1 -1
  48. package/commands/gsd/next.md +3 -1
  49. package/commands/gsd/plan-phase.md +1 -1
  50. package/commands/gsd/progress.md +2 -1
  51. package/commands/gsd/quick.md +125 -1
  52. package/commands/gsd/reapply-patches.md +43 -4
  53. package/commands/gsd/research-phase.md +3 -3
  54. package/commands/gsd/review-backlog.md +2 -2
  55. package/commands/gsd/review.md +4 -2
  56. package/commands/gsd/set-profile.md +1 -1
  57. package/commands/gsd/sketch-wrap-up.md +31 -0
  58. package/commands/gsd/sketch.md +45 -0
  59. package/commands/gsd/spec-phase.md +62 -0
  60. package/commands/gsd/spike-wrap-up.md +31 -0
  61. package/commands/gsd/spike.md +41 -0
  62. package/commands/gsd/thread.md +139 -39
  63. package/commands/gsd/workstreams.md +7 -7
  64. package/get-shit-done/bin/gsd-tools.cjs +219 -11
  65. package/get-shit-done/bin/lib/audit.cjs +757 -0
  66. package/get-shit-done/bin/lib/commands.cjs +17 -7
  67. package/get-shit-done/bin/lib/config.cjs +82 -36
  68. package/get-shit-done/bin/lib/core.cjs +212 -12
  69. package/get-shit-done/bin/lib/frontmatter.cjs +6 -8
  70. package/get-shit-done/bin/lib/graphify.cjs +494 -0
  71. package/get-shit-done/bin/lib/gsd2-import.cjs +511 -0
  72. package/get-shit-done/bin/lib/init.cjs +371 -18
  73. package/get-shit-done/bin/lib/intel.cjs +10 -31
  74. package/get-shit-done/bin/lib/milestone.cjs +18 -17
  75. package/get-shit-done/bin/lib/model-profiles.cjs +1 -0
  76. package/get-shit-done/bin/lib/phase.cjs +249 -122
  77. package/get-shit-done/bin/lib/profile-output.cjs +17 -5
  78. package/get-shit-done/bin/lib/roadmap.cjs +12 -5
  79. package/get-shit-done/bin/lib/state.cjs +505 -240
  80. package/get-shit-done/bin/lib/template.cjs +8 -4
  81. package/get-shit-done/bin/lib/uat.cjs +2 -1
  82. package/get-shit-done/bin/lib/verify.cjs +115 -46
  83. package/get-shit-done/references/ai-evals.md +156 -0
  84. package/get-shit-done/references/ai-frameworks.md +186 -0
  85. package/get-shit-done/references/artifact-types.md +18 -0
  86. package/get-shit-done/references/autonomous-smart-discuss.md +277 -0
  87. package/get-shit-done/references/checkpoints.md +30 -0
  88. package/get-shit-done/references/common-bug-patterns.md +49 -49
  89. package/get-shit-done/references/continuation-format.md +11 -7
  90. package/get-shit-done/references/debugger-philosophy.md +76 -0
  91. package/get-shit-done/references/decimal-phase-calculation.md +5 -5
  92. package/get-shit-done/references/executor-examples.md +110 -0
  93. package/get-shit-done/references/git-integration.md +4 -4
  94. package/get-shit-done/references/git-planning-commit.md +6 -4
  95. package/get-shit-done/references/ios-scaffold.md +123 -0
  96. package/get-shit-done/references/mandatory-initial-read.md +2 -0
  97. package/get-shit-done/references/phase-argument-parsing.md +3 -3
  98. package/get-shit-done/references/planner-antipatterns.md +89 -0
  99. package/get-shit-done/references/planner-revision.md +1 -1
  100. package/get-shit-done/references/planner-source-audit.md +73 -0
  101. package/get-shit-done/references/planning-config.md +33 -8
  102. package/get-shit-done/references/project-skills-discovery.md +19 -0
  103. package/get-shit-done/references/sketch-interactivity.md +41 -0
  104. package/get-shit-done/references/sketch-theme-system.md +94 -0
  105. package/get-shit-done/references/sketch-tooling.md +45 -0
  106. package/get-shit-done/references/sketch-variant-patterns.md +81 -0
  107. package/get-shit-done/references/tdd.md +67 -0
  108. package/get-shit-done/references/universal-anti-patterns.md +5 -0
  109. package/get-shit-done/references/workstream-flag.md +11 -11
  110. package/get-shit-done/templates/AI-SPEC.md +246 -0
  111. package/get-shit-done/templates/DEBUG.md +7 -2
  112. package/get-shit-done/templates/config.json +10 -2
  113. package/get-shit-done/templates/research.md +40 -0
  114. package/get-shit-done/templates/spec.md +307 -0
  115. package/get-shit-done/templates/state.md +8 -0
  116. package/get-shit-done/workflows/add-phase.md +5 -5
  117. package/get-shit-done/workflows/add-tests.md +6 -3
  118. package/get-shit-done/workflows/add-todo.md +5 -3
  119. package/get-shit-done/workflows/ai-integration-phase.md +284 -0
  120. package/get-shit-done/workflows/audit-fix.md +1 -1
  121. package/get-shit-done/workflows/audit-milestone.md +9 -9
  122. package/get-shit-done/workflows/audit-uat.md +1 -1
  123. package/get-shit-done/workflows/autonomous.md +20 -288
  124. package/get-shit-done/workflows/check-todos.md +4 -2
  125. package/get-shit-done/workflows/cleanup.md +3 -1
  126. package/get-shit-done/workflows/code-review-fix.md +3 -3
  127. package/get-shit-done/workflows/code-review.md +6 -6
  128. package/get-shit-done/workflows/complete-milestone.md +97 -24
  129. package/get-shit-done/workflows/diagnose-issues.md +4 -4
  130. package/get-shit-done/workflows/discovery-phase.md +2 -0
  131. package/get-shit-done/workflows/discuss-phase-assumptions.md +11 -11
  132. package/get-shit-done/workflows/discuss-phase.md +143 -19
  133. package/get-shit-done/workflows/do.md +8 -2
  134. package/get-shit-done/workflows/docs-update.md +5 -3
  135. package/get-shit-done/workflows/eval-review.md +155 -0
  136. package/get-shit-done/workflows/execute-phase.md +338 -54
  137. package/get-shit-done/workflows/execute-plan.md +80 -104
  138. package/get-shit-done/workflows/explore.md +3 -1
  139. package/get-shit-done/workflows/extract_learnings.md +232 -0
  140. package/get-shit-done/workflows/forensics.md +3 -3
  141. package/get-shit-done/workflows/health.md +2 -2
  142. package/get-shit-done/workflows/help.md +59 -1
  143. package/get-shit-done/workflows/import.md +3 -1
  144. package/get-shit-done/workflows/inbox.md +3 -0
  145. package/get-shit-done/workflows/insert-phase.md +4 -4
  146. package/get-shit-done/workflows/list-workspaces.md +1 -1
  147. package/get-shit-done/workflows/manager.md +5 -3
  148. package/get-shit-done/workflows/map-codebase.md +19 -5
  149. package/get-shit-done/workflows/milestone-summary.md +6 -6
  150. package/get-shit-done/workflows/new-milestone.md +63 -9
  151. package/get-shit-done/workflows/new-project.md +126 -22
  152. package/get-shit-done/workflows/new-workspace.md +6 -4
  153. package/get-shit-done/workflows/next.md +74 -7
  154. package/get-shit-done/workflows/note.md +2 -0
  155. package/get-shit-done/workflows/pause-work.md +11 -7
  156. package/get-shit-done/workflows/plan-milestone-gaps.md +3 -3
  157. package/get-shit-done/workflows/plan-phase.md +281 -62
  158. package/get-shit-done/workflows/plant-seed.md +4 -1
  159. package/get-shit-done/workflows/pr-branch.md +41 -13
  160. package/get-shit-done/workflows/profile-user.md +15 -13
  161. package/get-shit-done/workflows/progress.md +133 -21
  162. package/get-shit-done/workflows/quick.md +67 -27
  163. package/get-shit-done/workflows/remove-phase.md +8 -8
  164. package/get-shit-done/workflows/remove-workspace.md +4 -2
  165. package/get-shit-done/workflows/research-phase.md +3 -3
  166. package/get-shit-done/workflows/resume-project.md +3 -3
  167. package/get-shit-done/workflows/review.md +71 -8
  168. package/get-shit-done/workflows/scan.md +1 -1
  169. package/get-shit-done/workflows/secure-phase.md +7 -5
  170. package/get-shit-done/workflows/settings.md +24 -7
  171. package/get-shit-done/workflows/ship.md +71 -6
  172. package/get-shit-done/workflows/sketch-wrap-up.md +283 -0
  173. package/get-shit-done/workflows/sketch.md +260 -0
  174. package/get-shit-done/workflows/spec-phase.md +262 -0
  175. package/get-shit-done/workflows/spike-wrap-up.md +273 -0
  176. package/get-shit-done/workflows/spike.md +270 -0
  177. package/get-shit-done/workflows/stats.md +1 -1
  178. package/get-shit-done/workflows/transition.md +12 -12
  179. package/get-shit-done/workflows/ui-phase.md +20 -12
  180. package/get-shit-done/workflows/ui-review.md +6 -4
  181. package/get-shit-done/workflows/undo.md +3 -1
  182. package/get-shit-done/workflows/update.md +113 -2
  183. package/get-shit-done/workflows/validate-phase.md +7 -5
  184. package/get-shit-done/workflows/verify-phase.md +93 -10
  185. package/get-shit-done/workflows/verify-work.md +50 -10
  186. package/hooks/dist/gsd-check-update-worker.js +108 -0
  187. package/hooks/dist/gsd-check-update.js +13 -88
  188. package/hooks/dist/gsd-context-monitor.js +33 -4
  189. package/hooks/dist/gsd-phase-boundary.sh +1 -0
  190. package/hooks/dist/gsd-read-guard.js +5 -0
  191. package/hooks/dist/gsd-session-state.sh +1 -0
  192. package/hooks/dist/gsd-statusline.js +149 -15
  193. package/hooks/dist/gsd-validate-commit.sh +1 -0
  194. package/hooks/gsd-check-update-worker.js +108 -0
  195. package/hooks/gsd-check-update.js +13 -88
  196. package/hooks/gsd-context-monitor.js +33 -4
  197. package/hooks/gsd-phase-boundary.sh +1 -0
  198. package/hooks/gsd-read-guard.js +5 -0
  199. package/hooks/gsd-read-injection-scanner.js +153 -0
  200. package/hooks/gsd-session-state.sh +1 -0
  201. package/hooks/gsd-statusline.js +149 -15
  202. package/hooks/gsd-validate-commit.sh +1 -0
  203. package/package.json +1 -1
  204. package/scripts/build-hooks.js +1 -0
  205. package/scripts/prompt-injection-scan.sh +2 -0
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **English** · [Português](README.pt-BR.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja-JP.md) · [한국어](README.ko-KR.md)
6
6
 
7
- **A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code, OpenCode, Gemini CLI, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Augment, Trae, and Cline.**
7
+ **A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code, OpenCode, Gemini CLI, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Augment, Trae, Qwen Code, Cline, and CodeBuddy.**
8
8
 
9
9
  **Solves context rot — the quality degradation that happens as Claude fills its context window.**
10
10
 
@@ -89,13 +89,14 @@ People who want to describe what they want and have it built correctly — witho
89
89
 
90
90
  Built-in quality gates catch real problems: schema drift detection flags ORM changes missing migrations, security enforcement anchors verification to threat models, and scope reduction detection prevents the planner from silently dropping your requirements.
91
91
 
92
- ### v1.34.0 Highlights
92
+ ### v1.36.0 Highlights
93
93
 
94
- - **Gates taxonomy** — 4 canonical gate types (pre-flight, revision, escalation, abort) wired into plan-checker and verifier agents
95
- - **Shell hooks fix** — `hooks/*.sh` files are now correctly included in the npm package, eliminating startup hook errors on fresh installs
96
- - **Post-merge hunk verification** — `reapply-patches` detects silently dropped hunks after three-way merge
97
- - **detectConfigDir fix** — Claude Code users no longer see false "update available" warnings when multiple runtimes are installed
98
- - **3 bug fixes** — Milestone backlog preservation, detectConfigDir priority, and npm package manifest
94
+ - **Knowledge graph integration** — `/gsd-graphify` brings knowledge graphs to planning agents for richer context connections
95
+ - **SDK typed query foundation** — Registry-based `gsd-sdk query` command with classified errors and handlers for state, roadmap, phase lifecycle, and config
96
+ - **TDD pipeline mode** — Opt-in test-driven development workflow with `--tdd` flag
97
+ - **Context-window-aware prompt thinning** — Automatic prompt size reduction for sub-200K models
98
+ - **Project skills awareness** — 9 GSD agents now discover and use project-scoped skills
99
+ - **30+ bug fixes** — Worktree safety, state management, installer paths, and health check optimizations
99
100
 
100
101
  ---
101
102
 
@@ -106,17 +107,19 @@ npx get-shit-done-cc@latest
106
107
  ```
107
108
 
108
109
  The installer prompts you to choose:
109
- 1. **Runtime** — Claude Code, OpenCode, Gemini, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Augment, Trae, Cline, or all (interactive multi-select — pick multiple runtimes in a single install session)
110
+ 1. **Runtime** — Claude Code, OpenCode, Gemini, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Augment, Trae, Qwen Code, CodeBuddy, Cline, or all (interactive multi-select — pick multiple runtimes in a single install session)
110
111
  2. **Location** — Global (all projects) or local (current project only)
111
112
 
112
113
  Verify with:
113
- - Claude Code / Gemini / Copilot / Antigravity: `/gsd-help`
114
- - OpenCode / Kilo / Augment / Trae: `/gsd-help`
114
+ - Claude Code / Gemini / Copilot / Antigravity / Qwen Code: `/gsd-help`
115
+ - OpenCode / Kilo / Augment / Trae / CodeBuddy: `/gsd-help`
115
116
  - Codex: `$gsd-help`
116
117
  - Cline: GSD installs via `.clinerules` — verify by checking `.clinerules` exists
117
118
 
118
119
  > [!NOTE]
119
- > Claude Code 2.1.88+ and Codex install as skills (`skills/gsd-*/SKILL.md`). Older Claude Code versions use `commands/gsd/`. Cline uses `.clinerules` for configuration. The installer handles all formats automatically.
120
+ > Claude Code 2.1.88+, Qwen Code, and Codex install as skills (`.claude/skills/`, `./.codex/skills/`, or the matching global `~/.claude/skills/` / `~/.codex/skills/` roots). Older Claude Code versions use `commands/gsd/`. `~/.claude/get-shit-done/skills/` is import-only for legacy migration. The installer handles all formats automatically.
121
+
122
+ The canonical discovery contract is documented in [docs/skills/discovery-contract.md](docs/skills/discovery-contract.md).
120
123
 
121
124
  > [!TIP]
122
125
  > For source-based installs or environments where npm is unavailable, see **[docs/manual-update.md](docs/manual-update.md)**.
@@ -175,6 +178,14 @@ npx get-shit-done-cc --augment --local # Install to ./.augment/
175
178
  npx get-shit-done-cc --trae --global # Install to ~/.trae/
176
179
  npx get-shit-done-cc --trae --local # Install to ./.trae/
177
180
 
181
+ # Qwen Code
182
+ npx get-shit-done-cc --qwen --global # Install to ~/.qwen/
183
+ npx get-shit-done-cc --qwen --local # Install to ./.qwen/
184
+
185
+ # CodeBuddy
186
+ npx get-shit-done-cc --codebuddy --global # Install to ~/.codebuddy/
187
+ npx get-shit-done-cc --codebuddy --local # Install to ./.codebuddy/
188
+
178
189
  # Cline
179
190
  npx get-shit-done-cc --cline --global # Install to ~/.cline/
180
191
  npx get-shit-done-cc --cline --local # Install to ./.clinerules
@@ -184,7 +195,7 @@ npx get-shit-done-cc --all --global # Install to all directories
184
195
  ```
185
196
 
186
197
  Use `--global` (`-g`) or `--local` (`-l`) to skip the location prompt.
187
- Use `--claude`, `--opencode`, `--gemini`, `--kilo`, `--codex`, `--copilot`, `--cursor`, `--windsurf`, `--antigravity`, `--augment`, `--trae`, `--cline`, or `--all` to skip the runtime prompt.
198
+ Use `--claude`, `--opencode`, `--gemini`, `--kilo`, `--codex`, `--copilot`, `--cursor`, `--windsurf`, `--antigravity`, `--augment`, `--trae`, `--qwen`, `--codebuddy`, `--cline`, or `--all` to skip the runtime prompt.
188
199
  Use `--sdk` to also install the GSD SDK CLI (`gsd-sdk`) for headless autonomous execution.
189
200
 
190
201
  </details>
@@ -584,6 +595,15 @@ You're never locked in. The system adapts.
584
595
  | `/gsd-list-workspaces` | Show all GSD workspaces and their status |
585
596
  | `/gsd-remove-workspace` | Remove workspace and clean up worktrees |
586
597
 
598
+ ### Spiking & Sketching
599
+
600
+ | Command | What it does |
601
+ |---------|--------------|
602
+ | `/gsd-spike [idea] [--quick]` | Throwaway experiments to validate feasibility before planning — no project init required |
603
+ | `/gsd-sketch [idea] [--quick]` | Throwaway HTML mockups with multi-variant exploration — no project init required |
604
+ | `/gsd-spike-wrap-up` | Package spike findings into a project-local skill for future build conversations |
605
+ | `/gsd-sketch-wrap-up` | Package sketch design findings into a project-local skill for future builds |
606
+
587
607
  ### UI Design
588
608
 
589
609
  | Command | What it does |
@@ -809,8 +829,9 @@ This prevents Claude from reading these files entirely, regardless of what comma
809
829
 
810
830
  **Commands not found after install?**
811
831
  - Restart your runtime to reload commands/skills
812
- - Verify files exist in `~/.claude/skills/gsd-*/SKILL.md` (Claude Code 2.1.88+) or `~/.claude/commands/gsd/` (legacy)
813
- - For Codex, verify skills exist in `~/.codex/skills/gsd-*/SKILL.md` (global) or `./.codex/skills/gsd-*/SKILL.md` (local)
832
+ - Verify files exist in `~/.claude/skills/gsd-*/SKILL.md` or `~/.codex/skills/gsd-*/SKILL.md` for managed global installs
833
+ - For local installs, verify `.claude/skills/gsd-*/SKILL.md` or `./.codex/skills/gsd-*/SKILL.md`
834
+ - Legacy Claude Code installs still use `~/.claude/commands/gsd/`
814
835
 
815
836
  **Commands not working as expected?**
816
837
  - Run `/gsd-help` to verify installation
@@ -846,6 +867,8 @@ npx get-shit-done-cc --windsurf --global --uninstall
846
867
  npx get-shit-done-cc --antigravity --global --uninstall
847
868
  npx get-shit-done-cc --augment --global --uninstall
848
869
  npx get-shit-done-cc --trae --global --uninstall
870
+ npx get-shit-done-cc --qwen --global --uninstall
871
+ npx get-shit-done-cc --codebuddy --global --uninstall
849
872
  npx get-shit-done-cc --cline --global --uninstall
850
873
 
851
874
  # Local installs (current project)
@@ -860,6 +883,8 @@ npx get-shit-done-cc --windsurf --local --uninstall
860
883
  npx get-shit-done-cc --antigravity --local --uninstall
861
884
  npx get-shit-done-cc --augment --local --uninstall
862
885
  npx get-shit-done-cc --trae --local --uninstall
886
+ npx get-shit-done-cc --qwen --local --uninstall
887
+ npx get-shit-done-cc --codebuddy --local --uninstall
863
888
  npx get-shit-done-cc --cline --local --uninstall
864
889
  ```
865
890
 
package/README.zh-CN.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [English](README.md) · [Português](README.pt-BR.md) · **简体中文** · [日本語](README.ja-JP.md) · [한국어](README.ko-KR.md)
6
6
 
7
- **一个轻量但强大的元提示、上下文工程与规格驱动开发系统,适用于 Claude Code、OpenCode、Gemini CLI、Kilo、Codex、Copilot、Cursor、Windsurf、Antigravity、Augment、Trae 和 Cline。**
7
+ **一个轻量但强大的元提示、上下文工程与规格驱动开发系统,适用于 Claude Code、OpenCode、Gemini CLI、Kilo、Codex、Copilot、Cursor、Windsurf、Antigravity、Augment、Trae、CodeBuddy 和 Cline。**
8
8
 
9
9
  **它解决的是 context rot:随着 Claude 的上下文窗口被填满,输出质量逐步劣化的问题。**
10
10
 
@@ -92,12 +92,12 @@ npx get-shit-done-cc@latest
92
92
  ```
93
93
 
94
94
  安装器会提示你选择:
95
- 1. **运行时**:Claude Code、OpenCode、Gemini、Kilo、Codex、Copilot、Cursor、Windsurf、Antigravity、Augment、Trae、Cline,或全部
95
+ 1. **运行时**:Claude Code、OpenCode、Gemini、Kilo、Codex、Copilot、Cursor、Windsurf、Antigravity、Augment、Trae、CodeBuddy、Cline,或全部
96
96
  2. **安装位置**:全局(所有项目)或本地(仅当前项目)
97
97
 
98
98
  安装后可这样验证:
99
99
  - Claude Code / Gemini / Copilot / Antigravity:`/gsd-help`
100
- - OpenCode / Kilo / Augment / Trae:`/gsd-help`
100
+ - OpenCode / Kilo / Augment / Trae / CodeBuddy:`/gsd-help`
101
101
  - Codex:`$gsd-help`
102
102
  - Cline:GSD 通过 `.clinerules` 安装 — 检查 `.clinerules` 是否存在
103
103
 
@@ -157,6 +157,10 @@ npx get-shit-done-cc --augment --local # 安装到 ./.augment/
157
157
  npx get-shit-done-cc --trae --global # 安装到 ~/.trae/
158
158
  npx get-shit-done-cc --trae --local # 安装到 ./.trae/
159
159
 
160
+ # CodeBuddy
161
+ npx get-shit-done-cc --codebuddy --global # 安装到 ~/.codebuddy/
162
+ npx get-shit-done-cc --codebuddy --local # 安装到 ./.codebuddy/
163
+
160
164
  # Cline
161
165
  npx get-shit-done-cc --cline --global # 安装到 ~/.cline/
162
166
  npx get-shit-done-cc --cline --local # 安装到 ./.clinerules
@@ -166,7 +170,7 @@ npx get-shit-done-cc --all --global # 安装到所有目录
166
170
  ```
167
171
 
168
172
  使用 `--global`(`-g`)或 `--local`(`-l`)可以跳过安装位置提示。
169
- 使用 `--claude`、`--opencode`、`--gemini`、`--kilo`、`--codex`、`--copilot`、`--cursor`、`--windsurf`、`--antigravity`、`--augment`、`--trae`、`--cline` 或 `--all` 可以跳过运行时提示。
173
+ 使用 `--claude`、`--opencode`、`--gemini`、`--kilo`、`--codex`、`--copilot`、`--cursor`、`--windsurf`、`--antigravity`、`--augment`、`--trae`、`--codebuddy`、`--cline` 或 `--all` 可以跳过运行时提示。
170
174
 
171
175
  </details>
172
176
 
@@ -17,6 +17,29 @@ Spawned by `discuss-phase` via `Task()`. You do NOT present output directly to t
17
17
  - Return structured markdown output for the main agent to synthesize
18
18
  </role>
19
19
 
20
+ <documentation_lookup>
21
+ When you need library or framework documentation, check in this order:
22
+
23
+ 1. If Context7 MCP tools (`mcp__context7__*`) are available in your environment, use them:
24
+ - Resolve library ID: `mcp__context7__resolve-library-id` with `libraryName`
25
+ - Fetch docs: `mcp__context7__get-library-docs` with `context7CompatibleLibraryId` and `topic`
26
+
27
+ 2. If Context7 MCP is not available (upstream bug anthropics/claude-code#13898 strips MCP
28
+ tools from agents with a `tools:` frontmatter restriction), use the CLI fallback via Bash:
29
+
30
+ Step 1 — Resolve library ID:
31
+ ```bash
32
+ npx --yes ctx7@latest library <name> "<query>"
33
+ ```
34
+ Step 2 — Fetch documentation:
35
+ ```bash
36
+ npx --yes ctx7@latest docs <libraryId> "<query>"
37
+ ```
38
+
39
+ Do not skip documentation lookups because MCP tools are unavailable — the CLI fallback
40
+ works via Bash and produces equivalent output.
41
+ </documentation_lookup>
42
+
20
43
  <input>
21
44
  Agent receives via prompt:
22
45
 
@@ -0,0 +1,133 @@
1
+ ---
2
+ name: gsd-ai-researcher
3
+ description: Researches a chosen AI framework's official docs to produce implementation-ready guidance — best practices, syntax, core patterns, and pitfalls distilled for the specific use case. Writes the Framework Quick Reference and Implementation Guidance sections of AI-SPEC.md. Spawned by /gsd-ai-integration-phase orchestrator.
4
+ tools: Read, Write, Bash, Grep, Glob, WebFetch, WebSearch, mcp__context7__*
5
+ color: "#34D399"
6
+ # hooks:
7
+ # PostToolUse:
8
+ # - matcher: "Write|Edit"
9
+ # hooks:
10
+ # - type: command
11
+ # command: "echo 'AI-SPEC written' 2>/dev/null || true"
12
+ ---
13
+
14
+ <role>
15
+ You are a GSD AI researcher. Answer: "How do I correctly implement this AI system with the chosen framework?"
16
+ Write Sections 3–4b of AI-SPEC.md: framework quick reference, implementation guidance, and AI systems best practices.
17
+ </role>
18
+
19
+ <documentation_lookup>
20
+ When you need library or framework documentation, check in this order:
21
+
22
+ 1. If Context7 MCP tools (`mcp__context7__*`) are available in your environment, use them:
23
+ - Resolve library ID: `mcp__context7__resolve-library-id` with `libraryName`
24
+ - Fetch docs: `mcp__context7__get-library-docs` with `context7CompatibleLibraryId` and `topic`
25
+
26
+ 2. If Context7 MCP is not available (upstream bug anthropics/claude-code#13898 strips MCP
27
+ tools from agents with a `tools:` frontmatter restriction), use the CLI fallback via Bash:
28
+
29
+ Step 1 — Resolve library ID:
30
+ ```bash
31
+ npx --yes ctx7@latest library <name> "<query>"
32
+ ```
33
+ Step 2 — Fetch documentation:
34
+ ```bash
35
+ npx --yes ctx7@latest docs <libraryId> "<query>"
36
+ ```
37
+
38
+ Do not skip documentation lookups because MCP tools are unavailable — the CLI fallback
39
+ works via Bash and produces equivalent output.
40
+ </documentation_lookup>
41
+
42
+ <required_reading>
43
+ Read `~/.claude/get-shit-done/references/ai-frameworks.md` for framework profiles and known pitfalls before fetching docs.
44
+ </required_reading>
45
+
46
+ <input>
47
+ - `framework`: selected framework name and version
48
+ - `system_type`: RAG | Multi-Agent | Conversational | Extraction | Autonomous | Content | Code | Hybrid
49
+ - `model_provider`: OpenAI | Anthropic | Model-agnostic
50
+ - `ai_spec_path`: path to AI-SPEC.md
51
+ - `phase_context`: phase name and goal
52
+ - `context_path`: path to CONTEXT.md if it exists
53
+
54
+ **If prompt contains `<required_reading>`, read every listed file before doing anything else.**
55
+ </input>
56
+
57
+ <documentation_sources>
58
+ Use context7 MCP first (fastest). Fall back to WebFetch.
59
+
60
+ | Framework | Official Docs URL |
61
+ |-----------|------------------|
62
+ | CrewAI | https://docs.crewai.com |
63
+ | LlamaIndex | https://docs.llamaindex.ai |
64
+ | LangChain | https://python.langchain.com/docs |
65
+ | LangGraph | https://langchain-ai.github.io/langgraph |
66
+ | OpenAI Agents SDK | https://openai.github.io/openai-agents-python |
67
+ | Claude Agent SDK | https://docs.anthropic.com/en/docs/claude-code/sdk |
68
+ | AutoGen / AG2 | https://ag2ai.github.io/ag2 |
69
+ | Google ADK | https://google.github.io/adk-docs |
70
+ | Haystack | https://docs.haystack.deepset.ai |
71
+ </documentation_sources>
72
+
73
+ <execution_flow>
74
+
75
+ <step name="fetch_docs">
76
+ Fetch 2-4 pages maximum — prioritize depth over breadth: quickstart, the `system_type`-specific pattern page, best practices/pitfalls.
77
+ Extract: installation command, key imports, minimal entry point for `system_type`, 3-5 abstractions, 3-5 pitfalls (prefer GitHub issues over docs), folder structure.
78
+ </step>
79
+
80
+ <step name="detect_integrations">
81
+ Based on `system_type` and `model_provider`, identify required supporting libraries: vector DB (RAG), embedding model, tracing tool, eval library.
82
+ Fetch brief setup docs for each.
83
+ </step>
84
+
85
+ <step name="write_sections_3_4">
86
+ **ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
87
+
88
+ Update AI-SPEC.md at `ai_spec_path`:
89
+
90
+ **Section 3 — Framework Quick Reference:** real installation command, actual imports, working entry point pattern for `system_type`, abstractions table (3-5 rows), pitfall list with why-it's-a-pitfall notes, folder structure, Sources subsection with URLs.
91
+
92
+ **Section 4 — Implementation Guidance:** specific model (e.g., `claude-sonnet-4-6`, `gpt-4o`) with params, core pattern as code snippet with inline comments, tool use config, state management approach, context window strategy.
93
+ </step>
94
+
95
+ <step name="write_section_4b">
96
+ Add **Section 4b — AI Systems Best Practices** to AI-SPEC.md. Always included, independent of framework choice.
97
+
98
+ **4b.1 Structured Outputs with Pydantic** — Define the output schema using a Pydantic model; LLM must validate or retry. Write for this specific `framework` + `system_type`:
99
+ - Example Pydantic model for the use case
100
+ - How the framework integrates (LangChain `.with_structured_output()`, `instructor` for direct API, LlamaIndex `PydanticOutputParser`, OpenAI `response_format`)
101
+ - Retry logic: how many retries, what to log, when to surface
102
+
103
+ **4b.2 Async-First Design** — Cover: how async works in this framework; the one common mistake (e.g., `asyncio.run()` in an event loop); stream vs. await (stream for UX, await for structured output validation).
104
+
105
+ **4b.3 Prompt Engineering Discipline** — System vs. user prompt separation; few-shot: inline vs. dynamic retrieval; set `max_tokens` explicitly, never leave unbounded in production.
106
+
107
+ **4b.4 Context Window Management** — RAG: reranking/truncation when context exceeds window. Multi-agent/Conversational: summarisation patterns. Autonomous: framework compaction handling.
108
+
109
+ **4b.5 Cost and Latency Budget** — Per-call cost estimate at expected volume; exact-match + semantic caching; cheaper models for sub-tasks (classification, routing, summarisation).
110
+ </step>
111
+
112
+ </execution_flow>
113
+
114
+ <quality_standards>
115
+ - All code snippets syntactically correct for the fetched version
116
+ - Imports match actual package structure (not approximate)
117
+ - Pitfalls specific — "use async where supported" is useless
118
+ - Entry point pattern is copy-paste runnable
119
+ - No hallucinated API methods — note "verify in docs" if unsure
120
+ - Section 4b examples specific to `framework` + `system_type`, not generic
121
+ </quality_standards>
122
+
123
+ <success_criteria>
124
+ - [ ] Official docs fetched (2-4 pages, not just homepage)
125
+ - [ ] Installation command correct for latest stable version
126
+ - [ ] Entry point pattern runs for `system_type`
127
+ - [ ] 3-5 abstractions in context of use case
128
+ - [ ] 3-5 specific pitfalls with explanations
129
+ - [ ] Sections 3 and 4 written and non-empty
130
+ - [ ] Section 4b: Pydantic example for this framework + system_type
131
+ - [ ] Section 4b: async pattern, prompt discipline, context management, cost budget
132
+ - [ ] Sources listed in Section 3
133
+ </success_criteria>
@@ -15,7 +15,7 @@ Spawned by `/gsd-code-review-fix` workflow. You produce REVIEW-FIX.md artifact i
15
15
  Your job: Read REVIEW.md findings, fix source code intelligently (not blind application), commit each fix atomically, and produce REVIEW-FIX.md report.
16
16
 
17
17
  **CRITICAL: Mandatory Initial Read**
18
- If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
18
+ If the prompt contains a `<required_reading>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
19
19
  </role>
20
20
 
21
21
  <project_context>
@@ -194,7 +194,7 @@ The **Fix:** section may contain:
194
194
  If a finding references multiple files (in Fix section or Issue section):
195
195
  - Collect ALL file paths into `files` array
196
196
  - Apply fix to each file
197
- - Commit all modified files atomically (single commit, multiple files in `--files` list)
197
+ - Commit all modified files atomically (single commit, list every file path after the message — `commit` uses positional paths, not `--files`)
198
198
 
199
199
  **Parsing Rules:**
200
200
 
@@ -210,7 +210,7 @@ If a finding references multiple files (in Fix section or Issue section):
210
210
  <execution_flow>
211
211
 
212
212
  <step name="load_context">
213
- **1. Read mandatory files:** Load all files from `<files_to_read>` block if present.
213
+ **1. Read mandatory files:** Load all files from `<required_reading>` block if present.
214
214
 
215
215
  **2. Parse config:** Extract from `<config>` block in prompt:
216
216
  - `phase_dir`: Path to phase directory (e.g., `.planning/phases/02-code-review-command`)
@@ -308,20 +308,21 @@ For each finding in sorted order:
308
308
 
309
309
  **If verification passed:**
310
310
 
311
- Use gsd-tools commit command with conventional format:
311
+ Use `gsd-sdk query commit` with conventional format (message first, then every staged file path):
312
312
  ```bash
313
- node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" commit \
313
+ gsd-sdk query commit \
314
314
  "fix({padded_phase}): {finding_id} {short_description}" \
315
- --files {all_modified_files}
315
+ {all_modified_files}
316
316
  ```
317
317
 
318
318
  Examples:
319
319
  - `fix(02): CR-01 fix SQL injection in auth.py`
320
320
  - `fix(03): WR-05 add null check before array access`
321
321
 
322
- **Multiple files:** List ALL modified files in `--files` (space-separated):
322
+ **Multiple files:** List ALL modified files after the message (space-separated):
323
323
  ```bash
324
- --files src/api/auth.ts src/types/user.ts tests/auth.test.ts
324
+ gsd-sdk query commit "fix(02): CR-01 ..." \
325
+ src/api/auth.ts src/types/user.ts tests/auth.test.ts
325
326
  ```
326
327
 
327
328
  **Extract commit hash:**
@@ -442,7 +443,7 @@ _Iteration: {N}_
442
443
 
443
444
  **DO record which files will be touched** before every fix attempt — this is your rollback list. Rollback is `git checkout -- {file}`, not content capture.
444
445
 
445
- **DO commit each fix atomically** — one commit per finding, listing ALL modified files in `--files` argument.
446
+ **DO commit each fix atomically** — one commit per finding, listing ALL modified file paths after the commit message.
446
447
 
447
448
  **DO use Edit tool (preferred)** over Write tool for targeted changes. Edit provides better diff visibility.
448
449
 
@@ -504,7 +505,7 @@ Fixes are committed **per-finding**. This has operational implications:
504
505
 
505
506
  - [ ] All in-scope findings attempted (either fixed or skipped with reason)
506
507
  - [ ] Each fix committed atomically with `fix({padded_phase}): {id} {description}` format
507
- - [ ] All modified files listed in each commit's `--files` argument (multi-file fix support)
508
+ - [ ] All modified files listed after each commit message (multi-file fix support)
508
509
  - [ ] REVIEW-FIX.md created with accurate counts, status, and iteration number
509
510
  - [ ] No source files left in broken state (failed fixes rolled back via git checkout)
510
511
  - [ ] No partial or uncommitted changes remain after execution
@@ -13,7 +13,7 @@ You are a GSD code reviewer. You analyze source files for bugs, security vulnera
13
13
  Spawned by `/gsd-code-review` workflow. You produce REVIEW.md artifact in the phase directory.
14
14
 
15
15
  **CRITICAL: Mandatory Initial Read**
16
- If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
16
+ If the prompt contains a `<required_reading>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
17
17
  </role>
18
18
 
19
19
  <project_context>
@@ -81,7 +81,7 @@ Additional checks:
81
81
  <execution_flow>
82
82
 
83
83
  <step name="load_context">
84
- **1. Read mandatory files:** Load all files from `<files_to_read>` block if present.
84
+ **1. Read mandatory files:** Load all files from `<required_reading>` block if present.
85
85
 
86
86
  **2. Parse config:** Extract from `<config>` block:
87
87
  - `depth`: quick | standard | deep (default: standard)
@@ -23,9 +23,20 @@ You are spawned by `/gsd-map-codebase` with one of four focus areas:
23
23
  Your job: Explore thoroughly, then write document(s) directly. Return confirmation only.
24
24
 
25
25
  **CRITICAL: Mandatory Initial Read**
26
- If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
26
+ If the prompt contains a `<required_reading>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
27
27
  </role>
28
28
 
29
+ **Context budget:** Load project skills first (lightweight). Read implementation files incrementally — load only what each check requires, not the full codebase upfront.
30
+
31
+ **Project skills:** Check `.claude/skills/` or `.agents/skills/` directory if either exists:
32
+ 1. List available skills (subdirectories)
33
+ 2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
34
+ 3. Load specific `rules/*.md` files as needed during implementation
35
+ 4. Do NOT load full `AGENTS.md` files (100KB+ context cost)
36
+ 5. Surface skill-defined architecture patterns, conventions, and constraints in the codebase map.
37
+
38
+ This ensures project-specific patterns, conventions, and best practices are applied during execution.
39
+
29
40
  <why_this_matters>
30
41
  **These documents are consumed by other GSD commands:**
31
42
 
@@ -149,7 +160,7 @@ Write document(s) to `.planning/codebase/` using the templates below.
149
160
  **Document naming:** UPPERCASE.md (e.g., STACK.md, ARCHITECTURE.md)
150
161
 
151
162
  **Template filling:**
152
- 1. Replace `[YYYY-MM-DD]` with current date
163
+ 1. Replace `[YYYY-MM-DD]` with the date provided in your prompt (the `Today's date:` line). NEVER guess or infer the date — always use the exact date from the prompt.
153
164
  2. Replace `[Placeholder text]` with findings from exploration
154
165
  3. If something is not found, use "Not detected" or "Not applicable"
155
166
  4. Always include file paths with backticks