specweave 0.1.9 → 0.3.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 (293) hide show
  1. package/CLAUDE.md +600 -0
  2. package/README.md +245 -81
  3. package/bin/install-all.sh +1 -1
  4. package/bin/install-commands.sh +3 -3
  5. package/bin/specweave.js +39 -9
  6. package/dist/adapters/adapter-base.d.ts +1 -1
  7. package/dist/adapters/adapter-base.d.ts.map +1 -1
  8. package/dist/adapters/adapter-base.js +6 -41
  9. package/dist/adapters/adapter-base.js.map +1 -1
  10. package/dist/adapters/adapter-interface.js +1 -2
  11. package/dist/adapters/adapter-interface.js.map +1 -1
  12. package/dist/adapters/adapter-loader.d.ts +86 -0
  13. package/dist/adapters/adapter-loader.d.ts.map +1 -0
  14. package/dist/adapters/adapter-loader.js +216 -0
  15. package/dist/adapters/adapter-loader.js.map +1 -0
  16. package/dist/adapters/agents-md-generator.d.ts +48 -0
  17. package/dist/adapters/agents-md-generator.d.ts.map +1 -0
  18. package/dist/adapters/agents-md-generator.js +132 -0
  19. package/dist/adapters/agents-md-generator.js.map +1 -0
  20. package/dist/adapters/claude/adapter.d.ts +2 -2
  21. package/dist/adapters/claude/adapter.d.ts.map +1 -1
  22. package/dist/adapters/claude/adapter.js +5 -42
  23. package/dist/adapters/claude/adapter.js.map +1 -1
  24. package/dist/adapters/claude-md-generator.d.ts +78 -0
  25. package/dist/adapters/claude-md-generator.d.ts.map +1 -0
  26. package/dist/adapters/claude-md-generator.js +246 -0
  27. package/dist/adapters/claude-md-generator.js.map +1 -0
  28. package/dist/adapters/codex/adapter.d.ts +50 -0
  29. package/dist/adapters/codex/adapter.d.ts.map +1 -0
  30. package/dist/adapters/codex/adapter.js +316 -0
  31. package/dist/adapters/codex/adapter.js.map +1 -0
  32. package/dist/adapters/copilot/adapter.d.ts +10 -9
  33. package/dist/adapters/copilot/adapter.d.ts.map +1 -1
  34. package/dist/adapters/copilot/adapter.js +35 -100
  35. package/dist/adapters/copilot/adapter.js.map +1 -1
  36. package/dist/adapters/cursor/adapter.d.ts +8 -6
  37. package/dist/adapters/cursor/adapter.d.ts.map +1 -1
  38. package/dist/adapters/cursor/adapter.js +47 -130
  39. package/dist/adapters/cursor/adapter.js.map +1 -1
  40. package/dist/adapters/doc-generator.d.ts +69 -0
  41. package/dist/adapters/doc-generator.d.ts.map +1 -0
  42. package/dist/adapters/doc-generator.js +247 -0
  43. package/dist/adapters/doc-generator.js.map +1 -0
  44. package/dist/adapters/gemini/adapter.d.ts +50 -0
  45. package/dist/adapters/gemini/adapter.d.ts.map +1 -0
  46. package/dist/adapters/gemini/adapter.js +281 -0
  47. package/dist/adapters/gemini/adapter.js.map +1 -0
  48. package/dist/adapters/generic/adapter.d.ts +7 -4
  49. package/dist/adapters/generic/adapter.d.ts.map +1 -1
  50. package/dist/adapters/generic/adapter.js +60 -59
  51. package/dist/adapters/generic/adapter.js.map +1 -1
  52. package/dist/cli/commands/init.d.ts +3 -1
  53. package/dist/cli/commands/init.d.ts.map +1 -1
  54. package/dist/cli/commands/init.js +272 -170
  55. package/dist/cli/commands/init.js.map +1 -1
  56. package/dist/cli/commands/install.d.ts.map +1 -1
  57. package/dist/cli/commands/install.js +22 -58
  58. package/dist/cli/commands/install.js.map +1 -1
  59. package/dist/cli/commands/list.d.ts.map +1 -1
  60. package/dist/cli/commands/list.js +27 -64
  61. package/dist/cli/commands/list.js.map +1 -1
  62. package/dist/core/credentials-manager.d.ts +90 -0
  63. package/dist/core/credentials-manager.d.ts.map +1 -0
  64. package/dist/core/credentials-manager.js +271 -0
  65. package/dist/core/credentials-manager.js.map +1 -0
  66. package/dist/core/project-structure-detector.d.ts +92 -0
  67. package/dist/core/project-structure-detector.d.ts.map +1 -0
  68. package/dist/core/project-structure-detector.js +289 -0
  69. package/dist/core/project-structure-detector.js.map +1 -0
  70. package/dist/core/rfc-generator-v2.d.ts +149 -0
  71. package/dist/core/rfc-generator-v2.d.ts.map +1 -0
  72. package/dist/core/rfc-generator-v2.js +399 -0
  73. package/dist/core/rfc-generator-v2.js.map +1 -0
  74. package/dist/core/rfc-generator.d.ts +147 -0
  75. package/dist/core/rfc-generator.d.ts.map +1 -0
  76. package/dist/core/rfc-generator.js +434 -0
  77. package/dist/core/rfc-generator.js.map +1 -0
  78. package/dist/integrations/ado/ado-client.d.ts +123 -0
  79. package/dist/integrations/ado/ado-client.d.ts.map +1 -0
  80. package/dist/integrations/ado/ado-client.js +398 -0
  81. package/dist/integrations/ado/ado-client.js.map +1 -0
  82. package/dist/integrations/jira/jira-client.d.ts +139 -0
  83. package/dist/integrations/jira/jira-client.d.ts.map +1 -0
  84. package/dist/integrations/jira/jira-client.js +386 -0
  85. package/dist/integrations/jira/jira-client.js.map +1 -0
  86. package/dist/integrations/jira/jira-incremental-mapper.d.ts +75 -0
  87. package/dist/integrations/jira/jira-incremental-mapper.d.ts.map +1 -0
  88. package/dist/integrations/jira/jira-incremental-mapper.js +474 -0
  89. package/dist/integrations/jira/jira-incremental-mapper.js.map +1 -0
  90. package/dist/integrations/jira/jira-mapper.d.ts +105 -0
  91. package/dist/integrations/jira/jira-mapper.d.ts.map +1 -0
  92. package/dist/integrations/jira/jira-mapper.js +494 -0
  93. package/dist/integrations/jira/jira-mapper.js.map +1 -0
  94. package/dist/testing/test-generator.d.ts +117 -0
  95. package/dist/testing/test-generator.d.ts.map +1 -0
  96. package/dist/testing/test-generator.js +370 -0
  97. package/dist/testing/test-generator.js.map +1 -0
  98. package/dist/utils/auto-install.d.ts +3 -0
  99. package/dist/utils/auto-install.d.ts.map +1 -1
  100. package/dist/utils/auto-install.js +16 -82
  101. package/dist/utils/auto-install.js.map +1 -1
  102. package/dist/utils/esm-helpers.d.ts +50 -0
  103. package/dist/utils/esm-helpers.d.ts.map +1 -0
  104. package/dist/utils/esm-helpers.js +57 -0
  105. package/dist/utils/esm-helpers.js.map +1 -0
  106. package/package.json +16 -7
  107. package/src/adapters/README.md +1 -2
  108. package/src/adapters/adapter-base.ts +6 -3
  109. package/src/adapters/adapter-loader.ts +261 -0
  110. package/src/adapters/agents-md-generator.ts +162 -0
  111. package/src/adapters/claude/README.md +6 -14
  112. package/src/adapters/claude/adapter.ts +4 -4
  113. package/src/adapters/claude-md-generator.ts +311 -0
  114. package/src/adapters/codex/README.md +105 -0
  115. package/src/adapters/codex/adapter.ts +333 -0
  116. package/src/adapters/copilot/adapter.ts +36 -65
  117. package/src/adapters/cursor/README.md +0 -2
  118. package/src/adapters/cursor/adapter.ts +46 -92
  119. package/src/adapters/doc-generator.ts +331 -0
  120. package/src/adapters/gemini/README.md +97 -0
  121. package/src/adapters/gemini/adapter.ts +298 -0
  122. package/src/adapters/generic/adapter.ts +61 -57
  123. package/src/adapters/registry.yaml +86 -25
  124. package/src/agents/devops/AGENT.md +16 -18
  125. package/src/agents/docs-writer/AGENT.md +2 -2
  126. package/src/agents/pm/AGENT.md +1 -50
  127. package/src/commands/README.md +134 -111
  128. package/src/commands/{build.md → specweave.do.md} +141 -69
  129. package/src/commands/{done.md → specweave.done.md} +3 -3
  130. package/src/commands/{inc.md → specweave.inc.md} +4 -4
  131. package/src/commands/{increment.md → specweave.increment.md} +143 -76
  132. package/src/commands/specweave.md +430 -0
  133. package/src/commands/specweave.next.md +495 -0
  134. package/src/commands/{progress.md → specweave.progress.md} +12 -12
  135. package/src/commands/specweave.sync-docs.md +665 -0
  136. package/src/commands/specweave.sync-github.md +269 -0
  137. package/src/commands/specweave.sync-jira.md +197 -0
  138. package/src/commands/{validate.md → specweave.validate.md} +4 -4
  139. package/src/hooks/README.md +19 -29
  140. package/src/hooks/post-task-completion.sh +25 -30
  141. package/src/skills/ado-sync/README.md +1 -36
  142. package/src/skills/bmad-method-expert/SKILL.md +1 -3
  143. package/src/skills/brownfield-analyzer/SKILL.md +429 -23
  144. package/src/skills/brownfield-onboarder/SKILL.md +221 -8
  145. package/src/skills/context-loader/SKILL.md +239 -617
  146. package/src/skills/context-optimizer/SKILL.md +0 -30
  147. package/src/skills/github-sync/SKILL.md +1 -19
  148. package/src/skills/increment-planner/SKILL.md +64 -18
  149. package/src/skills/increment-quality-judge/SKILL.md +1 -36
  150. package/src/skills/jira-sync/README.md +1 -38
  151. package/src/skills/role-orchestrator/README.md +1 -22
  152. package/src/skills/role-orchestrator/SKILL.md +1 -59
  153. package/src/skills/skill-router/SKILL.md +0 -18
  154. package/src/skills/spec-kit-expert/SKILL.md +1 -3
  155. package/src/skills/specweave-detector/SKILL.md +225 -275
  156. package/src/skills/task-builder/README.md +1 -7
  157. package/src/templates/AGENTS.md.template +334 -0
  158. package/src/templates/CLAUDE.md.template +131 -298
  159. package/src/templates/README.md.template +115 -23
  160. package/src/templates/environments/minimal/README.md +0 -1
  161. package/INSTALL.md +0 -848
  162. package/SPECWEAVE.md +0 -743
  163. package/src/adapters/copilot/.github/copilot/instructions.md +0 -376
  164. package/src/adapters/cursor/.cursorrules +0 -325
  165. package/src/adapters/generic/SPECWEAVE-MANUAL.md +0 -676
  166. package/src/commands/create-project.md +0 -528
  167. package/src/commands/generate-docs.md +0 -623
  168. package/src/commands/review-docs.md +0 -331
  169. package/src/commands/sync-github.md +0 -115
  170. package/src/skills/ado-sync/test-cases/test-1.yaml +0 -9
  171. package/src/skills/ado-sync/test-cases/test-2.yaml +0 -8
  172. package/src/skills/ado-sync/test-cases/test-3.yaml +0 -9
  173. package/src/skills/bmad-method-expert/test-cases/test-1-placeholder.yaml +0 -12
  174. package/src/skills/bmad-method-expert/test-cases/test-2-placeholder.yaml +0 -12
  175. package/src/skills/bmad-method-expert/test-cases/test-3-placeholder.yaml +0 -12
  176. package/src/skills/brownfield-analyzer/test-cases/test-1-basic-analysis.yaml +0 -48
  177. package/src/skills/brownfield-analyzer/test-cases/test-2-placeholder.yaml +0 -12
  178. package/src/skills/brownfield-analyzer/test-cases/test-3-placeholder.yaml +0 -12
  179. package/src/skills/brownfield-onboarder/test-cases/test-1-placeholder.yaml +0 -12
  180. package/src/skills/brownfield-onboarder/test-cases/test-2-placeholder.yaml +0 -12
  181. package/src/skills/brownfield-onboarder/test-cases/test-3-placeholder.yaml +0 -12
  182. package/src/skills/calendar-system/test-cases/test-1-placeholder.yaml +0 -12
  183. package/src/skills/calendar-system/test-cases/test-2-placeholder.yaml +0 -12
  184. package/src/skills/calendar-system/test-cases/test-3-placeholder.yaml +0 -12
  185. package/src/skills/context-loader/test-cases/test-1-basic-loading.yaml +0 -39
  186. package/src/skills/context-loader/test-cases/test-2-token-budget-exceeded.yaml +0 -44
  187. package/src/skills/context-loader/test-cases/test-3-section-anchors.yaml +0 -45
  188. package/src/skills/context-optimizer/test-cases/test-1-bug-fix-narrow.yaml +0 -97
  189. package/src/skills/context-optimizer/test-cases/test-2-feature-focused.yaml +0 -109
  190. package/src/skills/context-optimizer/test-cases/test-3-architecture-broad.yaml +0 -98
  191. package/src/skills/cost-optimizer/test-cases/test-1-basic-comparison.yaml +0 -75
  192. package/src/skills/cost-optimizer/test-cases/test-2-budget-constraint.yaml +0 -52
  193. package/src/skills/cost-optimizer/test-cases/test-3-scale-requirement.yaml +0 -63
  194. package/src/skills/cost-optimizer/test-results/README.md +0 -46
  195. package/src/skills/design-system-architect/test-cases/test-1-token-structure.yaml +0 -23
  196. package/src/skills/design-system-architect/test-cases/test-2-component-hierarchy.yaml +0 -24
  197. package/src/skills/design-system-architect/test-cases/test-3-accessibility-checklist.yaml +0 -23
  198. package/src/skills/diagrams-architect/test-cases/test-1-c4-context.yaml +0 -13
  199. package/src/skills/diagrams-architect/test-cases/test-2-sequence-diagram.yaml +0 -13
  200. package/src/skills/diagrams-architect/test-cases/test-3-er-diagram.yaml +0 -13
  201. package/src/skills/diagrams-generator/test-cases/test-1.yaml +0 -9
  202. package/src/skills/diagrams-generator/test-cases/test-2.yaml +0 -9
  203. package/src/skills/diagrams-generator/test-cases/test-3.yaml +0 -8
  204. package/src/skills/docs-updater/test-cases/test-1-placeholder.yaml +0 -12
  205. package/src/skills/docs-updater/test-cases/test-2-placeholder.yaml +0 -12
  206. package/src/skills/docs-updater/test-cases/test-3-placeholder.yaml +0 -12
  207. package/src/skills/dotnet-backend/test-cases/test-1-rest-api.yaml +0 -14
  208. package/src/skills/dotnet-backend/test-cases/test-2-authentication.yaml +0 -13
  209. package/src/skills/dotnet-backend/test-cases/test-3-minimal-api.yaml +0 -13
  210. package/src/skills/e2e-playwright/test-cases/TC-001-basic-navigation.yaml +0 -54
  211. package/src/skills/e2e-playwright/test-cases/TC-002-form-interaction.yaml +0 -64
  212. package/src/skills/e2e-playwright/test-cases/TC-003-specweave-integration.yaml +0 -74
  213. package/src/skills/e2e-playwright/test-cases/TC-004-accessibility-check.yaml +0 -98
  214. package/src/skills/figma-designer/test-cases/test-1-design-system.yaml +0 -13
  215. package/src/skills/figma-designer/test-cases/test-2-component-library.yaml +0 -13
  216. package/src/skills/figma-designer/test-cases/test-3-responsive-layout.yaml +0 -13
  217. package/src/skills/figma-implementer/test-cases/test-1-design-to-react.yaml +0 -13
  218. package/src/skills/figma-implementer/test-cases/test-2-storybook.yaml +0 -13
  219. package/src/skills/figma-implementer/test-cases/test-3-design-tokens.yaml +0 -13
  220. package/src/skills/figma-mcp-connector/test-cases/test-1-read-file-desktop.yaml +0 -22
  221. package/src/skills/figma-mcp-connector/test-cases/test-2-read-file-framelink.yaml +0 -21
  222. package/src/skills/figma-mcp-connector/test-cases/test-3-error-handling.yaml +0 -18
  223. package/src/skills/figma-to-code/test-cases/test-1-token-generation.yaml +0 -29
  224. package/src/skills/figma-to-code/test-cases/test-2-component-generation.yaml +0 -27
  225. package/src/skills/figma-to-code/test-cases/test-3-typescript-generation.yaml +0 -28
  226. package/src/skills/frontend/test-cases/test-1-react-component.yaml +0 -13
  227. package/src/skills/frontend/test-cases/test-2-form-validation.yaml +0 -13
  228. package/src/skills/frontend/test-cases/test-3-state-management.yaml +0 -13
  229. package/src/skills/github-sync/test-cases/test-1-placeholder.yaml +0 -12
  230. package/src/skills/github-sync/test-cases/test-2-placeholder.yaml +0 -12
  231. package/src/skills/github-sync/test-cases/test-3-placeholder.yaml +0 -12
  232. package/src/skills/hetzner-provisioner/test-cases/test-1-basic-provision.yaml +0 -71
  233. package/src/skills/hetzner-provisioner/test-cases/test-2-postgres-provision.yaml +0 -85
  234. package/src/skills/hetzner-provisioner/test-cases/test-3-ssl-config.yaml +0 -126
  235. package/src/skills/hetzner-provisioner/test-results/README.md +0 -259
  236. package/src/skills/increment-planner/test-cases/test-1-basic-feature.yaml +0 -27
  237. package/src/skills/increment-planner/test-cases/test-2-complex-feature.yaml +0 -30
  238. package/src/skills/increment-planner/test-cases/test-3-auto-numbering.yaml +0 -24
  239. package/src/skills/increment-quality-judge/test-cases/test-1-good-spec.yaml +0 -95
  240. package/src/skills/increment-quality-judge/test-cases/test-2-poor-spec.yaml +0 -108
  241. package/src/skills/increment-quality-judge/test-cases/test-3-export-suggestions.yaml +0 -87
  242. package/src/skills/jira-sync/test-cases/test-1.yaml +0 -9
  243. package/src/skills/jira-sync/test-cases/test-2.yaml +0 -9
  244. package/src/skills/jira-sync/test-cases/test-3.yaml +0 -10
  245. package/src/skills/nextjs/test-cases/test-1-app-router.yaml +0 -13
  246. package/src/skills/nextjs/test-cases/test-2-server-actions.yaml +0 -13
  247. package/src/skills/nextjs/test-cases/test-3-api-routes.yaml +0 -13
  248. package/src/skills/nodejs-backend/test-cases/test-1-express-api.yaml +0 -13
  249. package/src/skills/nodejs-backend/test-cases/test-2-prisma-orm.yaml +0 -13
  250. package/src/skills/nodejs-backend/test-cases/test-3-authentication.yaml +0 -13
  251. package/src/skills/notification-system/test-cases/test-1-placeholder.yaml +0 -12
  252. package/src/skills/notification-system/test-cases/test-2-placeholder.yaml +0 -12
  253. package/src/skills/notification-system/test-cases/test-3-placeholder.yaml +0 -12
  254. package/src/skills/python-backend/test-cases/test-1-fastapi-crud.yaml +0 -13
  255. package/src/skills/python-backend/test-cases/test-2-sqlalchemy.yaml +0 -13
  256. package/src/skills/python-backend/test-cases/test-3-authentication.yaml +0 -13
  257. package/src/skills/role-orchestrator/test-cases/test-1-simple-product.yaml +0 -98
  258. package/src/skills/role-orchestrator/test-cases/test-2-quality-gate-failure.yaml +0 -73
  259. package/src/skills/role-orchestrator/test-cases/test-3-security-workflow.yaml +0 -121
  260. package/src/skills/role-orchestrator/test-cases/test-4-parallel-execution.yaml +0 -145
  261. package/src/skills/role-orchestrator/test-cases/test-5-feedback-loops.yaml +0 -149
  262. package/src/skills/skill-creator/test-cases/test-1-placeholder.yaml +0 -12
  263. package/src/skills/skill-creator/test-cases/test-2-placeholder.yaml +0 -12
  264. package/src/skills/skill-creator/test-cases/test-3-placeholder.yaml +0 -12
  265. package/src/skills/skill-router/test-cases/test-1-basic-routing.yaml +0 -33
  266. package/src/skills/skill-router/test-cases/test-2-ambiguous-request.yaml +0 -42
  267. package/src/skills/skill-router/test-cases/test-3-nested-orchestration.yaml +0 -50
  268. package/src/skills/spec-driven-brainstorming/test-cases/TC-001-simple-idea-to-design.yaml +0 -148
  269. package/src/skills/spec-driven-brainstorming/test-cases/TC-002-complex-ultrathink-design.yaml +0 -190
  270. package/src/skills/spec-driven-brainstorming/test-cases/TC-003-unclear-requirements-socratic.yaml +0 -233
  271. package/src/skills/spec-driven-debugging/test-cases/TC-001-simple-auth-bug.yaml +0 -212
  272. package/src/skills/spec-driven-debugging/test-cases/TC-002-race-condition-ultrathink.yaml +0 -461
  273. package/src/skills/spec-driven-debugging/test-cases/TC-003-brownfield-missing-spec.yaml +0 -366
  274. package/src/skills/spec-kit-expert/test-cases/test-1-placeholder.yaml +0 -12
  275. package/src/skills/spec-kit-expert/test-cases/test-2-placeholder.yaml +0 -12
  276. package/src/skills/spec-kit-expert/test-cases/test-3-placeholder.yaml +0 -12
  277. package/src/skills/specweave-ado-mapper/test-cases/test-1-export-to-ado.yaml +0 -13
  278. package/src/skills/specweave-ado-mapper/test-cases/test-2-import-from-ado.yaml +0 -13
  279. package/src/skills/specweave-ado-mapper/test-cases/test-3-bidirectional-sync.yaml +0 -13
  280. package/src/skills/specweave-detector/test-cases/test-1-basic-detection.yaml +0 -37
  281. package/src/skills/specweave-detector/test-cases/test-2-missing-config.yaml +0 -37
  282. package/src/skills/specweave-detector/test-cases/test-3-non-specweave-project.yaml +0 -34
  283. package/src/skills/specweave-jira-mapper/test-cases/test-1-export-to-jira.yaml +0 -13
  284. package/src/skills/specweave-jira-mapper/test-cases/test-2-import-from-jira.yaml +0 -13
  285. package/src/skills/specweave-jira-mapper/test-cases/test-3-sync-status.yaml +0 -13
  286. package/src/skills/stripe-integrator/test-cases/test-1-placeholder.yaml +0 -12
  287. package/src/skills/stripe-integrator/test-cases/test-2-placeholder.yaml +0 -12
  288. package/src/skills/stripe-integrator/test-cases/test-3-placeholder.yaml +0 -12
  289. package/src/skills/task-builder/test-cases/test-1-placeholder.yaml +0 -12
  290. package/src/skills/task-builder/test-cases/test-2-placeholder.yaml +0 -12
  291. package/src/skills/task-builder/test-cases/test-3-placeholder.yaml +0 -12
  292. package/src/templates/config.yaml +0 -351
  293. /package/src/commands/{list-increments.md → specweave.list-increments.md} +0 -0
