gsd-remix 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +939 -0
  3. package/README.zh-CN.md +876 -0
  4. package/agents/gsd-advisor-researcher.md +127 -0
  5. package/agents/gsd-ai-researcher.md +133 -0
  6. package/agents/gsd-assumptions-analyzer.md +105 -0
  7. package/agents/gsd-code-fixer.md +517 -0
  8. package/agents/gsd-code-reviewer.md +371 -0
  9. package/agents/gsd-codebase-mapper.md +781 -0
  10. package/agents/gsd-debug-session-manager.md +314 -0
  11. package/agents/gsd-debugger.md +1452 -0
  12. package/agents/gsd-doc-classifier.md +168 -0
  13. package/agents/gsd-doc-synthesizer.md +204 -0
  14. package/agents/gsd-doc-verifier.md +217 -0
  15. package/agents/gsd-doc-writer.md +615 -0
  16. package/agents/gsd-domain-researcher.md +153 -0
  17. package/agents/gsd-eval-auditor.md +191 -0
  18. package/agents/gsd-eval-planner.md +154 -0
  19. package/agents/gsd-executor.md +603 -0
  20. package/agents/gsd-framework-selector.md +160 -0
  21. package/agents/gsd-integration-checker.md +470 -0
  22. package/agents/gsd-intel-updater.md +334 -0
  23. package/agents/gsd-nyquist-auditor.md +203 -0
  24. package/agents/gsd-pattern-mapper.md +335 -0
  25. package/agents/gsd-phase-researcher.md +841 -0
  26. package/agents/gsd-plan-checker.md +978 -0
  27. package/agents/gsd-planner.md +1251 -0
  28. package/agents/gsd-project-researcher.md +677 -0
  29. package/agents/gsd-research-synthesizer.md +247 -0
  30. package/agents/gsd-roadmapper.md +688 -0
  31. package/agents/gsd-security-auditor.md +155 -0
  32. package/agents/gsd-ui-auditor.md +495 -0
  33. package/agents/gsd-ui-checker.md +309 -0
  34. package/agents/gsd-ui-researcher.md +380 -0
  35. package/agents/gsd-user-profiler.md +171 -0
  36. package/agents/gsd-verifier.md +830 -0
  37. package/bin/install.js +7062 -0
  38. package/commands/gsd/add-backlog.md +79 -0
  39. package/commands/gsd/add-phase.md +43 -0
  40. package/commands/gsd/add-tests.md +41 -0
  41. package/commands/gsd/add-todo.md +47 -0
  42. package/commands/gsd/ai-integration-phase.md +36 -0
  43. package/commands/gsd/analyze-dependencies.md +34 -0
  44. package/commands/gsd/audit-fix.md +33 -0
  45. package/commands/gsd/audit-milestone.md +36 -0
  46. package/commands/gsd/audit-uat.md +24 -0
  47. package/commands/gsd/autonomous.md +46 -0
  48. package/commands/gsd/check-todos.md +45 -0
  49. package/commands/gsd/cleanup.md +23 -0
  50. package/commands/gsd/code-review-fix.md +52 -0
  51. package/commands/gsd/code-review.md +55 -0
  52. package/commands/gsd/complete-milestone.md +136 -0
  53. package/commands/gsd/debug.md +263 -0
  54. package/commands/gsd/discuss-phase.md +69 -0
  55. package/commands/gsd/do.md +30 -0
  56. package/commands/gsd/docs-update.md +48 -0
  57. package/commands/gsd/eval-review.md +32 -0
  58. package/commands/gsd/execute-phase.md +63 -0
  59. package/commands/gsd/explore.md +27 -0
  60. package/commands/gsd/extract_learnings.md +22 -0
  61. package/commands/gsd/fast.md +30 -0
  62. package/commands/gsd/forensics.md +56 -0
  63. package/commands/gsd/from-gsd2.md +47 -0
  64. package/commands/gsd/graphify.md +201 -0
  65. package/commands/gsd/health.md +22 -0
  66. package/commands/gsd/help.md +24 -0
  67. package/commands/gsd/import.md +37 -0
  68. package/commands/gsd/inbox.md +38 -0
  69. package/commands/gsd/ingest-docs.md +42 -0
  70. package/commands/gsd/insert-phase.md +32 -0
  71. package/commands/gsd/intel.md +179 -0
  72. package/commands/gsd/join-discord.md +19 -0
  73. package/commands/gsd/list-phase-assumptions.md +46 -0
  74. package/commands/gsd/list-workspaces.md +19 -0
  75. package/commands/gsd/manager.md +40 -0
  76. package/commands/gsd/map-codebase.md +71 -0
  77. package/commands/gsd/milestone-summary.md +51 -0
  78. package/commands/gsd/new-milestone.md +44 -0
  79. package/commands/gsd/new-project.md +46 -0
  80. package/commands/gsd/new-workspace.md +44 -0
  81. package/commands/gsd/next.md +28 -0
  82. package/commands/gsd/note.md +34 -0
  83. package/commands/gsd/pause-work.md +38 -0
  84. package/commands/gsd/plan-milestone-gaps.md +34 -0
  85. package/commands/gsd/plan-phase.md +52 -0
  86. package/commands/gsd/plan-review-convergence.md +52 -0
  87. package/commands/gsd/plant-seed.md +28 -0
  88. package/commands/gsd/pr-branch.md +25 -0
  89. package/commands/gsd/profile-user.md +46 -0
  90. package/commands/gsd/progress.md +25 -0
  91. package/commands/gsd/quick.md +173 -0
  92. package/commands/gsd/reapply-patches.md +331 -0
  93. package/commands/gsd/remove-phase.md +31 -0
  94. package/commands/gsd/remove-workspace.md +26 -0
  95. package/commands/gsd/research-phase.md +195 -0
  96. package/commands/gsd/resume-work.md +40 -0
  97. package/commands/gsd/review-backlog.md +62 -0
  98. package/commands/gsd/review.md +40 -0
  99. package/commands/gsd/scan.md +26 -0
  100. package/commands/gsd/secure-phase.md +35 -0
  101. package/commands/gsd/session-report.md +19 -0
  102. package/commands/gsd/set-profile.md +12 -0
  103. package/commands/gsd/settings.md +36 -0
  104. package/commands/gsd/ship.md +23 -0
  105. package/commands/gsd/sketch-wrap-up.md +31 -0
  106. package/commands/gsd/sketch.md +49 -0
  107. package/commands/gsd/spec-phase.md +62 -0
  108. package/commands/gsd/spike-wrap-up.md +31 -0
  109. package/commands/gsd/spike.md +46 -0
  110. package/commands/gsd/stats.md +18 -0
  111. package/commands/gsd/sync-skills.md +19 -0
  112. package/commands/gsd/thread.md +227 -0
  113. package/commands/gsd/ui-phase.md +34 -0
  114. package/commands/gsd/ui-review.md +32 -0
  115. package/commands/gsd/ultraplan-phase.md +33 -0
  116. package/commands/gsd/undo.md +34 -0
  117. package/commands/gsd/update.md +37 -0
  118. package/commands/gsd/validate-phase.md +35 -0
  119. package/commands/gsd/verify-work.md +38 -0
  120. package/commands/gsd/workstreams.md +69 -0
  121. package/get-shit-done/bin/gsd-tools.cjs +1263 -0
  122. package/get-shit-done/bin/lib/artifacts.cjs +52 -0
  123. package/get-shit-done/bin/lib/audit.cjs +757 -0
  124. package/get-shit-done/bin/lib/commands.cjs +1023 -0
  125. package/get-shit-done/bin/lib/config-schema.cjs +79 -0
  126. package/get-shit-done/bin/lib/config.cjs +463 -0
  127. package/get-shit-done/bin/lib/core.cjs +1794 -0
  128. package/get-shit-done/bin/lib/docs.cjs +267 -0
  129. package/get-shit-done/bin/lib/frontmatter.cjs +379 -0
  130. package/get-shit-done/bin/lib/graphify.cjs +494 -0
  131. package/get-shit-done/bin/lib/gsd2-import.cjs +511 -0
  132. package/get-shit-done/bin/lib/init.cjs +1878 -0
  133. package/get-shit-done/bin/lib/intel.cjs +639 -0
  134. package/get-shit-done/bin/lib/learnings.cjs +378 -0
  135. package/get-shit-done/bin/lib/milestone.cjs +283 -0
  136. package/get-shit-done/bin/lib/model-profiles.cjs +71 -0
  137. package/get-shit-done/bin/lib/phase.cjs +1058 -0
  138. package/get-shit-done/bin/lib/profile-output.cjs +1080 -0
  139. package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
  140. package/get-shit-done/bin/lib/roadmap.cjs +523 -0
  141. package/get-shit-done/bin/lib/schema-detect.cjs +238 -0
  142. package/get-shit-done/bin/lib/security.cjs +504 -0
  143. package/get-shit-done/bin/lib/state.cjs +1649 -0
  144. package/get-shit-done/bin/lib/template.cjs +226 -0
  145. package/get-shit-done/bin/lib/uat.cjs +288 -0
  146. package/get-shit-done/bin/lib/verify.cjs +1184 -0
  147. package/get-shit-done/bin/lib/workstream.cjs +495 -0
  148. package/get-shit-done/bin/repair-sdk.cjs +177 -0
  149. package/get-shit-done/contexts/dev.md +21 -0
  150. package/get-shit-done/contexts/research.md +22 -0
  151. package/get-shit-done/contexts/review.md +22 -0
  152. package/get-shit-done/references/agent-contracts.md +79 -0
  153. package/get-shit-done/references/ai-evals.md +156 -0
  154. package/get-shit-done/references/ai-frameworks.md +186 -0
  155. package/get-shit-done/references/artifact-types.md +131 -0
  156. package/get-shit-done/references/autonomous-smart-discuss.md +277 -0
  157. package/get-shit-done/references/checkpoints.md +808 -0
  158. package/get-shit-done/references/common-bug-patterns.md +114 -0
  159. package/get-shit-done/references/context-budget.md +49 -0
  160. package/get-shit-done/references/continuation-format.md +253 -0
  161. package/get-shit-done/references/debugger-philosophy.md +76 -0
  162. package/get-shit-done/references/decimal-phase-calculation.md +64 -0
  163. package/get-shit-done/references/doc-conflict-engine.md +91 -0
  164. package/get-shit-done/references/domain-probes.md +125 -0
  165. package/get-shit-done/references/executor-examples.md +110 -0
  166. package/get-shit-done/references/few-shot-examples/plan-checker.md +73 -0
  167. package/get-shit-done/references/few-shot-examples/verifier.md +109 -0
  168. package/get-shit-done/references/gate-prompts.md +100 -0
  169. package/get-shit-done/references/gates.md +70 -0
  170. package/get-shit-done/references/git-integration.md +295 -0
  171. package/get-shit-done/references/git-planning-commit.md +40 -0
  172. package/get-shit-done/references/ios-scaffold.md +123 -0
  173. package/get-shit-done/references/mandatory-initial-read.md +2 -0
  174. package/get-shit-done/references/model-profile-resolution.md +38 -0
  175. package/get-shit-done/references/model-profiles.md +145 -0
  176. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  177. package/get-shit-done/references/planner-antipatterns.md +89 -0
  178. package/get-shit-done/references/planner-gap-closure.md +62 -0
  179. package/get-shit-done/references/planner-reviews.md +39 -0
  180. package/get-shit-done/references/planner-revision.md +87 -0
  181. package/get-shit-done/references/planner-source-audit.md +73 -0
  182. package/get-shit-done/references/planning-config.md +460 -0
  183. package/get-shit-done/references/project-skills-discovery.md +19 -0
  184. package/get-shit-done/references/questioning.md +162 -0
  185. package/get-shit-done/references/revision-loop.md +97 -0
  186. package/get-shit-done/references/sketch-interactivity.md +41 -0
  187. package/get-shit-done/references/sketch-theme-system.md +94 -0
  188. package/get-shit-done/references/sketch-tooling.md +45 -0
  189. package/get-shit-done/references/sketch-variant-patterns.md +81 -0
  190. package/get-shit-done/references/tdd.md +330 -0
  191. package/get-shit-done/references/thinking-models-debug.md +44 -0
  192. package/get-shit-done/references/thinking-models-execution.md +50 -0
  193. package/get-shit-done/references/thinking-models-planning.md +62 -0
  194. package/get-shit-done/references/thinking-models-research.md +50 -0
  195. package/get-shit-done/references/thinking-models-verification.md +55 -0
  196. package/get-shit-done/references/thinking-partner.md +96 -0
  197. package/get-shit-done/references/ui-brand.md +160 -0
  198. package/get-shit-done/references/universal-anti-patterns.md +63 -0
  199. package/get-shit-done/references/user-profiling.md +681 -0
  200. package/get-shit-done/references/verification-overrides.md +227 -0
  201. package/get-shit-done/references/verification-patterns.md +612 -0
  202. package/get-shit-done/references/workstream-flag.md +111 -0
  203. package/get-shit-done/templates/AI-SPEC.md +246 -0
  204. package/get-shit-done/templates/DEBUG.md +169 -0
  205. package/get-shit-done/templates/README.md +76 -0
  206. package/get-shit-done/templates/SECURITY.md +61 -0
  207. package/get-shit-done/templates/UAT.md +265 -0
  208. package/get-shit-done/templates/UI-SPEC.md +100 -0
  209. package/get-shit-done/templates/VALIDATION.md +76 -0
  210. package/get-shit-done/templates/claude-md.md +145 -0
  211. package/get-shit-done/templates/codebase/architecture.md +255 -0
  212. package/get-shit-done/templates/codebase/concerns.md +310 -0
  213. package/get-shit-done/templates/codebase/conventions.md +307 -0
  214. package/get-shit-done/templates/codebase/integrations.md +280 -0
  215. package/get-shit-done/templates/codebase/stack.md +186 -0
  216. package/get-shit-done/templates/codebase/structure.md +285 -0
  217. package/get-shit-done/templates/codebase/testing.md +480 -0
  218. package/get-shit-done/templates/config.json +56 -0
  219. package/get-shit-done/templates/context.md +352 -0
  220. package/get-shit-done/templates/continue-here.md +78 -0
  221. package/get-shit-done/templates/copilot-instructions.md +7 -0
  222. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  223. package/get-shit-done/templates/dev-preferences.md +21 -0
  224. package/get-shit-done/templates/discovery.md +146 -0
  225. package/get-shit-done/templates/discussion-log.md +63 -0
  226. package/get-shit-done/templates/milestone-archive.md +123 -0
  227. package/get-shit-done/templates/milestone.md +115 -0
  228. package/get-shit-done/templates/phase-prompt.md +610 -0
  229. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  230. package/get-shit-done/templates/project.md +186 -0
  231. package/get-shit-done/templates/requirements.md +231 -0
  232. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  233. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  234. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  235. package/get-shit-done/templates/research-project/STACK.md +120 -0
  236. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  237. package/get-shit-done/templates/research.md +592 -0
  238. package/get-shit-done/templates/retrospective.md +54 -0
  239. package/get-shit-done/templates/roadmap.md +202 -0
  240. package/get-shit-done/templates/spec.md +307 -0
  241. package/get-shit-done/templates/state.md +184 -0
  242. package/get-shit-done/templates/summary-complex.md +59 -0
  243. package/get-shit-done/templates/summary-minimal.md +41 -0
  244. package/get-shit-done/templates/summary-standard.md +48 -0
  245. package/get-shit-done/templates/summary.md +248 -0
  246. package/get-shit-done/templates/user-profile.md +146 -0
  247. package/get-shit-done/templates/user-setup.md +311 -0
  248. package/get-shit-done/templates/verification-report.md +322 -0
  249. package/get-shit-done/workflows/add-phase.md +112 -0
  250. package/get-shit-done/workflows/add-tests.md +354 -0
  251. package/get-shit-done/workflows/add-todo.md +160 -0
  252. package/get-shit-done/workflows/ai-integration-phase.md +284 -0
  253. package/get-shit-done/workflows/analyze-dependencies.md +96 -0
  254. package/get-shit-done/workflows/audit-fix.md +175 -0
  255. package/get-shit-done/workflows/audit-milestone.md +340 -0
  256. package/get-shit-done/workflows/audit-uat.md +109 -0
  257. package/get-shit-done/workflows/autonomous.md +789 -0
  258. package/get-shit-done/workflows/check-todos.md +179 -0
  259. package/get-shit-done/workflows/cleanup.md +154 -0
  260. package/get-shit-done/workflows/code-review-fix.md +497 -0
  261. package/get-shit-done/workflows/code-review.md +515 -0
  262. package/get-shit-done/workflows/complete-milestone.md +847 -0
  263. package/get-shit-done/workflows/diagnose-issues.md +238 -0
  264. package/get-shit-done/workflows/discovery-phase.md +291 -0
  265. package/get-shit-done/workflows/discuss-phase-assumptions.md +670 -0
  266. package/get-shit-done/workflows/discuss-phase-power.md +308 -0
  267. package/get-shit-done/workflows/discuss-phase.md +1378 -0
  268. package/get-shit-done/workflows/do.md +110 -0
  269. package/get-shit-done/workflows/docs-update.md +1155 -0
  270. package/get-shit-done/workflows/eval-review.md +155 -0
  271. package/get-shit-done/workflows/execute-phase.md +1677 -0
  272. package/get-shit-done/workflows/execute-plan.md +533 -0
  273. package/get-shit-done/workflows/explore.md +141 -0
  274. package/get-shit-done/workflows/extract_learnings.md +242 -0
  275. package/get-shit-done/workflows/fast.md +105 -0
  276. package/get-shit-done/workflows/forensics.md +265 -0
  277. package/get-shit-done/workflows/graduation.md +195 -0
  278. package/get-shit-done/workflows/health.md +314 -0
  279. package/get-shit-done/workflows/help.md +667 -0
  280. package/get-shit-done/workflows/import.md +246 -0
  281. package/get-shit-done/workflows/inbox.md +387 -0
  282. package/get-shit-done/workflows/ingest-docs.md +328 -0
  283. package/get-shit-done/workflows/insert-phase.md +130 -0
  284. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  285. package/get-shit-done/workflows/list-workspaces.md +56 -0
  286. package/get-shit-done/workflows/manager.md +365 -0
  287. package/get-shit-done/workflows/map-codebase.md +393 -0
  288. package/get-shit-done/workflows/milestone-summary.md +223 -0
  289. package/get-shit-done/workflows/new-milestone.md +611 -0
  290. package/get-shit-done/workflows/new-project.md +1391 -0
  291. package/get-shit-done/workflows/new-workspace.md +239 -0
  292. package/get-shit-done/workflows/next.md +220 -0
  293. package/get-shit-done/workflows/node-repair.md +92 -0
  294. package/get-shit-done/workflows/note.md +158 -0
  295. package/get-shit-done/workflows/pause-work.md +243 -0
  296. package/get-shit-done/workflows/plan-milestone-gaps.md +273 -0
  297. package/get-shit-done/workflows/plan-phase.md +1349 -0
  298. package/get-shit-done/workflows/plan-review-convergence.md +254 -0
  299. package/get-shit-done/workflows/plant-seed.md +172 -0
  300. package/get-shit-done/workflows/pr-branch.md +157 -0
  301. package/get-shit-done/workflows/profile-user.md +452 -0
  302. package/get-shit-done/workflows/progress.md +619 -0
  303. package/get-shit-done/workflows/quick.md +970 -0
  304. package/get-shit-done/workflows/remove-phase.md +155 -0
  305. package/get-shit-done/workflows/remove-workspace.md +92 -0
  306. package/get-shit-done/workflows/research-phase.md +89 -0
  307. package/get-shit-done/workflows/resume-project.md +326 -0
  308. package/get-shit-done/workflows/review.md +344 -0
  309. package/get-shit-done/workflows/scan.md +102 -0
  310. package/get-shit-done/workflows/secure-phase.md +166 -0
  311. package/get-shit-done/workflows/session-report.md +146 -0
  312. package/get-shit-done/workflows/settings.md +319 -0
  313. package/get-shit-done/workflows/ship.md +302 -0
  314. package/get-shit-done/workflows/sketch-wrap-up.md +283 -0
  315. package/get-shit-done/workflows/sketch.md +286 -0
  316. package/get-shit-done/workflows/spec-phase.md +262 -0
  317. package/get-shit-done/workflows/spike-wrap-up.md +281 -0
  318. package/get-shit-done/workflows/spike.md +362 -0
  319. package/get-shit-done/workflows/stats.md +60 -0
  320. package/get-shit-done/workflows/sync-skills.md +182 -0
  321. package/get-shit-done/workflows/transition.md +693 -0
  322. package/get-shit-done/workflows/ui-phase.md +323 -0
  323. package/get-shit-done/workflows/ui-review.md +190 -0
  324. package/get-shit-done/workflows/ultraplan-phase.md +189 -0
  325. package/get-shit-done/workflows/undo.md +314 -0
  326. package/get-shit-done/workflows/update.md +587 -0
  327. package/get-shit-done/workflows/validate-phase.md +176 -0
  328. package/get-shit-done/workflows/verify-phase.md +465 -0
  329. package/get-shit-done/workflows/verify-work.md +740 -0
  330. package/hooks/dist/gsd-check-update-worker.js +108 -0
  331. package/hooks/dist/gsd-check-update.js +64 -0
  332. package/hooks/dist/gsd-context-monitor.js +192 -0
  333. package/hooks/dist/gsd-phase-boundary.sh +28 -0
  334. package/hooks/dist/gsd-prompt-guard.js +97 -0
  335. package/hooks/dist/gsd-read-guard.js +82 -0
  336. package/hooks/dist/gsd-read-injection-scanner.js +152 -0
  337. package/hooks/dist/gsd-session-state.sh +34 -0
  338. package/hooks/dist/gsd-statusline.js +293 -0
  339. package/hooks/dist/gsd-validate-commit.sh +48 -0
  340. package/hooks/dist/gsd-workflow-guard.js +94 -0
  341. package/hooks/gsd-check-update-worker.js +108 -0
  342. package/hooks/gsd-check-update.js +64 -0
  343. package/hooks/gsd-context-monitor.js +192 -0
  344. package/hooks/gsd-phase-boundary.sh +28 -0
  345. package/hooks/gsd-prompt-guard.js +97 -0
  346. package/hooks/gsd-read-guard.js +82 -0
  347. package/hooks/gsd-read-injection-scanner.js +152 -0
  348. package/hooks/gsd-session-state.sh +34 -0
  349. package/hooks/gsd-statusline.js +293 -0
  350. package/hooks/gsd-validate-commit.sh +48 -0
  351. package/hooks/gsd-workflow-guard.js +94 -0
  352. package/package.json +59 -0
  353. package/scripts/base64-scan.sh +262 -0
  354. package/scripts/build-hooks.js +95 -0
  355. package/scripts/gen-inventory-manifest.cjs +109 -0
  356. package/scripts/prompt-injection-scan.sh +201 -0
  357. package/scripts/run-tests.cjs +33 -0
  358. package/scripts/secret-scan.sh +227 -0
  359. package/sdk/package-lock.json +1998 -0
  360. package/sdk/package.json +52 -0
  361. package/sdk/prompts/agents/gsd-executor.md +110 -0
  362. package/sdk/prompts/agents/gsd-phase-researcher.md +158 -0
  363. package/sdk/prompts/agents/gsd-plan-checker.md +160 -0
  364. package/sdk/prompts/agents/gsd-planner.md +214 -0
  365. package/sdk/prompts/agents/gsd-project-researcher.md +323 -0
  366. package/sdk/prompts/agents/gsd-research-synthesizer.md +237 -0
  367. package/sdk/prompts/agents/gsd-roadmapper.md +670 -0
  368. package/sdk/prompts/agents/gsd-verifier.md +159 -0
  369. package/sdk/prompts/templates/project.md +186 -0
  370. package/sdk/prompts/templates/requirements.md +231 -0
  371. package/sdk/prompts/templates/research-project/ARCHITECTURE.md +204 -0
  372. package/sdk/prompts/templates/research-project/FEATURES.md +147 -0
  373. package/sdk/prompts/templates/research-project/PITFALLS.md +200 -0
  374. package/sdk/prompts/templates/research-project/STACK.md +120 -0
  375. package/sdk/prompts/templates/research-project/SUMMARY.md +170 -0
  376. package/sdk/prompts/templates/roadmap.md +202 -0
  377. package/sdk/prompts/templates/state.md +175 -0
  378. package/sdk/prompts/workflows/discuss-phase.md +126 -0
  379. package/sdk/prompts/workflows/execute-plan.md +106 -0
  380. package/sdk/prompts/workflows/plan-phase.md +84 -0
  381. package/sdk/prompts/workflows/research-phase.md +45 -0
  382. package/sdk/prompts/workflows/verify-phase.md +142 -0
  383. package/sdk/src/assembled-prompts.test.ts +349 -0
  384. package/sdk/src/cli-transport.test.ts +388 -0
  385. package/sdk/src/cli-transport.ts +130 -0
  386. package/sdk/src/cli.test.ts +383 -0
  387. package/sdk/src/cli.ts +670 -0
  388. package/sdk/src/config.test.ts +168 -0
  389. package/sdk/src/config.ts +177 -0
  390. package/sdk/src/context-engine.test.ts +295 -0
  391. package/sdk/src/context-engine.ts +170 -0
  392. package/sdk/src/context-truncation.test.ts +163 -0
  393. package/sdk/src/context-truncation.ts +233 -0
  394. package/sdk/src/e2e.integration.test.ts +178 -0
  395. package/sdk/src/errors.ts +72 -0
  396. package/sdk/src/event-stream.test.ts +661 -0
  397. package/sdk/src/event-stream.ts +441 -0
  398. package/sdk/src/failure-memory.test.ts +457 -0
  399. package/sdk/src/failure-memory.ts +1324 -0
  400. package/sdk/src/golden/capture.ts +95 -0
  401. package/sdk/src/golden/fixtures/generate-slug.golden.json +1 -0
  402. package/sdk/src/golden/fixtures/profile-sample-sessions/demo-project/sample.jsonl +3 -0
  403. package/sdk/src/golden/fixtures/summary-extract-sample.md +26 -0
  404. package/sdk/src/golden/fixtures/uat-render-checkpoint-sample.md +15 -0
  405. package/sdk/src/golden/golden-integration-covered.ts +30 -0
  406. package/sdk/src/golden/golden-mutation-covered.ts +7 -0
  407. package/sdk/src/golden/golden-policy.test.ts +8 -0
  408. package/sdk/src/golden/golden-policy.ts +112 -0
  409. package/sdk/src/golden/golden.integration.test.ts +373 -0
  410. package/sdk/src/golden/init-golden-normalize.ts +15 -0
  411. package/sdk/src/golden/read-only-golden-rows.ts +77 -0
  412. package/sdk/src/golden/read-only-parity.integration.test.ts +125 -0
  413. package/sdk/src/golden/registry-canonical-commands.ts +31 -0
  414. package/sdk/src/gsd-tools.test.ts +409 -0
  415. package/sdk/src/gsd-tools.ts +595 -0
  416. package/sdk/src/headless-prompts.test.ts +159 -0
  417. package/sdk/src/index.ts +333 -0
  418. package/sdk/src/init-e2e.integration.test.ts +136 -0
  419. package/sdk/src/init-runner.test.ts +783 -0
  420. package/sdk/src/init-runner.ts +735 -0
  421. package/sdk/src/lifecycle-e2e.integration.test.ts +258 -0
  422. package/sdk/src/logger.test.ts +149 -0
  423. package/sdk/src/logger.ts +113 -0
  424. package/sdk/src/milestone-runner.test.ts +421 -0
  425. package/sdk/src/phase-prompt.test.ts +538 -0
  426. package/sdk/src/phase-prompt.ts +264 -0
  427. package/sdk/src/phase-runner-types.test.ts +421 -0
  428. package/sdk/src/phase-runner.integration.test.ts +377 -0
  429. package/sdk/src/phase-runner.test.ts +2333 -0
  430. package/sdk/src/phase-runner.ts +1203 -0
  431. package/sdk/src/plan-parser.test.ts +528 -0
  432. package/sdk/src/plan-parser.ts +427 -0
  433. package/sdk/src/prompt-builder.test.ts +306 -0
  434. package/sdk/src/prompt-builder.ts +193 -0
  435. package/sdk/src/prompt-sanitizer.test.ts +260 -0
  436. package/sdk/src/prompt-sanitizer.ts +71 -0
  437. package/sdk/src/query/QUERY-HANDLERS.md +317 -0
  438. package/sdk/src/query/audit-open.ts +722 -0
  439. package/sdk/src/query/check-auto-mode.test.ts +77 -0
  440. package/sdk/src/query/check-auto-mode.ts +50 -0
  441. package/sdk/src/query/check-completion.test.ts +113 -0
  442. package/sdk/src/query/check-completion.ts +182 -0
  443. package/sdk/src/query/check-gates.test.ts +103 -0
  444. package/sdk/src/query/check-gates.ts +112 -0
  445. package/sdk/src/query/check-ship-ready.test.ts +77 -0
  446. package/sdk/src/query/check-ship-ready.ts +103 -0
  447. package/sdk/src/query/check-verification-status.test.ts +143 -0
  448. package/sdk/src/query/check-verification-status.ts +160 -0
  449. package/sdk/src/query/commit.test.ts +202 -0
  450. package/sdk/src/query/commit.ts +301 -0
  451. package/sdk/src/query/config-gates.test.ts +89 -0
  452. package/sdk/src/query/config-gates.ts +69 -0
  453. package/sdk/src/query/config-mutation.test.ts +365 -0
  454. package/sdk/src/query/config-mutation.ts +497 -0
  455. package/sdk/src/query/config-query.test.ts +161 -0
  456. package/sdk/src/query/config-query.ts +190 -0
  457. package/sdk/src/query/context-history.test.ts +165 -0
  458. package/sdk/src/query/context-history.ts +467 -0
  459. package/sdk/src/query/decomposed-handlers.test.ts +365 -0
  460. package/sdk/src/query/detect-custom-files.ts +97 -0
  461. package/sdk/src/query/detect-phase-type.test.ts +105 -0
  462. package/sdk/src/query/detect-phase-type.ts +141 -0
  463. package/sdk/src/query/docs-init.ts +257 -0
  464. package/sdk/src/query/failure-capture.ts +58 -0
  465. package/sdk/src/query/frontmatter-array.test.ts +14 -0
  466. package/sdk/src/query/frontmatter-mutation.test.ts +259 -0
  467. package/sdk/src/query/frontmatter-mutation.ts +343 -0
  468. package/sdk/src/query/frontmatter.test.ts +281 -0
  469. package/sdk/src/query/frontmatter.ts +397 -0
  470. package/sdk/src/query/helpers.test.ts +426 -0
  471. package/sdk/src/query/helpers.ts +482 -0
  472. package/sdk/src/query/index.ts +586 -0
  473. package/sdk/src/query/init-complex.test.ts +232 -0
  474. package/sdk/src/query/init-complex.ts +578 -0
  475. package/sdk/src/query/init.test.ts +522 -0
  476. package/sdk/src/query/init.ts +1046 -0
  477. package/sdk/src/query/intel.test.ts +90 -0
  478. package/sdk/src/query/intel.ts +404 -0
  479. package/sdk/src/query/normalize-query-command.test.ts +50 -0
  480. package/sdk/src/query/normalize-query-command.ts +56 -0
  481. package/sdk/src/query/phase-lifecycle.test.ts +1126 -0
  482. package/sdk/src/query/phase-lifecycle.ts +1799 -0
  483. package/sdk/src/query/phase-list-queries.test.ts +88 -0
  484. package/sdk/src/query/phase-list-queries.ts +152 -0
  485. package/sdk/src/query/phase-ready.test.ts +65 -0
  486. package/sdk/src/query/phase-ready.ts +158 -0
  487. package/sdk/src/query/phase.test.ts +307 -0
  488. package/sdk/src/query/phase.ts +340 -0
  489. package/sdk/src/query/pipeline.test.ts +169 -0
  490. package/sdk/src/query/pipeline.ts +243 -0
  491. package/sdk/src/query/plan-execution-route.test.ts +166 -0
  492. package/sdk/src/query/plan-execution-route.ts +209 -0
  493. package/sdk/src/query/plan-task-structure.test.ts +65 -0
  494. package/sdk/src/query/plan-task-structure.ts +63 -0
  495. package/sdk/src/query/profile-extract-messages.ts +247 -0
  496. package/sdk/src/query/profile-output.ts +908 -0
  497. package/sdk/src/query/profile-questionnaire-data.ts +181 -0
  498. package/sdk/src/query/profile-sample.ts +184 -0
  499. package/sdk/src/query/profile-scan-sessions.ts +174 -0
  500. package/sdk/src/query/profile.test.ts +74 -0
  501. package/sdk/src/query/profile.ts +337 -0
  502. package/sdk/src/query/progress.test.ts +156 -0
  503. package/sdk/src/query/progress.ts +566 -0
  504. package/sdk/src/query/registry.test.ts +216 -0
  505. package/sdk/src/query/registry.ts +174 -0
  506. package/sdk/src/query/requirements-extract-from-plans.test.ts +58 -0
  507. package/sdk/src/query/requirements-extract-from-plans.ts +86 -0
  508. package/sdk/src/query/roadmap-update-plan-progress.ts +132 -0
  509. package/sdk/src/query/roadmap.test.ts +359 -0
  510. package/sdk/src/query/roadmap.ts +591 -0
  511. package/sdk/src/query/route-next-action.test.ts +61 -0
  512. package/sdk/src/query/route-next-action.ts +345 -0
  513. package/sdk/src/query/runtime-health.ts +7 -0
  514. package/sdk/src/query/schema-detect.ts +189 -0
  515. package/sdk/src/query/skill-manifest.ts +214 -0
  516. package/sdk/src/query/skills.test.ts +80 -0
  517. package/sdk/src/query/skills.ts +62 -0
  518. package/sdk/src/query/state-mutation.test.ts +450 -0
  519. package/sdk/src/query/state-mutation.ts +1444 -0
  520. package/sdk/src/query/state-project-load.ts +109 -0
  521. package/sdk/src/query/state.test.ts +347 -0
  522. package/sdk/src/query/state.ts +397 -0
  523. package/sdk/src/query/summary.test.ts +95 -0
  524. package/sdk/src/query/summary.ts +296 -0
  525. package/sdk/src/query/template.test.ts +180 -0
  526. package/sdk/src/query/template.ts +242 -0
  527. package/sdk/src/query/uat.test.ts +77 -0
  528. package/sdk/src/query/uat.ts +314 -0
  529. package/sdk/src/query/utils.test.ts +82 -0
  530. package/sdk/src/query/utils.ts +92 -0
  531. package/sdk/src/query/validate.test.ts +656 -0
  532. package/sdk/src/query/validate.ts +807 -0
  533. package/sdk/src/query/verify.test.ts +414 -0
  534. package/sdk/src/query/verify.ts +645 -0
  535. package/sdk/src/query/websearch.test.ts +31 -0
  536. package/sdk/src/query/websearch.ts +82 -0
  537. package/sdk/src/query/workspace.test.ts +119 -0
  538. package/sdk/src/query/workspace.ts +131 -0
  539. package/sdk/src/query/workstream.test.ts +51 -0
  540. package/sdk/src/query/workstream.ts +434 -0
  541. package/sdk/src/research-gate.test.ts +190 -0
  542. package/sdk/src/research-gate.ts +94 -0
  543. package/sdk/src/runtime-health.test.ts +176 -0
  544. package/sdk/src/runtime-health.ts +387 -0
  545. package/sdk/src/session-runner.test.ts +98 -0
  546. package/sdk/src/session-runner.ts +299 -0
  547. package/sdk/src/tool-scoping.test.ts +160 -0
  548. package/sdk/src/tool-scoping.ts +61 -0
  549. package/sdk/src/types.ts +917 -0
  550. package/sdk/src/workstream-utils.ts +33 -0
  551. package/sdk/src/ws-flag.test.ts +285 -0
  552. package/sdk/src/ws-transport.test.ts +161 -0
  553. package/sdk/src/ws-transport.ts +93 -0
  554. package/sdk/tsconfig.json +20 -0
