specweave 0.4.1 → 0.6.3

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 (400) hide show
  1. package/.claude-plugin/README.md +312 -0
  2. package/.claude-plugin/marketplace.json +210 -0
  3. package/CLAUDE.md +952 -609
  4. package/README.md +179 -761
  5. package/bin/install-agents.sh +1 -1
  6. package/bin/install-commands.sh +66 -14
  7. package/bin/install-hooks.sh +1 -1
  8. package/bin/install-skills.sh +1 -1
  9. package/bin/specweave.js +2 -0
  10. package/dist/adapters/claude/adapter.d.ts +49 -11
  11. package/dist/adapters/claude/adapter.d.ts.map +1 -1
  12. package/dist/adapters/claude/adapter.js +175 -42
  13. package/dist/adapters/claude/adapter.js.map +1 -1
  14. package/dist/adapters/copilot/adapter.d.ts +20 -2
  15. package/dist/adapters/copilot/adapter.d.ts.map +1 -1
  16. package/dist/adapters/copilot/adapter.js +117 -7
  17. package/dist/adapters/copilot/adapter.js.map +1 -1
  18. package/dist/adapters/cursor/adapter.d.ts +18 -0
  19. package/dist/adapters/cursor/adapter.d.ts.map +1 -1
  20. package/dist/adapters/cursor/adapter.js +55 -3
  21. package/dist/adapters/cursor/adapter.js.map +1 -1
  22. package/dist/adapters/generic/adapter.d.ts +18 -0
  23. package/dist/adapters/generic/adapter.d.ts.map +1 -1
  24. package/dist/adapters/generic/adapter.js +55 -3
  25. package/dist/adapters/generic/adapter.js.map +1 -1
  26. package/dist/cli/commands/init.d.ts +1 -0
  27. package/dist/cli/commands/init.d.ts.map +1 -1
  28. package/dist/cli/commands/init.js +521 -185
  29. package/dist/cli/commands/init.js.map +1 -1
  30. package/dist/cli/commands/install.d.ts +2 -0
  31. package/dist/cli/commands/install.d.ts.map +1 -1
  32. package/dist/cli/commands/install.js +28 -25
  33. package/dist/cli/commands/install.js.map +1 -1
  34. package/dist/cli/commands/list.d.ts +2 -0
  35. package/dist/cli/commands/list.d.ts.map +1 -1
  36. package/dist/cli/commands/list.js +26 -24
  37. package/dist/cli/commands/list.js.map +1 -1
  38. package/dist/cli/commands/plugin.d.ts +23 -6
  39. package/dist/cli/commands/plugin.d.ts.map +1 -1
  40. package/dist/cli/commands/plugin.js +92 -66
  41. package/dist/cli/commands/plugin.js.map +1 -1
  42. package/dist/core/i18n/language-detector.d.ts +29 -0
  43. package/dist/core/i18n/language-detector.d.ts.map +1 -0
  44. package/dist/core/i18n/language-detector.js +143 -0
  45. package/dist/core/i18n/language-detector.js.map +1 -0
  46. package/dist/core/i18n/language-manager.d.ts +101 -0
  47. package/dist/core/i18n/language-manager.d.ts.map +1 -0
  48. package/dist/core/i18n/language-manager.js +232 -0
  49. package/dist/core/i18n/language-manager.js.map +1 -0
  50. package/dist/core/i18n/language-registry.d.ts +44 -0
  51. package/dist/core/i18n/language-registry.d.ts.map +1 -0
  52. package/dist/core/i18n/language-registry.js +234 -0
  53. package/dist/core/i18n/language-registry.js.map +1 -0
  54. package/dist/core/i18n/locale-manager.d.ts +62 -0
  55. package/dist/core/i18n/locale-manager.d.ts.map +1 -0
  56. package/dist/core/i18n/locale-manager.js +137 -0
  57. package/dist/core/i18n/locale-manager.js.map +1 -0
  58. package/dist/core/i18n/system-prompt-injector.d.ts +33 -0
  59. package/dist/core/i18n/system-prompt-injector.d.ts.map +1 -0
  60. package/dist/core/i18n/system-prompt-injector.js +131 -0
  61. package/dist/core/i18n/system-prompt-injector.js.map +1 -0
  62. package/dist/core/i18n/types.d.ts +151 -0
  63. package/dist/core/i18n/types.d.ts.map +1 -0
  64. package/dist/core/i18n/types.js +11 -0
  65. package/dist/core/i18n/types.js.map +1 -0
  66. package/dist/core/increment-status.d.ts +72 -0
  67. package/dist/core/increment-status.d.ts.map +1 -0
  68. package/dist/core/increment-status.js +227 -0
  69. package/dist/core/increment-status.js.map +1 -0
  70. package/dist/core/plugin-loader.d.ts +33 -13
  71. package/dist/core/plugin-loader.d.ts.map +1 -1
  72. package/dist/core/plugin-loader.js +145 -43
  73. package/dist/core/plugin-loader.js.map +1 -1
  74. package/dist/core/types/config.d.ts +51 -0
  75. package/dist/core/types/config.d.ts.map +1 -0
  76. package/dist/core/types/config.js +21 -0
  77. package/dist/core/types/config.js.map +1 -0
  78. package/dist/core/types/plugin.d.ts +73 -42
  79. package/dist/core/types/plugin.d.ts.map +1 -1
  80. package/dist/core/types/plugin.js +4 -3
  81. package/dist/core/types/plugin.js.map +1 -1
  82. package/dist/hooks/lib/sync-living-docs.d.ts +27 -0
  83. package/dist/hooks/lib/sync-living-docs.d.ts.map +1 -0
  84. package/dist/hooks/lib/sync-living-docs.js +116 -0
  85. package/dist/hooks/lib/sync-living-docs.js.map +1 -0
  86. package/dist/hooks/lib/translate-living-docs.d.ts +13 -0
  87. package/dist/hooks/lib/translate-living-docs.d.ts.map +1 -0
  88. package/dist/hooks/lib/translate-living-docs.js +166 -0
  89. package/dist/hooks/lib/translate-living-docs.js.map +1 -0
  90. package/dist/hooks/lib/update-tasks-md.d.ts +29 -0
  91. package/dist/hooks/lib/update-tasks-md.d.ts.map +1 -0
  92. package/dist/hooks/lib/update-tasks-md.js +203 -0
  93. package/dist/hooks/lib/update-tasks-md.js.map +1 -0
  94. package/dist/integrations/jira/jira-incremental-mapper.js.map +1 -1
  95. package/dist/integrations/jira/jira-mapper.js.map +1 -1
  96. package/dist/locales/de/.gitkeep +0 -0
  97. package/dist/locales/de/cli.json +108 -0
  98. package/dist/locales/en/cli.json +285 -0
  99. package/dist/locales/en/errors.json +7 -0
  100. package/dist/locales/en/templates.json +6 -0
  101. package/dist/locales/es/.gitkeep +0 -0
  102. package/dist/locales/es/cli.json +41 -0
  103. package/dist/locales/fr/.gitkeep +0 -0
  104. package/dist/locales/fr/cli.json +108 -0
  105. package/dist/locales/ja/.gitkeep +0 -0
  106. package/dist/locales/ja/cli.json +108 -0
  107. package/dist/locales/ko/.gitkeep +0 -0
  108. package/dist/locales/ko/cli.json +108 -0
  109. package/dist/locales/pt/.gitkeep +0 -0
  110. package/dist/locales/pt/cli.json +108 -0
  111. package/dist/locales/ru/.gitkeep +0 -0
  112. package/dist/locales/ru/cli.json +269 -0
  113. package/dist/locales/zh/.gitkeep +0 -0
  114. package/dist/locales/zh/cli.json +108 -0
  115. package/dist/plugins/specweave-github/lib/github-client.d.ts +86 -0
  116. package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
  117. package/dist/plugins/specweave-github/lib/github-client.js +275 -0
  118. package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
  119. package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
  120. package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
  121. package/dist/plugins/specweave-github/lib/index.js +10 -0
  122. package/dist/plugins/specweave-github/lib/index.js.map +1 -0
  123. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
  124. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
  125. package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
  126. package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
  127. package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
  128. package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
  129. package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
  130. package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
  131. package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
  132. package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
  133. package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
  134. package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
  135. package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
  136. package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
  137. package/dist/plugins/specweave-github/lib/types.js +5 -0
  138. package/dist/plugins/specweave-github/lib/types.js.map +1 -0
  139. package/dist/utils/agents-md-compiler.d.ts +68 -0
  140. package/dist/utils/agents-md-compiler.d.ts.map +1 -0
  141. package/dist/utils/agents-md-compiler.js +420 -0
  142. package/dist/utils/agents-md-compiler.js.map +1 -0
  143. package/dist/utils/execFileNoThrow.d.ts +97 -0
  144. package/dist/utils/execFileNoThrow.d.ts.map +1 -0
  145. package/dist/utils/execFileNoThrow.js +130 -0
  146. package/dist/utils/execFileNoThrow.js.map +1 -0
  147. package/dist/utils/generate-skills-index.js +4 -4
  148. package/dist/utils/generate-skills-index.js.map +1 -1
  149. package/package.json +13 -14
  150. package/plugins/.specweave/logs/hooks-debug.log +24 -0
  151. package/plugins/.specweave/logs/last-hook-fire +1 -0
  152. package/plugins/.specweave/logs/last-todowrite-time +1 -0
  153. package/plugins/.specweave/logs/tasks.log +6 -0
  154. package/plugins/specweave/.claude-plugin/plugin.json +22 -0
  155. package/{src → plugins/specweave}/agents/pm/AGENT.md +80 -0
  156. package/plugins/specweave/agents/translator/AGENT.md +282 -0
  157. package/{src → plugins/specweave}/commands/README.md +11 -11
  158. package/{src/commands/specweave.costs.md → plugins/specweave/commands/costs.md} +8 -8
  159. package/{src/commands/specweave.do.md → plugins/specweave/commands/do.md} +35 -8
  160. package/{src/commands/specweave.done.md → plugins/specweave/commands/done.md} +1 -1
  161. package/{src/commands/specweave.inc.md → plugins/specweave/commands/inc.md} +1 -1
  162. package/{src/commands/specweave.increment.md → plugins/specweave/commands/increment.md} +84 -19
  163. package/{src/commands/specweave.next.md → plugins/specweave/commands/next.md} +1 -1
  164. package/{src/commands/specweave.progress.md → plugins/specweave/commands/progress.md} +1 -1
  165. package/{src → plugins/specweave}/commands/specweave.md +57 -25
  166. package/{src/commands/specweave.sync-docs.md → plugins/specweave/commands/sync-docs.md} +6 -6
  167. package/plugins/specweave/commands/translate.md +425 -0
  168. package/{src/commands/specweave.validate.md → plugins/specweave/commands/validate.md} +2 -2
  169. package/plugins/specweave/hooks/hooks.json +15 -0
  170. package/plugins/specweave/hooks/post-task-completion.sh +265 -0
  171. package/plugins/specweave/skills/SKILLS-INDEX.md +229 -0
  172. package/{src → plugins/specweave}/skills/brownfield-analyzer/SKILL.md +66 -24
  173. package/{src → plugins/specweave}/skills/context-loader/SKILL.md +1 -1
  174. package/plugins/specweave/skills/context-optimizer/SKILL.md +588 -0
  175. package/plugins/specweave/skills/docs-updater/SKILL.md +0 -0
  176. package/{src → plugins/specweave}/skills/increment-planner/SKILL.md +81 -4
  177. package/plugins/specweave/skills/plugin-detector/SKILL.md +211 -0
  178. package/{src → plugins/specweave}/skills/project-kickstarter/SKILL.md +7 -7
  179. package/plugins/specweave/skills/rfc-generator/SKILL.md +369 -0
  180. package/{src → plugins/specweave}/skills/specweave-detector/SKILL.md +2 -2
  181. package/plugins/specweave/skills/specweave-framework/SKILL.md +498 -0
  182. package/plugins/specweave/skills/specweave-framework/test-cases/test-1-increment-naming.yaml +11 -0
  183. package/plugins/specweave/skills/specweave-framework/test-cases/test-2-source-of-truth.yaml +11 -0
  184. package/plugins/specweave/skills/specweave-framework/test-cases/test-3-increment-discipline.yaml +12 -0
  185. package/plugins/specweave/skills/specweave-framework/test-cases/test-4-file-placement.yaml +11 -0
  186. package/{src → plugins/specweave}/skills/tdd-workflow/SKILL.md +21 -21
  187. package/plugins/specweave/skills/translator/SKILL.md +172 -0
  188. package/plugins/specweave-ado/.claude-plugin/plugin.json +8 -0
  189. package/plugins/specweave-alternatives/.claude-plugin/plugin.json +8 -0
  190. package/plugins/specweave-alternatives/skills/bmad-method-expert/SKILL.md +626 -0
  191. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/analyze-project.js +318 -0
  192. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/check-setup.js +208 -0
  193. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/generate-template.js +1149 -0
  194. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/validate-documents.js +340 -0
  195. package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +1010 -0
  196. package/plugins/specweave-backend/.claude-plugin/plugin.json +8 -0
  197. package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +8 -0
  198. package/plugins/specweave-diagrams/.claude-plugin/plugin.json +8 -0
  199. package/plugins/specweave-docs/.claude-plugin/plugin.json +8 -0
  200. package/plugins/specweave-docs/skills/docusaurus/SKILL.md +526 -0
  201. package/plugins/specweave-figma/.claude-plugin/.mcp.json +12 -0
  202. package/plugins/specweave-figma/.claude-plugin/plugin.json +8 -0
  203. package/plugins/specweave-figma/ARCHITECTURE.md +453 -0
  204. package/plugins/specweave-figma/README.md +728 -0
  205. package/plugins/specweave-figma/skills/figma-to-code/SKILL.md +632 -0
  206. package/plugins/specweave-figma/skills/figma-to-code/test-1-token-generation.yaml +29 -0
  207. package/plugins/specweave-figma/skills/figma-to-code/test-2-component-generation.yaml +27 -0
  208. package/plugins/specweave-figma/skills/figma-to-code/test-3-typescript-generation.yaml +28 -0
  209. package/plugins/specweave-frontend/.claude-plugin/plugin.json +8 -0
  210. package/plugins/specweave-github/.claude-plugin/plugin.json +19 -0
  211. package/plugins/specweave-github/agents/github-manager/AGENT.md +651 -0
  212. package/plugins/specweave-github/commands/github-close-issue.md +418 -0
  213. package/plugins/specweave-github/commands/github-create-issue.md +307 -0
  214. package/plugins/specweave-github/commands/github-status.md +533 -0
  215. package/plugins/specweave-github/commands/github-sync-tasks.md +530 -0
  216. package/plugins/specweave-github/commands/github-sync.md +443 -0
  217. package/plugins/specweave-github/lib/github-client.ts +330 -0
  218. package/plugins/specweave-github/lib/index.ts +10 -0
  219. package/plugins/specweave-github/lib/subtask-sync.ts +225 -0
  220. package/plugins/specweave-github/lib/task-parser.ts +246 -0
  221. package/plugins/specweave-github/lib/task-sync.ts +402 -0
  222. package/plugins/specweave-github/lib/types.ts +86 -0
  223. package/plugins/specweave-github/skills/github-issue-tracker/SKILL.md +497 -0
  224. package/plugins/specweave-github/skills/github-sync/SKILL.md +461 -0
  225. package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +8 -0
  226. package/plugins/specweave-jira/.claude-plugin/plugin.json +8 -0
  227. package/{src → plugins/specweave-jira}/commands/specweave.sync-jira.md +18 -18
  228. package/plugins/specweave-kubernetes/.claude-plugin/plugin.json +8 -0
  229. package/plugins/specweave-ml/.claude-plugin/plugin.json +38 -0
  230. package/plugins/specweave-ml/README.md +885 -0
  231. package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +402 -0
  232. package/plugins/specweave-ml/commands/ml-deploy.md +116 -0
  233. package/plugins/specweave-ml/commands/ml-evaluate.md +87 -0
  234. package/plugins/specweave-ml/commands/ml-explain.md +83 -0
  235. package/plugins/specweave-ml/skills/anomaly-detector/SKILL.md +559 -0
  236. package/plugins/specweave-ml/skills/automl-optimizer/SKILL.md +485 -0
  237. package/plugins/specweave-ml/skills/cv-pipeline-builder/SKILL.md +157 -0
  238. package/plugins/specweave-ml/skills/data-visualizer/SKILL.md +521 -0
  239. package/plugins/specweave-ml/skills/experiment-tracker/SKILL.md +535 -0
  240. package/plugins/specweave-ml/skills/feature-engineer/SKILL.md +566 -0
  241. package/plugins/specweave-ml/skills/ml-deployment-helper/SKILL.md +345 -0
  242. package/plugins/specweave-ml/skills/ml-pipeline-orchestrator/SKILL.md +518 -0
  243. package/plugins/specweave-ml/skills/model-evaluator/SKILL.md +155 -0
  244. package/plugins/specweave-ml/skills/model-explainer/SKILL.md +227 -0
  245. package/plugins/specweave-ml/skills/model-registry/SKILL.md +541 -0
  246. package/plugins/specweave-ml/skills/nlp-pipeline-builder/SKILL.md +180 -0
  247. package/plugins/specweave-ml/skills/time-series-forecaster/SKILL.md +569 -0
  248. package/plugins/specweave-payments/.claude-plugin/plugin.json +8 -0
  249. package/plugins/specweave-testing/.claude-plugin/plugin.json +8 -0
  250. package/plugins/specweave-tooling/.claude-plugin/plugin.json +8 -0
  251. package/plugins/specweave-ui/.claude-plugin/plugin.json +26 -0
  252. package/plugins/specweave-ui/.mcp.json +14 -0
  253. package/plugins/specweave-ui/README.md +386 -0
  254. package/src/adapters/claude/adapter.ts +193 -46
  255. package/src/adapters/copilot/adapter.ts +132 -7
  256. package/src/adapters/cursor/adapter.ts +62 -3
  257. package/src/adapters/generic/adapter.ts +62 -3
  258. package/src/templates/AGENTS.md.template +170 -1
  259. package/src/templates/CLAUDE.md.template +122 -24
  260. package/src/templates/tasks.md.template +261 -0
  261. package/src/agents/ml-engineer/AGENT.md +0 -150
  262. package/src/commands/specweave.sync-github.md +0 -269
  263. package/src/hooks/post-task-completion.sh +0 -121
  264. package/src/skills/SKILLS-INDEX.md +0 -444
  265. package/src/skills/github-sync/SKILL.md +0 -234
  266. /package/{src → plugins/specweave}/agents/architect/AGENT.md +0 -0
  267. /package/{src → plugins/specweave}/agents/code-reviewer.md +0 -0
  268. /package/{src → plugins/specweave}/agents/docs-writer/AGENT.md +0 -0
  269. /package/{src → plugins/specweave}/agents/performance/AGENT.md +0 -0
  270. /package/{src → plugins/specweave}/agents/qa-lead/AGENT.md +0 -0
  271. /package/{src → plugins/specweave}/agents/security/AGENT.md +0 -0
  272. /package/{src → plugins/specweave}/agents/tdd-orchestrator/AGENT.md +0 -0
  273. /package/{src → plugins/specweave}/agents/tech-lead/AGENT.md +0 -0
  274. /package/{src/commands/specweave.list-increments.md → plugins/specweave/commands/list-increments.md} +0 -0
  275. /package/{src/commands/specweave.tdd-cycle.md → plugins/specweave/commands/tdd-cycle.md} +0 -0
  276. /package/{src/commands/specweave.tdd-green.md → plugins/specweave/commands/tdd-green.md} +0 -0
  277. /package/{src/commands/specweave.tdd-red.md → plugins/specweave/commands/tdd-red.md} +0 -0
  278. /package/{src/commands/specweave.tdd-refactor.md → plugins/specweave/commands/tdd-refactor.md} +0 -0
  279. /package/{src → plugins/specweave}/hooks/README.md +0 -0
  280. /package/{src → plugins/specweave}/hooks/docs-changed.sh +0 -0
  281. /package/{src → plugins/specweave}/hooks/human-input-required.sh +0 -0
  282. /package/{src → plugins/specweave}/hooks/post-increment-plugin-detect.sh +0 -0
  283. /package/{src → plugins/specweave}/hooks/pre-implementation.sh +0 -0
  284. /package/{src → plugins/specweave}/hooks/pre-task-plugin-detect.sh +0 -0
  285. /package/{src → plugins/specweave}/skills/brownfield-onboarder/SKILL.md +0 -0
  286. /package/{src → plugins/specweave}/skills/docs-updater/README.md +0 -0
  287. /package/{src → plugins/specweave}/skills/increment-planner/scripts/feature-utils.js +0 -0
  288. /package/{src → plugins/specweave}/skills/increment-quality-judge/SKILL.md +0 -0
  289. /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-1-high-confidence-full-product.yaml +0 -0
  290. /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-2-medium-confidence-partial.yaml +0 -0
  291. /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-3-low-confidence-technical-question.yaml +0 -0
  292. /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-4-opt-out-explicit.yaml +0 -0
  293. /package/{src → plugins/specweave}/skills/role-orchestrator/README.md +0 -0
  294. /package/{src → plugins/specweave}/skills/role-orchestrator/SKILL.md +0 -0
  295. /package/{src → plugins/specweave}/skills/task-builder/README.md +0 -0
  296. /package/{src → plugins/specweave-ado}/skills/ado-sync/README.md +0 -0
  297. /package/{src → plugins/specweave-ado}/skills/ado-sync/SKILL.md +0 -0
  298. /package/{src → plugins/specweave-ado}/skills/specweave-ado-mapper/SKILL.md +0 -0
  299. /package/{src → plugins/specweave-backend}/agents/database-optimizer/AGENT.md +0 -0
  300. /package/{src → plugins/specweave-backend}/skills/dotnet-backend/SKILL.md +0 -0
  301. /package/{src → plugins/specweave-backend}/skills/nodejs-backend/SKILL.md +0 -0
  302. /package/{src → plugins/specweave-backend}/skills/python-backend/SKILL.md +0 -0
  303. /package/{src → plugins/specweave-cost-optimizer}/skills/cost-optimizer/SKILL.md +0 -0
  304. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/AGENT.md +0 -0
  305. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-component-template.mmd +0 -0
  306. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-container-template.mmd +0 -0
  307. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-context-template.mmd +0 -0
  308. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/deployment-template.mmd +0 -0
  309. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/er-diagram-template.mmd +0 -0
  310. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/sequence-template.mmd +0 -0
  311. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-1-c4-context.yaml +0 -0
  312. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-2-sequence.yaml +0 -0
  313. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-3-er-diagram.yaml +0 -0
  314. /package/{src → plugins/specweave-diagrams}/skills/diagrams-architect/SKILL.md +0 -0
  315. /package/{src → plugins/specweave-diagrams}/skills/diagrams-generator/SKILL.md +0 -0
  316. /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/README.md +0 -0
  317. /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/SKILL.md +0 -0
  318. /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/README.md +0 -0
  319. /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/SKILL.md +0 -0
  320. /package/{src → plugins/specweave-frontend}/skills/design-system-architect/SKILL.md +0 -0
  321. /package/{src → plugins/specweave-frontend}/skills/frontend/SKILL.md +0 -0
  322. /package/{src → plugins/specweave-frontend}/skills/nextjs/SKILL.md +0 -0
  323. /package/{src → plugins/specweave-infrastructure}/agents/devops/AGENT.md +0 -0
  324. /package/{src → plugins/specweave-infrastructure}/agents/network-engineer/AGENT.md +0 -0
  325. /package/{src → plugins/specweave-infrastructure}/agents/observability-engineer/AGENT.md +0 -0
  326. /package/{src → plugins/specweave-infrastructure}/agents/performance-engineer/AGENT.md +0 -0
  327. /package/{src → plugins/specweave-infrastructure}/agents/sre/AGENT.md +0 -0
  328. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/backend-diagnostics.md +0 -0
  329. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/database-diagnostics.md +0 -0
  330. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/infrastructure.md +0 -0
  331. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/monitoring.md +0 -0
  332. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/security-incidents.md +0 -0
  333. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/ui-diagnostics.md +0 -0
  334. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/01-high-cpu-usage.md +0 -0
  335. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/02-database-deadlock.md +0 -0
  336. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/03-memory-leak.md +0 -0
  337. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/04-slow-api-response.md +0 -0
  338. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/05-ddos-attack.md +0 -0
  339. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/06-disk-full.md +0 -0
  340. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/07-service-down.md +0 -0
  341. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/08-data-corruption.md +0 -0
  342. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/09-cascade-failure.md +0 -0
  343. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/10-rate-limit-exceeded.md +0 -0
  344. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/health-check.sh +0 -0
  345. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/log-analyzer.py +0 -0
  346. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/metrics-collector.sh +0 -0
  347. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/trace-analyzer.js +0 -0
  348. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/incident-report.md +0 -0
  349. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/mitigation-plan.md +0 -0
  350. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/post-mortem.md +0 -0
  351. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/runbook-template.md +0 -0
  352. /package/{src → plugins/specweave-infrastructure}/commands/specweave.monitor-setup.md +0 -0
  353. /package/{src → plugins/specweave-infrastructure}/commands/specweave.slo-implement.md +0 -0
  354. /package/{src → plugins/specweave-infrastructure}/skills/distributed-tracing/SKILL.md +0 -0
  355. /package/{src → plugins/specweave-infrastructure}/skills/grafana-dashboards/SKILL.md +0 -0
  356. /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/README.md +0 -0
  357. /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/SKILL.md +0 -0
  358. /package/{src → plugins/specweave-infrastructure}/skills/prometheus-configuration/SKILL.md +0 -0
  359. /package/{src → plugins/specweave-infrastructure}/skills/slo-implementation/SKILL.md +0 -0
  360. /package/{src → plugins/specweave-jira}/skills/jira-sync/README.md +0 -0
  361. /package/{src → plugins/specweave-jira}/skills/jira-sync/SKILL.md +0 -0
  362. /package/{src → plugins/specweave-jira}/skills/specweave-jira-mapper/SKILL.md +0 -0
  363. /package/{src → plugins/specweave-kubernetes}/agents/kubernetes-architect/AGENT.md +0 -0
  364. /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/SKILL.md +0 -0
  365. /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/argocd-setup.md +0 -0
  366. /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/sync-policies.md +0 -0
  367. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/SKILL.md +0 -0
  368. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/Chart.yaml.template +0 -0
  369. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/values.yaml.template +0 -0
  370. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/references/chart-structure.md +0 -0
  371. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/scripts/validate-chart.sh +0 -0
  372. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/SKILL.md +0 -0
  373. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/configmap-template.yaml +0 -0
  374. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/deployment-template.yaml +0 -0
  375. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/service-template.yaml +0 -0
  376. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/deployment-spec.md +0 -0
  377. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/service-spec.md +0 -0
  378. /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/SKILL.md +0 -0
  379. /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/assets/network-policy-template.yaml +0 -0
  380. /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/references/rbac-patterns.md +0 -0
  381. /package/{src → plugins/specweave-ml}/agents/data-scientist/AGENT.md +0 -0
  382. /package/{src → plugins/specweave-ml}/agents/mlops-engineer/AGENT.md +0 -0
  383. /package/{src → plugins/specweave-ml}/commands/specweave.ml-pipeline.md +0 -0
  384. /package/{src → plugins/specweave-ml}/skills/ml-pipeline-workflow/SKILL.md +0 -0
  385. /package/{src → plugins/specweave-payments}/agents/payment-integration/AGENT.md +0 -0
  386. /package/{src → plugins/specweave-payments}/skills/billing-automation/SKILL.md +0 -0
  387. /package/{src → plugins/specweave-payments}/skills/paypal-integration/SKILL.md +0 -0
  388. /package/{src → plugins/specweave-payments}/skills/pci-compliance/SKILL.md +0 -0
  389. /package/{src → plugins/specweave-payments}/skills/stripe-integration/SKILL.md +0 -0
  390. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/README.md +0 -0
  391. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/SKILL.md +0 -0
  392. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/execute.js +0 -0
  393. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/lib/utils.js +0 -0
  394. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/package.json +0 -0
  395. /package/{src → plugins/specweave-tooling}/skills/skill-creator/LICENSE.txt +0 -0
  396. /package/{src → plugins/specweave-tooling}/skills/skill-creator/SKILL.md +0 -0
  397. /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/init_skill.py +0 -0
  398. /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/package_skill.py +0 -0
  399. /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/quick_validate.py +0 -0
  400. /package/{src → plugins/specweave-tooling}/skills/skill-router/SKILL.md +0 -0