@@ -1,11 +1,11 @@
1
1
  ---
2
- name: build
2
+ name: specweave.do
3
3
  description: Execute increment implementation following spec and plan - hooks run after EVERY task
4
4
  ---
5
5
 
6
- # Build Increment
6
+ # Do Increment
7
7
 
8
- **Implementation Execution**: Following spec.md and plan.md to build the increment.
8
+ **Implementation Execution**: Following spec.md and plan.md to execute the increment work.
9
9
 
10
10
  You are helping the user implement a SpecWeave increment by executing tasks from tasks.md with automatic documentation updates after EVERY task completion.
11
11
 
@@ -13,10 +13,10 @@ You are helping the user implement a SpecWeave increment by executing tasks from
13
13
 
14
14
  ```bash
15
15
  # Auto-resumes from last incomplete task
16
- /build <increment-id>
16
+ /do <increment-id>
17
17
 
18
18
  # Or let it find active increment automatically
19
- /build
19
+ /do
20
20
  ```
21
21
 
22
22
  ## Arguments
@@ -57,7 +57,7 @@ You are helping the user implement a SpecWeave increment by executing tasks from
57
57
  • tasks.md (42 tasks, estimated 3-4 weeks)
58
58
  • tests.md (12 test cases, 85% coverage)
59
59
 
