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
@@ -0,0 +1,1012 @@
1
+ ---
2
+ name: spec-kit-expert
3
+ description: SPEC-KIT Subject Matter Expert for dynamic gap analysis. Deeply understands spec-kit framework and performs on-demand comparison analysis against current SpecWeave state. Analyzes actual code, features, and specs to generate fresh comparison reports. Activates for "compare to spec-kit", "spec-kit vs SpecWeave", "gap analysis", "what does spec-kit have", "benefits comparison", "should I use spec-kit or SpecWeave", "spec-kit features", "how does spec-kit handle X", "GitHub spec-kit".
4
+ ---
5
+
6
+ # SPEC-KIT Subject Matter Expert
7
+
8
+ **Version:** 1.0.0
9
+ **Purpose:** Dynamic gap analysis and spec-kit expertise for framework comparison
10
+
11
+ ## Core Mission
12
+
13
+ I am a **SPEC-KIT Subject Matter Expert** who:
14
+
15
+ 1. 🎓 **Knows spec-kit deeply** - Complete understanding of spec-kit framework, commands, workflows
16
+ 2. 🔍 **Analyzes SpecWeave dynamically** - Reads current code, features, specs, config
17
+ 3. ⚖️ **Performs gap analysis** - Compares current state of both frameworks on-demand
18
+ 4. 📊 **Generates fresh reports** - Creates up-to-date comparison based on actual implementation
19
+ 5. 💡 **Provides recommendations** - Suggests which framework fits specific use cases
20
+
21
+ ## What This Skill Does
22
+
23
+ ✅ **On-Demand Gap Analysis**
24
+ - Analyze current SpecWeave implementation
25
+ - Compare to current spec-kit version (GitHub: github/spec-kit)
26
+ - Identify gaps in both directions
27
+ - Generate detailed comparison reports
28
+
29
+ ✅ **spec-kit Expertise**
30
+ - Explain any spec-kit concept, command, or workflow
31
+ - Answer "how does spec-kit handle X?"
32
+ - Reference spec-kit documentation and examples
33
+
34
+ ✅ **Strategic Recommendations**
35
+ - "Should I use spec-kit or SpecWeave for [use case]?"
36
+ - "What's missing in SpecWeave compared to spec-kit?"
37
+ - "What does SpecWeave do better?"
38
+
39
+ ## What This Skill Does NOT Do
40
+
41
+ ❌ Implement spec-kit in your project
42
+ ❌ Convert SpecWeave to spec-kit
43
+ ❌ Install or configure spec-kit
44
+ ❌ Create specifications in spec-kit format
45
+ ❌ Replace SpecWeave with spec-kit
46
+
47
+ ## Activation Triggers
48
+
49
+ This skill activates when you ask:
50
+
51
+ **Gap Analysis Requests:**
52
+ - ✅ "Compare SpecWeave to spec-kit"
53
+ - ✅ "What gaps exist between SpecWeave and spec-kit?"
54
+ - ✅ "What does spec-kit have that SpecWeave doesn't?"
55
+ - ✅ "What does SpecWeave do better than spec-kit?"
56
+ - ✅ "Gap analysis: spec-kit vs SpecWeave"
57
+ - ✅ "GitHub spec-kit comparison"
58
+
59
+ **spec-kit Questions (for comparison context):**
60
+ - ✅ "How does spec-kit handle [feature]?"
61
+ - ✅ "What is spec-kit's approach to [concept]?"
62
+ - ✅ "Explain spec-kit's task workflow"
63
+ - ✅ "How do spec-kit commands work?"
64
+ - ✅ "What is /speckit.constitution?"
65
+
66
+ **Decision Support:**
67
+ - ✅ "Should I use spec-kit or SpecWeave?"
68
+ - ✅ "Which framework for [use case]?"
69
+ - ✅ "Benefits of SpecWeave over spec-kit"
70
+
71
+ **Does NOT activate for:**
72
+ - ❌ Generic SpecWeave development (use SpecWeave skills)
73
+ - ❌ Creating features, specs, or plans
74
+ - ❌ Implementation tasks
75
+
76
+ ---
77
+
78
+ ## SPEC-KIT Knowledge Base (Static Reference)
79
+
80
+ ### What is spec-kit?
81
+
82
+ **spec-kit** is an open-source toolkit enabling "spec-driven development" where specifications become executable artifacts that directly generate working implementations.
83
+
84
+ **Repository**: https://github.com/github/spec-kit
85
+ **Stars**: 42.1K+ (highly popular)
86
+ **License**: MIT
87
+ **Creator**: GitHub (official GitHub project)
88
+
89
+ **Philosophy**: "An open source toolkit that allows you to focus on product scenarios and predictable outcomes instead of vibe coding every piece from scratch."
90
+
91
+ ### Core spec-kit Concepts
92
+
93
+ #### 1. Directory Structure
94
+
95
+ **spec-kit uses `.specify/` directory** (different from SpecWeave's `.specweave/`):
96
+
97
+ ```
98
+ .specify/
99
+ ├── memory/
100
+ │ └── constitution.md # Project principles & guidelines
101
+ ├── scripts/
102
+ │ ├── check-prerequisites.sh
103
+ │ ├── common.sh
104
+ │ ├── create-new-feature.sh
105
+ │ ├── setup-plan.sh
106
+ │ └── update-claude-md.sh
107
+ ├── specs/
108
+ │ └── [FEATURE-NUMBER]-[NAME]/
109
+ │ ├── spec.md # Functional requirements (WHAT, WHY)
110
+ │ ├── plan.md # Technical implementation (HOW)
111
+ │ ├── tasks.md # Actionable task breakdown
112
+ │ ├── data-model.md # Data models
113
+ │ ├── quickstart.md # Quick start guide
114
+ │ ├── research.md # Research findings
115
+ │ └── contracts/
116
+ │ ├── api-spec.json
117
+ │ └── signalr-spec.md
118
+ └── templates/
119
+ ├── spec-template.md
120
+ ├── plan-template.md
121
+ └── tasks-template.md
122
+ ```
123
+
124
+ **Key Characteristics**:
125
+ - Features numbered: `001-photo-albums`, `002-user-auth`
126
+ - Three core documents per feature: `spec.md`, `plan.md`, `tasks.md`
127
+ - Constitution stored in `.specify/memory/constitution.md`
128
+ - Templates for consistency
129
+
130
+ #### 2. Seven-Step Workflow
131
+
132
+ **spec-kit has a linear, sequential workflow:**
133
+
134
+ | Step | Command | Purpose |
135
+ |------|---------|---------|
136
+ | 1 | `/speckit.constitution` | Establish project principles |
137
+ | 2 | `/speckit.specify` | Create functional specifications |
138
+ | 3 | `/speckit.clarify` | Structured requirement refinement |
139
+ | 4 | `/speckit.plan` | Generate technical plan |
140
+ | 5 | Validate Plan | Manual review step |
141
+ | 6 | `/speckit.tasks` | Generate task breakdown |
142
+ | 7 | `/speckit.implement` | Execute implementation |
143
+
144
+ **Optional Commands:**
145
+ - `/speckit.analyze` - Cross-artifact consistency validation
146
+ - `/speckit.checklist` - Custom quality validation
147
+
148
+ #### 3. CLI Installation & Commands
149
+
150
+ **Installation:**
151
+ ```bash
152
+ # Persistent installation
153
+ uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
154
+
155
+ # One-time usage
156
+ uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME>
157
+ ```
158
+
159
+ **CLI Commands:**
160
+ ```bash
161
+ # Initialize project
162
+ specify init <PROJECT_NAME> [options]
163
+
164
+ # Check prerequisites
165
+ specify check
166
+
167
+ # Options for init:
168
+ --ai [claude|gemini|copilot|cursor-agent|windsurf|...] # Specify AI
169
+ --script [sh|ps] # Shell variant
170
+ --here / --force # Initialize in current dir
171
+ --no-git # Skip Git init
172
+ --ignore-agent-tools # Skip agent detection
173
+ --debug # Troubleshooting
174
+ ```
175
+
176
+ #### 4. Supported AI Agents
177
+
178
+ spec-kit supports **14+ AI coding agents** (agent-agnostic):
179
+ - Claude Code ✅
180
+ - GitHub Copilot ✅
181
+ - Gemini CLI ✅
182
+ - Cursor ✅
183
+ - Windsurf ✅
184
+ - Qwen Code ✅
185
+ - opencode ✅
186
+ - Roo Code ✅
187
+ - Codex CLI ✅
188
+ - Kilo Code ✅
189
+ - Auggie CLI ✅
190
+ - CodeBuddy CLI ✅
191
+ - Amp ✅
192
+ - Amazon Q Developer CLI ⚠️ (limited support)
193
+
194
+ **Key Point**: spec-kit is **agent-agnostic** - works with ANY AI agent supporting slash commands.
195
+
196
+ #### 5. Constitutional Governance
197
+
198
+ **spec-kit's `/speckit.constitution` command creates governing principles:**
199
+
200
+ **Constitution document** (`.specify/memory/constitution.md`):
201
+ - Code quality standards
202
+ - Testing requirements
203
+ - UX consistency guidelines
204
+ - Performance requirements
205
+ - Security standards
206
+ - Accessibility guidelines
207
+
208
+ **How it works:**
209
+ 1. User runs `/speckit.constitution`
210
+ 2. AI prompts for project principles
211
+ 3. Creates `.specify/memory/constitution.md`
212
+ 4. All subsequent commands reference this constitution
213
+ 5. Ensures consistent decision-making throughout development
214
+
215
+ **Example constitution:**
216
+ ```markdown
217
+ # Project Constitution
218
+
219
+ ## Code Quality
220
+ - TypeScript strict mode enabled
221
+ - ESLint configuration enforced
222
+ - 80%+ test coverage required
223
+
224
+ ## Testing Standards
225
+ - TDD approach for all features
226
+ - E2E tests for critical paths
227
+ - Unit tests for pure functions
228
+
229
+ ## UX Consistency
230
+ - Material Design guidelines
231
+ - Responsive design mandatory
232
+ - WCAG 2.1 AA compliance
233
+ ```
234
+
235
+ #### 6. Task Breakdown Intelligence
236
+
237
+ **spec-kit's `/speckit.tasks` command generates advanced task breakdowns:**
238
+
239
+ **Features:**
240
+ - ✅ Hierarchically organized by user story
241
+ - ✅ Dependency management (tasks marked with prerequisites)
242
+ - ✅ Parallel execution markers (`[P]` for parallelizable tasks)
243
+ - ✅ File path references (which files to modify)
244
+ - ✅ TDD structure (write tests before implementation)
245
+ - ✅ Ordered execution sequence
246
+
247
+ **Example tasks.md:**
248
+ ```markdown
249
+ # Tasks: User Authentication
250
+
251
+ ## User Story 1: User Login
252
+
253
+ ### Tests (TDD)
254
+ - [ ] [P] Write unit tests for login validation (auth.test.ts)
255
+ - [ ] [P] Write E2E tests for login flow (login.spec.ts)
256
+
257
+ ### Implementation
258
+ - [ ] Create login API endpoint (src/api/auth.ts) [depends: tests]
259
+ - [ ] Implement JWT token generation (src/auth/jwt.ts) [depends: tests]
260
+ - [ ] Create login UI component (src/components/Login.tsx)
261
+
262
+ ### Integration
263
+ - [ ] Connect login UI to API (src/pages/LoginPage.tsx) [depends: implementation]
264
+ - [ ] Add error handling and validation
265
+ ```
266
+
267
+ **Dependency tracking:** Tasks explicitly state dependencies (e.g., `[depends: tests]`)
268
+
269
+ #### 7. Three Development Phases
270
+
271
+ spec-kit supports **three development approaches:**
272
+
273
+ **1. 0-to-1 Development (Greenfield)**
274
+ - Build applications from scratch
275
+ - Complete spec → plan → tasks → implement workflow
276
+ - Technology-agnostic (choose any stack)
277
+
278
+ **2. Creative Exploration**
279
+ - Parallel implementations with diverse tech stacks
280
+ - Rapid prototyping
281
+ - Compare multiple approaches before committing
282
+
283
+ **3. Iterative Enhancement (Brownfield)**
284
+ - Legacy modernization
285
+ - Incremental improvements
286
+ - Add specs to existing codebases
287
+
288
+ #### 8. Multi-Step Refinement Process
289
+
290
+ **spec-kit emphasizes clarity before implementation:**
291
+
292
+ **Workflow:**
293
+ 1. **Constitution** → Establish principles
294
+ 2. **Specify** → Define requirements
295
+ 3. **Clarify** → Structured questioning (critical step!)
296
+ 4. **Plan** → Technical strategy
297
+ 5. **Validate** → Manual review (avoid over-engineering)
298
+ 6. **Tasks** → Granular breakdown
299
+ 7. **Implement** → Execution
300
+
301
+ **Clarify step** (`/speckit.clarify`):
302
+ - Structured, sequential questioning
303
+ - Surfaces underspecified areas
304
+ - Records answers in Clarifications section
305
+ - Prevents ambiguity downstream
306
+
307
+ **Example clarifications:**
308
+ ```markdown
309
+ ## Clarifications
310
+
311
+ **Q1**: Should password reset be via email or SMS?
312
+ **A1**: Email only for MVP, SMS in future phase
313
+
314
+ **Q2**: What's the minimum password complexity?
315
+ **A2**: 8 characters, 1 uppercase, 1 number, 1 special char
316
+
317
+ **Q3**: Session timeout duration?
318
+ **A3**: 30 minutes of inactivity
319
+ ```
320
+
321
+ ### spec-kit Strengths (Known Features)
322
+
323
+ 1. ✅ **Agent-Agnostic** - Works with 14+ AI coding agents (not locked to Claude)
324
+ 2. ✅ **Constitutional Governance** - Project principles guide all decisions
325
+ 3. ✅ **Clarification Workflow** - Structured questioning prevents ambiguity
326
+ 4. ✅ **Task Breakdown Intelligence** - Dependency-aware, parallel markers, TDD structure
327
+ 5. ✅ **Linear Sequential Workflow** - Clear 7-step process
328
+ 6. ✅ **GitHub Backing** - Official GitHub project (42.1K+ stars)
329
+ 7. ✅ **Technology-Agnostic** - Works with any programming language/framework
330
+ 8. ✅ **Research Integration** - Parallel research tasks for tech stack decisions
331
+ 9. ✅ **Template System** - Consistent spec/plan/tasks templates
332
+ 10. ✅ **Multi-Phase Development** - Supports greenfield, exploration, brownfield
333
+
334
+ ### spec-kit Limitations (Known Gaps)
335
+
336
+ 1. ❌ **No Context Manifests** - Loads all specs (no selective loading for token efficiency)
337
+ 2. ❌ **No Auto-Role Routing** - User must manually invoke commands in sequence
338
+ 3. ❌ **No Brownfield Analyzer** - No automated analysis of existing codebases
339
+ 4. ❌ **No Agent System** - Only slash commands (no separate agent personalities)
340
+ 5. ❌ **No E2E Testing Enforcement** - TDD suggested but not mandatory
341
+ 6. ❌ **No Hooks System** - No automation for doc updates, validations
342
+ 7. ❌ **No Skills System** - No extensible skill framework
343
+ 8. ❌ **Linear Only** - Must follow 7-step sequence (less flexible)
344
+ 9. ❌ **No Incremental Docs** - Requires upfront specification (no gradual approach)
345
+ 10. ❌ **No Multi-Agent Orchestration** - Single conversation context
346
+
347
+ ---
348
+
349
+ ## Gap Analysis Workflow (Dynamic)
350
+
351
+ When you request gap analysis, I will:
352
+
353
+ ### Step 1: Analyze Current SpecWeave State
354
+
355
+ **I will read and analyze:**
356
+ ```bash
357
+ # Project structure
358
+ - CLAUDE.md (complete guide)
359
+ - .specweave/config.yaml (configuration)
360
+ - .specweave/increments/ (implemented features)
361
+ - src/skills/ (available skills)
362
+ - src/agents/ (available agents)
363
+ - specifications/ (spec organization)
364
+ - .specweave/docs/ (documentation structure)
365
+ - .claude/hooks/ (automation hooks)
366
+
367
+ # Features and capabilities
368
+ - What features exist in .specweave/increments/
369
+ - What skills exist in src/skills/
370
+ - What agents exist in src/agents/
371
+ - What's documented in .specweave/docs/
372
+ - What's planned in roadmap
373
+ - What hooks are configured
374
+ ```
375
+
376
+ ### Step 2: Compare to spec-kit (Static Knowledge)
377
+
378
+ **I will compare:**
379
+ - **Workflow**: Continuous/flexible (SpecWeave) vs Linear/sequential (spec-kit)
380
+ - **Role system**: Skills + Agents (SpecWeave) vs Slash commands only (spec-kit)
381
+ - **Context management**: Manifests (SpecWeave) vs Load all (spec-kit)
382
+ - **Documentation**: Incremental + upfront (SpecWeave) vs Upfront only (spec-kit)
383
+ - **Brownfield support**: Analyzer + regression (SpecWeave) vs Manual (spec-kit)
384
+ - **Agent support**: Claude-focused (SpecWeave) vs 14+ agents (spec-kit)
385
+ - **Testing**: Mandatory E2E (SpecWeave) vs TDD suggested (spec-kit)
386
+ - **Automation**: Hooks system (SpecWeave) vs Scripts (spec-kit)
387
+ - **Constitution**: Built-in CLAUDE.md (SpecWeave) vs /speckit.constitution (spec-kit)
388
+ - **Task breakdown**: Context-aware (SpecWeave) vs Dependency-aware (spec-kit)
389
+
390
+ ### Step 3: Generate Gap Analysis Report
391
+
392
+ **Report includes:**
393
+
394
+ **A. What spec-kit Has That SpecWeave Lacks**
395
+ - Features present in spec-kit
396
+ - Not implemented in SpecWeave
397
+ - Priority assessment (critical, nice-to-have)
398
+ - Implementation difficulty
399
+
400
+ **B. What SpecWeave Has That spec-kit Lacks**
401
+ - Features present in SpecWeave
402
+ - Not in spec-kit
403
+ - Unique benefits
404
+ - Why it matters
405
+
406
+ **C. Different Approaches (Not Gaps)**
407
+ - Features both have, implemented differently
408
+ - Trade-offs
409
+ - Use case suitability
410
+
411
+ **D. Recommendations**
412
+ - Which framework for which use case
413
+ - Hybrid approaches
414
+ - Adoption strategy
415
+
416
+ ### Step 4: Answer Your Specific Question
417
+
418
+ Based on analysis, provide:
419
+ - Direct answer to your question
420
+ - Supporting evidence from both frameworks
421
+ - Concrete examples
422
+ - Actionable recommendations
423
+
424
+ ---
425
+
426
+ ## Example Interactions
427
+
428
+ ### Example 1: General Gap Analysis
429
+
430
+ **User**: "Compare SpecWeave to spec-kit - what are the gaps?"
431
+
432
+ **I will**:
433
+ 1. Read current SpecWeave state:
434
+ ```bash
435
+ - Check .specweave/increments/ for implemented capabilities
436
+ - Read src/skills/ for available skills
437
+ - Read src/agents/ for available agents
438
+ - Review CLAUDE.md for documented features
439
+ - Check .specweave/config.yaml for configuration
440
+ - Analyze .claude/hooks/ for automation
441
+ ```
442
+
443
+ 2. Compare to spec-kit knowledge:
444
+ - Constitutional governance (spec-kit has `/speckit.constitution`)
445
+ - Agent-agnostic support (spec-kit has 14+ agents)
446
+ - Task breakdown (spec-kit has dependency tracking)
447
+ - Clarification workflow (spec-kit has `/speckit.clarify`)
448
+ - Linear workflow (spec-kit has strict 7-step process)
449
+ - Template system (spec-kit has standardized templates)
450
+
451
+ 3. Generate report:
452
+ ```markdown
453
+ # Gap Analysis: spec-kit vs SpecWeave
454
+
455
+ ## Analysis Date: [current date]
456
+ ## SpecWeave Version: [from config or git]
457
+ ## spec-kit Version: Latest (GitHub: github/spec-kit)
458
+
459
+ ### Gaps: spec-kit Features Missing in SpecWeave
460
+
461
+ 1. **Agent-Agnostic Support**
462
+ - Status: Not fully implemented in SpecWeave
463
+ - spec-kit has: Works with 14+ AI coding agents (Claude, Copilot, Cursor, etc.)
464
+ - SpecWeave has: Focused on Claude Code
465
+ - Impact: Medium (limits user choice)
466
+ - Recommendation: Maintain Claude focus (strength), optional multi-agent later
467
+
468
+ 2. **Constitutional Governance Command**
469
+ - Status: Partially implemented in SpecWeave
470
+ - spec-kit has: `/speckit.constitution` creates `.specify/memory/constitution.md`
471
+ - SpecWeave has: CLAUDE.md serves as constitution (static, comprehensive)
472
+ - Impact: Low (SpecWeave's CLAUDE.md is more comprehensive)
473
+ - Recommendation: CLAUDE.md is superior (living guide vs static principles)
474
+
475
+ 3. **Clarification Workflow**
476
+ - Status: Not implemented in SpecWeave
477
+ - spec-kit has: `/speckit.clarify` - structured questioning to refine specs
478
+ - SpecWeave has: Ad-hoc clarification (no structured workflow)
479
+ - Impact: Medium (structured clarification prevents ambiguity)
480
+ - Recommendation: Implement as `spec-clarifier` skill (P2 priority)
481
+
482
+ 4. **Dependency-Aware Task Breakdown**
483
+ - Status: Partially implemented in SpecWeave
484
+ - spec-kit has: Explicit dependencies, parallel markers, TDD structure
485
+ - SpecWeave has: tasks.md but less structured
486
+ - Impact: Medium (better task organization)
487
+ - Recommendation: Enhance `increment-planner` skill with dependency tracking
488
+
489
+ 5. **Template System**
490
+ - Status: Not implemented in SpecWeave
491
+ - spec-kit has: `.specify/templates/` for spec/plan/tasks
492
+ - SpecWeave has: Ad-hoc spec creation
493
+ - Impact: Low (flexibility vs consistency trade-off)
494
+ - Recommendation: Optional templates (don't enforce rigidity)
495
+
496
+ [... continue for all gaps ...]
497
+
498
+ ### Benefits: SpecWeave Features Not in spec-kit
499
+
500
+ 1. **Context Manifests (70%+ token reduction)**
501
+ - Status: Core SpecWeave feature
502
+ - spec-kit has: Loads all specs (no selective loading)
503
+ - SpecWeave has: `context-manifest.yaml` per feature
504
+ - Benefit: Dramatic token savings, scales to enterprise (1000+ page specs)
505
+ - Why it matters: Cost reduction, faster responses, enterprise scalability
506
+
507
+ 2. **Agent System (Separate Context Windows)**
508
+ - Status: Core SpecWeave feature
509
+ - spec-kit has: Only slash commands (single conversation)
510
+ - SpecWeave has: 14+ agents (PM, Architect, DevOps, QA, etc.) with separate contexts
511
+ - Benefit: Complex workflows, role-based expertise, no context pollution
512
+ - Why it matters: Enterprise-grade multi-role collaboration
513
+
514
+ 3. **Skills Framework (Extensible)**
515
+ - Status: Core SpecWeave feature
516
+ - spec-kit has: Fixed slash commands
517
+ - SpecWeave has: User-extensible skills (SKILL.md format)
518
+ - Benefit: Custom capabilities, domain-specific skills, MCP wrappers
519
+ - Why it matters: Adaptability to any domain or tech stack
520
+
521
+ 4. **Brownfield Analyzer**
522
+ - Status: Core SpecWeave feature
523
+ - spec-kit has: Manual brownfield approach
524
+ - SpecWeave has: `brownfield-analyzer` skill (automated analysis)
525
+ - Benefit: Retroactive specs, regression prevention, safe modifications
526
+ - Why it matters: Critical for legacy codebases (most enterprise projects)
527
+
528
+ 5. **Hooks System (Automation)**
529
+ - Status: Core SpecWeave feature
530
+ - spec-kit has: Shell scripts only
531
+ - SpecWeave has: `.claude/hooks/` (post-task, pre-implementation, etc.)
532
+ - Benefit: Auto-update docs, enforce validations, workflow automation
533
+ - Why it matters: Living documentation, zero manual overhead
534
+
535
+ 6. **Mandatory E2E Testing (Playwright)**
536
+ - Status: Core SpecWeave feature
537
+ - spec-kit has: TDD suggested (not enforced)
538
+ - SpecWeave has: Mandatory E2E tests when UI exists
539
+ - Benefit: Truth-telling tests, zero false positives, production confidence
540
+ - Why it matters: Quality assurance for production systems
541
+
542
+ 7. **Incremental + Upfront Documentation**
543
+ - Status: Core SpecWeave philosophy
544
+ - spec-kit has: Upfront specification only
545
+ - SpecWeave has: Supports BOTH comprehensive upfront (500+ pages) AND incremental (like Microsoft)
546
+ - Benefit: Flexibility for enterprise AND startups
547
+ - Why it matters: Scalable from MVP to production
548
+
549
+ 8. **Auto-Role Routing (>90% accuracy)**
550
+ - Status: Core SpecWeave feature
551
+ - spec-kit has: User manually invokes commands
552
+ - SpecWeave has: `skill-router` auto-detects and routes
553
+ - Benefit: Faster workflow, less cognitive overhead
554
+ - Why it matters: User focuses on "what", AI handles "how"
555
+
556
+ [... continue ...]
557
+
558
+ ### Different Approaches (Not Gaps)
559
+
560
+ 1. **Workflow Philosophy**
561
+ - spec-kit: Linear 7-step process (structured, sequential)
562
+ - SpecWeave: Continuous, flexible workflow (adapt to project needs)
563
+ - Trade-off: spec-kit = predictable, SpecWeave = adaptable
564
+ - Use case: spec-kit for teams needing strict process, SpecWeave for dynamic teams
565
+
566
+ 2. **Constitution vs CLAUDE.md**
567
+ - spec-kit: `.specify/memory/constitution.md` (project-specific principles)
568
+ - SpecWeave: `CLAUDE.md` (comprehensive development guide + principles)
569
+ - Trade-off: spec-kit = minimal principles, SpecWeave = complete guide
570
+ - Use case: spec-kit for simple projects, SpecWeave for complex systems
571
+
572
+ 3. **Directory Structure**
573
+ - spec-kit: `.specify/` (specs/, memory/, scripts/, templates/)
574
+ - SpecWeave: `.specweave/` (increments/, docs/, cache/, tests/)
575
+ - Trade-off: spec-kit = flat, SpecWeave = hierarchical
576
+ - Use case: Both work, naming preference
577
+
578
+ ### Recommendations
579
+
580
+ **Use spec-kit if:**
581
+ - You want agent-agnostic framework (Copilot, Cursor, Gemini, etc.)
582
+ - You prefer strict linear workflow (7 steps, no deviation)
583
+ - You need simple projects with small specs (<50 pages)
584
+ - You want GitHub-official backing (42.1K+ stars)
585
+ - You prioritize simplicity over flexibility
586
+
587
+ **Use SpecWeave if:**
588
+ - You want enterprise-scale features (context manifests, 500+ page specs)
589
+ - You need brownfield support (legacy codebases)
590
+ - You prioritize mandatory E2E testing (production confidence)
591
+ - You want skills/agents extensibility (custom capabilities)
592
+ - You need automation (hooks for doc updates, validations)
593
+ - You prefer flexible workflow (incremental OR comprehensive docs)
594
+ - You want multi-agent orchestration (PM, Architect, DevOps, etc.)
595
+
596
+ **Hybrid approach:**
597
+ - Use spec-kit's `/speckit.clarify` mindset for SpecWeave specs (implement as skill)
598
+ - Use spec-kit's task dependency tracking in SpecWeave `tasks.md`
599
+ - Use SpecWeave's context manifests for large spec-kit projects (if possible)
600
+ - Use spec-kit's constitutional governance + SpecWeave's CLAUDE.md (complementary)
601
+ ```
602
+
603
+ ### Example 2: Specific Feature Question
604
+
605
+ **User**: "How does spec-kit handle task breakdown?"
606
+
607
+ **I will**:
608
+ 1. Explain spec-kit task breakdown (static knowledge)
609
+ 2. Show `/speckit.tasks` command and examples
610
+ 3. Compare to SpecWeave approach (read increment-planner skill if exists)
611
+ 4. Highlight differences
612
+
613
+ **Response**:
614
+ ```markdown
615
+ # spec-kit Task Breakdown Workflow
616
+
617
+ ## spec-kit Approach
618
+
619
+ spec-kit's `/speckit.tasks` command generates intelligent task breakdowns:
620
+
621
+ **Features:**
622
+ - ✅ Hierarchically organized by user story
623
+ - ✅ Dependency management (`[depends: tests]`)
624
+ - ✅ Parallel execution markers (`[P]` for parallelizable tasks)
625
+ - ✅ File path references (which files to modify)
626
+ - ✅ TDD structure (write tests before implementation)
627
+ - ✅ Ordered execution sequence
628
+
629
+ **Example tasks.md:**
630
+ ```markdown
631
+ # Tasks: User Authentication
632
+
633
+ ## User Story 1: User Login
634
+
635
+ ### Tests (TDD)
636
+ - [ ] [P] Write unit tests for login validation (auth.test.ts)
637
+ - [ ] [P] Write E2E tests for login flow (login.spec.ts)
638
+
639
+ ### Implementation
640
+ - [ ] Create login API endpoint (src/api/auth.ts) [depends: tests]
641
+ - [ ] Implement JWT token generation (src/auth/jwt.ts) [depends: tests]
642
+ - [ ] Create login UI component (src/components/Login.tsx)
643
+
644
+ ### Integration
645
+ - [ ] Connect login UI to API (src/pages/LoginPage.tsx) [depends: implementation]
646
+ - [ ] Add error handling and validation
647
+
648
+ ## User Story 2: User Logout
649
+
650
+ [... continue ...]
651
+ ```
652
+
653
+ **Key Characteristics:**
654
+ 1. **Dependency tracking**: Explicit `[depends: ...]` notation
655
+ 2. **Parallel markers**: `[P]` indicates tasks can run in parallel
656
+ 3. **File paths**: Every task includes exact file path
657
+ 4. **TDD first**: Tests written before implementation
658
+ 5. **Grouped by user story**: Clear organization
659
+
660
+ ## SpecWeave Approach (Current State)
661
+
662
+ [Read and analyze src/skills/increment-planner/ and increments/*/tasks.md]
663
+
664
+ - **increment-planner skill**: Creates tasks.md in `.specweave/increments/`
665
+ - **Structure**: Similar hierarchical organization
666
+ - **Missing**: Explicit dependency notation (`[depends: ...]`)
667
+ - **Missing**: Parallel markers (`[P]`)
668
+ - **Strength**: Context manifests (knows what specs to load)
669
+ - **Strength**: Integrated with skills/agents (auto-routing)
670
+
671
+ **Example SpecWeave tasks.md:**
672
+ ```markdown
673
+ # Tasks: User Authentication
674
+
675
+ ## Specification Phase
676
+ - [ ] Create specification in specifications/modules/auth/
677
+ - [ ] Define acceptance criteria (TC-0001 format)
678
+ - [ ] Create context manifest
679
+
680
+ ## Planning Phase
681
+ - [ ] Design architecture (.specweave/docs/architecture/)
682
+ - [ ] Create ADRs for tech stack decisions
683
+ - [ ] Define data models
684
+
685
+ ## Implementation Phase
686
+ - [ ] Write E2E tests (tests/e2e/login.spec.ts) - MANDATORY
687
+ - [ ] Implement login API endpoint
688
+ - [ ] Implement JWT authentication
689
+ - [ ] Create login UI component
690
+
691
+ ## Validation Phase
692
+ - [ ] Run E2E tests (must pass)
693
+ - [ ] Update documentation (auto via hooks)
694
+ - [ ] Create completion report
695
+ ```
696
+
697
+ **Key Characteristics:**
698
+ 1. **Phase-based**: Spec → Plan → Implement → Validate
699
+ 2. **Context-aware**: Loads only relevant specs
700
+ 3. **E2E mandatory**: Tests required when UI exists
701
+ 4. **Auto-documentation**: Hooks update docs automatically
702
+ 5. **Less granular**: No explicit dependencies or parallel markers
703
+
704
+ ## Comparison
705
+
706
+ | Aspect | spec-kit | SpecWeave |
707
+ |--------|----------|-----------|
708
+ | Dependency tracking | ✅ Explicit `[depends: ...]` | ❌ Not explicit |
709
+ | Parallel markers | ✅ `[P]` notation | ❌ Not explicit |
710
+ | File paths | ✅ In every task | ⚠️ Sometimes included |
711
+ | TDD structure | ✅ Tests first | ✅ E2E mandatory (when UI) |
712
+ | Granularity | ✅ Very granular | ⚠️ Medium granularity |
713
+ | Context awareness | ❌ Not context-aware | ✅ Context manifests |
714
+ | Auto-routing | ❌ Manual commands | ✅ Skills auto-activate |
715
+ | Organization | By user story | By phase (spec/plan/implement) |
716
+
717
+ ## Recommendation
718
+
719
+ **Enhance SpecWeave with spec-kit task features:**
720
+ 1. ✅ Add explicit dependency notation (`[depends: ...]`) to tasks.md
721
+ 2. ✅ Add parallel markers (`[P]`) for concurrent tasks
722
+ 3. ✅ Ensure file paths in every task
723
+ 4. ✅ Maintain E2E mandatory requirement (SpecWeave strength)
724
+ 5. ✅ Keep context awareness (SpecWeave strength)
725
+
726
+ **Implementation:**
727
+ - Update `increment-planner` skill to generate spec-kit-style dependencies
728
+ - Add parallel detection logic (identify independent tasks)
729
+ - Keep phase-based structure (SpecWeave's strength)
730
+ ```
731
+
732
+ ### Example 3: Decision Support
733
+
734
+ **User**: "Should I use spec-kit or SpecWeave for a greenfield SaaS application?"
735
+
736
+ **I will**:
737
+ 1. Analyze use case requirements
738
+ 2. Check SpecWeave greenfield capabilities
739
+ 3. Compare to spec-kit greenfield approach
740
+ 4. Provide specific recommendation
741
+
742
+ **Response**:
743
+ ```markdown
744
+ # Framework Recommendation: Greenfield SaaS Application
745
+
746
+ ## Use Case Analysis
747
+
748
+ **Project Characteristics:**
749
+ - ✅ Greenfield (starting from scratch)
750
+ - ✅ SaaS application (likely complex, multi-tenant)
751
+ - ✅ Scalability requirements (enterprise potential)
752
+ - ✅ Likely large specifications (50-200+ pages)
753
+ - ✅ Need for structured development process
754
+ - ⚠️ May need multi-agent collaboration (frontend, backend, DevOps)
755
+
756
+ ## spec-kit Approach
757
+
758
+ **Strengths:**
759
+ - ✅ Clear 7-step workflow (constitution → spec → clarify → plan → tasks → implement)
760
+ - ✅ Agent-agnostic (use any AI: Claude, Copilot, Cursor, etc.)
761
+ - ✅ Clarification workflow prevents ambiguity
762
+ - ✅ GitHub-official (42.1K+ stars, trusted)
763
+ - ✅ Template system (consistent specs)
764
+ - ✅ Simple setup (`specify init my-saas`)
765
+
766
+ **Challenges:**
767
+ - ❌ No context manifests (loads all specs = high token usage for large SaaS)
768
+ - ❌ No brownfield support (if you need to integrate legacy systems later)
769
+ - ❌ No mandatory E2E testing (TDD suggested only)
770
+ - ❌ Linear workflow (must follow 7 steps strictly)
771
+ - ❌ No multi-agent orchestration (single conversation)
772
+ - ❌ No automation hooks (manual doc updates)
773
+
774
+ ## SpecWeave Approach (Current State)
775
+
776
+ [Read and analyze SpecWeave features for greenfield]
777
+
778
+ **Strengths:**
779
+ - ✅ Context manifests (70%+ token reduction = cost savings for large SaaS)
780
+ - ✅ Multi-agent system (PM, Architect, Frontend, Backend, DevOps, QA)
781
+ - ✅ Mandatory E2E testing (production confidence)
782
+ - ✅ Flexible workflow (incremental OR comprehensive docs)
783
+ - ✅ Hooks system (auto-update docs, zero overhead)
784
+ - ✅ Skills extensibility (custom SaaS-specific skills)
785
+ - ✅ Incremental docs (start small, grow to 500+ pages)
786
+
787
+ **Challenges:**
788
+ - ⚠️ Claude-focused (not agent-agnostic like spec-kit)
789
+ - ⚠️ More complex initial setup (more features = steeper learning curve)
790
+ - ⚠️ Less GitHub popularity (new framework vs spec-kit's 42.1K stars)
791
+ - ❌ No structured clarification workflow (spec-kit has this)
792
+
793
+ ## Recommendation
794
+
795
+ **🎯 Use SpecWeave for this use case**
796
+
797
+ **Reasons:**
798
+ 1. **Scale**: SaaS apps grow large (100-500+ pages of specs) → context manifests critical
799
+ 2. **Multi-agent**: SaaS needs PM, Architect, Frontend, Backend, DevOps collaboration
800
+ 3. **E2E testing**: SaaS in production requires truth-telling tests (mandatory)
801
+ 4. **Flexibility**: Start with 20-page spec (MVP), grow to 200+ pages (enterprise)
802
+ 5. **Automation**: Hooks keep docs updated as SaaS evolves
803
+
804
+ **Augment with spec-kit concepts:**
805
+ - ✅ Use spec-kit's `/speckit.clarify` mindset (implement as SpecWeave skill)
806
+ - ✅ Adopt spec-kit's dependency notation in tasks.md
807
+ - ✅ Reference spec-kit's constitutional governance approach
808
+
809
+ **Implementation Path:**
810
+ 1. `specweave init --greenfield` (or equivalent)
811
+ 2. Create initial spec (20-30 pages for MVP)
812
+ 3. Use PM agent for product requirements
813
+ 4. Use Architect agent for system design
814
+ 5. Create increments with context manifests
815
+ 6. Implement with mandatory E2E tests
816
+ 7. Scale to 200+ pages as SaaS grows
817
+
818
+ **Alternative: Use spec-kit if:**
819
+ - You want agent flexibility (switch between Claude, Copilot, Cursor)
820
+ - You prefer strict linear workflow (less flexibility = less decisions)
821
+ - Your SaaS specs stay small (<50 pages)
822
+ - You don't need multi-agent orchestration
823
+ ```
824
+
825
+ ---
826
+
827
+ ## How to Use This Skill
828
+
829
+ ### For Gap Analysis
830
+
831
+ **Request format:**
832
+ ```
833
+ "Compare current SpecWeave to spec-kit - full gap analysis"
834
+ "What spec-kit features are missing in SpecWeave right now?"
835
+ "Analyze gaps: SpecWeave vs spec-kit"
836
+ "GitHub spec-kit comparison to SpecWeave"
837
+ ```
838
+
839
+ **I will:**
840
+ 1. Read current SpecWeave state (files, features, skills, agents)
841
+ 2. Compare to spec-kit knowledge
842
+ 3. Generate comprehensive report
843
+ 4. Provide recommendations
844
+
845
+ ### For spec-kit Questions
846
+
847
+ **Request format:**
848
+ ```
849
+ "How does spec-kit handle [feature]?"
850
+ "Explain spec-kit's approach to [concept]"
851
+ "What is /speckit.constitution?"
852
+ "How does spec-kit task breakdown work?"
853
+ ```
854
+
855
+ **I will:**
856
+ 1. Explain spec-kit concept (static knowledge)
857
+ 2. Show examples
858
+ 3. Compare to SpecWeave if relevant
859
+ 4. Highlight differences
860
+
861
+ ### For Recommendations
862
+
863
+ **Request format:**
864
+ ```
865
+ "Should I use spec-kit or SpecWeave for [use case]?"
866
+ "Which framework is better for [scenario]?"
867
+ "Can I use both together?"
868
+ "spec-kit vs SpecWeave for greenfield/brownfield?"
869
+ ```
870
+
871
+ **I will:**
872
+ 1. Analyze use case requirements
873
+ 2. Compare both frameworks' strengths
874
+ 3. Provide specific recommendation
875
+ 4. Suggest implementation path
876
+
877
+ ---
878
+
879
+ ## Dynamic Analysis Capabilities
880
+
881
+ When performing gap analysis, I can read and analyze:
882
+
883
+ ### SpecWeave Project Files
884
+
885
+ ```bash
886
+ # Core configuration
887
+ ✅ CLAUDE.md # Complete guide
888
+ ✅ .specweave/config.yaml # Configuration
889
+ ✅ README.md # Project overview
890
+
891
+ # Features (increments)
892
+ ✅ .specweave/increments/*/spec.md # Implemented features
893
+ ✅ .specweave/increments/roadmap.md # Planned features
894
+
895
+ # Skills (actual capabilities)
896
+ ✅ src/skills/*/SKILL.md # Skill definitions
897
+ ✅ src/skills/*/README.md # Skill documentation
898
+
899
+ # Agents (separate contexts)
900
+ ✅ src/agents/*/AGENT.md # Agent definitions
901
+ ✅ src/agents/*/templates/ # Agent templates
902
+
903
+ # Documentation
904
+ ✅ .specweave/docs/architecture/ # Architecture docs
905
+ ✅ .specweave/docs/decisions/ # ADRs
906
+ ✅ .specweave/docs/api/ # API reference
907
+
908
+ # Hooks (automation)
909
+ ✅ .claude/hooks/ # Hook scripts
910
+
911
+ # Tests
912
+ ✅ tests/ # Test implementation
913
+ ✅ src/skills/*/test-cases/ # Skill tests
914
+ ```
915
+
916
+ ### Analysis Questions I Can Answer
917
+
918
+ **Implementation Status:**
919
+ - "Does SpecWeave have constitutional governance?" → Read CLAUDE.md, compare to `/speckit.constitution`
920
+ - "Is clarification workflow implemented?" → Check skills for `spec-clarifier`
921
+ - "How does SpecWeave handle task breakdown?" → Read `increment-planner` skill
922
+
923
+ **Feature Comparison:**
924
+ - "How does SpecWeave's task system compare to spec-kit?" → Compare tasks.md formats
925
+ - "Context management differences?" → Compare manifests to spec-kit's load-all
926
+ - "Agent support differences?" → SpecWeave has 14+ agents, spec-kit supports 14+ AI tools
927
+
928
+ **Strategic Decisions:**
929
+ - "Should I implement clarification workflow?" → Analyze current gaps, recommend priority
930
+ - "What's missing for agent-agnostic support?" → Read roadmap, compare to spec-kit
931
+ - "Can SpecWeave adopt spec-kit's dependency tracking?" → Analyze feasibility
932
+
933
+ ---
934
+
935
+ ## Key Principles
936
+
937
+ ### 1. Always Fresh Analysis
938
+
939
+ ❌ **Don't**: Use static snapshots
940
+ ✅ **Do**: Read current project state
941
+
942
+ ### 2. Evidence-Based Comparison
943
+
944
+ ❌ **Don't**: Make assumptions
945
+ ✅ **Do**: Check actual files and implementation
946
+
947
+ ### 3. Balanced Assessment
948
+
949
+ ❌ **Don't**: Favor one framework
950
+ ✅ **Do**: Show trade-offs and use cases
951
+
952
+ ### 4. Actionable Recommendations
953
+
954
+ ❌ **Don't**: Just list differences
955
+ ✅ **Do**: Suggest concrete next steps
956
+
957
+ ---
958
+
959
+ ## spec-kit Resources (Reference)
960
+
961
+ **Official Repository**: https://github.com/github/spec-kit
962
+ **Stars**: 42.1K+ (highly popular)
963
+ **License**: MIT
964
+ **Creator**: GitHub (official)
965
+
966
+ **Core Files to Reference**:
967
+ - `.specify/memory/constitution.md` - Project principles
968
+ - `.specify/specs/[FEATURE]/spec.md` - Functional requirements
969
+ - `.specify/specs/[FEATURE]/plan.md` - Technical plan
970
+ - `.specify/specs/[FEATURE]/tasks.md` - Task breakdown
971
+ - `.specify/templates/` - Templates for consistency
972
+
973
+ **When users need spec-kit specifics, I can:**
974
+ - Reference these files
975
+ - Explain structure and usage
976
+ - Show examples from spec-kit docs
977
+ - Guide on how to fetch and adapt
978
+
979
+ ---
980
+
981
+ ## Key Comparisons (Quick Reference)
982
+
983
+ | Aspect | spec-kit | SpecWeave |
984
+ |--------|----------|-----------|
985
+ | **Directory** | `.specify/` | `.specweave/` |
986
+ | **Features** | `.specify/specs/[NUM]-[NAME]/` | `.specweave/increments/[NUM]-[NAME]/` |
987
+ | **Constitution** | `.specify/memory/constitution.md` | `CLAUDE.md` (more comprehensive) |
988
+ | **Workflow** | Linear 7-step | Continuous, flexible |
989
+ | **Commands** | `/speckit.*` slash commands | Skills auto-activate |
990
+ | **Agents** | Agent-agnostic (14+ AI tools) | Claude-focused + 14+ agents |
991
+ | **Context** | Load all specs | Context manifests (70%+ reduction) |
992
+ | **Task breakdown** | Dependency-aware, parallel markers | Phase-based, context-aware |
993
+ | **Brownfield** | Manual | Automated analyzer |
994
+ | **Testing** | TDD suggested | E2E mandatory (when UI) |
995
+ | **Automation** | Scripts only | Hooks system |
996
+ | **Documentation** | Upfront only | Incremental + upfront |
997
+ | **Extensibility** | Fixed commands | Skills/agents framework |
998
+ | **Backing** | GitHub (42.1K+ stars) | Independent framework |
999
+
1000
+ ---
1001
+
1002
+ ## Version History
1003
+
1004
+ **v1.0.0** (Current) - Dynamic gap analysis
1005
+ - On-demand analysis of current SpecWeave state
1006
+ - Fresh comparisons, not static snapshots
1007
+ - Evidence-based recommendations
1008
+ - Comprehensive spec-kit knowledge base
1009
+
1010
+ ---
1011
+
1012
+ **I am ready to perform gap analysis on your current SpecWeave implementation against spec-kit. Just ask!**