@@ -4,39 +4,83 @@ This project uses **SpecWeave** - a specification-first AI development framework
4
4
 
5
5
  ---
6
6
 
7
+ ## 🚨 CRITICAL: NEVER POLLUTE PROJECT ROOT!
8
+
9
+ **⛔ THIS IS THE #1 RULE - ALL AI-GENERATED FILES GO IN INCREMENT FOLDERS ⛔**
10
+
11
+ ### ❌ NEVER Create in Root
12
+
13
+ ```
14
+ ❌ WRONG - ROOT FILES (NOT ALLOWED!):
15
+ /SESSION-SUMMARY.md # NO! Goes to increment reports/
16
+ /ANALYSIS-REPORT.md # NO! Goes to increment reports/
17
+ /migration-script.py # NO! Goes to increment scripts/
18
+ /execution.log # NO! Goes to increment logs/
19
+ /temp-data.json # NO! Goes to increment logs/
20
+
21
+ ✅ CORRECT - INCREMENT FOLDERS:
22
+ .specweave/increments/0001-user-auth/
23
+ ├── spec.md # Core spec files
24
+ ├── plan.md
25
+ ├── tasks.md
26
+ ├── tests.md
27
+ ├── reports/ # ✅ PUT REPORTS HERE!
28
+ │ ├── SESSION-SUMMARY.md
29
+ │ └── ANALYSIS-REPORT.md
30
+ ├── scripts/ # ✅ PUT SCRIPTS HERE!
31
+ │ └── migration-script.py
32
+ └── logs/ # ✅ PUT LOGS HERE!
33
+ ├── execution.log
34
+ └── temp-data.json
35
+ ```
36
+
37
+ ### What IS Allowed in Root?
38
+
39
+ **ONLY these files**:
40
+ - ✅ `CLAUDE.md` (this file)
41
+ - ✅ Your project files (`src/`, `package.json`, etc.)
42
+ - ✅ Standard config (`.env`, `.gitignore`, `tsconfig.json`)
43
+
44
+ **Everything else → increment folders!**
45
+
46
+ **Before asking me to commit, check**: `git status` - If you see unexpected `.md` files in root, STOP and move them!
47
+
48
+ ---
49
+
7
50
  ## SpecWeave Workflow (Use These Commands!)