60
- 🎯 Ready to build!
60
+ 🎯 Ready to execute!
61
61
  ```
62
62
 
63
63
  ### Step 2: Smart Resume - Find Next Incomplete Task
@@ -129,13 +129,32 @@ If already "in-progress", keep existing metadata.
129
129
  - Add completion timestamp
130
130
  - Note any deviations from plan
131
131
 
132
- 4. **🔥 CRITICAL: Run hooks after EVERY task**:
133
- - Hook: `post-task-completion`
134
- - Actions:
135
- - Update documentation (CLAUDE.md, README.md)
136
- - Update CHANGELOG.md if needed
137
- - Verify docs reflect new code
138
- - Check for doc/code drift
132
+ 4. **🔥 CRITICAL: After EVERY task completion**:
133
+
134
+ **Step A: Hook executes automatically (via .claude/hooks.json)**:
135
+ - 🔊 Plays completion sound (Glass.aiff on macOS)
136
+ - 📝 Shows reminder message
137
+ - This happens automatically when you mark task complete
138
+
139
+ **Step B: Update project documentation inline**:
140
+ - Update CLAUDE.md if task added:
141
+ - New commands or CLI flags
142
+ - New file structure
143
+ - New configuration options
144
+ - New skills or agents
145
+ - Update README.md if task added:
146
+ - User-facing features
147
+ - Installation steps
148
+ - Usage examples
149
+ - API changes
150
+ - Update CHANGELOG.md if task added:
151
+ - Public API changes
152
+ - Breaking changes
153
+ - New features
154
+
155
+ **Step C: Continue to next task**:
156
+ - Do NOT call `/sync-docs` yet (wait until all tasks complete)
157
+ - Move to next incomplete task
139
158
 
140
159
  **Example task execution**:
141
160
  ```
