specweave 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/INSTALL.md +848 -0
  2. package/LICENSE +21 -0
  3. package/README.md +675 -0
  4. package/SPECWEAVE.md +665 -0
  5. package/bin/install-agents.sh +57 -0
  6. package/bin/install-all.sh +49 -0
  7. package/bin/install-commands.sh +56 -0
  8. package/bin/install-skills.sh +57 -0
  9. package/bin/specweave.js +81 -0
  10. package/dist/adapters/adapter-base.d.ts +50 -0
  11. package/dist/adapters/adapter-base.d.ts.map +1 -0
  12. package/dist/adapters/adapter-base.js +146 -0
  13. package/dist/adapters/adapter-base.js.map +1 -0
  14. package/dist/adapters/adapter-interface.d.ts +108 -0
  15. package/dist/adapters/adapter-interface.d.ts.map +1 -0
  16. package/dist/adapters/adapter-interface.js +9 -0
  17. package/dist/adapters/adapter-interface.js.map +1 -0
  18. package/dist/adapters/claude/adapter.d.ts +54 -0
  19. package/dist/adapters/claude/adapter.d.ts.map +1 -0
  20. package/dist/adapters/claude/adapter.js +184 -0
  21. package/dist/adapters/claude/adapter.js.map +1 -0
  22. package/dist/adapters/copilot/adapter.d.ts +42 -0
  23. package/dist/adapters/copilot/adapter.d.ts.map +1 -0
  24. package/dist/adapters/copilot/adapter.js +239 -0
  25. package/dist/adapters/copilot/adapter.js.map +1 -0
  26. package/dist/adapters/cursor/adapter.d.ts +42 -0
  27. package/dist/adapters/cursor/adapter.d.ts.map +1 -0
  28. package/dist/adapters/cursor/adapter.js +297 -0
  29. package/dist/adapters/cursor/adapter.js.map +1 -0
  30. package/dist/adapters/generic/adapter.d.ts +40 -0
  31. package/dist/adapters/generic/adapter.d.ts.map +1 -0
  32. package/dist/adapters/generic/adapter.js +155 -0
  33. package/dist/adapters/generic/adapter.js.map +1 -0
  34. package/dist/cli/commands/init.d.ts +6 -0
  35. package/dist/cli/commands/init.d.ts.map +1 -0
  36. package/dist/cli/commands/init.js +247 -0
  37. package/dist/cli/commands/init.js.map +1 -0
  38. package/dist/cli/commands/install.d.ts +7 -0
  39. package/dist/cli/commands/install.d.ts.map +1 -0
  40. package/dist/cli/commands/install.js +160 -0
  41. package/dist/cli/commands/install.js.map +1 -0
  42. package/dist/cli/commands/list.d.ts +6 -0
  43. package/dist/cli/commands/list.d.ts.map +1 -0
  44. package/dist/cli/commands/list.js +154 -0
  45. package/dist/cli/commands/list.js.map +1 -0
  46. package/package.json +90 -0
  47. package/src/adapters/README.md +312 -0
  48. package/src/adapters/adapter-base.ts +146 -0
  49. package/src/adapters/adapter-interface.ts +120 -0
  50. package/src/adapters/claude/README.md +241 -0
  51. package/src/adapters/claude/adapter.ts +157 -0
  52. package/src/adapters/copilot/.github/copilot/instructions.md +376 -0
  53. package/src/adapters/copilot/README.md +200 -0
  54. package/src/adapters/copilot/adapter.ts +210 -0
  55. package/src/adapters/cursor/.cursor/context/docs-context.md +62 -0
  56. package/src/adapters/cursor/.cursor/context/increments-context.md +71 -0
  57. package/src/adapters/cursor/.cursor/context/strategy-context.md +73 -0
  58. package/src/adapters/cursor/.cursor/context/tests-context.md +89 -0
  59. package/src/adapters/cursor/.cursorrules +325 -0
  60. package/src/adapters/cursor/README.md +243 -0
  61. package/src/adapters/cursor/adapter.ts +268 -0
  62. package/src/adapters/generic/README.md +277 -0
  63. package/src/adapters/generic/SPECWEAVE-MANUAL.md +676 -0
  64. package/src/adapters/generic/adapter.ts +159 -0
  65. package/src/adapters/registry.yaml +126 -0
  66. package/src/agents/architect/AGENT.md +416 -0
  67. package/src/agents/devops/AGENT.md +1738 -0
  68. package/src/agents/docs-writer/AGENT.md +239 -0
  69. package/src/agents/performance/AGENT.md +228 -0
  70. package/src/agents/pm/AGENT.md +751 -0
  71. package/src/agents/qa-lead/AGENT.md +150 -0
  72. package/src/agents/security/AGENT.md +179 -0
  73. package/src/agents/sre/AGENT.md +582 -0
  74. package/src/agents/sre/modules/backend-diagnostics.md +481 -0
  75. package/src/agents/sre/modules/database-diagnostics.md +509 -0
  76. package/src/agents/sre/modules/infrastructure.md +561 -0
  77. package/src/agents/sre/modules/monitoring.md +439 -0
  78. package/src/agents/sre/modules/security-incidents.md +421 -0
  79. package/src/agents/sre/modules/ui-diagnostics.md +302 -0
  80. package/src/agents/sre/playbooks/01-high-cpu-usage.md +204 -0
  81. package/src/agents/sre/playbooks/02-database-deadlock.md +241 -0
  82. package/src/agents/sre/playbooks/03-memory-leak.md +252 -0
  83. package/src/agents/sre/playbooks/04-slow-api-response.md +269 -0
  84. package/src/agents/sre/playbooks/05-ddos-attack.md +293 -0
  85. package/src/agents/sre/playbooks/06-disk-full.md +314 -0
  86. package/src/agents/sre/playbooks/07-service-down.md +333 -0
  87. package/src/agents/sre/playbooks/08-data-corruption.md +337 -0
  88. package/src/agents/sre/playbooks/09-cascade-failure.md +430 -0
  89. package/src/agents/sre/playbooks/10-rate-limit-exceeded.md +464 -0
  90. package/src/agents/sre/scripts/health-check.sh +230 -0
  91. package/src/agents/sre/scripts/log-analyzer.py +213 -0
  92. package/src/agents/sre/scripts/metrics-collector.sh +294 -0
  93. package/src/agents/sre/scripts/trace-analyzer.js +257 -0
  94. package/src/agents/sre/templates/incident-report.md +249 -0
  95. package/src/agents/sre/templates/mitigation-plan.md +375 -0
  96. package/src/agents/sre/templates/post-mortem.md +418 -0
  97. package/src/agents/sre/templates/runbook-template.md +412 -0
  98. package/src/agents/tech-lead/AGENT.md +263 -0
  99. package/src/commands/add-tasks.md +176 -0
  100. package/src/commands/close-increment.md +347 -0
  101. package/src/commands/create-increment.md +223 -0
  102. package/src/commands/create-project.md +528 -0
  103. package/src/commands/generate-docs.md +623 -0
  104. package/src/commands/list-increments.md +180 -0
  105. package/src/commands/review-docs.md +331 -0
  106. package/src/commands/start-increment.md +139 -0
  107. package/src/commands/sync-github.md +115 -0
  108. package/src/commands/validate-increment.md +800 -0
  109. package/src/hooks/README.md +252 -0
  110. package/src/hooks/docs-changed.sh +59 -0
  111. package/src/hooks/human-input-required.sh +55 -0
  112. package/src/hooks/post-task-completion.sh +57 -0
  113. package/src/hooks/pre-implementation.sh +47 -0
  114. package/src/skills/ado-sync/README.md +449 -0
  115. package/src/skills/ado-sync/SKILL.md +245 -0
  116. package/src/skills/ado-sync/test-cases/test-1.yaml +9 -0
  117. package/src/skills/ado-sync/test-cases/test-2.yaml +8 -0
  118. package/src/skills/ado-sync/test-cases/test-3.yaml +9 -0
  119. package/src/skills/bmad-method-expert/SKILL.md +628 -0
  120. package/src/skills/bmad-method-expert/scripts/analyze-project.js +318 -0
  121. package/src/skills/bmad-method-expert/scripts/check-setup.js +208 -0
  122. package/src/skills/bmad-method-expert/scripts/generate-template.js +1149 -0
  123. package/src/skills/bmad-method-expert/scripts/validate-documents.js +340 -0
  124. package/src/skills/bmad-method-expert/test-cases/test-1-placeholder.yaml +12 -0
  125. package/src/skills/bmad-method-expert/test-cases/test-2-placeholder.yaml +12 -0
  126. package/src/skills/bmad-method-expert/test-cases/test-3-placeholder.yaml +12 -0
  127. package/src/skills/brownfield-analyzer/SKILL.md +523 -0
  128. package/src/skills/brownfield-analyzer/test-cases/test-1-basic-analysis.yaml +48 -0
  129. package/src/skills/brownfield-analyzer/test-cases/test-2-placeholder.yaml +12 -0
  130. package/src/skills/brownfield-analyzer/test-cases/test-3-placeholder.yaml +12 -0
  131. package/src/skills/brownfield-onboarder/SKILL.md +625 -0
  132. package/src/skills/brownfield-onboarder/test-cases/test-1-placeholder.yaml +12 -0
  133. package/src/skills/brownfield-onboarder/test-cases/test-2-placeholder.yaml +12 -0
  134. package/src/skills/brownfield-onboarder/test-cases/test-3-placeholder.yaml +12 -0
  135. package/src/skills/calendar-system/test-cases/test-1-placeholder.yaml +12 -0
  136. package/src/skills/calendar-system/test-cases/test-2-placeholder.yaml +12 -0
  137. package/src/skills/calendar-system/test-cases/test-3-placeholder.yaml +12 -0
  138. package/src/skills/context-loader/SKILL.md +734 -0
  139. package/src/skills/context-loader/test-cases/test-1-basic-loading.yaml +39 -0
  140. package/src/skills/context-loader/test-cases/test-2-token-budget-exceeded.yaml +44 -0
  141. package/src/skills/context-loader/test-cases/test-3-section-anchors.yaml +45 -0
  142. package/src/skills/context-optimizer/SKILL.md +618 -0
  143. package/src/skills/context-optimizer/test-cases/test-1-bug-fix-narrow.yaml +97 -0
  144. package/src/skills/context-optimizer/test-cases/test-2-feature-focused.yaml +109 -0
  145. package/src/skills/context-optimizer/test-cases/test-3-architecture-broad.yaml +98 -0
  146. package/src/skills/cost-optimizer/SKILL.md +190 -0
  147. package/src/skills/cost-optimizer/test-cases/test-1-basic-comparison.yaml +75 -0
  148. package/src/skills/cost-optimizer/test-cases/test-2-budget-constraint.yaml +52 -0
  149. package/src/skills/cost-optimizer/test-cases/test-3-scale-requirement.yaml +63 -0
  150. package/src/skills/cost-optimizer/test-results/README.md +46 -0
  151. package/src/skills/design-system-architect/SKILL.md +107 -0
  152. package/src/skills/design-system-architect/test-cases/test-1-token-structure.yaml +23 -0
  153. package/src/skills/design-system-architect/test-cases/test-2-component-hierarchy.yaml +24 -0
  154. package/src/skills/design-system-architect/test-cases/test-3-accessibility-checklist.yaml +23 -0
  155. package/src/skills/diagrams-architect/SKILL.md +763 -0
  156. package/src/skills/diagrams-generator/SKILL.md +25 -0
  157. package/src/skills/diagrams-generator/test-cases/test-1.yaml +9 -0
  158. package/src/skills/diagrams-generator/test-cases/test-2.yaml +9 -0
  159. package/src/skills/diagrams-generator/test-cases/test-3.yaml +8 -0
  160. package/src/skills/docs-updater/README.md +48 -0
  161. package/src/skills/docs-updater/test-cases/test-1-placeholder.yaml +12 -0
  162. package/src/skills/docs-updater/test-cases/test-2-placeholder.yaml +12 -0
  163. package/src/skills/docs-updater/test-cases/test-3-placeholder.yaml +12 -0
  164. package/src/skills/dotnet-backend/SKILL.md +250 -0
  165. package/src/skills/e2e-playwright/README.md +506 -0
  166. package/src/skills/e2e-playwright/SKILL.md +457 -0
  167. package/src/skills/e2e-playwright/execute.js +373 -0
  168. package/src/skills/e2e-playwright/lib/utils.js +514 -0
  169. package/src/skills/e2e-playwright/package.json +33 -0
  170. package/src/skills/e2e-playwright/test-cases/TC-001-basic-navigation.yaml +54 -0
  171. package/src/skills/e2e-playwright/test-cases/TC-002-form-interaction.yaml +64 -0
  172. package/src/skills/e2e-playwright/test-cases/TC-003-specweave-integration.yaml +74 -0
  173. package/src/skills/e2e-playwright/test-cases/TC-004-accessibility-check.yaml +98 -0
  174. package/src/skills/figma-designer/SKILL.md +149 -0
  175. package/src/skills/figma-implementer/SKILL.md +148 -0
  176. package/src/skills/figma-mcp-connector/SKILL.md +136 -0
  177. package/src/skills/figma-mcp-connector/test-cases/test-1-read-file-desktop.yaml +22 -0
  178. package/src/skills/figma-mcp-connector/test-cases/test-2-read-file-framelink.yaml +21 -0
  179. package/src/skills/figma-mcp-connector/test-cases/test-3-error-handling.yaml +18 -0
  180. package/src/skills/figma-to-code/SKILL.md +128 -0
  181. package/src/skills/figma-to-code/test-cases/test-1-token-generation.yaml +29 -0
  182. package/src/skills/figma-to-code/test-cases/test-2-component-generation.yaml +27 -0
  183. package/src/skills/figma-to-code/test-cases/test-3-typescript-generation.yaml +28 -0
  184. package/src/skills/frontend/SKILL.md +177 -0
  185. package/src/skills/github-sync/SKILL.md +252 -0
  186. package/src/skills/github-sync/test-cases/test-1-placeholder.yaml +12 -0
  187. package/src/skills/github-sync/test-cases/test-2-placeholder.yaml +12 -0
  188. package/src/skills/github-sync/test-cases/test-3-placeholder.yaml +12 -0
  189. package/src/skills/hetzner-provisioner/README.md +308 -0
  190. package/src/skills/hetzner-provisioner/SKILL.md +251 -0
  191. package/src/skills/hetzner-provisioner/test-cases/test-1-basic-provision.yaml +71 -0
  192. package/src/skills/hetzner-provisioner/test-cases/test-2-postgres-provision.yaml +85 -0
  193. package/src/skills/hetzner-provisioner/test-cases/test-3-ssl-config.yaml +126 -0
  194. package/src/skills/hetzner-provisioner/test-results/README.md +259 -0
  195. package/src/skills/increment-planner/SKILL.md +889 -0
  196. package/src/skills/increment-planner/scripts/feature-utils.js +250 -0
  197. package/src/skills/increment-planner/test-cases/test-1-basic-feature.yaml +27 -0
  198. package/src/skills/increment-planner/test-cases/test-2-complex-feature.yaml +30 -0
  199. package/src/skills/increment-planner/test-cases/test-3-auto-numbering.yaml +24 -0
  200. package/src/skills/increment-quality-judge/SKILL.md +566 -0
  201. package/src/skills/increment-quality-judge/test-cases/test-1-good-spec.yaml +95 -0
  202. package/src/skills/increment-quality-judge/test-cases/test-2-poor-spec.yaml +108 -0
  203. package/src/skills/increment-quality-judge/test-cases/test-3-export-suggestions.yaml +87 -0
  204. package/src/skills/jira-sync/README.md +328 -0
  205. package/src/skills/jira-sync/SKILL.md +209 -0
  206. package/src/skills/jira-sync/test-cases/test-1.yaml +9 -0
  207. package/src/skills/jira-sync/test-cases/test-2.yaml +9 -0
  208. package/src/skills/jira-sync/test-cases/test-3.yaml +10 -0
  209. package/src/skills/nextjs/SKILL.md +176 -0
  210. package/src/skills/nodejs-backend/SKILL.md +181 -0
  211. package/src/skills/notification-system/test-cases/test-1-placeholder.yaml +12 -0
  212. package/src/skills/notification-system/test-cases/test-2-placeholder.yaml +12 -0
  213. package/src/skills/notification-system/test-cases/test-3-placeholder.yaml +12 -0
  214. package/src/skills/python-backend/SKILL.md +226 -0
  215. package/src/skills/role-orchestrator/README.md +197 -0
  216. package/src/skills/role-orchestrator/SKILL.md +1184 -0
  217. package/src/skills/role-orchestrator/test-cases/test-1-simple-product.yaml +98 -0
  218. package/src/skills/role-orchestrator/test-cases/test-2-quality-gate-failure.yaml +73 -0
  219. package/src/skills/role-orchestrator/test-cases/test-3-security-workflow.yaml +121 -0
  220. package/src/skills/role-orchestrator/test-cases/test-4-parallel-execution.yaml +145 -0
  221. package/src/skills/role-orchestrator/test-cases/test-5-feedback-loops.yaml +149 -0
  222. package/src/skills/skill-creator/LICENSE.txt +202 -0
  223. package/src/skills/skill-creator/SKILL.md +209 -0
  224. package/src/skills/skill-creator/scripts/init_skill.py +303 -0
  225. package/src/skills/skill-creator/scripts/package_skill.py +110 -0
  226. package/src/skills/skill-creator/scripts/quick_validate.py +65 -0
  227. package/src/skills/skill-creator/test-cases/test-1-placeholder.yaml +12 -0
  228. package/src/skills/skill-creator/test-cases/test-2-placeholder.yaml +12 -0
  229. package/src/skills/skill-creator/test-cases/test-3-placeholder.yaml +12 -0
  230. package/src/skills/skill-router/SKILL.md +497 -0
  231. package/src/skills/skill-router/test-cases/test-1-basic-routing.yaml +33 -0
  232. package/src/skills/skill-router/test-cases/test-2-ambiguous-request.yaml +42 -0
  233. package/src/skills/skill-router/test-cases/test-3-nested-orchestration.yaml +50 -0
  234. package/src/skills/spec-driven-brainstorming/README.md +264 -0
  235. package/src/skills/spec-driven-brainstorming/SKILL.md +439 -0
  236. package/src/skills/spec-driven-brainstorming/test-cases/TC-001-simple-idea-to-design.yaml +148 -0
  237. package/src/skills/spec-driven-brainstorming/test-cases/TC-002-complex-ultrathink-design.yaml +190 -0
  238. package/src/skills/spec-driven-brainstorming/test-cases/TC-003-unclear-requirements-socratic.yaml +233 -0
  239. package/src/skills/spec-driven-debugging/README.md +479 -0
  240. package/src/skills/spec-driven-debugging/SKILL.md +652 -0
  241. package/src/skills/spec-driven-debugging/test-cases/TC-001-simple-auth-bug.yaml +212 -0
  242. package/src/skills/spec-driven-debugging/test-cases/TC-002-race-condition-ultrathink.yaml +461 -0
  243. package/src/skills/spec-driven-debugging/test-cases/TC-003-brownfield-missing-spec.yaml +366 -0
  244. package/src/skills/spec-kit-expert/SKILL.md +1012 -0
  245. package/src/skills/spec-kit-expert/test-cases/test-1-placeholder.yaml +12 -0
  246. package/src/skills/spec-kit-expert/test-cases/test-2-placeholder.yaml +12 -0
  247. package/src/skills/spec-kit-expert/test-cases/test-3-placeholder.yaml +12 -0
  248. package/src/skills/specweave-ado-mapper/SKILL.md +501 -0
  249. package/src/skills/specweave-detector/SKILL.md +420 -0
  250. package/src/skills/specweave-detector/test-cases/test-1-basic-detection.yaml +37 -0
  251. package/src/skills/specweave-detector/test-cases/test-2-missing-config.yaml +37 -0
  252. package/src/skills/specweave-detector/test-cases/test-3-non-specweave-project.yaml +34 -0
  253. package/src/skills/specweave-jira-mapper/SKILL.md +500 -0
  254. package/src/skills/stripe-integrator/test-cases/test-1-placeholder.yaml +12 -0
  255. package/src/skills/stripe-integrator/test-cases/test-2-placeholder.yaml +12 -0
  256. package/src/skills/stripe-integrator/test-cases/test-3-placeholder.yaml +12 -0
  257. package/src/skills/task-builder/README.md +90 -0
  258. package/src/skills/task-builder/test-cases/test-1-placeholder.yaml +12 -0
  259. package/src/skills/task-builder/test-cases/test-2-placeholder.yaml +12 -0
  260. package/src/skills/task-builder/test-cases/test-3-placeholder.yaml +12 -0
  261. package/src/templates/.env.example +144 -0
  262. package/src/templates/.gitignore.template +81 -0
  263. package/src/templates/CLAUDE.md.template +383 -0
  264. package/src/templates/README.md.template +240 -0
  265. package/src/templates/config.yaml +333 -0
  266. package/src/templates/docs/README.md +124 -0
  267. package/src/templates/docs/adr-template.md +118 -0
  268. package/src/templates/docs/hld-template.md +220 -0
  269. package/src/templates/docs/lld-template.md +580 -0
  270. package/src/templates/docs/prd-template.md +132 -0
  271. package/src/templates/docs/rfc-template.md +229 -0
  272. package/src/templates/docs/runbook-template.md +298 -0
  273. package/src/templates/environments/minimal/.env.production +16 -0
  274. package/src/templates/environments/minimal/README.md +54 -0
  275. package/src/templates/environments/minimal/deploy-production.yml +52 -0
  276. package/src/templates/environments/progressive/.env.qa +28 -0
  277. package/src/templates/environments/progressive/README.md +129 -0
  278. package/src/templates/environments/progressive/deploy-production.yml +93 -0
  279. package/src/templates/environments/progressive/deploy-qa.yml +62 -0
  280. package/src/templates/environments/progressive/deploy-staging.yml +67 -0
  281. package/src/templates/environments/standard/.env.development +20 -0
  282. package/src/templates/environments/standard/.env.production +30 -0
  283. package/src/templates/environments/standard/.env.staging +23 -0
  284. package/src/templates/environments/standard/README.md +97 -0
  285. package/src/templates/environments/standard/deploy-production.yml +68 -0
  286. package/src/templates/environments/standard/deploy-staging.yml +61 -0
  287. package/src/templates/environments/standard/docker-compose.yml +43 -0
  288. package/src/templates/increment-metadata-template.yaml +138 -0