package/README.md ADDED
@@ -0,0 +1,939 @@
1
+ <div align="center">
2
+
3
+ # GSD REMIX
4
+
5
+ **English** · [简体中文](README.zh-CN.md)
6
+
7
+ **An unofficial, opinionated remix of GSD for Claude Code, OpenCode, Gemini CLI, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Augment, Trae, Qwen Code, Cline, and CodeBuddy.**
8
+
9
+ **Solves context rot — the quality degradation that happens as Claude fills its context window.**
10
+
11
+ [![npm version](https://img.shields.io/npm/v/gsd-remix?style=for-the-badge&logo=npm&logoColor=white&color=CB3837)](https://www.npmjs.com/package/gsd-remix)
12
+ [![npm downloads](https://img.shields.io/npm/dm/gsd-remix?style=for-the-badge&logo=npm&logoColor=white&color=CB3837)](https://www.npmjs.com/package/gsd-remix)
13
+ [![Tests](https://img.shields.io/github/actions/workflow/status/gsd-build/get-shit-done/test.yml?branch=main&style=for-the-badge&logo=github&label=Tests)](https://github.com/gsd-build/get-shit-done/actions/workflows/test.yml)
14
+ [![Discord](https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/mYgfVNfA2r)
15
+ [![X (Twitter)](https://img.shields.io/badge/X-@gsd__foundation-000000?style=for-the-badge&logo=x&logoColor=white)](https://x.com/gsd_foundation)
16
+ [![$GSD Token](https://img.shields.io/badge/$GSD-Dexscreener-1C1C1C?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgZmlsbD0iIzAwRkYwMCIvPjwvc3ZnPg==&logoColor=00FF00)](https://dexscreener.com/solana/dwudwjvan7bzkw9zwlbyv6kspdlvhwzrqy6ebk8xzxkv)
17
+ [![License](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](LICENSE)
18
+
19
+ <br>
20
+
21
+ ```bash
22
+ npx gsd-remix@latest
23
+ ```
24
+
25
+ **Keeps the same `/gsd-*` commands, planning file layout, and core workflow surface as GSD.**
26
+
27
+ **Works on Mac, Windows, and Linux.**
28
+
29
+ <br>
30
+
31
+ ![GSD Remix Install](assets/terminal.svg)
32
+
33
+ <br>
34
+
35
+ *"If you know clearly what you want, this WILL build it for you. No bs."*
36
+
37
+ *"I've done SpecKit, OpenSpec and Taskmaster — this has produced the best results for me."*
38
+
39
+ *"By far the most powerful addition to my Claude Code. Nothing over-engineered. Literally just gets shit done."*
40
+
41
+ <br>
42
+
43
+ **Trusted by engineers at Amazon, Google, Shopify, and Webflow.**
44
+
45
+ [Why I Built This](#why-i-built-this) · [How It Works](#how-it-works) · [Remix Differences](#remix-differences) · [Commands](#commands) · [Why It Works](#why-it-works) · [User Guide](docs/USER-GUIDE.md)
46
+
47
+ </div>
48
+
49
+ ---
50
+
51
+ > [!NOTE]
52
+ > `gsd-remix` is published independently on npm. It is not affiliated with the official GSD project, but it intentionally keeps the same `/gsd-*` command surface and internal planning layout for compatibility.
53
+
54
+ > [!IMPORTANT]
55
+ > ### Migrating From Upstream GSD
56
+ >
57
+ > If you're coming from upstream GSD, the core project structure and `/gsd-*` command surface remain intentionally familiar here.
58
+ >
59
+ > **To re-import an existing project into `gsd-remix`:**
60
+ > 1. Run `/gsd-map-codebase` to scan and index your current codebase state
61
+ > 2. Run `/gsd-new-project` to initialize a fresh planning structure using the codebase map as context
62
+ > 3. Review [docs/USER-GUIDE.md](docs/USER-GUIDE.md) and the [CHANGELOG](CHANGELOG.md) for updates — a lot has changed since you were last here
63
+ >
64
+ > Your code is fine. The planning context just needs to be rebuilt. The two commands above handle that.
65
+
66
+ ---
67
+
68
+ ## Remix Differences
69
+
70
+ `gsd-remix` is intentionally close to upstream GSD at the command and file-layout level, but it includes opinionated changes in behavior and packaging.
71
+
72
+ All remix-specific changes are tracked in [docs/REMIX-DIFFERENCES.md](docs/REMIX-DIFFERENCES.md). If this fork changes upstream behavior, installation, prompts, queries, or workflow defaults, it should be recorded there.
73
+
74
+ Current highlights:
75
+ - Published independently on npm as `gsd-remix`, while keeping the `/gsd-*` command surface and core planning layout compatible
76
+ - Isolates the bundled SDK namespace as `@gsd-remix/sdk` / `gsd-remix-sdk`, so remix installs no longer collide with upstream `@gsd-build/sdk`
77
+ - Token-efficiency changes in the main workflow path, including summary-first discuss history loading and low-complexity inline execution routing
78
+ - Failure-memory event capture and promotion via `.planning/failure-memory/`, turning repeated execution mistakes into project-local memory and deterministic execute preflight checks
79
+ - Runtime health diagnostics via automatic workflow preflight checks and `/gsd-health --runtime`, so broken installs and unsupported Node versions fail fast instead of silently degrading
80
+
81
+ ---
82
+
83
+ ## Why I Built This
84
+
85
+ I'm a solo developer. I don't write code — Claude Code does.
86
+
87
+ Other spec-driven development tools exist; BMAD, Speckit... But they all seem to make things way more complicated than they need to be (sprint ceremonies, story points, stakeholder syncs, retrospectives, Jira workflows) or lack real big picture understanding of what you're building. I'm not a 50-person software company. I don't want to play enterprise theater. I'm just a creative person trying to build great things that work.
88
+
89
+ So I built GSD. The complexity is in the system, not in your workflow. Behind the scenes: context engineering, XML prompt formatting, subagent orchestration, state management. What you see: a few commands that just work.
90
+
91
+ The system gives Claude everything it needs to do the work *and* verify it. I trust the workflow. It just does a good job.
92
+
93
+ That's what this is. No enterprise roleplay bullshit. Just an incredibly effective system for building cool stuff consistently using Claude Code.
94
+
95
+ — **TÂCHES**
96
+
97
+ ---
98
+
99
+ Vibecoding has a bad reputation. You describe what you want, AI generates code, and you get inconsistent garbage that falls apart at scale.
100
+
101
+ GSD fixes that. It's the context engineering layer that makes Claude Code reliable. Describe your idea, let the system extract everything it needs to know, and let Claude Code get to work.
102
+
103
+ ---
104
+
105
+ ## Who This Is For
106
+
107
+ People who want to describe what they want and have it built correctly — without pretending they're running a 50-person engineering org.
108
+
109
+ 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.
110
+
111
+ ### v1.37.0 Highlights
112
+
113
+ - **Spiking & sketching** — `/gsd-spike` runs 2–5 focused experiments with Given/When/Then verdicts; `/gsd-sketch` produces 2–3 interactive HTML mockup variants per design question — both store artifacts in `.planning/` and pair with wrap-up commands to package findings into project-local skills
114
+ - **Agent size-budget enforcement** — Tiered line-count limits (XL: 1 600, Large: 1 000, Default: 500) keep agent prompts lean; violations surface in CI
115
+ - **Shared boilerplate extraction** — Mandatory-initial-read and project-skills-discovery logic extracted to reference files, reducing duplication across a dozen agents
116
+ - **Runtime health checks** — `discuss-phase`, `plan-phase`, and `execute-phase` now run deterministic runtime preflight checks up front; `/gsd-health --runtime` diagnoses install/runtime drift and `/gsd-health --runtime --repair` rebuilds the bundled SDK
117
+ - **Isolated SDK package/binary** — the remix now builds its bundled SDK as `@gsd-remix/sdk` with the `gsd-remix-sdk` binary, avoiding PATH/package collisions with upstream installs
118
+
119
+ ---
120
+
121
+ ## Getting Started
122
+
123
+ ```bash
124
+ npx gsd-remix@latest
125
+ ```
126
+
127
+ The installer prompts you to choose:
128
+ 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)
129
+ 2. **Location** — Global (all projects) or local (current project only)
130
+
131
+ Verify with:
132
+ - Claude Code / Gemini / Copilot / Antigravity / Qwen Code: `/gsd-help`
133
+ - OpenCode / Kilo / Augment / Trae / CodeBuddy: `/gsd-help`
134
+ - Codex: `$gsd-help`
135
+ - Cline: GSD installs via `.clinerules` — verify by checking `.clinerules` exists
136
+
137
+ > [!NOTE]
138
+ > 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 retained only as a legacy upstream import path. The installer handles all formats automatically.
139
+
140
+ The canonical discovery contract is documented in [docs/skills/discovery-contract.md](docs/skills/discovery-contract.md).
141
+
142
+ > [!TIP]
143
+ > For source-based installs or environments where npm is unavailable, see **[docs/manual-update.md](docs/manual-update.md)**.
144
+
145
+ ### Staying Updated
146
+
147
+ GSD evolves fast. Update periodically:
148
+
149
+ ```bash
150
+ npx gsd-remix@latest
151
+ ```
152
+
153
+ <details>
154
+ <summary><strong>Non-interactive Install (Docker, CI, Scripts)</strong></summary>
155
+
156
+ ```bash
157
+ # Claude Code
158
+ npx gsd-remix --claude --global # Install to ~/.claude/
159
+ npx gsd-remix --claude --local # Install to ./.claude/
160
+
161
+ # OpenCode
162
+ npx gsd-remix --opencode --global # Install to ~/.config/opencode/
163
+
164
+ # Gemini CLI
165
+ npx gsd-remix --gemini --global # Install to ~/.gemini/
166
+
167
+ # Kilo
168
+ npx gsd-remix --kilo --global # Install to ~/.config/kilo/
169
+ npx gsd-remix --kilo --local # Install to ./.kilo/
170
+
171
+ # Codex
172
+ npx gsd-remix --codex --global # Install to ~/.codex/
173
+ npx gsd-remix --codex --local # Install to ./.codex/
174
+
175
+ # Copilot
176
+ npx gsd-remix --copilot --global # Install to ~/.github/
177
+ npx gsd-remix --copilot --local # Install to ./.github/
178
+
179
+ # Cursor CLI
180
+ npx gsd-remix --cursor --global # Install to ~/.cursor/
181
+ npx gsd-remix --cursor --local # Install to ./.cursor/
182
+
183
+ # Windsurf
184
+ npx gsd-remix --windsurf --global # Install to ~/.codeium/windsurf/
185
+ npx gsd-remix --windsurf --local # Install to ./.windsurf/
186
+
187
+ # Antigravity
188
+ npx gsd-remix --antigravity --global # Install to ~/.gemini/antigravity/
189
+ npx gsd-remix --antigravity --local # Install to ./.agent/
190
+
191
+ # Augment
192
+ npx gsd-remix --augment --global # Install to ~/.augment/
193
+ npx gsd-remix --augment --local # Install to ./.augment/
194
+
195
+ # Trae
196
+ npx gsd-remix --trae --global # Install to ~/.trae/
197
+ npx gsd-remix --trae --local # Install to ./.trae/
198
+
199
+ # Qwen Code
200
+ npx gsd-remix --qwen --global # Install to ~/.qwen/
201
+ npx gsd-remix --qwen --local # Install to ./.qwen/
202
+
203
+ # CodeBuddy
204
+ npx gsd-remix --codebuddy --global # Install to ~/.codebuddy/
205
+ npx gsd-remix --codebuddy --local # Install to ./.codebuddy/
206
+
207
+ # Cline
208
+ npx gsd-remix --cline --global # Install to ~/.cline/
209
+ npx gsd-remix --cline --local # Install to ./.clinerules
210
+
211
+ # All runtimes
212
+ npx gsd-remix --all --global # Install to all directories
213
+ ```
214
+
215
+ Use `--global` (`-g`) or `--local` (`-l`) to skip the location prompt.
216
+ Use `--claude`, `--opencode`, `--gemini`, `--kilo`, `--codex`, `--copilot`, `--cursor`, `--windsurf`, `--antigravity`, `--augment`, `--trae`, `--qwen`, `--codebuddy`, `--cline`, or `--all` to skip the runtime prompt.
217
+ The GSD Remix SDK CLI (`gsd-remix-sdk`) is installed automatically from bundled source (required by `/gsd-*` commands). Pass `--no-sdk` to skip the SDK install, or `--sdk` to force a reinstall. Runtime SDK repair is available through `/gsd-health --runtime --repair`.
218
+
219
+ To confirm that an existing `/gsd-*` command surface is coming from `gsd-remix` rather than an upstream GSD leftover, run `/gsd-health --runtime`. The output includes `Distribution: GSD Remix`, the package version, and the resolved `IDENTITY.json` path. You can also inspect the marker directly at `~/.claude/get-shit-done/IDENTITY.json` for Claude global installs.
220
+
221
+ </details>
222
+
223
+ <details>
224
+ <summary><strong>Development Installation</strong></summary>
225
+
226
+ Clone the repository, build hooks, and run the installer locally:
227
+
228
+ ```bash
229
+ git clone https://github.com/gsd-build/get-shit-done.git
230
+ cd get-shit-done
231
+ npm run build:hooks
232
+ node bin/install.js --claude --local
233
+ ```
234
+
235
+ The `build:hooks` step is required — it compiles hook sources into `hooks/dist/` which the installer copies from. Without it, hooks won't be installed and you'll get hook errors in Claude Code. (The npm release handles this automatically via `prepublishOnly`.)
236
+
237
+ Installs to `./.claude/` for testing modifications before contributing.
238
+
239
+ </details>
240
+
241
+ ### Recommended: Skip Permissions Mode
242
+
243
+ GSD is designed for frictionless automation. Run Claude Code with:
244
+
245
+ ```bash
246
+ claude --dangerously-skip-permissions
247
+ ```
248
+
249
+ > [!TIP]
250
+ > This is how GSD is intended to be used — stopping to approve `date` and `git commit` 50 times defeats the purpose.
251
+
252
+ <details>
253
+ <summary><strong>Alternative: Granular Permissions</strong></summary>
254
+
255
+ If you prefer not to use that flag, add this to your project's `.claude/settings.json`:
256
+
257
+ ```json
258
+ {
259
+ "permissions": {
260
+ "allow": [
261
+ "Bash(date:*)",
262
+ "Bash(echo:*)",
263
+ "Bash(cat:*)",
264
+ "Bash(ls:*)",
265
+ "Bash(mkdir:*)",
266
+ "Bash(wc:*)",
267
+ "Bash(head:*)",
268
+ "Bash(tail:*)",
269
+ "Bash(sort:*)",
270
+ "Bash(grep:*)",
271
+ "Bash(tr:*)",
272
+ "Bash(git add:*)",
273
+ "Bash(git commit:*)",
274
+ "Bash(git status:*)",
275
+ "Bash(git log:*)",
276
+ "Bash(git diff:*)",
277
+ "Bash(git tag:*)"
278
+ ]
279
+ }
280
+ }
281
+ ```
282
+
283
+ </details>
284
+
285
+ ---
286
+
287
+ ## How It Works
288
+
289
+ > **Already have code?** Run `/gsd-map-codebase` first. It spawns parallel agents to analyze your stack, architecture, conventions, and concerns. Then `/gsd-new-project` knows your codebase — questions focus on what you're adding, and planning automatically loads your patterns.
290
+
291
+ ### 1. Initialize Project
292
+
293
+ ```
294
+ /gsd-new-project
295
+ ```
296
+
297
+ One command, one flow. The system:
298
+
299
+ 1. **Questions** — Asks until it understands your idea completely (goals, constraints, tech preferences, edge cases)
300
+ 2. **Research** — Spawns parallel agents to investigate the domain (optional but recommended)
301
+ 3. **Requirements** — Extracts what's v1, v2, and out of scope
302
+ 4. **Roadmap** — Creates phases mapped to requirements
303
+
304
+ You approve the roadmap. Now you're ready to build.
305
+
306
+ **Creates:** `PROJECT.md`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`, `.planning/research/`
307
+
308
+ ---
309
+
310
+ ### 2. Discuss Phase
311
+
312
+ ```
313
+ /gsd-discuss-phase 1
314
+ ```
315
+
316
+ **This is where you shape the implementation.**
317
+
318
+ Your roadmap has a sentence or two per phase. That's not enough context to build something the way *you* imagine it. This step captures your preferences before anything gets researched or planned.
319
+
320
+ The system analyzes the phase and identifies gray areas based on what's being built:
321
+
322
+ - **Visual features** → Layout, density, interactions, empty states
323
+ - **APIs/CLIs** → Response format, flags, error handling, verbosity
324
+ - **Content systems** → Structure, tone, depth, flow
325
+ - **Organization tasks** → Grouping criteria, naming, duplicates, exceptions
326
+
327
+ For each area you select, it asks until you're satisfied. The output — `CONTEXT.md` — feeds directly into the next two steps:
328
+
329
+ 1. **Researcher reads it** — Knows what patterns to investigate ("user wants card layout" → research card component libraries)
330
+ 2. **Planner reads it** — Knows what decisions are locked ("infinite scroll decided" → plan includes scroll handling)
331
+
332
+ The deeper you go here, the more the system builds what you actually want. Skip it and you get reasonable defaults. Use it and you get *your* vision.
333
+
334
+ **Creates:** `{phase_num}-CONTEXT.md`
335
+
336
+ > **Assumptions Mode:** Prefer codebase analysis over questions? Set `workflow.discuss_mode` to `assumptions` in `/gsd-settings`. The system reads your code, surfaces what it would do and why, and only asks you to correct what's wrong. See [Discuss Mode](docs/workflow-discuss-mode.md).
337
+
338
+ ---
339
+
340
+ ### 3. Plan Phase
341
+
342
+ ```
343
+ /gsd-plan-phase 1
344
+ ```
345
+
346
+ The system:
347
+
348
+ 1. **Researches** — Investigates how to implement this phase, guided by your CONTEXT.md decisions
349
+ 2. **Plans** — Creates 2-3 atomic task plans with XML structure
350
+ 3. **Verifies** — Checks plans against requirements, loops until they pass
351
+
352
+ Each plan is small enough to execute in a fresh context window. No degradation, no "I'll be more concise now."
353
+
354
+ **Creates:** `{phase_num}-RESEARCH.md`, `{phase_num}-{N}-PLAN.md`
355
+
356
+ ---
357
+
358
+ ### 4. Execute Phase
359
+
360
+ ```
361
+ /gsd-execute-phase 1
362
+ ```
363
+
364
+ The system:
365
+
366
+ 1. **Runs plans in waves** — Parallel where possible, sequential when dependent
367
+ 2. **Fresh context per plan** — 200k tokens purely for implementation, zero accumulated garbage
368
+ 3. **Commits per task** — Every task gets its own atomic commit
369
+ 4. **Verifies against goals** — Checks the codebase delivers what the phase promised
370
+
371
+ Walk away, come back to completed work with clean git history.
372
+
373
+ **How Wave Execution Works:**
374
+
375
+ Plans are grouped into "waves" based on dependencies. Within each wave, plans run in parallel. Waves run sequentially.
376
+
377
+ ```
378
+ ┌────────────────────────────────────────────────────────────────────┐
379
+ │ PHASE EXECUTION │
380
+ ├────────────────────────────────────────────────────────────────────┤
381
+ │ │
382
+ │ WAVE 1 (parallel) WAVE 2 (parallel) WAVE 3 │
383
+ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
384
+ │ │ Plan 01 │ │ Plan 02 │ → │ Plan 03 │ │ Plan 04 │ → │ Plan 05 │ │
385
+ │ │ │ │ │ │ │ │ │ │ │ │
386
+ │ │ User │ │ Product │ │ Orders │ │ Cart │ │ Checkout│ │
387
+ │ │ Model │ │ Model │ │ API │ │ API │ │ UI │ │
388
+ │ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │
389
+ │ │ │ ↑ ↑ ↑ │
390
+ │ └───────────┴──────────────┴───────────┘ │ │
391
+ │ Dependencies: Plan 03 needs Plan 01 │ │
392
+ │ Plan 04 needs Plan 02 │ │
393
+ │ Plan 05 needs Plans 03 + 04 │ │
394
+ │ │
395
+ └────────────────────────────────────────────────────────────────────┘
396
+ ```
397
+
398
+ **Why waves matter:**
399
+ - Independent plans → Same wave → Run in parallel
400
+ - Dependent plans → Later wave → Wait for dependencies
401
+ - File conflicts → Sequential plans or same plan
402
+
403
+ This is why "vertical slices" (Plan 01: User feature end-to-end) parallelize better than "horizontal layers" (Plan 01: All models, Plan 02: All APIs).
404
+
405
+ **Creates:** `{phase_num}-{N}-SUMMARY.md`, `{phase_num}-VERIFICATION.md`
406
+
407
+ ---
408
+
409
+ ### 5. Verify Work
410
+
411
+ ```
412
+ /gsd-verify-work 1
413
+ ```
414
+
415
+ **This is where you confirm it actually works.**
416
+
417
+ Automated verification checks that code exists and tests pass. But does the feature *work* the way you expected? This is your chance to use it.
418
+
419
+ The system:
420
+
421
+ 1. **Extracts testable deliverables** — What you should be able to do now
422
+ 2. **Walks you through one at a time** — "Can you log in with email?" Yes/no, or describe what's wrong
423
+ 3. **Diagnoses failures automatically** — Spawns debug agents to find root causes
424
+ 4. **Creates verified fix plans** — Ready for immediate re-execution
425
+
426
+ If everything passes, you move on. If something's broken, you don't manually debug — you just run `/gsd-execute-phase` again with the fix plans it created.
427
+
428
+ **Creates:** `{phase_num}-UAT.md`, fix plans if issues found
429
+
430
+ ---
431
+
432
+ ### 6. Repeat → Ship → Complete → Next Milestone
433
+
434
+ ```
435
+ /gsd-discuss-phase 2
436
+ /gsd-plan-phase 2
437
+ /gsd-execute-phase 2
438
+ /gsd-verify-work 2
439
+ /gsd-ship 2 # Create PR from verified work
440
+ ...
441
+ /gsd-complete-milestone
442
+ /gsd-new-milestone
443
+ ```
444
+
445
+ Or let GSD figure out the next step automatically:
446
+
447
+ ```
448
+ /gsd-next # Auto-detect and run next step
449
+ ```
450
+
451
+ Loop **discuss → plan → execute → verify → ship** until milestone complete.
452
+
453
+ If you want faster intake during discussion, use `/gsd-discuss-phase <n> --batch` to answer a small grouped set of questions at once instead of one-by-one. Use `--chain` to auto-chain discuss into plan+execute without stopping between steps.
454
+
455
+ Each phase gets your input (discuss), proper research (plan), clean execution (execute), and human verification (verify). Context stays fresh. Quality stays high.
456
+
457
+ When all phases are done, `/gsd-complete-milestone` archives the milestone and tags the release.
458
+
459
+ Then `/gsd-new-milestone` starts the next version — same flow as `new-project` but for your existing codebase. You describe what you want to build next, the system researches the domain, you scope requirements, and it creates a fresh roadmap. Each milestone is a clean cycle: define → build → ship.
460
+
461
+ ---
462
+
463
+ ### Quick Mode
464
+
465
+ ```
466
+ /gsd-quick
467
+ ```
468
+
469
+ **For ad-hoc tasks that don't need full planning.**
470
+
471
+ Quick mode gives you GSD guarantees (atomic commits, state tracking) with a faster path:
472
+
473
+ - **Same agents** — Planner + executor, same quality
474
+ - **Skips optional steps** — No research, no plan checker, no verifier by default
475
+ - **Separate tracking** — Lives in `.planning/quick/`, not phases
476
+
477
+ **`--discuss` flag:** Lightweight discussion to surface gray areas before planning.
478
+
479
+ **`--research` flag:** Spawns a focused researcher before planning. Investigates implementation approaches, library options, and pitfalls. Use when you're unsure how to approach a task.
480
+
481
+ **`--full` flag:** Enables all phases — discussion + research + plan-checking + verification. The full GSD pipeline in quick-task form.
482
+
483
+ **`--validate` flag:** Enables plan-checking + post-execution verification only (the previous `--full` behavior).
484
+
485
+ Flags are composable: `--discuss --research --validate` gives discussion + research + plan-checking + verification.
486
+
487
+ ```
488
+ /gsd-quick
489
+ > What do you want to do? "Add dark mode toggle to settings"
490
+ ```
491
+
492
+ **Creates:** `.planning/quick/001-add-dark-mode-toggle/PLAN.md`, `SUMMARY.md`
493
+
494
+ ---
495
+
496
+ ## Why It Works
497
+
498
+ ### Context Engineering
499
+
500
+ Claude Code is incredibly powerful *if* you give it the context it needs. Most people don't.
501
+
502
+ GSD handles it for you:
503
+
504
+ | File | What it does |
505
+ |------|--------------|
506
+ | `PROJECT.md` | Project vision, always loaded |
507
+ | `research/` | Ecosystem knowledge (stack, features, architecture, pitfalls) |
508
+ | `REQUIREMENTS.md` | Scoped v1/v2 requirements with phase traceability |
509
+ | `ROADMAP.md` | Where you're going, what's done |
510
+ | `STATE.md` | Decisions, blockers, position — memory across sessions |
511
+ | `PLAN.md` | Atomic task with XML structure, verification steps |
512
+ | `SUMMARY.md` | What happened, what changed, committed to history |
513
+ | `todos/` | Captured ideas and tasks for later work |
514
+ | `threads/` | Persistent context threads for cross-session work |
515
+ | `seeds/` | Forward-looking ideas that surface at the right milestone |
516
+
517
+ Size limits based on where Claude's quality degrades. Stay under, get consistent excellence.
518
+
519
+ ### XML Prompt Formatting
520
+
521
+ Every plan is structured XML optimized for Claude:
522
+
523
+ ```xml
524
+ <task type="auto">
525
+ <name>Create login endpoint</name>
526
+ <files>src/app/api/auth/login/route.ts</files>
527
+ <action>
528
+ Use jose for JWT (not jsonwebtoken - CommonJS issues).
529
+ Validate credentials against users table.
530
+ Return httpOnly cookie on success.
531
+ </action>
532
+ <verify>curl -X POST localhost:3000/api/auth/login returns 200 + Set-Cookie</verify>
533
+ <done>Valid credentials return cookie, invalid return 401</done>
534
+ </task>
535
+ ```
536
+
537
+ Precise instructions. No guessing. Verification built in.
538
+
539
+ ### Multi-Agent Orchestration
540
+
541
+ Every stage uses the same pattern: a thin orchestrator spawns specialized agents, collects results, and routes to the next step.
542
+
543
+ | Stage | Orchestrator does | Agents do |
544
+ |-------|------------------|-----------|
545
+ | Research | Coordinates, presents findings | 4 parallel researchers investigate stack, features, architecture, pitfalls |
546
+ | Planning | Validates, manages iteration | Planner creates plans, checker verifies, loop until pass |
547
+ | Execution | Groups into waves, tracks progress | Executors implement in parallel, each with fresh 200k context |
548
+ | Verification | Presents results, routes next | Verifier checks codebase against goals, debuggers diagnose failures |
549
+
550
+ The orchestrator never does heavy lifting. It spawns agents, waits, integrates results.
551
+
552
+ **The result:** You can run an entire phase — deep research, multiple plans created and verified, thousands of lines of code written across parallel executors, automated verification against goals — and your main context window stays at 30-40%. The work happens in fresh subagent contexts. Your session stays fast and responsive.
553
+
554
+ ### Atomic Git Commits
555
+
556
+ Each task gets its own commit immediately after completion:
557
+
558
+ ```bash
559
+ abc123f docs(08-02): complete user registration plan
560
+ def456g feat(08-02): add email confirmation flow
561
+ hij789k feat(08-02): implement password hashing
562
+ lmn012o feat(08-02): create registration endpoint
563
+ ```
564
+
565
+ > [!NOTE]
566
+ > **Benefits:** Git bisect finds exact failing task. Each task independently revertable. Clear history for Claude in future sessions. Better observability in AI-automated workflow.
567
+
568
+ Every commit is surgical, traceable, and meaningful.
569
+
570
+ ### Modular by Design
571
+
572
+ - Add phases to current milestone
573
+ - Insert urgent work between phases
574
+ - Complete milestones and start fresh
575
+ - Adjust plans without rebuilding everything
576
+
577
+ You're never locked in. The system adapts.
578
+
579
+ ---
580
+
581
+ ## Commands
582
+
583
+ ### Core Workflow
584
+
585
+ | Command | What it does |
586
+ |---------|--------------|
587
+ | `/gsd-new-project [--auto]` | Full initialization: questions → research → requirements → roadmap |
588
+ | `/gsd-discuss-phase [N] [--auto] [--analyze] [--chain]` | Capture implementation decisions before planning (`--analyze` adds trade-off analysis, `--chain` auto-chains into plan+execute) |
589
+ | `/gsd-plan-phase [N] [--auto] [--reviews]` | Research + plan + verify for a phase (`--reviews` loads codebase review findings) |
590
+ | `/gsd-execute-phase <N>` | Execute all plans in parallel waves, verify when complete |
591
+ | `/gsd-verify-work [N]` | Manual user acceptance testing ¹ |
592
+ | `/gsd-ship [N] [--draft]` | Create PR from verified phase work with auto-generated body |
593
+ | `/gsd-next` | Automatically advance to the next logical workflow step |
594
+ | `/gsd-fast <text>` | Inline trivial tasks — skips planning entirely, executes immediately |
595
+ | `/gsd-audit-milestone` | Verify milestone achieved its definition of done |
596
+ | `/gsd-complete-milestone` | Archive milestone, tag release |
597
+ | `/gsd-new-milestone [name]` | Start next version: questions → research → requirements → roadmap |
598
+ | `/gsd-forensics [desc]` | Post-mortem investigation of failed workflow runs (diagnoses stuck loops, missing artifacts, git anomalies) |
599
+ | `/gsd-milestone-summary [version]` | Generate comprehensive project summary for team onboarding and review |
600
+
601
+ ### Workstreams
602
+
603
+ | Command | What it does |
604
+ |---------|--------------|
605
+ | `/gsd-workstreams list` | Show all workstreams and their status |
606
+ | `/gsd-workstreams create <name>` | Create a namespaced workstream for parallel milestone work |
607
+ | `/gsd-workstreams switch <name>` | Switch active workstream |
608
+ | `/gsd-workstreams complete <name>` | Complete and merge a workstream |
609
+
610
+ ### Multi-Project Workspaces
611
+
612
+ | Command | What it does |
613
+ |---------|--------------|
614
+ | `/gsd-new-workspace` | Create isolated workspace with repo copies (worktrees or clones) |
615
+ | `/gsd-list-workspaces` | Show all GSD workspaces and their status |
616
+ | `/gsd-remove-workspace` | Remove workspace and clean up worktrees |
617
+
618
+ ### Spiking & Sketching
619
+
620
+ | Command | What it does |
621
+ |---------|--------------|
622
+ | `/gsd-spike [idea] [--quick]` | Throwaway experiments to validate feasibility before planning — no project init required |
623
+ | `/gsd-sketch [idea] [--quick]` | Throwaway HTML mockups with multi-variant exploration — no project init required |
624
+ | `/gsd-spike-wrap-up` | Package spike findings into a project-local skill for future build conversations |
625
+ | `/gsd-sketch-wrap-up` | Package sketch design findings into a project-local skill for future builds |
626
+
627
+ ### UI Design
628
+
629
+ | Command | What it does |
630
+ |---------|--------------|
631
+ | `/gsd-ui-phase [N]` | Generate UI design contract (UI-SPEC.md) for frontend phases |
632
+ | `/gsd-ui-review [N]` | Retroactive 6-pillar visual audit of implemented frontend code |
633
+
634
+ ### Navigation
635
+
636
+ | Command | What it does |
637
+ |---------|--------------|
638
+ | `/gsd-progress` | Where am I? What's next? |
639
+ | `/gsd-next` | Auto-detect state and run the next step |
640
+ | `/gsd-help` | Show all commands and usage guide |
641
+ | `/gsd-update` | Update GSD with changelog preview |
642
+ | `/gsd-join-discord` | Join the GSD Discord community |
643
+ | `/gsd-manager` | Interactive command center for managing multiple phases |
644
+
645
+ ### Brownfield
646
+
647
+ | Command | What it does |
648
+ |---------|--------------|
649
+ | `/gsd-map-codebase [area]` | Analyze existing codebase before new-project |
650
+ | `/gsd-ingest-docs [dir]` | Scan a repo of mixed ADRs, PRDs, SPECs, and DOCs and bootstrap or merge the full `.planning/` setup in one pass — parallel classification, synthesis with precedence rules, and a three-bucket conflicts report |
651
+
652
+ ### Phase Management
653
+
654
+ | Command | What it does |
655
+ |---------|--------------|
656
+ | `/gsd-add-phase` | Append phase to roadmap |
657
+ | `/gsd-insert-phase [N]` | Insert urgent work between phases |
658
+ | `/gsd-remove-phase [N]` | Remove future phase, renumber |
659
+ | `/gsd-list-phase-assumptions [N]` | See Claude's intended approach before planning |
660
+ | `/gsd-plan-milestone-gaps` | Create phases to close gaps from audit |
661
+
662
+ ### Session
663
+
664
+ | Command | What it does |
665
+ |---------|--------------|
666
+ | `/gsd-pause-work` | Create handoff when stopping mid-phase (writes HANDOFF.json) |
667
+ | `/gsd-resume-work` | Restore from last session |
668
+ | `/gsd-session-report` | Generate session summary with work performed and outcomes |
669
+
670
+ ### Workstreams
671
+
672
+ | Command | What it does |
673
+ |---------|--------------|
674
+ | `/gsd-workstreams` | Manage parallel workstreams (list, create, switch, status, progress, complete) |
675
+
676
+ ### Code Quality
677
+
678
+ | Command | What it does |
679
+ |---------|--------------|
680
+ | `/gsd-review` | Cross-AI peer review of current phase or branch |
681
+ | `/gsd-secure-phase [N]` | Security enforcement with threat-model-anchored verification |
682
+ | `/gsd-pr-branch` | Create clean PR branch filtering `.planning/` commits |
683
+ | `/gsd-audit-uat` | Audit verification debt — find phases missing UAT |
684
+ | `/gsd-docs-update` | Verified documentation generation with doc-writer and doc-verifier agents |
685
+
686
+ ### Backlog & Threads
687
+
688
+ | Command | What it does |
689
+ |---------|--------------|
690
+ | `/gsd-plant-seed <idea>` | Capture forward-looking ideas with trigger conditions — surfaces at the right milestone |
691
+ | `/gsd-add-backlog <desc>` | Add idea to backlog parking lot (999.x numbering, outside active sequence) |
692
+ | `/gsd-review-backlog` | Review and promote backlog items to active milestone or remove stale entries |
693
+ | `/gsd-thread [name]` | Persistent context threads — lightweight cross-session knowledge for work spanning multiple sessions |
694
+
695
+ ### Utilities
696
+
697
+ | Command | What it does |
698
+ |---------|--------------|
699
+ | `/gsd-settings` | Configure model profile and workflow agents |
700
+ | `/gsd-set-profile <profile>` | Switch model profile (quality/balanced/budget/inherit) |
701
+ | `/gsd-add-todo [desc]` | Capture idea for later |
702
+ | `/gsd-check-todos` | List pending todos |
703
+ | `/gsd-debug [desc]` | Systematic debugging with persistent state |
704
+ | `/gsd-do <text>` | Route freeform text to the right GSD command automatically |
705
+ | `/gsd-note <text>` | Zero-friction idea capture — append, list, or promote notes to todos |
706
+ | `/gsd-quick [--full] [--validate] [--discuss] [--research]` | Execute ad-hoc task with GSD guarantees (`--full` enables all phases, `--validate` adds plan-checking and verification, `--discuss` gathers context first, `--research` investigates approaches before planning) |
707
+ | `/gsd-health [--runtime] [--repair]` | Validate `.planning/` integrity, auto-repair planning issues, confirm runtime identity, or rebuild `gsd-remix-sdk` with `--runtime --repair` |
708
+ | `/gsd-stats` | Display project statistics — phases, plans, requirements, git metrics |
709
+ | `/gsd-profile-user [--questionnaire] [--refresh]` | Generate developer behavioral profile from session analysis for personalized responses |
710
+
711
+ <sup>¹ Contributed by reddit user OracleGreyBeard</sup>
712
+
713
+ ---
714
+
715
+ ## Configuration
716
+
717
+ GSD stores project settings in `.planning/config.json`. Configure during `/gsd-new-project` or update later with `/gsd-settings`. For the full config schema, workflow toggles, git branching options, and per-agent model breakdown, see the [User Guide](docs/USER-GUIDE.md#configuration-reference).
718
+
719
+ ### Core Settings
720
+
721
+ | Setting | Options | Default | What it controls |
722
+ |---------|---------|---------|------------------|
723
+ | `mode` | `yolo`, `interactive` | `interactive` | Auto-approve vs confirm at each step |
724
+ | `granularity` | `coarse`, `standard`, `fine` | `standard` | Phase granularity — how finely scope is sliced (phases × plans) |
725
+ | `project_code` | string | `""` | Prefix phase directories with a project code |
726
+
727
+ ### Model Profiles
728
+
729
+ Control which Claude model each agent uses. Balance quality vs token spend.
730
+
731
+ | Profile | Planning | Execution | Verification |
732
+ |---------|----------|-----------|--------------|
733
+ | `quality` | Opus | Opus | Sonnet |
734
+ | `balanced` (default) | Opus | Sonnet | Sonnet |
735
+ | `budget` | Sonnet | Sonnet | Haiku |
736
+ | `inherit` | Inherit | Inherit | Inherit |
737
+
738
+ Switch profiles:
739
+ ```
740
+ /gsd-set-profile budget
741
+ ```
742
+
743
+ Use `inherit` when using non-Anthropic providers (OpenRouter, local models) or to follow the current runtime model selection (e.g. OpenCode `/model`).
744
+
745
+ Or configure via `/gsd-settings`.
746
+
747
+ ### Workflow Agents
748
+
749
+ These spawn additional agents during planning/execution. They improve quality but add tokens and time.
750
+
751
+ | Setting | Default | What it does |
752
+ |---------|---------|--------------|
753
+ | `workflow.research` | `true` | Researches domain before planning each phase |
754
+ | `workflow.plan_check` | `true` | Verifies plans achieve phase goals before execution |
755
+ | `workflow.verifier` | `true` | Confirms must-haves were delivered after execution |
756
+ | `workflow.auto_advance` | `false` | Auto-chain discuss → plan → execute without stopping |
757
+ | `workflow.research_before_questions` | `false` | Run research before discussion questions instead of after |
758
+ | `workflow.discuss_mode` | `'discuss'` | Discussion mode: `discuss` (interview), `assumptions` (codebase-first) |
759
+ | `workflow.skip_discuss` | `false` | Skip discuss-phase in autonomous mode |
760
+ | `workflow.text_mode` | `false` | Text-only mode for remote sessions (no TUI menus) |
761
+ | `workflow.use_worktrees` | `true` | Toggle worktree isolation for execution |
762
+
763
+ Use `/gsd-settings` to toggle these, or override per-invocation:
764
+ - `/gsd-plan-phase --skip-research`
765
+ - `/gsd-plan-phase --skip-verify`
766
+
767
+ ### Execution
768
+
769
+ | Setting | Default | What it controls |
770
+ |---------|---------|------------------|
771
+ | `parallelization.enabled` | `true` | Run independent plans simultaneously |
772
+ | `planning.commit_docs` | `true` | Track `.planning/` in git |
773
+ | `hooks.context_warnings` | `true` | Show context window usage warnings |
774
+
775
+ ### Agent Skills
776
+
777
+ Inject project-specific skills into subagents during execution.
778
+
779
+ | Setting | Type | What it does |
780
+ |---------|------|--------------|
781
+ | `agent_skills.<agent_type>` | `string[]` | Paths to skill directories loaded into that agent type at spawn time |
782
+
783
+ Skills are injected as `<agent_skills>` blocks in agent prompts, giving subagents access to project-specific knowledge.
784
+
785
+ ### Git Branching
786
+
787
+ Control how GSD handles branches during execution.
788
+
789
+ | Setting | Options | Default | What it does |
790
+ |---------|---------|---------|--------------|
791
+ | `git.branching_strategy` | `none`, `phase`, `milestone` | `none` | Branch creation strategy |
792
+ | `git.phase_branch_template` | string | `gsd/phase-{phase}-{slug}` | Template for phase branches |
793
+ | `git.milestone_branch_template` | string | `gsd/{milestone}-{slug}` | Template for milestone branches |
794
+
795
+ **Strategies:**
796
+ - **`none`** — Commits to current branch (default GSD behavior)
797
+ - **`phase`** — Creates a branch per phase, merges at phase completion
798
+ - **`milestone`** — Creates one branch for entire milestone, merges at completion
799
+
800
+ At milestone completion, GSD offers squash merge (recommended) or merge with history.
801
+
802
+ ---
803
+
804
+ ## Security
805
+
806
+ ### Built-in Security Hardening
807
+
808
+ GSD includes defense-in-depth security since v1.27:
809
+
810
+ - **Path traversal prevention** — All user-supplied file paths (`--text-file`, `--prd`) are validated to resolve within the project directory
811
+ - **Prompt injection detection** — Centralized `security.cjs` module scans for injection patterns in user-supplied text before it enters planning artifacts
812
+ - **PreToolUse prompt guard hook** — `gsd-prompt-guard` scans writes to `.planning/` for embedded injection vectors (advisory, not blocking)
813
+ - **Safe JSON parsing** — Malformed `--fields` arguments are caught before they corrupt state
814
+ - **Shell argument validation** — User text is sanitized before shell interpolation
815
+ - **CI-ready injection scanner** — `prompt-injection-scan.test.cjs` scans all agent/workflow/command files for embedded injection vectors
816
+
817
+ > [!NOTE]
818
+ > Because GSD generates markdown files that become LLM system prompts, any user-controlled text flowing into planning artifacts is a potential indirect prompt injection vector. These protections are designed to catch such vectors at multiple layers.
819
+
820
+ ### Protecting Sensitive Files
821
+
822
+ GSD's codebase mapping and analysis commands read files to understand your project. **Protect files containing secrets** by adding them to Claude Code's deny list:
823
+
824
+ 1. Open Claude Code settings (`.claude/settings.json` or global)
825
+ 2. Add sensitive file patterns to the deny list:
826
+
827
+ ```json
828
+ {
829
+ "permissions": {
830
+ "deny": [
831
+ "Read(.env)",
832
+ "Read(.env.*)",
833
+ "Read(**/secrets/*)",
834
+ "Read(**/*credential*)",
835
+ "Read(**/*.pem)",
836
+ "Read(**/*.key)"
837
+ ]
838
+ }
839
+ }
840
+ ```
841
+
842
+ This prevents Claude from reading these files entirely, regardless of what commands you run.
843
+
844
+ > [!IMPORTANT]
845
+ > GSD includes built-in protections against committing secrets, but defense-in-depth is best practice. Deny read access to sensitive files as a first line of defense.
846
+
847
+ ---
848
+
849
+ ## Troubleshooting
850
+
851
+ **Commands not found after install?**
852
+ - Restart your runtime to reload commands/skills
853
+ - Verify files exist in `~/.claude/skills/gsd-*/SKILL.md` or `~/.codex/skills/gsd-*/SKILL.md` for managed global installs
854
+ - For local installs, verify `.claude/skills/gsd-*/SKILL.md` or `./.codex/skills/gsd-*/SKILL.md`
855
+ - Legacy Claude Code installs still use `~/.claude/commands/gsd/`
856
+
857
+ **Commands not working as expected?**
858
+ - Run `/gsd-help` to verify installation
859
+ - Re-run `npx gsd-remix` to reinstall
860
+
861
+ **Updating to the latest version?**
862
+ ```bash
863
+ npx gsd-remix@latest
864
+ ```
865
+
866
+ **Using Docker or containerized environments?**
867
+
868
+ If file reads fail with tilde paths (`~/.claude/...`), set `CLAUDE_CONFIG_DIR` before installing:
869
+ ```bash
870
+ CLAUDE_CONFIG_DIR=/home/youruser/.claude npx gsd-remix --global
871
+ ```
872
+ This ensures absolute paths are used instead of `~` which may not expand correctly in containers.
873
+
874
+ ### Uninstalling
875
+
876
+ To remove GSD completely:
877
+
878
+ ```bash
879
+ # Global installs
880
+ npx gsd-remix --claude --global --uninstall
881
+ npx gsd-remix --opencode --global --uninstall
882
+ npx gsd-remix --gemini --global --uninstall
883
+ npx gsd-remix --kilo --global --uninstall
884
+ npx gsd-remix --codex --global --uninstall
885
+ npx gsd-remix --copilot --global --uninstall
886
+ npx gsd-remix --cursor --global --uninstall
887
+ npx gsd-remix --windsurf --global --uninstall
888
+ npx gsd-remix --antigravity --global --uninstall
889
+ npx gsd-remix --augment --global --uninstall
890
+ npx gsd-remix --trae --global --uninstall
891
+ npx gsd-remix --qwen --global --uninstall
892
+ npx gsd-remix --codebuddy --global --uninstall
893
+ npx gsd-remix --cline --global --uninstall
894
+
895
+ # Local installs (current project)
896
+ npx gsd-remix --claude --local --uninstall
897
+ npx gsd-remix --opencode --local --uninstall
898
+ npx gsd-remix --gemini --local --uninstall
899
+ npx gsd-remix --kilo --local --uninstall
900
+ npx gsd-remix --codex --local --uninstall
901
+ npx gsd-remix --copilot --local --uninstall
902
+ npx gsd-remix --cursor --local --uninstall
903
+ npx gsd-remix --windsurf --local --uninstall
904
+ npx gsd-remix --antigravity --local --uninstall
905
+ npx gsd-remix --augment --local --uninstall
906
+ npx gsd-remix --trae --local --uninstall
907
+ npx gsd-remix --qwen --local --uninstall
908
+ npx gsd-remix --codebuddy --local --uninstall
909
+ npx gsd-remix --cline --local --uninstall
910
+ ```
911
+
912
+ This removes all GSD commands, agents, hooks, and settings while preserving your other configurations.
913
+
914
+ ---
915
+
916
+ ## Community Ports
917
+
918
+ OpenCode, Gemini CLI, Kilo, and Codex are now natively supported via `npx gsd-remix`.
919
+
920
+ These community ports pioneered multi-runtime support:
921
+
922
+ | Project | Platform | Description |
923
+ |---------|----------|-------------|
924
+ | [gsd-opencode](https://github.com/rokicool/gsd-opencode) | OpenCode | Original OpenCode adaptation |
925
+ | gsd-gemini (archived) | Gemini CLI | Original Gemini adaptation by uberfuzzy |
926
+
927
+ ---
928
+
929
+ ## License
930
+
931
+ MIT License. See [LICENSE](LICENSE) for details.
932
+
933
+ ---
934
+
935
+ <div align="center">
936
+
937
+ **Claude Code is powerful. GSD makes it reliable.**
938
+
939
+ </div>