@@ -148,7 +167,7 @@ TASK T001: Create User model (PostgreSQL)
148
167
  • Description: Create User model with Prisma
149
168
  • Acceptance: Model has id, email, passwordHash, createdAt fields
150
169
 
151
- 🔨 Implementing...
170
+ 🔨 Executing...
152
171
  ✓ Created src/models/User.ts
153
172
  ✓ Added Prisma schema definition
154
173
  ✓ Generated migration file
@@ -156,14 +175,19 @@ TASK T001: Create User model (PostgreSQL)
156
175
 
157
176
  ✅ Task T001 completed
158
177
 
159
- 🪝 Running post-task hooks...
160
- Updated CLAUDE.md (added User model to schema)
161
- ✓ Updated README.md (added database section)
162
- Verified documentation consistency
178
+ 🔊 [Glass.aiff plays automatically via hook]
179
+ 🔔 Task completed! Remember to update documentation...
180
+
181
+ 📝 Updating project documentation:
182
+ ✓ Updated CLAUDE.md (added User model to schema reference)
183
+ ✓ Updated README.md (added database section with example)
184
+ ✓ No CHANGELOG.md update needed (internal model)
163
185
 
164
186
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
165
187
 
166
188
  Progress: 1/42 tasks (2%) | Estimated remaining: 3.9 weeks