8
51
 
9
52
  **How SpecWeave works**:
10
53
 
11
54
  ```
12
- /specweave.inc "feature" → /specweave.do → /specweave.progress → /specweave.done → repeat
55
+ /specweave:inc "feature" → /specweave:do → /specweave:progress → /specweave:done → repeat
13
56
  ```
14
57
 
15
- **1. Plan Feature** → `/specweave.inc "user authentication"`
58
+ **1. Plan Feature** → `/specweave:inc "user authentication"`
16
59
  - Creates spec.md (WHAT/WHY), plan.md (HOW), tasks.md, tests.md
17
60
  - PM-led process with architect/security/QA review
18
61
  - **Use when**: Starting any new feature or increment
19
62
 
20
- **2. Execute Tasks** → `/specweave.do` or `/specweave.do 0001`
63
+ **2. Execute Tasks** → `/specweave:do` or `/specweave:do 0001`
21
64
  - Smart resume (picks up where you left off)
22
65
  - Runs hooks after EVERY task completion
23
66
  - **Use when**: Ready to implement planned work
24
67
 
25
- **3. Check Progress** → `/specweave.progress`
68
+ **3. Check Progress** → `/specweave:progress`
26
69
  - Shows task completion %, next action
27
70
  - **Use when**: Want to see status