package/INSTALL.md ADDED
@@ -0,0 +1,848 @@
1
+ # SpecWeave Installation Guide
2
+
3
+ **Version**: v0.1.0-beta.1
4
+ **Last Updated**: 2025-10-27
5
+
6
+ Complete installation guide for SpecWeave - the spec-driven development framework.
7
+
8
+ ---
9
+
10
+ ## Table of Contents
11
+
12
+ 1. [Prerequisites](#prerequisites)
13
+ 2. [Installation Methods](#installation-methods)
14
+ 3. [Quick Start](#quick-start)
15
+ 4. [Detailed Setup](#detailed-setup)
16
+ 5. [Component Installation](#component-installation)
17
+ 6. [Troubleshooting](#troubleshooting)
18
+ 7. [Uninstallation](#uninstallation)
19
+ 8. [Upgrading](#upgrading)
20
+
21
+ ---
22
+
23
+ ## Prerequisites
24
+
25
+ Before installing SpecWeave, ensure you have:
26
+
27
+ ### Required
28
+
29
+ - **Node.js**: v18.0.0 or higher
30
+ ```bash
31
+ node --version # Should be v18.0.0+
32
+ ```
33
+
34
+ - **npm**: v9.0.0 or higher (comes with Node.js)
35
+ ```bash
36
+ npm --version # Should be v9.0.0+
37
+ ```
38
+
39
+ ### Recommended
40
+
41
+ - **Git**: For version control
42
+ ```bash
43
+ git --version # Any recent version works
44
+ ```
45
+
46
+ - **Claude Code**: AI agent (Claude Sonnet 4.5 recommended)
47
+ - SpecWeave is optimized for Claude Code
48
+ - Other AI agents may work but are not officially supported in beta
49
+
50
+ ### Optional
51
+
52
+ - **VS Code**: For development
53
+ - **Mermaid Preview Extension**: For viewing C4 diagrams
54
+
55
+ ---
56
+
57
+ ## Installation Methods
58
+
59
+ ### Method 1: Global Installation (Recommended)
60
+
61
+ **Best for**: Regular SpecWeave users who create multiple projects
62
+
63
+ ```bash
64
+ # Install globally via npm
65
+ npm install -g specweave
66
+ ```
67
+
68
+ **Benefits**:
69
+ - ✅ `specweave` command available everywhere
70
+ - ✅ Fastest project creation
71
+ - ✅ Easy to upgrade
72
+
73
+ **Verify installation**:
74
+ ```bash
75
+ specweave --version
76
+ # Output: 0.1.0-beta.1
77
+
78
+ specweave --help
79
+ # Shows all available commands
80
+ ```
81
+
82
+ ### Method 2: One-Time Usage (npx)
83
+
84
+ **Best for**: Trying SpecWeave or one-off project creation
85
+
86
+ ```bash
87
+ # No installation required
88
+ npx specweave init my-project
89
+ ```
90
+
91
+ **Benefits**:
92
+ - ✅ No global installation
93
+ - ✅ Always uses latest version
94
+ - ✅ Perfect for CI/CD
95
+
96
+ **Note**: Slower than global installation (downloads package each time)
97
+
98
+ ### Method 3: Local Installation (Project-Specific)
99
+
100
+ **Best for**: Contributing to SpecWeave framework development
101
+
102
+ ```bash
103
+ # Clone the repository
104
+ git clone https://github.com/specweave/specweave.git
105
+ cd specweave
106
+
107
+ # Install dependencies
108
+ npm install
109
+
110
+ # Build TypeScript
111
+ npm run build
112
+
113
+ # Link locally (makes 'specweave' available globally)
114
+ npm link
115
+ ```
116
+
117
+ **Benefits**:
118
+ - ✅ Latest development version
119
+ - ✅ Contribute to framework
120
+ - ✅ Test unreleased features
121
+
122
+ **Verify local installation**:
123
+ ```bash
124
+ specweave --version
125
+ # Output: 0.1.0-beta.1
126
+
127
+ which specweave
128
+ # Output: /usr/local/bin/specweave (or similar)
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Quick Start
134
+
135
+ ### 1. Install SpecWeave
136
+
137
+ **Global:**
138
+ ```bash
139
+ npm install -g specweave
140
+ ```
141
+
142
+ **One-time:**
143
+ ```bash
144
+ npx specweave init my-saas
145
+ ```
146
+
147
+ ### 2. Create New Project
148
+
149
+ **Interactive (recommended for first time):**
150
+ ```bash
151
+ specweave init
152
+ ```
153
+
154
+ You'll be prompted for:
155
+ - Project name
156
+ - Template type (saas, api, fullstack)
157
+ - Overwrite confirmation (if directory exists)
158
+
159
+ **Non-interactive:**
160
+ ```bash
161
+ specweave init my-saas
162
+ cd my-saas
163
+ ```
164
+
165
+ ### 3. Verify Project Structure
166
+
167
+ ```bash
168
+ ls -la my-saas
169
+
170
+ # You should see:
171
+ # .specweave/ # Framework configuration
172
+ # src/skills/ # AI agent skills (17+ installed)
173
+ # .claude/ # Claude Code integration
174
+ # CLAUDE.md # Development guide
175
+ # README.md # Project documentation
176
+ ```
177
+
178
+ ### 4. Start Building
179
+
180
+ Open the project in Claude Code and describe what you want to build:
181
+
182
+ ```
183
+ "Create an event booking SaaS with Next.js on Hetzner"
184
+ ```
185
+
186
+ SpecWeave will:
187
+ - ✅ Ask clarifying questions
188
+ - ✅ Create strategic analysis (PM, Architect, DevOps, QA)
189
+ - ✅ Generate comprehensive documentation
190
+ - ✅ Create implementation tasks
191
+ - ✅ Build autonomously
192
+
193
+ ---
194
+
195
+ ## Detailed Setup
196
+
197
+ ### Understanding SpecWeave Installation
198
+
199
+ When you install SpecWeave, you get:
200
+
201
+ 1. **CLI Tool** (`specweave` command)
202
+ - Project initialization
203
+ - Component installation
204
+ - Management commands
205
+
206
+ 2. **Core Framework Files** (copied to your project)
207
+ - `.specweave/` - Configuration and increments
208
+ - `src/skills/` - AI agent skills
209
+ - `.claude/` - Claude Code integration
210
+ - `CLAUDE.md` - Development guide
211
+
212
+ 3. **Templates** (used during initialization)
213
+ - Project structure
214
+ - Configuration files
215
+ - Documentation templates
216
+
217
+ ### Installation Locations
218
+
219
+ **Global installation:**
220
+ ```
221
+ /usr/local/lib/node_modules/specweave/ # Framework files
222
+ /usr/local/bin/specweave # CLI executable
223
+ ```
224
+
225
+ **Project installation:**
226
+ ```
227
+ my-project/
228
+ ├── .specweave/ # Created by 'specweave init'
229
+ ├── src/skills/ # Installed skills
230
+ ├── .claude/ # Claude integration
231
+ └── CLAUDE.md # Development guide
232
+ ```
233
+
234
+ ### Project Templates
235
+
236
+ **Available templates** (v0.1.0-beta.1):
237
+
238
+ | Template | Description | Tech Stack |
239
+ |----------|-------------|------------|
240
+ | `saas` (default) | Full-stack SaaS application | Next.js, Prisma, Hetzner |
241
+ | `api` | API-only backend | FastAPI, PostgreSQL |
242
+ | `fullstack` | Frontend + Backend separation | React + Express |
243
+
244
+ **Specify template:**
245
+ ```bash
246
+ specweave init my-api --template api
247
+ ```
248
+
249
+ ---
250
+
251
+ ## Component Installation
252
+
253
+ SpecWeave uses a **selective installation** approach to avoid context bloat.
254
+
255
+ ### Understanding Components
256
+
257
+ **Agents** (14 available):
258
+ - Strategic: pm, architect, security, qa-lead, devops, tech-lead, docs-writer
259
+ - Implementation: frontend, nextjs, nodejs-backend, python-backend, dotnet-backend, performance, sre
260
+
261
+ **Skills** (17+ available):
262
+ - Core: specweave-detector, increment-planner, skill-router, context-loader
263
+ - Integration: jira-sync, ado-sync, github-sync, diagrams-generator
264
+ - Infrastructure: hetzner-provisioner, cost-optimizer
265
+ - Brownfield: brownfield-analyzer, brownfield-onboarder
266
+ - Design: figma-mcp-connector, design-system-architect, figma-to-code
267
+ - Expert: spec-kit-expert, bmad-method-expert
268
+
269
+ ### Installing Components
270
+
271
+ #### List Available Components
272
+
273
+ ```bash
274
+ # Show all available agents and skills
275
+ specweave list
276
+
277
+ # Output:
278
+ # 🤖 Agents:
279
+ # Available in SpecWeave: 14 agents
280
+ # • pm - Product Manager for requirements and user stories
281
+ # • architect - System Architect for design and ADRs
282
+ # ...
283
+ #
284
+ # ✨ Skills:
285
+ # Available in SpecWeave: 17 skills
286
+ # • specweave-detector - Auto-detect SpecWeave projects
287
+ # • increment-planner - Plan features with context awareness
288
+ # ...
289
+ ```
290
+
291
+ #### Show Installed Components
292
+
293
+ ```bash
294
+ # Show what's currently installed
295
+ specweave list --installed
296
+
297
+ # Output:
298
+ # 📁 Local Installation (.claude/):
299
+ # 🤖 Agents:
300
+ # ✓ pm
301
+ # ✓ architect
302
+ # ...
303
+ #
304
+ # ✨ Skills:
305
+ # ✓ specweave-detector
306
+ # ✓ increment-planner
307
+ # ...
308
+ ```
309
+
310
+ #### Install Specific Component
311
+
312
+ ```bash
313
+ # Install locally (to current project)
314
+ specweave install pm --local
315
+
316
+ # Install globally (to ~/.claude/)
317
+ specweave install pm --global
318
+ ```
319
+
320
+ #### Install All Components
321
+
322
+ ```bash
323
+ # Interactive mode (choose what to install)
324
+ specweave install
325
+
326
+ # Output:
327
+ # ? What would you like to install?
328
+ # > All components (agents + skills)
329
+ # All agents only
330
+ # All skills only
331
+ # Specific component
332
+ ```
333
+
334
+ #### Install by Category
335
+
336
+ **Install all agents:**
337
+ ```bash
338
+ specweave install
339
+ # Choose: "All agents only"
340
+ ```
341
+
342
+ **Install all skills:**
343
+ ```bash
344
+ specweave install
345
+ # Choose: "All skills only"
346
+ ```
347
+
348
+ ### Installation Locations
349
+
350
+ **Local installation** (`.claude/`):
351
+ - ✅ Project-specific components
352
+ - ✅ Won't affect other projects
353
+ - ✅ Committed to git (if desired)
354
+
355
+ **Global installation** (`~/.claude/`):
356
+ - ✅ Available to all SpecWeave projects
357
+ - ✅ Shared across projects
358
+ - ✅ User-specific (not committed to git)
359
+
360
+ ### Selective Installation Strategy
361
+
362
+ **Recommended approach:**
363
+
364
+ 1. **Start minimal** (install only what you need)
365
+ ```bash
366
+ # Python API project
367
+ specweave install pm --local
368
+ specweave install architect --local
369
+ specweave install python-backend --local
370
+ ```
371
+
372
+ 2. **Add as you go** (install when needed)
373
+ ```bash
374
+ # Later, when adding Figma designs
375
+ specweave install figma-designer --local
376
+ specweave install figma-to-code --local
377
+ ```
378
+
379
+ 3. **Token savings**: Installing only 7 components vs all 31 = **60% token reduction**
380
+
381
+ ---
382
+
383
+ ## Troubleshooting
384
+
385
+ ### Common Issues
386
+
387
+ #### 1. `specweave: command not found`
388
+
389
+ **Problem**: Global installation didn't add to PATH
390
+
391
+ **Solutions:**
392
+
393
+ **macOS/Linux:**
394
+ ```bash
395
+ # Check npm global bin directory
396
+ npm config get prefix
397
+ # Output: /usr/local (or similar)
398
+
399
+ # Add to PATH if missing
400
+ export PATH="$(npm config get prefix)/bin:$PATH"
401
+
402
+ # Make permanent (add to ~/.bashrc or ~/.zshrc)
403
+ echo 'export PATH="$(npm config get prefix)/bin:$PATH"' >> ~/.bashrc
404
+ source ~/.bashrc
405
+ ```
406
+
407
+ **Windows:**
408
+ ```cmd
409
+ # Check npm global bin directory
410
+ npm config get prefix
411
+
412
+ # Add to PATH via System Environment Variables
413
+ # Example: C:\Users\<username>\AppData\Roaming\npm
414
+ ```
415
+
416
+ #### 2. `npm ERR! code EACCES` (Permission denied)
417
+
418
+ **Problem**: No permission to install globally
419
+
420
+ **Solutions:**
421
+
422
+ **Option A: Use npx (recommended)**
423
+ ```bash
424
+ # No installation needed
425
+ npx specweave init my-project
426
+ ```
427
+
428
+ **Option B: Fix npm permissions**
429
+ ```bash
430
+ # macOS/Linux
431
+ sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
432
+
433
+ # Verify
434
+ npm install -g specweave
435
+ ```
436
+
437
+ **Option C: Use nvm (Node Version Manager)**
438
+ ```bash
439
+ # Install nvm
440
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
441
+
442
+ # Install Node.js via nvm
443
+ nvm install 18
444
+ nvm use 18
445
+
446
+ # Now npm global installs work without sudo
447
+ npm install -g specweave
448
+ ```
449
+
450
+ #### 3. `Error: Cannot find module '../dist/cli/commands/init'`
451
+
452
+ **Problem**: TypeScript not built
453
+
454
+ **Solution:**
455
+
456
+ **If installed globally:**
457
+ ```bash
458
+ # Uninstall and reinstall
459
+ npm uninstall -g specweave
460
+ npm install -g specweave
461
+ ```
462
+
463
+ **If cloned from GitHub:**
464
+ ```bash
465
+ # Build TypeScript
466
+ npm run build
467
+
468
+ # Verify dist/ directory exists
469
+ ls dist/cli/commands/
470
+ # Should show: init.js, install.js, list.js
471
+ ```
472
+
473
+ #### 4. Git initialization fails
474
+
475
+ **Problem**: Git not installed or not configured
476
+
477
+ **Solution:**
478
+
479
+ **Install Git:**
480
+ ```bash
481
+ # macOS
482
+ brew install git
483
+
484
+ # Ubuntu/Debian
485
+ sudo apt-get install git
486
+
487
+ # Windows
488
+ # Download from https://git-scm.com/downloads
489
+ ```
490
+
491
+ **Configure Git:**
492
+ ```bash
493
+ git config --global user.name "Your Name"
494
+ git config --global user.email "your.email@example.com"
495
+ ```
496
+
497
+ **Skip Git initialization:**
498
+ ```bash
499
+ # SpecWeave will skip git if not found (non-fatal)
500
+ specweave init my-project
501
+ ```
502
+
503
+ #### 5. `ENOENT: no such file or directory` during init
504
+
505
+ **Problem**: Template files not found
506
+
507
+ **Solutions:**
508
+
509
+ **If installed globally:**
510
+ ```bash
511
+ # Reinstall to fix missing templates
512
+ npm uninstall -g specweave
513
+ npm install -g specweave
514
+ ```
515
+
516
+ **If cloned from GitHub:**
517
+ ```bash
518
+ # Verify templates exist
519
+ ls src/templates/
520
+ # Should show: config.yaml, CLAUDE.md.template, README.md.template, etc.
521
+
522
+ # If missing, pull latest
523
+ git pull origin main
524
+ npm run build
525
+ ```
526
+
527
+ #### 6. Skills/Agents not loading in Claude Code
528
+
529
+ **Problem**: Files copied but Claude doesn't see them
530
+
531
+ **Solutions:**
532
+
533
+ **1. Restart Claude Code**
534
+ ```bash
535
+ # Changes to .claude/ require restart
536
+ # Close and reopen Claude Code
537
+ ```
538
+
539
+ **2. Verify files exist**
540
+ ```bash
541
+ # Check local installation
542
+ ls .claude/skills/
543
+ ls .claude/agents/
544
+
545
+ # Check global installation
546
+ ls ~/.claude/skills/
547
+ ls ~/.claude/agents/
548
+ ```
549
+
550
+ **3. Verify SKILL.md/AGENT.md format**
551
+ ```bash
552
+ # Must have YAML frontmatter
553
+ cat .claude/skills/increment-planner/SKILL.md
554
+
555
+ # Should start with:
556
+ # ---
557
+ # name: increment-planner
558
+ # description: ...
559
+ # ---
560
+ ```
561
+
562
+ ---
563
+
564
+ ## Uninstallation
565
+
566
+ ### Remove Global Installation
567
+
568
+ ```bash
569
+ # Uninstall SpecWeave CLI
570
+ npm uninstall -g specweave
571
+
572
+ # Verify removal
573
+ which specweave
574
+ # Should output: (nothing)
575
+ ```
576
+
577
+ ### Remove Project Files
578
+
579
+ ```bash
580
+ # Delete project directory
581
+ rm -rf my-project
582
+
583
+ # Or delete SpecWeave-specific files only
584
+ rm -rf .specweave
585
+ rm -rf src/skills
586
+ rm -rf .claude
587
+ rm CLAUDE.md
588
+ ```
589
+
590
+ ### Remove Global Components
591
+
592
+ ```bash
593
+ # Remove globally installed skills/agents
594
+ rm -rf ~/.claude/skills/*
595
+ rm -rf ~/.claude/agents/*
596
+
597
+ # Or remove entire .claude directory
598
+ rm -rf ~/.claude
599
+ ```
600
+
601
+ ---
602
+
603
+ ## Upgrading
604
+
605
+ ### Upgrade Global Installation
606
+
607
+ ```bash
608
+ # Update to latest version
609
+ npm update -g specweave
610
+
611
+ # Verify new version
612
+ specweave --version
613
+ ```
614
+
615
+ ### Upgrade Existing Project
616
+
617
+ **Approach 1: Reinstall components**
618
+ ```bash
619
+ cd my-project
620
+
621
+ # Reinstall all components
622
+ specweave install
623
+ # Choose: "All components (agents + skills)"
624
+ ```
625
+
626
+ **Approach 2: Selective upgrade**
627
+ ```bash
628
+ # Update specific component
629
+ specweave install increment-planner --local
630
+ ```
631
+
632
+ **Approach 3: Manual upgrade**
633
+ ```bash
634
+ # Pull latest framework
635
+ cd /path/to/specweave-repo
636
+ git pull origin main
637
+ npm run build
638
+ npm link
639
+
640
+ # Components in your project will use updated framework
641
+ ```
642
+
643
+ ### Migration Between Versions
644
+
645
+ **v0.1.0-beta.1 → v0.1.0-beta.2 (upcoming):**
646
+ - ✅ No breaking changes expected
647
+ - ✅ Run `specweave install` to get new components
648
+ - ✅ CLAUDE.md may have updates (review changes)
649
+
650
+ **v0.1.x → v0.2.x (future):**
651
+ - ⚠️ May have breaking changes
652
+ - 📖 Read CHANGELOG.md for migration guide
653
+ - 🔄 Backup your project before upgrading
654
+
655
+ ---
656
+
657
+ ## Advanced Installation
658
+
659
+ ### Install from GitHub (Latest Development)
660
+
661
+ ```bash
662
+ # Clone repository
663
+ git clone https://github.com/specweave/specweave.git
664
+ cd specweave
665
+
666
+ # Install dependencies
667
+ npm install
668
+
669
+ # Build TypeScript
670
+ npm run build
671
+
672
+ # Link globally
673
+ npm link
674
+
675
+ # Verify
676
+ specweave --version
677
+ ```
678
+
679
+ ### Install from Specific Branch
680
+
681
+ ```bash
682
+ # Clone specific branch
683
+ git clone -b feature-branch https://github.com/specweave/specweave.git
684
+ cd specweave
685
+
686
+ # Install and build
687
+ npm install
688
+ npm run build
689
+ npm link
690
+ ```
691
+
692
+ ### Install from Tarball
693
+
694
+ ```bash
695
+ # Download release tarball
696
+ curl -LO https://github.com/specweave/specweave/archive/v0.1.0-beta.1.tar.gz
697
+
698
+ # Extract
699
+ tar -xzf v0.1.0-beta.1.tar.gz
700
+ cd specweave-0.1.0-beta.1
701
+
702
+ # Install and build
703
+ npm install
704
+ npm run build
705
+ npm link
706
+ ```
707
+
708
+ ---
709
+
710
+ ## Verification Checklist
711
+
712
+ After installation, verify everything works:
713
+
714
+ ### ✅ CLI Installation
715
+
716
+ ```bash
717
+ # Check command exists
718
+ which specweave || echo "Not found"
719
+
720
+ # Check version
721
+ specweave --version
722
+
723
+ # Check help
724
+ specweave --help
725
+ ```
726
+
727
+ ### ✅ Project Creation
728
+
729
+ ```bash
730
+ # Create test project
731
+ specweave init test-project
732
+ cd test-project
733
+
734
+ # Verify structure
735
+ ls -la
736
+
737
+ # Expected:
738
+ # ✓ .specweave/ directory
739
+ # ✓ src/skills/ directory
740
+ # ✓ .claude/ directory
741
+ # ✓ CLAUDE.md file
742
+ # ✓ README.md file
743
+ ```
744
+
745
+ ### ✅ Components Installation
746
+
747
+ ```bash
748
+ # List available components
749
+ specweave list
750
+
751
+ # Expected:
752
+ # ✓ Shows 14 agents
753
+ # ✓ Shows 17+ skills
754
+
755
+ # List installed components
756
+ specweave list --installed
757
+
758
+ # Expected:
759
+ # ✓ Shows local installation (.claude/)
760
+ # ✓ Lists installed agents/skills
761
+ ```
762
+
763
+ ### ✅ Skills Loading (Claude Code)
764
+
765
+ ```bash
766
+ # Open project in Claude Code
767
+ code .
768
+
769
+ # In Claude Code, type:
770
+ /help
771
+
772
+ # Expected:
773
+ # ✓ Shows SpecWeave slash commands
774
+ # ✓ /create-project
775
+ # ✓ /create-increment
776
+ # ✓ /review-docs
777
+ # ✓ /sync-github
778
+ ```
779
+
780
+ ---
781
+
782
+ ## System Requirements
783
+
784
+ ### Minimum Requirements
785
+
786
+ - **OS**: macOS, Linux, Windows 10+
787
+ - **Node.js**: v18.0.0+
788
+ - **RAM**: 2 GB (for Node.js and npm)
789
+ - **Disk Space**: 500 MB (for SpecWeave + dependencies)
790
+
791
+ ### Recommended Requirements
792
+
793
+ - **OS**: macOS 12+, Ubuntu 22.04+, Windows 11
794
+ - **Node.js**: v20.0.0+ (latest LTS)
795
+ - **RAM**: 4 GB+ (for running AI agents)
796
+ - **Disk Space**: 2 GB+ (for projects and components)
797
+
798
+ ### Network Requirements
799
+
800
+ - **npm access**: Required for installation
801
+ - **GitHub access**: Optional (for cloning repository)
802
+ - **Outbound HTTPS**: Required for npm registry
803
+
804
+ ---
805
+
806
+ ## Getting Help
807
+
808
+ ### Documentation
809
+
810
+ - **Complete guide**: `CLAUDE.md` in your project
811
+ - **Release notes**: `CHANGELOG.md`
812
+ - **Quick start**: `README.md`
813
+
814
+ ### Community
815
+
816
+ - **Issues**: https://github.com/specweave/specweave/issues
817
+ - **Discussions**: https://github.com/specweave/specweave/discussions
818
+ - **Repository**: https://github.com/specweave/specweave
819
+
820
+ ### Support
821
+
822
+ For installation issues:
823
+ 1. ✅ Check this guide's [Troubleshooting](#troubleshooting) section
824
+ 2. ✅ Search existing issues: https://github.com/specweave/specweave/issues
825
+ 3. ✅ Create new issue with:
826
+ - `specweave --version`
827
+ - `node --version`
828
+ - `npm --version`
829
+ - Operating system
830
+ - Error messages
831
+
832
+ ---
833
+
834
+ ## Next Steps
835
+
836
+ After successful installation:
837
+
838
+ 1. **Read CLAUDE.md** - Complete development guide
839
+ 2. **Create first project** - `specweave init my-saas`
840
+ 3. **Explore skills** - `specweave list`
841
+ 4. **Start building** - Describe what you want in Claude Code
842
+ 5. **Join community** - https://github.com/specweave/specweave/discussions
843
+
844
+ ---
845
+
846
+ **Happy Building with SpecWeave!** 🚀
847
+
848
+ For more information, visit: https://github.com/specweave/specweave