189
+
190
+ Moving to next task...
167
191
  ```
168
192
 
169
193
  ### Step 4: Handle Blockers
@@ -268,6 +292,29 @@ Up next:
268
292
  ✅ Tasks: 42/42 (100%)
269
293
  ⏱️ Time taken: 3.2 weeks (vs estimated 3-4 weeks)
270
294
 
295
+ 🔊 [Playing celebration sound...]
296
+
297
+ 📝 Now syncing implementation learnings to living docs...
298
+ ```
299
+
300
+ **CRITICAL: Now run `/sync-docs update` to sync to living docs**:
301
+
302
+ ```bash
303
+ /sync-docs update
304
+ ```
305
+
306
+ This will:
307
+ - Update ADRs with implementation details (Proposed → Accepted)
308
+ - Update API documentation with actual endpoints
309
+ - Update architecture diagrams with actual system
310
+ - Update feature lists with completed features
311
+ - May prompt for conflict resolution if needed
312
+
313
+ **After `/sync-docs update` completes**:
314
+
315
+ ```
316
+ ✅ Living documentation synchronized!
317
+
271
318
  Next steps:
272
319
  1. Run full test suite: npm test
273
320
  2. Validate increment: /validate 0001 --quality
@@ -278,66 +325,77 @@ Next steps:
278
325
 
279
326
  ## Hook Integration (CRITICAL!)
280
327
 
281
- **Post-Task Completion Hook** runs after EVERY task:
328
+ **Post-Task Completion Hook** runs after EVERY task via `.claude/hooks.json`:
282
329
 
283
330
  ### Configuration
284
331
 
285
- **File**: `.specweave/config.yaml`
332
+ **File**: `.claude/hooks.json`
286
333
 
287
- ```yaml
288
- hooks:
289
- enabled: true
290
- post_task_completion:
291
- enabled: true # ← MUST be true
292
- actions:
293
- - update_documentation # Update CLAUDE.md, README.md
294
- - update_changelog # Update CHANGELOG.md if public API changes
295
- - verify_consistency # Check docs match code
334
+ ```json
335
+ {
336
+ "hooks": {
337
+ "PostToolUse": [
338
+ {
339
+ "matcher": "TodoWrite",
340
+ "hooks": [
341
+ {
342
+ "type": "command",
343
+ "command": "bash .claude/hooks/post-task-completion.sh"
344
+ }
345
+ ]
346
+ }
347
+ ]
348
+ }
349
+ }
350
+ ```
351
+
352
+ **Hook Script**: `.claude/hooks/post-task-completion.sh`
353
+
354
+ ```bash
355
+ #!/bin/bash
356
+ # Plays completion sound and outputs reminder JSON
357
+ # Output: {"continue": true, "systemMessage": "Task completed! Update docs..."}
296
358
  ```
297
359
 
298
360
  ### Hook Behavior
299
361
 
300
- **After EVERY task completion**:
362
+ **After EVERY task completion (via TodoWrite)**:
301
363
 
302
- 1. **Scan changed files**:
303
- - Detect new functions, classes, APIs
304
- - Detect changed behavior
305
- - Detect new configuration
364
+ 1. **Play sound synchronously**:
365
+ - macOS: Glass.aiff via `afplay`
366
+ - Linux: complete.oga via `paplay`
367
+ - Windows: chimes.wav via PowerShell
368
+ - Sound plays BEFORE Claude continues
306
369
 
307
- 2. **Update documentation**:
308
- - CLAUDE.md: Add to quick reference tables
309
- - README.md: Update examples if needed
310
- - API docs: Regenerate if API changed
370
+ 2. **Show reminder**:
371
+ - JSON systemMessage displayed to user
372
+ - Reminds to update CLAUDE.md, README.md inline
311
373
 
312
- 3. **Verify consistency**:
313
- - Check docs mention new features
314
- - Check no stale references
315
- - Check examples still work
374
+ 3. **Log completion**:
375
+ - Appends to `.specweave/logs/tasks.log`
316
376
 