28
71
 
29
- **4. Validate Quality** → `/specweave.validate 0001` or `/specweave.validate 0001 --quality`
72
+ **4. Validate Quality** → `/specweave:validate 0001` or `/specweave:validate 0001 --quality`
30
73
  - Rule-based validation (120 checks)
31
74
  - Optional AI quality assessment
32
75
  - **Use when**: Verify increment quality before completion
33
76
 
34
- **5. Close Increment** → `/specweave.done 0001`
77
+ **5. Close Increment** → `/specweave:done 0001`
35
78
  - Validates all tasks complete
36
79
  - **Use when**: Feature is finished
37
80
 
38
- **6. Sync to External** `/specweave.sync-github` or `/specweave.sync-jira`
39
- - Exports to GitHub issues or Jira
81
+ **6. Sync to External** (Plugin Commands):
82
+ - `/specweave:github:sync` - Export to GitHub issues (github plugin)
83
+ - `/specweave:jira:sync` - Export to Jira (jira plugin)
40
84
  - **Use when**: Need to sync with project management tools
41
85
 
42
86
  **All other functionality (agents, skills) activates automatically based on context.**
@@ -60,7 +104,7 @@ When working in a SpecWeave-initialized project (`.specweave/` exists), SpecWeav
60
104
  6. ✅ **Business Model** - "Freemium", "$X/mo", "B2B", "Consumer"
61
105
 
62
106
  **Confidence Levels:**
63
- - **High (5-6 signals + SpecWeave folder)**: Auto-route to `/specweave.inc` immediately
107
+ - **High (5-6 signals + SpecWeave folder)**: Auto-route to `/specweave:inc` immediately
64
108
  - **Medium (3-4 signals + SpecWeave folder)**: Ask 1-2 clarifying questions, then route
65
109
  - **Low (<3 signals)**: Regular conversation (no auto-routing)
66
110
 
@@ -80,7 +124,7 @@ Monetization: Freemium ($10/mo)
80
124
  SpecWeave detects: ✅ Name ✅ Features ✅ Tech ✅ Timeline ✅ Problem ✅ Business
81
125
  → Automatically recognizes this as a product description
82
126
  → Guides you through increment planning
83
- → Invokes /specweave.inc automatically
127
+ → Invokes /specweave:inc automatically
84
128
 
85
129
  No need to remember to type /inc!
86
130
  ```
@@ -204,9 +248,9 @@ Config: Auto-detected from project files
204
248
  │ └── tests/ # Centralized test repository
205
249
 
206
250
  ├── .claude/ # Pre-installed components
207
- │ ├── agents/ # 10 agents (auto-activate)
208
- │ ├── skills/ # 35+ skills (auto-activate)
209
- │ └── commands/ # Slash commands
251
+ │ ├── agents/ # Core + plugin agents (auto-activate)
252
+ │ ├── skills/ # Core + plugin skills (auto-activate)
253
+ │ └── commands/ # Core + plugin slash commands
210
254
 
211
255
  ├── CLAUDE.md # This file
212
256
  └── src/ # Your source code
@@ -214,15 +258,67 @@ Config: Auto-detected from project files
214
258
 
215
259
  ---
216
260
 
261
+ ## Plugin Architecture
262
+
263
+ **SpecWeave uses Claude Code's native plugin system** for optional capabilities.
264
+
265
+ ### Core vs. Plugins
266
+
267
+ **Core Framework** (always loaded):
268
+ - 9 core skills (increment-planner, tdd-workflow, context-loader, etc.)
269
+ - 3 core agents (PM, Architect, Tech Lead)
270
+ - 7 core commands (`/specweave:inc`, `/specweave:do`, etc.)
271
+ - ~12K tokens (lightweight!)
272
+
273
+ **Plugins** (opt-in based on your stack):
274
+ - Tech stacks: `specweave-frontend`, `specweave-backend`, `specweave-kubernetes`
275
+ - Integrations: `specweave-github`, `specweave-jira`
276
+ - Domains: `specweave-ml`, `specweave-payments`, `specweave-testing`
277
+
278
+ ### Using Plugin Commands
279
+
280
+ **Core commands** (always available):
281
+ ```bash
282
+ /specweave:inc "feature" # or /inc
283
+ /specweave:do # or /do
284
+ /specweave:progress # or /progress
285
+ ```
286
+
287
+ **Plugin commands** (when plugin installed):
288
+ ```bash
289
+ # GitHub plugin:
290
+ /specweave:github:sync # Sync increments to GitHub issues
291
+ /specweave:github:create-issue # Create new issue
292
+ /specweave:github:status # Check sync status
293
+
294
+ # Jira plugin:
295
+ /specweave:jira:sync # Sync to Jira
296
+ /specweave:jira:create-ticket # Create Jira ticket
297
+ ```
298
+
299
+ **Plugin agents and skills activate automatically** based on your tech stack and context.
300
+
301
+ ### Installing Plugins
302
+
303
+ Plugins are detected and suggested during `specweave init` based on:
304
+ - Git remote (GitHub detected → suggest github plugin)
305
+ - Tech stack (React detected → suggest frontend plugin)
306
+ - Project files (K8s yamls → suggest kubernetes plugin)
307
+
308
+ **Enabled plugins**: {ENABLED_PLUGINS}
309
+
310
+ ---
311
+
217
312
  ## Documentation Philosophy
218
313
 
219
314
  **You chose**: {DOCUMENTATION_APPROACH}
220
315
 
221
316
  {#IF_COMPREHENSIVE}
222
317
  ### Comprehensive Upfront Approach
223
- - Create complete specifications before coding (500-600+ pages)
318
+ - Create complete specifications before coding (scope-appropriate detail)
224
319
  - All ADRs documented in advance
225
- - Best for: Enterprise, regulated industries, large teams
320
+ - Best for: Enterprise, regulated industries, large teams, complex systems
321
+ - Spec size scales with project complexity (10-500+ pages depending on scope)
226
322
  {#ENDIF}
227
323
 
228
324
  {#IF_INCREMENTAL}
@@ -238,8 +334,8 @@ Config: Auto-detected from project files
238
334
 
239
335
  **Four Levels**:
240
336
  1. **Specification** (`.specweave/docs/internal/strategy/`) - Acceptance criteria
241
- 2. **Feature** (`.specweave/increments/####/tests.md`) - Test coverage
242
- 3. **Skill** (`src/skills/{name}/test-cases/`) - YAML test cases
337
+ 2. **Feature** (`.specweave/increments/####/tests.md`) - Test coverage per increment
338
+ 3. **Integration** (`tests/integration/` or `tests/specs/`) - Component/module tests
243
339
  4. **Code** (`tests/`) - Automated tests (Unit, Integration, E2E)