317
- 4. **Report**:
318
- ```
319
- 🪝 Post-task documentation update:
377
+ ### Documentation Updates (Manual)
320
378
 
321
- Files updated:
322
- • CLAUDE.md (+3 lines: Added User model to schema reference)
323
- • README.md (+12 lines: Added authentication example)
379
+ After each task, Claude should manually update:
324
380
 
325
- Consistency checks:
326
- All code references up to date
327
- Examples tested and working
328
- ✓ No stale documentation
381
+ - **CLAUDE.md**: New commands, file structure, config options, skills, agents
382
+ - **README.md**: User-facing features, installation, usage, API changes
383
+ - **CHANGELOG.md**: Public API changes, breaking changes, new features
329
384
 
330
- Documentation drift: 0% (perfect sync)
331
- ```
385
+ **Living docs sync** (via `/sync-docs update`):
386
+ - Only after ALL tasks complete
387
+ - Updates `.specweave/docs/` with implementation learnings
388
+ - Updates ADRs from Proposed → Accepted
389
+ - Updates architecture diagrams with actual system
332
390
 
333
391
  ---
334
392
 
335
393
  ## Examples
336
394
 
337
- ### Example 1: Build Complete Increment
395
+ ### Example 1: Execute Complete Increment
338
396
 
339
397
  ```bash
340
- /build 0001
398
+ /do 0001
341
399
  ```
342
400
 
343
401
  **Output**:
@@ -346,7 +404,7 @@ Documentation drift: 0% (perfect sync)
346
404
 
347
405
  ✅ Context loaded (spec.md, plan.md, tasks.md, tests.md)
348
406
 
349
- 🔨 Starting implementation (42 tasks)...
407
+ 🔨 Starting execution (42 tasks)...
350
408
 
351
409
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
352
410
  Task T001: Create User model
@@ -360,17 +418,17 @@ Task T001: Create User model
360
418
  Next: /validate 0001 --quality
361
419
  ```
362
420
 
363
- ### Example 2: Build with Blocker
421
+ ### Example 2: Execute with Blocker
364
422
 
365
423
  ```bash
366
- /build 0002
424
+ /do 0002
367
425
  ```
368
426
 
369
427
  **Output**:
370
428
  ```
371
429
  📂 Loading increment 0002-payment-processing...
372
430
 
373
- 🔨 Implementing tasks...
431
+ 🔨 Executing tasks...
374
432
 
375
433
  Task T005: Integrate Stripe payment
376
434
  ⚠️ Blocker: Stripe API key not in .env
@@ -383,10 +441,10 @@ Options:
383
441
  Your choice? [A/B/C]: _
384
442
  ```
385
443
 
386
- ### Example 3: Build with Test Failure
444
+ ### Example 3: Execute with Test Failure
387
445
 
388
446
  ```bash
389
- /build 0003
447
+ /do 0003
390
448
  ```
391
449
 
392
450
  **Output**:
@@ -423,14 +481,14 @@ Available increments:
423
481
  • 0002-core-enhancements (planned)
424
482
  • 0003-payment-processing (in-progress)
425
483
 
426
- Usage: /build <increment-id>
484
+ Usage: /do <increment-id>
427
485
  ```
428
486
 
429
487
  ### Increment Not Planned
430
488
  ```
431
- ❌ Error: Cannot build increment 0001 (status: backlog)
489
+ ❌ Error: Cannot execute increment 0001 (status: backlog)
432
490
 
433
- Increment must be "planned" before building.
491
+ Increment must be "planned" before execution.
434
492
 
435
493
  Run: /increment "User authentication" to plan this increment first.
436
494
  ```
@@ -453,8 +511,8 @@ Options:
453
511
  ## Related Commands
454
512
 
455
513
  - `/increment`: Plan increment (creates spec.md, plan.md, tasks.md)
456
- - `/validate`: Validate quality before building
457
- - `/done`: Close increment (PM validates completion)
514
+ - `/validate`: Validate quality before executing
515
+ - `/specweave done`: Close increment (PM validates completion)
458
516
  - `/list-increments`: List all increments with status
459
517
 
460
518
  ---
@@ -469,6 +527,20 @@ Options:
469
527
 
470
528
  ---
471
529
 
472
- **Important**: This command is designed for continuous execution. It's normal to run `/build` and let it execute multiple tasks sequentially with documentation updates after each one.
530
+ ## Why "/do" instead of "/do"?
531
+
532
+ **Universal applicability**: SpecWeave isn't just for software engineering!
533
+
534
+ - Software projects: Writing code, tests, documentation
535
+ - Writing projects: Chapters, articles, research papers
536
+ - Design projects: Mockups, prototypes, design systems
537
+ - Business projects: Reports, analyses, presentations
538
+ - Creative projects: Scripts, storyboards, content
539
+
540
+ "/do" works for any domain - it's about **executing the planned work**, whatever that work may be.
541
+
542
+ ---
543
+
544
+ **Important**: This command is designed for continuous execution. It's normal to run `/do` and let it execute multiple tasks sequentially with documentation updates after each one.
473
545
 
474
- **Best Practice**: Always run `/validate 0001 --quality` after building to ensure quality before closing with `/done`.
546
+ **Best Practice**: Always run `/validate 0001 --quality` after execution to ensure quality before closing with `/done`.
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: done
2
+ name: specweave.done
3
3
  description: Close increment with PM validation - checks tasks, tests, and docs before closing
4
4
  ---
5
5
 
@@ -501,7 +501,7 @@ Usage: /done <increment-id>
501
501
 
502
502
  Increment must be "in-progress" before closing.
503
503
 