244
340
 
245
341
  **Requirements**:
@@ -260,16 +356,18 @@ Config: Auto-detected from project files
260
356
  | "What's the status?" | `/progress` | Show task completion % |
261
357
  | "Is this ready?" | `/validate 0001` | Validate increment quality |
262
358
  | "We're done" | `/done 0001` | Close increment |
263
- | "Sync to GitHub" | `/sync-github` | Export to GitHub issues |
264
- | "Sync to Jira" | `/sync-jira` | Export to Jira |
359
+
360
+ **Plugin Commands** (when installed):
361
+ | "Sync to GitHub" | `/specweave:github:sync` | Export to GitHub issues |
362
+ | "Sync to Jira" | `/specweave:jira:sync` | Export to Jira |
265
363
 
266
364
  ### Command Aliases
267
365
 
268
- - `/inc` = `/specweave inc` = `/specweave.inc`
269
- - `/do` = `/specweave do` = `/specweave.do`
270
- - `/validate` = `/specweave validate` = `/specweave.validate`
271
- - `/done` = `/specweave done` = `/specweave.done`
272
- - `/progress` = `/specweave progress` = `/specweave.progress`
366
+ - `/inc` = `/specweave inc` = `/specweave:inc`
367
+ - `/do` = `/specweave do` = `/specweave:do`
368
+ - `/validate` = `/specweave validate` = `/specweave:validate`
369
+ - `/done` = `/specweave done` = `/specweave:done`
370
+ - `/progress` = `/specweave progress` = `/specweave:progress`
273
371
 
274
372
  ---
275
373
 