504
- Run: /build 0001 to start implementation first.
504
+ Run: /do 0001 to start implementation first.
505
505
  ```
506
506
 
507
507
  ### Major Blockers Found
@@ -531,7 +531,7 @@ Check progress: /list-increments
531
531
  ## Related Commands
532
532
 
533
533
  - `/increment`: Plan new increment
534
- - `/build`: Execute implementation
534
+ - `/do`: Execute implementation
535
535
  - `/validate`: Validate quality before closing
536
536
  - `/list-increments`: List all increments with status
537
537
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: inc
2
+ name: specweave.inc
3
3
  description: Shorthand for /increment - Plan new Product Increment (PM-led process)
4
4
  ---
5
5
 
@@ -53,7 +53,7 @@ Runs the full `/increment` command, which:
53
53
  - QA defines test strategy
54
54
  - DevOps plans infrastructure
55
55
  4. **User review checkpoint**
56
- 5. **Ready to build**: `/build 0001`
56
+ 5. **Ready to build**: `/do 0001`
57
57
 
58
58
  ---
59
59
 
@@ -67,7 +67,7 @@ Runs the full `/increment` command, which:
67
67
  # spec.md, plan.md, tasks.md, tests.md
68
68
 
69
69
  # 3. Build it
70
- /build 0001
70
+ /do 0001
71
71
 
72
72
  # 4. Validate quality (optional)
73
73
  /validate 0001 --quality
@@ -78,7 +78,7 @@ Runs the full `/increment` command, which:
78
78
 
79
79
  ---
80
80
 
81
- **💡 Pro Tip**: `/inc` is the ONLY aliased command. Use full names for others (`/build`, `/validate`, `/done`) to keep the workflow clear and explicit.
81
+ **💡 Pro Tip**: `/inc` is the ONLY aliased command. Use full names for others (`/specweave do`, `/specweave validate`, `/specweave done`) to keep the workflow clear and explicit.
82
82
 
83
83
  ---
84
84
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: increment
2
+ name: specweave.increment
3
3
  description: Plan new Product Increment - PM-led process (market research, spec, plan, auto-generate tasks). Auto-closes previous increment if PM gates pass.
4
4
  ---
5
5
 
@@ -74,7 +74,7 @@ You are helping the user create a new SpecWeave increment with automatic closure
74
74
 
75
75
  Options:
76
76
  A. Complete 0001 first (recommended)
77
- → Run `/build 0001` to finish remaining tasks
77
+ → Run `/do 0001` to finish remaining tasks
78
78
 
79
79
  B. Force close 0001 and defer tasks to 0002
80
80
  → Transfer T006, T007 to new increment
@@ -99,7 +99,7 @@ You are helping the user create a new SpecWeave increment with automatic closure
99
99
  - Next increment: 003
100
100
 
101
101
  ### Step 2: Detect tech stack (CRITICAL - framework-agnostic)
102
- - Check `.specweave/config.yaml` for tech_stack configuration
102
+ - Settings auto-detected
103
103
  - If not found, detect from project files:
104
104
  - `package.json` → TypeScript/JavaScript
105
105
  - `requirements.txt` or `pyproject.toml` → Python
@@ -117,72 +117,109 @@ You are helping the user create a new SpecWeave increment with automatic closure
117
117
  - "What's the short name?" (e.g., "user-authentication" for increment 003-user-authentication)
118
118
  - "Priority? (P1/P2/P3)" (default: P1)
119
119
 
120
- ### Step 4: Activate role-orchestrator
121
-
122
- - Analyze user's description
123
- - Determine which strategic agents are needed:
124
- - pm-agent (product strategy)?
125
- - architect-agent (system design)?
126
- - devops-agent (infrastructure)?
127
- - security-agent (security review)?
128
- - qa-lead-agent (testing strategy)?
129
-
130
- ### Step 5: Ask clarifying questions (if needed)
131
-
132
- - Target users/scale?
133
- - Technology preferences? (if not detected)
134
- - Budget constraints?
135
- - Deployment platform?
136
- - Payment processing needed?
137
- - Authentication method?
138
-
139
- ### Step 6: Run strategic agents (with user approval)
140
-
141
- - **Pass detected tech stack to ALL agents** (CRITICAL!)
142
- - PM agent creates pm-analysis.md
143
- - Architect agent creates architecture.md, ADRs (using detected tech stack)
144
- - DevOps agent creates infrastructure.md (platform-specific)
145
- - Security agent creates security.md (framework-specific security)
146
- - QA agent creates test-strategy.md (framework-specific tests)
147
-
148
- ### Step 7: Present strategic docs for review
149
-
150
- - Show summary of all strategic outputs
151
- - Ask: "Review docs with /review-docs or approve to continue?"
152
- - Wait for user approval
153
-
154
- ### Step 8: Create spec.md (based on strategic docs)
155
- - Frontmatter with increment number, title, priority, status, dependencies
156
- - **Include detected tech stack in frontmatter** (see format below)
157
- - Overview section
158
- - Business value
159
- - User stories with acceptance tests
160
- - Functional requirements
161
- - Out of scope
162
- - Success criteria
163
- - Dependencies
164
-
165
- ### Step 9: Create tasks.md (task-builder skill)
166
-
167
- **🎯 CRITICAL: Auto-generate tasks from plan.md**
168
-
169
- - Analyze all strategic docs
170
- - Break down into phases (framework-specific)
171
- - Create tasks with:
172
- - Agent references (use framework-specific agents if available)
173
- - File paths (framework-specific paths: src/ for TS, app/ for Django, etc.)
174
- - Implementation snippets (framework-specific code)
175
- - Acceptance criteria
176
- - Documentation updates
177
-
178
- ### Step 10: Save increment
179
-
180
- - Create `.specweave/increments/####-name/`
181
- - Save spec.md
182
- - Save tasks.md (auto-generated!)
183
- - Save strategic docs (pm-analysis.md, architecture.md, etc.)
184
-
185
- ### Step 11: Output to user
120
+ ### Step 4: Activate Increment Planning Workflow
121
+
122
+ **🚨 CRITICAL - YOU MUST USE THE SKILL TOOL:**
123
+
124
+ **DO NOT** manually create files. **DO NOT** skip this step. **DO NOT** write spec.md or plan.md directly.
125
+
126
+ You MUST invoke the increment-planner skill to orchestrate the full PM-led workflow:
127
+
128
+ ```
129
+ Use the Skill tool:
130
+ command: "increment-planner"
131
+ ```
132
+
133
+ The increment-planner skill will:
134
+ 1. Invoke PM agent (via Task tool with subagent_type="pm")
135
+ 2. Invoke Architect agent (via Task tool with subagent_type="architect")
136
+ 3. Invoke other strategic agents as needed
137
+ 4. Create living documentation in .specweave/docs/internal/
138
+ 5. Create increment files that reference living docs
139
+ 6. Auto-generate tasks.md using task-builder skill
140
+ 7. Create context-manifest.yaml
141
+ 8. Apply validation hooks
142
+ 9. Trigger post-increment hooks (doc sync)
143
+
144
+ **WHY THIS IS MANDATORY:**
145
+ - Living docs get created (source of truth)
146
+ - Agents collaborate properly (PM → Architect flow)
147
+ - ✅ Tasks auto-generated from plan
148
+ - Hooks run (validation, doc sync)
149
+ - ✅ Quality gates enforced
150
+ - Direct file writing bypasses entire workflow
151
+
152
+ ### Step 5: Skill Tool Invocation (MANDATORY)
153
+
154
+ **BEFORE PROCEEDING, USE THE SKILL TOOL:**
155
+
156
+ You must literally call the Skill tool like this:
157
+ ```
158
+ Skill(command: "increment-planner")
159
+ ```
160
+
161
+ Wait for the skill to complete. Do NOT continue to Step 6 until the increment-planner skill returns.
162
+
163
+ ### Step 6: Alternative Approach (ONLY IF SKILL FAILS)
164
+
165
+ **Only use this if Skill tool is unavailable or fails:**
166
+
167
+ Manually invoke agents using Task tool:
168
+
169
+ 1. **Invoke PM Agent:**
170
+ ```
171
+ Task(
172
+ subagent_type: "pm",
173
+ prompt: "Create product strategy for: [user description]
174
+ Detect tech stack from: [detected tech info]
175
+ Create living docs in .specweave/docs/internal/strategy/
176
+ Create increment spec.md that references strategy docs",
177
+ description: "PM product strategy"
178
+ )
179
+ ```
180
+
181
+ 2. **Invoke Architect Agent:**
182
+ ```
183
+ Task(
184
+ subagent_type: "architect",
185
+ prompt: "Read PM's strategy docs from .specweave/docs/internal/strategy/
186
+ Create technical architecture for: [user description]
187
+ Tech stack: [detected tech stack]
188
+ Create living docs in .specweave/docs/internal/architecture/
189
+ Create ADRs for all technical decisions
190
+ Create increment plan.md that references architecture docs",
191
+ description: "Architect technical design"
192
+ )
193
+ ```
194
+
195
+ 3. **Auto-generate tasks.md:**
196
+ ```
197
+ Skill(command: "task-builder")
198
+ ```
199
+
200
+ **Pass detected tech stack to ALL agents** (CRITICAL!)
201
+
202
+ ### Step 7: Verify Increment Creation
203
+
204
+ After the increment-planner skill completes, verify:
205
+
206
+ 1. **Living docs created:**
207
+ - `.specweave/docs/internal/strategy/{module}/` exists
208
+ - `.specweave/docs/internal/architecture/adr/` has ADRs
209
+
210
+ 2. **Increment files created:**
211
+ - `.specweave/increments/####-name/spec.md` (references strategy docs)
212
+ - `.specweave/increments/####-name/plan.md` (references architecture docs)
213
+ - `.specweave/increments/####-name/tasks.md` (auto-generated from plan)
214
+ - `.specweave/increments/####-name/tests.md` (test strategy)
215
+ - `.specweave/increments/####-name/context-manifest.yaml`
216
+
217
+ 3. **Hooks executed:**
218
+ - Validation hooks ran
219
+ - Post-increment hooks ran
220
+ - Living documentation synced
221
+
222
+ ### Step 8: Output to user
186
223
  ```
187
224
  ✅ Created increment 0003-user-authentication
188
225
 
@@ -204,16 +241,46 @@ You are helping the user create a new SpecWeave increment with automatic closure
204
241
  - test-strategy.md (E2E tests for {framework})
205
242
 
206
243
  ⏱️ Estimated effort: 3-4 weeks
244
+ ```
245
+
246
+ ### Step 9: Sync Strategic Docs to Living Docs
247
+
248
+ **🔥 CRITICAL: After increment planning, sync to living docs**
249
+
250
+ ```
251
+ 🔊 [Playing celebration sound...]
252
+
253
+ 📝 Now syncing strategic documentation to living docs...
254
+ ```
255
+
256
+ **Run `/sync-docs update` to create initial documentation**:
257
+
258
+ ```bash
259
+ /sync-docs update
260
+ ```
261
+
262
+ This will:
263
+ - Create ADRs from architectural decisions in plan.md (status: Proposed)
264
+ - Add new features to `.specweave/docs/public/overview/features.md`
265
+ - Add architecture diagrams to `.specweave/docs/internal/architecture/diagrams/`
266
+ - Update infrastructure docs in `.specweave/docs/internal/operations/`
267
+ - Update security docs in `.specweave/docs/internal/security/`
268
+ - May prompt for conflict resolution if needed
269
+
270
+ **After `/sync-docs update` completes**:
271
+
272
+ ```
273
+ ✅ Strategic documentation synchronized!
207
274
 
208
- Next steps:
209
- 1. Review docs: /review-docs
210
- 2. Start implementation: Begin with Task T001 in tasks.md
211
- 3. Sync to GitHub: /sync-github
275
+ Next steps:
276
+ 1. Review the increment plan and strategic docs
277
+ 2. Start implementation: /do 0003
278
+ 3. (Optional) Sync to GitHub: /sync-github
212
279
  ```
213
280
 
214
281
  ## Frontmatter Format (spec.md):
215
282
 
216
- **IMPORTANT**: Tech stack is DETECTED from `.specweave/config.yaml` or project files, NOT hardcoded!
283
+ **IMPORTANT**: Tech stack is AUTO-DETECTED from project files (package.json, requirements.txt, etc.), NOT hardcoded!
217
284
 
218
285
  ```yaml
219
286
  ---
@@ -227,7 +294,7 @@ structure: user-stories
227
294
 
228
295
  # Tech stack is DETECTED, not hardcoded
229
296
  tech_stack:
230
- detected_from: ".specweave/config.yaml" # or "package.json", "requirements.txt", etc.
297
+ detected_from: "package.json" # or "requirements.txt", "go.mod", etc.
231
298
  language: "{detected-language}" # e.g., "typescript", "python", "go", "java", "rust"
232
299
  framework: "{detected-framework}" # e.g., "nextjs", "django", "fastapi", "spring-boot", "gin"
233
300
  database: "{specified-database}" # e.g., "postgresql", "mysql", "mongodb", "sqlite"
@@ -307,7 +374,7 @@ If user says "autonomous mode" or "full automation":
307
374
 
308
375
  ## Error Handling:
309
376
 
310
- - If `.specweave/` not found: "Error: Not a SpecWeave project. Run /create-project first."
377
+ - If `.specweave/` not found: "Error: Not a SpecWeave project. Run specweave init first."
311
378
  - If user description too vague: Ask more clarifying questions
312
379
  - If strategic agents not available: "Warning: Some agents missing. Continue with basic spec?"
313
380