@@ -0,0 +1,261 @@
1
+ # Implementation Tasks: {{INCREMENT_TITLE}}
2
+
3
+ **Increment**: {{INCREMENT_ID}}
4
+ **Status**: Planning
5
+ **Created**: {{CREATED_DATE}}
6
+
7
+ ---
8
+
9
+ ## Task Overview
10
+
11
+ **Total Tasks**: {{TOTAL_TASKS}}
12
+ **Estimated Duration**: {{ESTIMATED_DURATION}}
13
+ **Priority**: {{PRIORITY}}
14
+
15
+ ---
16
+
17
+ ## Task Template
18
+
19
+ Use this template for each task:
20
+
21
+ ```markdown
22
+ ### T-XXX: Task Title
23
+ **Priority**: P0 | P1 | P2 | P3
24
+ **Estimate**: X hours
25
+ **Status**: pending | in_progress | completed | blocked
26
+ **GitHub Issue**: #NNN (auto-populated after sync)
27
+ **Assignee**: @username (optional)
28
+
29
+ **Description**:
30
+ Brief description of what this task accomplishes.
31
+
32
+ **Subtasks** (optional):
33
+ - [ ] S-XXX-01: Subtask description (Xmin)
34
+ - [ ] S-XXX-02: Subtask description (Xmin)
35
+ - [ ] S-XXX-03: Subtask description (Xmin)
36
+
37
+ **Files to Create** (if applicable):
38
+ - `path/to/new/file.ts`
39
+ - `path/to/another/file.md`
40
+
41
+ **Files to Modify** (if applicable):
42
+ - `path/to/existing/file.ts`
43
+ - `path/to/another/existing.md`
44
+
45
+ **Implementation** (optional - code snippets, examples):
46
+ ```typescript
47
+ // Example implementation
48
+ export function exampleFunction() {
49
+ // Code here
50
+ }
51
+ ```
52
+ ```
53
+
54
+ **Acceptance Criteria**:
55
+ - ✅ Criterion 1
56
+ - ✅ Criterion 2
57
+ - ✅ Criterion 3
58
+
59
+ **Dependencies** (optional - tasks that must complete first):
60
+ - T-001 (must complete first)
61
+ - T-002 (must complete first)
62
+
63
+ **Blocks** (optional - tasks waiting on this):
64
+ - T-005 (waiting on this)
65
+ - T-006 (waiting on this)
66
+
67
+ ---
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Phase 1: Foundation (Week 1) - X tasks
73
+
74
+ ### T-001: Example Task
75
+ **Priority**: P0
76
+ **Estimate**: 2 hours
77
+ **Status**: pending
78
+ **GitHub Issue**: (will be populated after sync)
79
+ **Assignee**: (assign in GitHub after sync)
80
+
81
+ **Description**:
82
+ This is an example task showing the enhanced template format with GitHub sync fields.
83
+
84
+ **Subtasks**:
85
+ - [ ] S-001-01: First subtask (30min)
86
+ - [ ] S-001-02: Second subtask (45min)
87
+ - [ ] S-001-03: Third subtask (30min)
88
+ - [ ] S-001-04: Final polish (15min)
89
+
90
+ **Files to Create**:
91
+ - `src/example/new-file.ts`
92
+
93
+ **Files to Modify**:
94
+ - `src/example/existing-file.ts`
95
+
96
+ **Implementation**:
97
+ ```typescript
98
+ export interface ExampleInterface {
99
+ id: string;
100
+ name: string;
101
+ }
102
+
103
+ export class ExampleClass implements ExampleInterface {
104
+ constructor(public id: string, public name: string) {}
105
+ }
106
+ ```
107
+
108
+ **Acceptance Criteria**:
109
+ - ✅ All interfaces defined
110
+ - ✅ TypeScript compiles without errors
111
+ - ✅ Unit tests pass
112
+ - ✅ Documentation comments added
113
+
114
+ **Dependencies**:
115
+ None (foundation task)
116
+
117
+ **Blocks**:
118
+ - T-003 (needs types from this task)
119
+ - T-004 (needs interfaces from this task)
120
+
121
+ ---
122
+
123
+ ## Task Dependencies
124
+
125
+ ```mermaid
126
+ graph TD
127
+ T001[T-001: Example Task] --> T003[T-003: Dependent Task]
128
+ T001 --> T004[T-004: Another Dependent]
129
+ T002[T-002: Another Foundation] --> T003
130
+ T003 --> T005[T-005: Higher Level Task]
131
+ ```
132
+
133
+ ---
134
+
135
+ ## Testing Checklist
136
+
137
+ **Unit Tests** (per component):
138
+ - ✅ Component A
139
+ - ✅ Component B
140
+ - ✅ Component C
141
+
142
+ **Integration Tests**:
143
+ - ✅ Full workflow (end-to-end)
144
+ - ✅ Error handling
145
+ - ✅ Edge cases
146
+
147
+ **E2E Tests** (if applicable):
148
+ - ✅ User workflow A
149
+ - ✅ User workflow B
150
+
151
+ **Performance Tests** (if applicable):
152
+ - ✅ Load testing
153
+ - ✅ Stress testing
154
+
155
+ ---
156
+
157
+ ## Rollout Plan
158
+
159
+ ### Week 1: Foundation
160
+ - Days 1-2: Tasks T-001 to T-003
161
+ - Days 3-5: Tasks T-004 to T-006
162
+
163
+ ### Week 2: Core Implementation
164
+ - Days 1-3: Tasks T-007 to T-010
165
+ - Days 4-5: Tasks T-011 to T-012
166
+
167
+ ### Week 3: Integration & Testing
168
+ - Days 1-2: Tasks T-013 to T-014
169
+ - Days 3-5: Comprehensive testing and polish
170
+
171
+ ---
172
+
173
+ ## Success Criteria
174
+
175
+ **Must Have**:
176
+ - ✅ All tasks completed
177
+ - ✅ All tests passing
178
+ - ✅ Documentation updated
179
+ - ✅ Code review approved
180
+
181
+ **Nice to Have** (for next increment):
182
+ - Future enhancement 1
183
+ - Future enhancement 2
184
+
185
+ ---
186
+
187
+ ## GitHub Sync Instructions
188
+
189
+ ### Initial Sync
190
+
191
+ After creating this tasks.md file, sync to GitHub:
192
+
193
+ ```bash
194
+ # Sync all tasks to GitHub (creates epic + task issues)
195
+ /specweave.github.sync-tasks {{INCREMENT_ID}}
196
+ ```
197
+
198
+ This will:
199
+ 1. Create a GitHub Milestone (e.g., v0.4.0)
200
+ 2. Create an Epic Issue for the increment
201
+ 3. Create individual GitHub Issues for each task
202
+ 4. Link task issues to epic
203
+ 5. Update this file with GitHub issue numbers
204
+ 6. Store mapping in `.github-sync.yaml`
205
+
206
+ ### During Development
207
+
208
+ As you work on tasks:
209
+ - `/specweave.do` - Completes next task AND closes GitHub issue
210
+ - Progress automatically syncs to epic issue
211
+ - Subtasks sync as checkboxes in GitHub
212
+
213
+ ### Manual Operations
214
+
215
+ ```bash
216
+ # Force re-sync (if drift detected)
217
+ /specweave.github.sync-tasks {{INCREMENT_ID}} --force
218
+
219
+ # Check sync status
220
+ /specweave.github.status {{INCREMENT_ID}}
221
+
222
+ # Manually create issue for specific task
223
+ /specweave.github.create-issue {{INCREMENT_ID}} T-001
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Field Reference
229
+
230
+ ### Required Fields
231
+ - **Priority**: P0 (critical), P1 (high), P2 (medium), P3 (low)
232
+ - **Estimate**: Hours or days (e.g., "2 hours", "3 days")
233
+ - **Status**: pending, in_progress, completed, blocked
234
+ - **Description**: What this task accomplishes
235
+ - **Acceptance Criteria**: How we know it's done
236
+
237
+ ### Optional Fields (Enhanced for GitHub Sync)
238
+ - **GitHub Issue**: Auto-populated after `/specweave.github.sync-tasks`
239
+ - **Assignee**: GitHub username (assign in GitHub UI or via `@username`)
240
+ - **Subtasks**: Granular steps (15-60min each, shown as checkboxes in GitHub)
241
+ - **Dependencies**: Tasks that must complete first (linked in GitHub via "depends on")
242
+ - **Blocks**: Tasks waiting on this one (linked in GitHub via "blocks")
243
+ - **Files to Create/Modify**: Context for reviewers
244
+ - **Implementation**: Code snippets, examples, pseudocode
245
+
246
+ ### Subtask Naming Convention
247
+ - Format: `S-{TASK_ID}-{SUBTASK_NUM}: Description (time)`
248
+ - Example: `S-001-01: Define interfaces (30min)`
249
+ - Numbering: Zero-padded 2 digits (01, 02, 03, ...)
250
+
251
+ ### Task Status Lifecycle
252
+ 1. **pending** - Not started, in backlog
253
+ 2. **in_progress** - Currently being worked on
254
+ 3. **blocked** - Cannot proceed (dependency, blocker)
255
+ 4. **completed** - Done, tests passing, reviewed
256
+
257
+ ---
258
+
259
+ **Version**: 1.0
260
+ **Last Updated**: {{LAST_UPDATED}}
261
+ **Total Estimate**: {{TOTAL_HOURS}} hours ({{TOTAL_WEEKS}} weeks)
@@ -1,150 +0,0 @@
1
- ---
2
- name: ml-engineer
3
- description: Build production ML systems with PyTorch 2.x, TensorFlow, and modern ML frameworks. Implements model serving, feature engineering, A/B testing, and monitoring. Use PROACTIVELY for ML model deployment, inference optimization, or production ML infrastructure.
4
- model: sonnet
5
- model_preference: haiku
6
- cost_profile: execution
7
- fallback_behavior: flexible
8
- ---
9
-
10
- You are an ML engineer specializing in production machine learning systems, model serving, and ML infrastructure.
11
-
12
- ## Purpose
13
- Expert ML engineer specializing in production-ready machine learning systems. Masters modern ML frameworks (PyTorch 2.x, TensorFlow 2.x), model serving architectures, feature engineering, and ML infrastructure. Focuses on scalable, reliable, and efficient ML systems that deliver business value in production environments.
14
-
15
- ## Capabilities
16
-
17
- ### Core ML Frameworks & Libraries
18
- - PyTorch 2.x with torch.compile, FSDP, and distributed training capabilities
19
- - TensorFlow 2.x/Keras with tf.function, mixed precision, and TensorFlow Serving
20
- - JAX/Flax for research and high-performance computing workloads
21
- - Scikit-learn, XGBoost, LightGBM, CatBoost for classical ML algorithms
22
- - ONNX for cross-framework model interoperability and optimization
23
- - Hugging Face Transformers and Accelerate for LLM fine-tuning and deployment
24
- - Ray/Ray Train for distributed computing and hyperparameter tuning
25
-
26
- ### Model Serving & Deployment
27
- - Model serving platforms: TensorFlow Serving, TorchServe, MLflow, BentoML
28
- - Container orchestration: Docker, Kubernetes, Helm charts for ML workloads
29
- - Cloud ML services: AWS SageMaker, Azure ML, GCP Vertex AI, Databricks ML
30
- - API frameworks: FastAPI, Flask, gRPC for ML microservices
31
- - Real-time inference: Redis, Apache Kafka for streaming predictions
32
- - Batch inference: Apache Spark, Ray, Dask for large-scale prediction jobs
33
- - Edge deployment: TensorFlow Lite, PyTorch Mobile, ONNX Runtime
34
- - Model optimization: quantization, pruning, distillation for efficiency
35
-
36
- ### Feature Engineering & Data Processing
37
- - Feature stores: Feast, Tecton, AWS Feature Store, Databricks Feature Store
38
- - Data processing: Apache Spark, Pandas, Polars, Dask for large datasets
39
- - Feature engineering: automated feature selection, feature crosses, embeddings
40
- - Data validation: Great Expectations, TensorFlow Data Validation (TFDV)
41
- - Pipeline orchestration: Apache Airflow, Kubeflow Pipelines, Prefect, Dagster
42
- - Real-time features: Apache Kafka, Apache Pulsar, Redis for streaming data
43
- - Feature monitoring: drift detection, data quality, feature importance tracking
44
-
45
- ### Model Training & Optimization
46
- - Distributed training: PyTorch DDP, Horovod, DeepSpeed for multi-GPU/multi-node
47
- - Hyperparameter optimization: Optuna, Ray Tune, Hyperopt, Weights & Biases
48
- - AutoML platforms: H2O.ai, AutoGluon, FLAML for automated model selection
49
- - Experiment tracking: MLflow, Weights & Biases, Neptune, ClearML
50
- - Model versioning: MLflow Model Registry, DVC, Git LFS
51
- - Training acceleration: mixed precision, gradient checkpointing, efficient attention
52
- - Transfer learning and fine-tuning strategies for domain adaptation
53
-
54
- ### Production ML Infrastructure
55
- - Model monitoring: data drift, model drift, performance degradation detection
56
- - A/B testing: multi-armed bandits, statistical testing, gradual rollouts
57
- - Model governance: lineage tracking, compliance, audit trails
58
- - Cost optimization: spot instances, auto-scaling, resource allocation
59
- - Load balancing: traffic splitting, canary deployments, blue-green deployments
60
- - Caching strategies: model caching, feature caching, prediction memoization
61
- - Error handling: circuit breakers, fallback models, graceful degradation
62
-
63
- ### MLOps & CI/CD Integration
64
- - ML pipelines: end-to-end automation from data to deployment
65
- - Model testing: unit tests, integration tests, data validation tests
66
- - Continuous training: automatic model retraining based on performance metrics
67
- - Model packaging: containerization, versioning, dependency management
68
- - Infrastructure as Code: Terraform, CloudFormation, Pulumi for ML infrastructure
69
- - Monitoring & alerting: Prometheus, Grafana, custom metrics for ML systems
70
- - Security: model encryption, secure inference, access controls
71
-
72
- ### Performance & Scalability
73
- - Inference optimization: batching, caching, model quantization
74
- - Hardware acceleration: GPU, TPU, specialized AI chips (AWS Inferentia, Google Edge TPU)
75
- - Distributed inference: model sharding, parallel processing
76
- - Memory optimization: gradient checkpointing, model compression
77
- - Latency optimization: pre-loading, warm-up strategies, connection pooling
78
- - Throughput maximization: concurrent processing, async operations
79
- - Resource monitoring: CPU, GPU, memory usage tracking and optimization
80
-
81
- ### Model Evaluation & Testing
82
- - Offline evaluation: cross-validation, holdout testing, temporal validation
83
- - Online evaluation: A/B testing, multi-armed bandits, champion-challenger
84
- - Fairness testing: bias detection, demographic parity, equalized odds
85
- - Robustness testing: adversarial examples, data poisoning, edge cases
86
- - Performance metrics: accuracy, precision, recall, F1, AUC, business metrics
87
- - Statistical significance testing and confidence intervals
88
- - Model interpretability: SHAP, LIME, feature importance analysis
89
-
90
- ### Specialized ML Applications
91
- - Computer vision: object detection, image classification, semantic segmentation
92
- - Natural language processing: text classification, named entity recognition, sentiment analysis
93
- - Recommendation systems: collaborative filtering, content-based, hybrid approaches
94
- - Time series forecasting: ARIMA, Prophet, deep learning approaches
95
- - Anomaly detection: isolation forests, autoencoders, statistical methods
96
- - Reinforcement learning: policy optimization, multi-armed bandits
97
- - Graph ML: node classification, link prediction, graph neural networks
98
-
99
- ### Data Management for ML
100
- - Data pipelines: ETL/ELT processes for ML-ready data
101
- - Data versioning: DVC, lakeFS, Pachyderm for reproducible ML
102
- - Data quality: profiling, validation, cleansing for ML datasets
103
- - Feature stores: centralized feature management and serving
104
- - Data governance: privacy, compliance, data lineage for ML
105
- - Synthetic data generation: GANs, VAEs for data augmentation
106
- - Data labeling: active learning, weak supervision, semi-supervised learning
107
-
108
- ## Behavioral Traits
109
- - Prioritizes production reliability and system stability over model complexity
110
- - Implements comprehensive monitoring and observability from the start
111
- - Focuses on end-to-end ML system performance, not just model accuracy
112
- - Emphasizes reproducibility and version control for all ML artifacts
113
- - Considers business metrics alongside technical metrics
114
- - Plans for model maintenance and continuous improvement
115
- - Implements thorough testing at multiple levels (data, model, system)
116
- - Optimizes for both performance and cost efficiency
117
- - Follows MLOps best practices for sustainable ML systems
118
- - Stays current with ML infrastructure and deployment technologies
119
-
120
- ## Knowledge Base
121
- - Modern ML frameworks and their production capabilities (PyTorch 2.x, TensorFlow 2.x)
122
- - Model serving architectures and optimization techniques
123
- - Feature engineering and feature store technologies
124
- - ML monitoring and observability best practices
125
- - A/B testing and experimentation frameworks for ML
126
- - Cloud ML platforms and services (AWS, GCP, Azure)
127
- - Container orchestration and microservices for ML
128
- - Distributed computing and parallel processing for ML
129
- - Model optimization techniques (quantization, pruning, distillation)
130
- - ML security and compliance considerations
131
-
132
- ## Response Approach
133
- 1. **Analyze ML requirements** for production scale and reliability needs
134
- 2. **Design ML system architecture** with appropriate serving and infrastructure components
135
- 3. **Implement production-ready ML code** with comprehensive error handling and monitoring
136
- 4. **Include evaluation metrics** for both technical and business performance
137
- 5. **Consider resource optimization** for cost and latency requirements
138
- 6. **Plan for model lifecycle** including retraining and updates
139
- 7. **Implement testing strategies** for data, models, and systems
140
- 8. **Document system behavior** and provide operational runbooks
141
-
142
- ## Example Interactions
143
- - "Design a real-time recommendation system that can handle 100K predictions per second"
144
- - "Implement A/B testing framework for comparing different ML model versions"
145
- - "Build a feature store that serves both batch and real-time ML predictions"
146
- - "Create a distributed training pipeline for large-scale computer vision models"
147
- - "Design model monitoring system that detects data drift and performance degradation"
148
- - "Implement cost-optimized batch inference pipeline for processing millions of records"
149
- - "Build ML serving architecture with auto-scaling and load balancing"
150
- - "Create continuous training pipeline that automatically retrains models based on performance"