specweave 0.4.0 → 0.6.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 (411) hide show
  1. package/.claude-plugin/README.md +325 -0
  2. package/.claude-plugin/marketplace.json +210 -0
  3. package/CLAUDE.md +1000 -252
  4. package/README.md +273 -180
  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 +18 -0
  10. package/dist/adapters/adapter-base.d.ts +21 -0
  11. package/dist/adapters/adapter-base.d.ts.map +1 -1
  12. package/dist/adapters/adapter-base.js +28 -0
  13. package/dist/adapters/adapter-base.js.map +1 -1
  14. package/dist/adapters/adapter-interface.d.ts +41 -0
  15. package/dist/adapters/adapter-interface.d.ts.map +1 -1
  16. package/dist/adapters/claude/adapter.d.ts +85 -11
  17. package/dist/adapters/claude/adapter.d.ts.map +1 -1
  18. package/dist/adapters/claude/adapter.js +305 -37
  19. package/dist/adapters/claude/adapter.js.map +1 -1
  20. package/dist/adapters/copilot/adapter.d.ts +45 -2
  21. package/dist/adapters/copilot/adapter.d.ts.map +1 -1
  22. package/dist/adapters/copilot/adapter.js +226 -4
  23. package/dist/adapters/copilot/adapter.js.map +1 -1
  24. package/dist/adapters/cursor/adapter.d.ts +54 -0
  25. package/dist/adapters/cursor/adapter.d.ts.map +1 -1
  26. package/dist/adapters/cursor/adapter.js +192 -0
  27. package/dist/adapters/cursor/adapter.js.map +1 -1
  28. package/dist/adapters/generic/adapter.d.ts +43 -0
  29. package/dist/adapters/generic/adapter.d.ts.map +1 -1
  30. package/dist/adapters/generic/adapter.js +163 -0
  31. package/dist/adapters/generic/adapter.js.map +1 -1
  32. package/dist/cli/commands/init.d.ts +1 -0
  33. package/dist/cli/commands/init.d.ts.map +1 -1
  34. package/dist/cli/commands/init.js +392 -123
  35. package/dist/cli/commands/init.js.map +1 -1
  36. package/dist/cli/commands/install.d.ts +2 -0
  37. package/dist/cli/commands/install.d.ts.map +1 -1
  38. package/dist/cli/commands/install.js +28 -25
  39. package/dist/cli/commands/install.js.map +1 -1
  40. package/dist/cli/commands/list.d.ts +2 -0
  41. package/dist/cli/commands/list.d.ts.map +1 -1
  42. package/dist/cli/commands/list.js +26 -24
  43. package/dist/cli/commands/list.js.map +1 -1
  44. package/dist/cli/commands/plugin.d.ts +43 -0
  45. package/dist/cli/commands/plugin.d.ts.map +1 -0
  46. package/dist/cli/commands/plugin.js +307 -0
  47. package/dist/cli/commands/plugin.js.map +1 -0
  48. package/dist/core/i18n/language-detector.d.ts +29 -0
  49. package/dist/core/i18n/language-detector.d.ts.map +1 -0
  50. package/dist/core/i18n/language-detector.js +143 -0
  51. package/dist/core/i18n/language-detector.js.map +1 -0
  52. package/dist/core/i18n/language-manager.d.ts +101 -0
  53. package/dist/core/i18n/language-manager.d.ts.map +1 -0
  54. package/dist/core/i18n/language-manager.js +232 -0
  55. package/dist/core/i18n/language-manager.js.map +1 -0
  56. package/dist/core/i18n/language-registry.d.ts +44 -0
  57. package/dist/core/i18n/language-registry.d.ts.map +1 -0
  58. package/dist/core/i18n/language-registry.js +234 -0
  59. package/dist/core/i18n/language-registry.js.map +1 -0
  60. package/dist/core/i18n/locale-manager.d.ts +62 -0
  61. package/dist/core/i18n/locale-manager.d.ts.map +1 -0
  62. package/dist/core/i18n/locale-manager.js +137 -0
  63. package/dist/core/i18n/locale-manager.js.map +1 -0
  64. package/dist/core/i18n/system-prompt-injector.d.ts +33 -0
  65. package/dist/core/i18n/system-prompt-injector.d.ts.map +1 -0
  66. package/dist/core/i18n/system-prompt-injector.js +131 -0
  67. package/dist/core/i18n/system-prompt-injector.js.map +1 -0
  68. package/dist/core/i18n/types.d.ts +151 -0
  69. package/dist/core/i18n/types.d.ts.map +1 -0
  70. package/dist/core/i18n/types.js +11 -0
  71. package/dist/core/i18n/types.js.map +1 -0
  72. package/dist/core/increment-status.d.ts +72 -0
  73. package/dist/core/increment-status.d.ts.map +1 -0
  74. package/dist/core/increment-status.js +227 -0
  75. package/dist/core/increment-status.js.map +1 -0
  76. package/dist/core/plugin-detector.d.ts +96 -0
  77. package/dist/core/plugin-detector.d.ts.map +1 -0
  78. package/dist/core/plugin-detector.js +349 -0
  79. package/dist/core/plugin-detector.js.map +1 -0
  80. package/dist/core/plugin-loader.d.ts +131 -0
  81. package/dist/core/plugin-loader.d.ts.map +1 -0
  82. package/dist/core/plugin-loader.js +421 -0
  83. package/dist/core/plugin-loader.js.map +1 -0
  84. package/dist/core/plugin-manager.d.ts +144 -0
  85. package/dist/core/plugin-manager.d.ts.map +1 -0
  86. package/dist/core/plugin-manager.js +393 -0
  87. package/dist/core/plugin-manager.js.map +1 -0
  88. package/dist/core/schemas/plugin-manifest.schema.json +253 -0
  89. package/dist/core/types/config.d.ts +51 -0
  90. package/dist/core/types/config.d.ts.map +1 -0
  91. package/dist/core/types/config.js +21 -0
  92. package/dist/core/types/config.js.map +1 -0
  93. package/dist/core/types/plugin.d.ts +283 -0
  94. package/dist/core/types/plugin.d.ts.map +1 -0
  95. package/dist/core/types/plugin.js +49 -0
  96. package/dist/core/types/plugin.js.map +1 -0
  97. package/dist/hooks/lib/sync-living-docs.d.ts +27 -0
  98. package/dist/hooks/lib/sync-living-docs.d.ts.map +1 -0
  99. package/dist/hooks/lib/sync-living-docs.js +116 -0
  100. package/dist/hooks/lib/sync-living-docs.js.map +1 -0
  101. package/dist/hooks/lib/translate-living-docs.d.ts +13 -0
  102. package/dist/hooks/lib/translate-living-docs.d.ts.map +1 -0
  103. package/dist/hooks/lib/translate-living-docs.js +166 -0
  104. package/dist/hooks/lib/translate-living-docs.js.map +1 -0
  105. package/dist/hooks/lib/update-tasks-md.d.ts +29 -0
  106. package/dist/hooks/lib/update-tasks-md.d.ts.map +1 -0
  107. package/dist/hooks/lib/update-tasks-md.js +203 -0
  108. package/dist/hooks/lib/update-tasks-md.js.map +1 -0
  109. package/dist/integrations/jira/jira-incremental-mapper.js.map +1 -1
  110. package/dist/integrations/jira/jira-mapper.d.ts +2 -2
  111. package/dist/integrations/jira/jira-mapper.js +2 -2
  112. package/dist/integrations/jira/jira-mapper.js.map +1 -1
  113. package/dist/locales/de/.gitkeep +0 -0
  114. package/dist/locales/de/cli.json +108 -0
  115. package/dist/locales/en/cli.json +269 -0
  116. package/dist/locales/en/errors.json +7 -0
  117. package/dist/locales/en/templates.json +6 -0
  118. package/dist/locales/es/.gitkeep +0 -0
  119. package/dist/locales/es/cli.json +41 -0
  120. package/dist/locales/fr/.gitkeep +0 -0
  121. package/dist/locales/fr/cli.json +108 -0
  122. package/dist/locales/ja/.gitkeep +0 -0
  123. package/dist/locales/ja/cli.json +108 -0
  124. package/dist/locales/ko/.gitkeep +0 -0
  125. package/dist/locales/ko/cli.json +108 -0
  126. package/dist/locales/pt/.gitkeep +0 -0
  127. package/dist/locales/pt/cli.json +108 -0
  128. package/dist/locales/ru/.gitkeep +0 -0
  129. package/dist/locales/ru/cli.json +269 -0
  130. package/dist/locales/zh/.gitkeep +0 -0
  131. package/dist/locales/zh/cli.json +108 -0
  132. package/dist/plugins/specweave-github/lib/github-client.d.ts +86 -0
  133. package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
  134. package/dist/plugins/specweave-github/lib/github-client.js +275 -0
  135. package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
  136. package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
  137. package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
  138. package/dist/plugins/specweave-github/lib/index.js +10 -0
  139. package/dist/plugins/specweave-github/lib/index.js.map +1 -0
  140. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
  141. package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
  142. package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
  143. package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
  144. package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
  145. package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
  146. package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
  147. package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
  148. package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
  149. package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
  150. package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
  151. package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
  152. package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
  153. package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
  154. package/dist/plugins/specweave-github/lib/types.js +5 -0
  155. package/dist/plugins/specweave-github/lib/types.js.map +1 -0
  156. package/dist/utils/agents-md-compiler.d.ts +68 -0
  157. package/dist/utils/agents-md-compiler.d.ts.map +1 -0
  158. package/dist/utils/agents-md-compiler.js +420 -0
  159. package/dist/utils/agents-md-compiler.js.map +1 -0
  160. package/dist/utils/generate-skills-index.js +4 -4
  161. package/dist/utils/generate-skills-index.js.map +1 -1
  162. package/package.json +24 -21
  163. package/plugins/specweave-ado/.claude-plugin/plugin.json +8 -0
  164. package/plugins/specweave-alternatives/.claude-plugin/plugin.json +8 -0
  165. package/plugins/specweave-alternatives/skills/bmad-method-expert/SKILL.md +626 -0
  166. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/analyze-project.js +318 -0
  167. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/check-setup.js +208 -0
  168. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/generate-template.js +1149 -0
  169. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/validate-documents.js +340 -0
  170. package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +1010 -0
  171. package/plugins/specweave-backend/.claude-plugin/plugin.json +8 -0
  172. package/plugins/specweave-core/.claude-plugin/plugin.json +25 -0
  173. package/{src → plugins/specweave-core}/agents/pm/AGENT.md +80 -0
  174. package/plugins/specweave-core/agents/translator/AGENT.md +282 -0
  175. package/{src → plugins/specweave-core}/commands/README.md +11 -11
  176. package/{src → plugins/specweave-core}/commands/specweave.costs.md +7 -7
  177. package/{src → plugins/specweave-core}/commands/specweave.do.md +34 -7
  178. package/{src → plugins/specweave-core}/commands/specweave.increment.md +131 -22
  179. package/{src → plugins/specweave-core}/commands/specweave.md +49 -17
  180. package/{src → plugins/specweave-core}/commands/specweave.sync-docs.md +5 -5
  181. package/plugins/specweave-core/commands/specweave.translate.md +425 -0
  182. package/{src → plugins/specweave-core}/commands/specweave.validate.md +1 -1
  183. package/plugins/specweave-core/hooks/hooks.json +13 -0
  184. package/plugins/specweave-core/hooks/post-increment-plugin-detect.sh +142 -0
  185. package/plugins/specweave-core/hooks/post-task-completion.sh +265 -0
  186. package/plugins/specweave-core/hooks/pre-task-plugin-detect.sh +96 -0
  187. package/plugins/specweave-core/skills/SKILLS-INDEX.md +229 -0
  188. package/{src → plugins/specweave-core}/skills/brownfield-analyzer/SKILL.md +66 -24
  189. package/{src → plugins/specweave-core}/skills/context-loader/SKILL.md +1 -1
  190. package/plugins/specweave-core/skills/context-optimizer/SKILL.md +588 -0
  191. package/plugins/specweave-core/skills/docs-updater/SKILL.md +0 -0
  192. package/{src → plugins/specweave-core}/skills/increment-planner/SKILL.md +81 -4
  193. package/plugins/specweave-core/skills/plugin-detector/SKILL.md +211 -0
  194. package/{src → plugins/specweave-core}/skills/project-kickstarter/SKILL.md +7 -7
  195. package/plugins/specweave-core/skills/rfc-generator/SKILL.md +369 -0
  196. package/{src → plugins/specweave-core}/skills/specweave-detector/SKILL.md +2 -2
  197. package/plugins/specweave-core/skills/specweave-framework/SKILL.md +498 -0
  198. package/plugins/specweave-core/skills/specweave-framework/test-cases/test-1-increment-naming.yaml +11 -0
  199. package/plugins/specweave-core/skills/specweave-framework/test-cases/test-2-source-of-truth.yaml +11 -0
  200. package/plugins/specweave-core/skills/specweave-framework/test-cases/test-3-increment-discipline.yaml +12 -0
  201. package/plugins/specweave-core/skills/specweave-framework/test-cases/test-4-file-placement.yaml +11 -0
  202. package/{src → plugins/specweave-core}/skills/tdd-workflow/SKILL.md +20 -20
  203. package/plugins/specweave-core/skills/translator/SKILL.md +172 -0
  204. package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +8 -0
  205. package/plugins/specweave-diagrams/.claude-plugin/plugin.json +8 -0
  206. package/plugins/specweave-docs/.claude-plugin/plugin.json +8 -0
  207. package/plugins/specweave-docs/skills/docusaurus/SKILL.md +526 -0
  208. package/plugins/specweave-figma/.claude-plugin/.mcp.json +12 -0
  209. package/plugins/specweave-figma/.claude-plugin/plugin.json +8 -0
  210. package/plugins/specweave-figma/ARCHITECTURE.md +453 -0
  211. package/plugins/specweave-figma/README.md +728 -0
  212. package/plugins/specweave-figma/skills/figma-to-code/SKILL.md +632 -0
  213. package/plugins/specweave-figma/skills/figma-to-code/test-1-token-generation.yaml +29 -0
  214. package/plugins/specweave-figma/skills/figma-to-code/test-2-component-generation.yaml +27 -0
  215. package/plugins/specweave-figma/skills/figma-to-code/test-3-typescript-generation.yaml +28 -0
  216. package/plugins/specweave-frontend/.claude-plugin/plugin.json +8 -0
  217. package/plugins/specweave-github/.claude-plugin/plugin.json +8 -0
  218. package/plugins/specweave-github/agents/github-manager/AGENT.md +651 -0
  219. package/plugins/specweave-github/commands/github-close-issue.md +418 -0
  220. package/plugins/specweave-github/commands/github-create-issue.md +307 -0
  221. package/plugins/specweave-github/commands/github-status.md +533 -0
  222. package/plugins/specweave-github/commands/github-sync-tasks.md +530 -0
  223. package/plugins/specweave-github/commands/github-sync.md +443 -0
  224. package/plugins/specweave-github/lib/github-client.ts +330 -0
  225. package/plugins/specweave-github/lib/index.ts +10 -0
  226. package/plugins/specweave-github/lib/subtask-sync.ts +225 -0
  227. package/plugins/specweave-github/lib/task-parser.ts +246 -0
  228. package/plugins/specweave-github/lib/task-sync.ts +402 -0
  229. package/plugins/specweave-github/lib/types.ts +86 -0
  230. package/plugins/specweave-github/skills/github-issue-tracker/SKILL.md +497 -0
  231. package/plugins/specweave-github/skills/github-sync/SKILL.md +461 -0
  232. package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +8 -0
  233. package/plugins/specweave-jira/.claude-plugin/plugin.json +8 -0
  234. package/{src → plugins/specweave-jira}/commands/specweave.sync-jira.md +18 -18
  235. package/plugins/specweave-kubernetes/.claude-plugin/plugin.json +8 -0
  236. package/plugins/specweave-ml/.claude-plugin/plugin.json +39 -0
  237. package/plugins/specweave-ml/README.md +885 -0
  238. package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +402 -0
  239. package/plugins/specweave-ml/commands/ml-deploy.md +116 -0
  240. package/plugins/specweave-ml/commands/ml-evaluate.md +87 -0
  241. package/plugins/specweave-ml/commands/ml-explain.md +83 -0
  242. package/plugins/specweave-ml/skills/anomaly-detector/SKILL.md +559 -0
  243. package/plugins/specweave-ml/skills/automl-optimizer/SKILL.md +485 -0
  244. package/plugins/specweave-ml/skills/cv-pipeline-builder/SKILL.md +157 -0
  245. package/plugins/specweave-ml/skills/data-visualizer/SKILL.md +521 -0
  246. package/plugins/specweave-ml/skills/experiment-tracker/SKILL.md +535 -0
  247. package/plugins/specweave-ml/skills/feature-engineer/SKILL.md +566 -0
  248. package/plugins/specweave-ml/skills/ml-deployment-helper/SKILL.md +345 -0
  249. package/plugins/specweave-ml/skills/ml-pipeline-orchestrator/SKILL.md +518 -0
  250. package/plugins/specweave-ml/skills/model-evaluator/SKILL.md +155 -0
  251. package/plugins/specweave-ml/skills/model-explainer/SKILL.md +227 -0
  252. package/plugins/specweave-ml/skills/model-registry/SKILL.md +541 -0
  253. package/plugins/specweave-ml/skills/nlp-pipeline-builder/SKILL.md +180 -0
  254. package/plugins/specweave-ml/skills/time-series-forecaster/SKILL.md +569 -0
  255. package/plugins/specweave-payments/.claude-plugin/plugin.json +8 -0
  256. package/plugins/specweave-testing/.claude-plugin/plugin.json +8 -0
  257. package/plugins/specweave-tooling/.claude-plugin/plugin.json +8 -0
  258. package/plugins/specweave-ui/.claude-plugin/plugin.json +106 -0
  259. package/plugins/specweave-ui/.mcp.json +14 -0
  260. package/plugins/specweave-ui/README.md +386 -0
  261. package/src/adapters/adapter-base.ts +33 -0
  262. package/src/adapters/adapter-interface.ts +46 -0
  263. package/src/adapters/claude/adapter.ts +350 -39
  264. package/src/adapters/copilot/adapter.ts +267 -4
  265. package/src/adapters/cursor/adapter.ts +229 -0
  266. package/src/adapters/generic/adapter.ts +196 -0
  267. package/src/templates/AGENTS.md.template +170 -1
  268. package/src/templates/CLAUDE.md.template +122 -24
  269. package/src/templates/tasks.md.template +261 -0
  270. package/src/agents/ml-engineer/AGENT.md +0 -150
  271. package/src/commands/specweave.sync-github.md +0 -269
  272. package/src/hooks/post-task-completion.sh +0 -79
  273. package/src/skills/SKILLS-INDEX.md +0 -444
  274. package/src/skills/github-sync/SKILL.md +0 -234
  275. /package/{src → plugins/specweave-ado}/skills/ado-sync/README.md +0 -0
  276. /package/{src → plugins/specweave-ado}/skills/ado-sync/SKILL.md +0 -0
  277. /package/{src → plugins/specweave-ado}/skills/specweave-ado-mapper/SKILL.md +0 -0
  278. /package/{src → plugins/specweave-backend}/agents/database-optimizer/AGENT.md +0 -0
  279. /package/{src → plugins/specweave-backend}/skills/dotnet-backend/SKILL.md +0 -0
  280. /package/{src → plugins/specweave-backend}/skills/nodejs-backend/SKILL.md +0 -0
  281. /package/{src → plugins/specweave-backend}/skills/python-backend/SKILL.md +0 -0
  282. /package/{src → plugins/specweave-core}/agents/architect/AGENT.md +0 -0
  283. /package/{src → plugins/specweave-core}/agents/code-reviewer.md +0 -0
  284. /package/{src → plugins/specweave-core}/agents/docs-writer/AGENT.md +0 -0
  285. /package/{src → plugins/specweave-core}/agents/performance/AGENT.md +0 -0
  286. /package/{src → plugins/specweave-core}/agents/qa-lead/AGENT.md +0 -0
  287. /package/{src → plugins/specweave-core}/agents/security/AGENT.md +0 -0
  288. /package/{src → plugins/specweave-core}/agents/tdd-orchestrator/AGENT.md +0 -0
  289. /package/{src → plugins/specweave-core}/agents/tech-lead/AGENT.md +0 -0
  290. /package/{src → plugins/specweave-core}/commands/specweave.done.md +0 -0
  291. /package/{src → plugins/specweave-core}/commands/specweave.inc.md +0 -0
  292. /package/{src → plugins/specweave-core}/commands/specweave.list-increments.md +0 -0
  293. /package/{src → plugins/specweave-core}/commands/specweave.next.md +0 -0
  294. /package/{src → plugins/specweave-core}/commands/specweave.progress.md +0 -0
  295. /package/{src → plugins/specweave-core}/commands/specweave.tdd-cycle.md +0 -0
  296. /package/{src → plugins/specweave-core}/commands/specweave.tdd-green.md +0 -0
  297. /package/{src → plugins/specweave-core}/commands/specweave.tdd-red.md +0 -0
  298. /package/{src → plugins/specweave-core}/commands/specweave.tdd-refactor.md +0 -0
  299. /package/{src → plugins/specweave-core}/hooks/README.md +0 -0
  300. /package/{src → plugins/specweave-core}/hooks/docs-changed.sh +0 -0
  301. /package/{src → plugins/specweave-core}/hooks/human-input-required.sh +0 -0
  302. /package/{src → plugins/specweave-core}/hooks/pre-implementation.sh +0 -0
  303. /package/{src → plugins/specweave-core}/skills/brownfield-onboarder/SKILL.md +0 -0
  304. /package/{src → plugins/specweave-core}/skills/docs-updater/README.md +0 -0
  305. /package/{src → plugins/specweave-core}/skills/increment-planner/scripts/feature-utils.js +0 -0
  306. /package/{src → plugins/specweave-core}/skills/increment-quality-judge/SKILL.md +0 -0
  307. /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-1-high-confidence-full-product.yaml +0 -0
  308. /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-2-medium-confidence-partial.yaml +0 -0
  309. /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-3-low-confidence-technical-question.yaml +0 -0
  310. /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-4-opt-out-explicit.yaml +0 -0
  311. /package/{src → plugins/specweave-core}/skills/role-orchestrator/README.md +0 -0
  312. /package/{src → plugins/specweave-core}/skills/role-orchestrator/SKILL.md +0 -0
  313. /package/{src → plugins/specweave-core}/skills/task-builder/README.md +0 -0
  314. /package/{src → plugins/specweave-cost-optimizer}/skills/cost-optimizer/SKILL.md +0 -0
  315. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/AGENT.md +0 -0
  316. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-component-template.mmd +0 -0
  317. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-container-template.mmd +0 -0
  318. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-context-template.mmd +0 -0
  319. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/deployment-template.mmd +0 -0
  320. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/er-diagram-template.mmd +0 -0
  321. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/sequence-template.mmd +0 -0
  322. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-1-c4-context.yaml +0 -0
  323. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-2-sequence.yaml +0 -0
  324. /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-3-er-diagram.yaml +0 -0
  325. /package/{src → plugins/specweave-diagrams}/skills/diagrams-architect/SKILL.md +0 -0
  326. /package/{src → plugins/specweave-diagrams}/skills/diagrams-generator/SKILL.md +0 -0
  327. /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/README.md +0 -0
  328. /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/SKILL.md +0 -0
  329. /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/README.md +0 -0
  330. /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/SKILL.md +0 -0
  331. /package/{src → plugins/specweave-frontend}/skills/design-system-architect/SKILL.md +0 -0
  332. /package/{src → plugins/specweave-frontend}/skills/frontend/SKILL.md +0 -0
  333. /package/{src → plugins/specweave-frontend}/skills/nextjs/SKILL.md +0 -0
  334. /package/{src → plugins/specweave-infrastructure}/agents/devops/AGENT.md +0 -0
  335. /package/{src → plugins/specweave-infrastructure}/agents/network-engineer/AGENT.md +0 -0
  336. /package/{src → plugins/specweave-infrastructure}/agents/observability-engineer/AGENT.md +0 -0
  337. /package/{src → plugins/specweave-infrastructure}/agents/performance-engineer/AGENT.md +0 -0
  338. /package/{src → plugins/specweave-infrastructure}/agents/sre/AGENT.md +0 -0
  339. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/backend-diagnostics.md +0 -0
  340. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/database-diagnostics.md +0 -0
  341. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/infrastructure.md +0 -0
  342. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/monitoring.md +0 -0
  343. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/security-incidents.md +0 -0
  344. /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/ui-diagnostics.md +0 -0
  345. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/01-high-cpu-usage.md +0 -0
  346. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/02-database-deadlock.md +0 -0
  347. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/03-memory-leak.md +0 -0
  348. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/04-slow-api-response.md +0 -0
  349. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/05-ddos-attack.md +0 -0
  350. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/06-disk-full.md +0 -0
  351. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/07-service-down.md +0 -0
  352. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/08-data-corruption.md +0 -0
  353. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/09-cascade-failure.md +0 -0
  354. /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/10-rate-limit-exceeded.md +0 -0
  355. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/health-check.sh +0 -0
  356. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/log-analyzer.py +0 -0
  357. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/metrics-collector.sh +0 -0
  358. /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/trace-analyzer.js +0 -0
  359. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/incident-report.md +0 -0
  360. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/mitigation-plan.md +0 -0
  361. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/post-mortem.md +0 -0
  362. /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/runbook-template.md +0 -0
  363. /package/{src → plugins/specweave-infrastructure}/commands/specweave.monitor-setup.md +0 -0
  364. /package/{src → plugins/specweave-infrastructure}/commands/specweave.slo-implement.md +0 -0
  365. /package/{src → plugins/specweave-infrastructure}/skills/distributed-tracing/SKILL.md +0 -0
  366. /package/{src → plugins/specweave-infrastructure}/skills/grafana-dashboards/SKILL.md +0 -0
  367. /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/README.md +0 -0
  368. /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/SKILL.md +0 -0
  369. /package/{src → plugins/specweave-infrastructure}/skills/prometheus-configuration/SKILL.md +0 -0
  370. /package/{src → plugins/specweave-infrastructure}/skills/slo-implementation/SKILL.md +0 -0
  371. /package/{src → plugins/specweave-jira}/skills/jira-sync/README.md +0 -0
  372. /package/{src → plugins/specweave-jira}/skills/jira-sync/SKILL.md +0 -0
  373. /package/{src → plugins/specweave-jira}/skills/specweave-jira-mapper/SKILL.md +0 -0
  374. /package/{src → plugins/specweave-kubernetes}/agents/kubernetes-architect/AGENT.md +0 -0
  375. /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/SKILL.md +0 -0
  376. /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/argocd-setup.md +0 -0
  377. /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/sync-policies.md +0 -0
  378. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/SKILL.md +0 -0
  379. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/Chart.yaml.template +0 -0
  380. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/values.yaml.template +0 -0
  381. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/references/chart-structure.md +0 -0
  382. /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/scripts/validate-chart.sh +0 -0
  383. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/SKILL.md +0 -0
  384. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/configmap-template.yaml +0 -0
  385. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/deployment-template.yaml +0 -0
  386. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/service-template.yaml +0 -0
  387. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/deployment-spec.md +0 -0
  388. /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/service-spec.md +0 -0
  389. /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/SKILL.md +0 -0
  390. /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/assets/network-policy-template.yaml +0 -0
  391. /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/references/rbac-patterns.md +0 -0
  392. /package/{src → plugins/specweave-ml}/agents/data-scientist/AGENT.md +0 -0
  393. /package/{src → plugins/specweave-ml}/agents/mlops-engineer/AGENT.md +0 -0
  394. /package/{src → plugins/specweave-ml}/commands/specweave.ml-pipeline.md +0 -0
  395. /package/{src → plugins/specweave-ml}/skills/ml-pipeline-workflow/SKILL.md +0 -0
  396. /package/{src → plugins/specweave-payments}/agents/payment-integration/AGENT.md +0 -0
  397. /package/{src → plugins/specweave-payments}/skills/billing-automation/SKILL.md +0 -0
  398. /package/{src → plugins/specweave-payments}/skills/paypal-integration/SKILL.md +0 -0
  399. /package/{src → plugins/specweave-payments}/skills/pci-compliance/SKILL.md +0 -0
  400. /package/{src → plugins/specweave-payments}/skills/stripe-integration/SKILL.md +0 -0
  401. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/README.md +0 -0
  402. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/SKILL.md +0 -0
  403. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/execute.js +0 -0
  404. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/lib/utils.js +0 -0
  405. /package/{src → plugins/specweave-testing}/skills/e2e-playwright/package.json +0 -0
  406. /package/{src → plugins/specweave-tooling}/skills/skill-creator/LICENSE.txt +0 -0
  407. /package/{src → plugins/specweave-tooling}/skills/skill-creator/SKILL.md +0 -0
  408. /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/init_skill.py +0 -0
  409. /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/package_skill.py +0 -0
  410. /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/quick_validate.py +0 -0
  411. /package/{src → plugins/specweave-tooling}/skills/skill-router/SKILL.md +0 -0
@@ -0,0 +1,569 @@
1
+ ---
2
+ name: time-series-forecaster
3
+ description: |
4
+ Time series forecasting with ARIMA, Prophet, LSTM, and statistical methods. Activates for "time series", "forecasting", "predict future", "trend analysis", "seasonality", "ARIMA", "Prophet", "sales forecast", "demand prediction", "stock prediction". Handles trend decomposition, seasonality detection, multivariate forecasting, and confidence intervals with SpecWeave increment integration.
5
+ ---
6
+
7
+ # Time Series Forecaster
8
+
9
+ ## Overview
10
+
11
+ Specialized forecasting pipelines for time-dependent data. Handles trend analysis, seasonality detection, and future predictions using statistical methods, machine learning, and deep learning approaches—all integrated with SpecWeave's increment workflow.
12
+
13
+ ## Why Time Series is Different
14
+
15
+ **Standard ML assumptions violated**:
16
+ - ❌ Data is NOT independent (temporal correlation)
17
+ - ❌ Data is NOT identically distributed (trends, seasonality)
18
+ - ❌ Random train/test split is WRONG (breaks temporal order)
19
+
20
+ **Time series requirements**:
21
+ - ✅ Temporal order preserved
22
+ - ✅ No data leakage from future
23
+ - ✅ Stationarity checks
24
+ - ✅ Autocorrelation analysis
25
+ - ✅ Seasonality decomposition
26
+
27
+ ## Forecasting Methods
28
+
29
+ ### 1. Statistical Methods (Baseline)
30
+
31
+ **ARIMA (AutoRegressive Integrated Moving Average)**:
32
+ ```python
33
+ from specweave import TimeSeriesForecaster
34
+
35
+ forecaster = TimeSeriesForecaster(
36
+ method="arima",
37
+ increment="0042"
38
+ )
39
+
40
+ # Automatic order selection (p, d, q)
41
+ forecaster.fit(train_data)
42
+
43
+ # Forecast next 30 periods
44
+ forecast = forecaster.predict(horizon=30)
45
+
46
+ # Generates:
47
+ # - Trend analysis
48
+ # - Seasonality decomposition
49
+ # - Autocorrelation plots (ACF, PACF)
50
+ # - Residual diagnostics
51
+ # - Forecast with confidence intervals
52
+ ```
53
+
54
+ **Seasonal Decomposition**:
55
+ ```python
56
+ # Decompose into trend + seasonal + residual
57
+ decomposition = forecaster.decompose(
58
+ data=sales_data,
59
+ model='multiplicative', # Or 'additive'
60
+ period=12 # Monthly seasonality
61
+ )
62
+
63
+ # Creates:
64
+ # - Trend component plot
65
+ # - Seasonal component plot
66
+ # - Residual component plot
67
+ # - Strength of trend/seasonality metrics
68
+ ```
69
+
70
+ ### 2. Prophet (Facebook)
71
+
72
+ **Best for**: Business time series (sales, website traffic, user growth)
73
+
74
+ ```python
75
+ from specweave import ProphetForecaster
76
+
77
+ forecaster = ProphetForecaster(increment="0042")
78
+
79
+ # Prophet handles:
80
+ # - Multiple seasonality (daily, weekly, yearly)
81
+ # - Holidays and events
82
+ # - Missing data
83
+ # - Outliers
84
+
85
+ forecaster.fit(
86
+ data=sales_data,
87
+ holidays=us_holidays, # Built-in holiday effects
88
+ seasonality_mode='multiplicative'
89
+ )
90
+
91
+ forecast = forecaster.predict(horizon=90)
92
+
93
+ # Generates:
94
+ # - Trend + seasonality + holiday components
95
+ # - Change point detection
96
+ # - Uncertainty intervals
97
+ # - Cross-validation results
98
+ ```
99
+
100
+ **Prophet with Custom Regressors**:
101
+ ```python
102
+ # Add external variables (marketing spend, weather, etc.)
103
+ forecaster.add_regressor("marketing_spend")
104
+ forecaster.add_regressor("temperature")
105
+
106
+ # Prophet incorporates external factors into forecast
107
+ ```
108
+
109
+ ### 3. Deep Learning (LSTM/GRU)
110
+
111
+ **Best for**: Complex patterns, multivariate forecasting, non-linear relationships
112
+
113
+ ```python
114
+ from specweave import LSTMForecaster
115
+
116
+ forecaster = LSTMForecaster(
117
+ lookback_window=30, # Use 30 past observations
118
+ horizon=7, # Predict 7 steps ahead
119
+ increment="0042"
120
+ )
121
+
122
+ # Automatically handles:
123
+ # - Sequence creation
124
+ # - Train/val/test split (temporal)
125
+ # - Scaling
126
+ # - Early stopping
127
+
128
+ forecaster.fit(
129
+ data=sensor_data,
130
+ epochs=100,
131
+ batch_size=32
132
+ )
133
+
134
+ forecast = forecaster.predict(horizon=7)
135
+
136
+ # Generates:
137
+ # - Training history plots
138
+ # - Validation metrics
139
+ # - Attention weights (if using attention)
140
+ # - Forecast uncertainty estimation
141
+ ```
142
+
143
+ ### 4. Multivariate Forecasting
144
+
145
+ **VAR (Vector AutoRegression)** - Multiple related time series:
146
+ ```python
147
+ from specweave import VARForecaster
148
+
149
+ # Forecast multiple related series simultaneously
150
+ forecaster = VARForecaster(increment="0042")
151
+
152
+ # Example: Forecast sales across multiple stores
153
+ # Each store's sales affects others
154
+ forecaster.fit(data={
155
+ 'store_1_sales': store1_data,
156
+ 'store_2_sales': store2_data,
157
+ 'store_3_sales': store3_data
158
+ })
159
+
160
+ forecast = forecaster.predict(horizon=30)
161
+ # Returns forecasts for all 3 stores
162
+ ```
163
+
164
+ ## Time Series Best Practices
165
+
166
+ ### 1. Temporal Train/Test Split
167
+
168
+ ```python
169
+ # ❌ WRONG: Random split (data leakage!)
170
+ X_train, X_test = train_test_split(data, test_size=0.2)
171
+
172
+ # ✅ CORRECT: Temporal split
173
+ split_date = "2024-01-01"
174
+ train = data[data.index < split_date]
175
+ test = data[data.index >= split_date]
176
+
177
+ # Or use last N periods as test
178
+ train = data[:-30] # All but last 30 observations
179
+ test = data[-30:] # Last 30 observations
180
+ ```
181
+
182
+ ### 2. Stationarity Testing
183
+
184
+ ```python
185
+ from specweave import TimeSeriesAnalyzer
186
+
187
+ analyzer = TimeSeriesAnalyzer(increment="0042")
188
+
189
+ # Check stationarity (required for ARIMA)
190
+ stationarity = analyzer.check_stationarity(data)
191
+
192
+ if not stationarity['is_stationary']:
193
+ # Make stationary via differencing
194
+ data_diff = analyzer.difference(data, order=1)
195
+
196
+ # Or detrend
197
+ data_detrended = analyzer.detrend(data)
198
+ ```
199
+
200
+ **Stationarity Report**:
201
+ ```markdown
202
+ # Stationarity Analysis
203
+
204
+ ## ADF Test (Augmented Dickey-Fuller)
205
+ - Test Statistic: -2.15
206
+ - P-value: 0.23
207
+ - Critical Value (5%): -2.89
208
+ - Result: ❌ NON-STATIONARY (p > 0.05)
209
+
210
+ ## Recommendation
211
+ Apply differencing (order=1) to remove trend.
212
+
213
+ After differencing:
214
+ - ADF Test Statistic: -5.42
215
+ - P-value: 0.0001
216
+ - Result: ✅ STATIONARY
217
+ ```
218
+
219
+ ### 3. Seasonality Detection
220
+
221
+ ```python
222
+ # Automatic seasonality detection
223
+ seasonality = analyzer.detect_seasonality(data)
224
+
225
+ # Results:
226
+ # - Daily: False
227
+ # - Weekly: True (period=7)
228
+ # - Monthly: True (period=30)
229
+ # - Yearly: False
230
+ ```
231
+
232
+ ### 4. Cross-Validation for Time Series
233
+
234
+ ```python
235
+ # Time series cross-validation (expanding window)
236
+ cv_results = forecaster.cross_validate(
237
+ data=data,
238
+ horizon=30, # Forecast 30 steps ahead
239
+ n_splits=5, # 5 expanding windows
240
+ metric='mape'
241
+ )
242
+
243
+ # Visualizes:
244
+ # - MAPE across different time periods
245
+ # - Forecast vs actual for each fold
246
+ # - Model stability over time
247
+ ```
248
+
249
+ ### 5. Handling Missing Data
250
+
251
+ ```python
252
+ # Time series-specific imputation
253
+ forecaster.handle_missing(
254
+ method='interpolate', # Or 'forward_fill', 'backward_fill'
255
+ limit=3 # Max consecutive missing values to fill
256
+ )
257
+
258
+ # For seasonal data
259
+ forecaster.handle_missing(
260
+ method='seasonal_interpolate',
261
+ period=12 # Use seasonal pattern to impute
262
+ )
263
+ ```
264
+
265
+ ## Common Time Series Patterns
266
+
267
+ ### Pattern 1: Sales Forecasting
268
+
269
+ ```python
270
+ from specweave import SalesForecastPipeline
271
+
272
+ pipeline = SalesForecastPipeline(increment="0042")
273
+
274
+ # Handles:
275
+ # - Weekly/monthly seasonality
276
+ # - Holiday effects
277
+ # - Marketing campaign impact
278
+ # - Trend changes
279
+
280
+ pipeline.fit(
281
+ sales_data=daily_sales,
282
+ holidays=us_holidays,
283
+ regressors={
284
+ 'marketing_spend': marketing_data,
285
+ 'competitor_price': competitor_data
286
+ }
287
+ )
288
+
289
+ forecast = pipeline.predict(horizon=90) # 90 days ahead
290
+
291
+ # Generates:
292
+ # - Point forecast
293
+ # - Prediction intervals (80%, 95%)
294
+ # - Component analysis (trend, seasonality, regressors)
295
+ # - Anomaly flags for past data
296
+ ```
297
+
298
+ ### Pattern 2: Demand Forecasting
299
+
300
+ ```python
301
+ from specweave import DemandForecastPipeline
302
+
303
+ # Inventory optimization, supply chain planning
304
+ pipeline = DemandForecastPipeline(
305
+ aggregation='daily', # Or 'weekly', 'monthly'
306
+ increment="0042"
307
+ )
308
+
309
+ # Multi-product forecasting
310
+ forecasts = pipeline.fit_predict(
311
+ products=['product_A', 'product_B', 'product_C'],
312
+ horizon=30
313
+ )
314
+
315
+ # Generates:
316
+ # - Demand forecast per product
317
+ # - Confidence intervals
318
+ # - Stockout risk analysis
319
+ # - Reorder point recommendations
320
+ ```
321
+
322
+ ### Pattern 3: Stock Price Prediction
323
+
324
+ ```python
325
+ from specweave import FinancialForecastPipeline
326
+
327
+ # Stock prices, crypto, forex
328
+ pipeline = FinancialForecastPipeline(increment="0042")
329
+
330
+ # Handles:
331
+ # - Volatility clustering
332
+ # - Non-linear patterns
333
+ # - Technical indicators
334
+
335
+ pipeline.fit(
336
+ price_data=stock_prices,
337
+ features=['volume', 'volatility', 'RSI', 'MACD']
338
+ )
339
+
340
+ forecast = pipeline.predict(horizon=7)
341
+
342
+ # Generates:
343
+ # - Price forecast with confidence bands
344
+ # - Volatility forecast (GARCH)
345
+ # - Trading signals (optional)
346
+ # - Risk metrics
347
+ ```
348
+
349
+ ### Pattern 4: Sensor Data / IoT
350
+
351
+ ```python
352
+ from specweave import SensorForecastPipeline
353
+
354
+ # Temperature, humidity, machine metrics
355
+ pipeline = SensorForecastPipeline(
356
+ method='lstm', # Deep learning for complex patterns
357
+ increment="0042"
358
+ )
359
+
360
+ # Multivariate: Multiple sensor readings
361
+ pipeline.fit(
362
+ sensors={
363
+ 'temperature': temp_data,
364
+ 'humidity': humidity_data,
365
+ 'pressure': pressure_data
366
+ }
367
+ )
368
+
369
+ forecast = pipeline.predict(horizon=24) # 24 hours ahead
370
+
371
+ # Generates:
372
+ # - Multi-sensor forecasts
373
+ # - Anomaly detection (unexpected values)
374
+ # - Maintenance alerts
375
+ ```
376
+
377
+ ## Evaluation Metrics
378
+
379
+ **Time series-specific metrics**:
380
+
381
+ ```python
382
+ from specweave import TimeSeriesEvaluator
383
+
384
+ evaluator = TimeSeriesEvaluator(increment="0042")
385
+
386
+ metrics = evaluator.evaluate(
387
+ y_true=test_data,
388
+ y_pred=forecast
389
+ )
390
+
391
+ # Metrics:
392
+ # - MAPE (Mean Absolute Percentage Error) - business-friendly
393
+ # - RMSE (Root Mean Squared Error) - penalizes large errors
394
+ # - MAE (Mean Absolute Error) - robust to outliers
395
+ # - MASE (Mean Absolute Scaled Error) - scale-independent
396
+ # - Directional Accuracy - did we predict up/down correctly?
397
+ ```
398
+
399
+ **Evaluation Report**:
400
+ ```markdown
401
+ # Time Series Forecast Evaluation
402
+
403
+ ## Point Metrics
404
+ - MAPE: 8.2% (target: <10%) ✅
405
+ - RMSE: 124.5
406
+ - MAE: 98.3
407
+ - MASE: 0.85 (< 1 = better than naive forecast) ✅
408
+
409
+ ## Directional Accuracy
410
+ - Correct direction: 73% (up/down predictions)
411
+
412
+ ## Forecast Bias
413
+ - Mean Error: -5.2 (slight under-forecasting)
414
+ - Bias: -2.1%
415
+
416
+ ## Confidence Intervals
417
+ - 80% interval coverage: 79.2% ✅
418
+ - 95% interval coverage: 94.1% ✅
419
+
420
+ ## Recommendation
421
+ ✅ DEPLOY: Model meets accuracy targets and is well-calibrated.
422
+ ```
423
+
424
+ ## Integration with SpecWeave
425
+
426
+ ### Increment Structure
427
+
428
+ ```
429
+ .specweave/increments/0042-sales-forecast/
430
+ ├── spec.md (forecasting requirements, accuracy targets)
431
+ ├── plan.md (forecasting strategy, method selection)
432
+ ├── tasks.md
433
+ ├── data/
434
+ │ ├── train_data.csv
435
+ │ ├── test_data.csv
436
+ │ └── schema.yaml
437
+ ├── experiments/
438
+ │ ├── arima-baseline/
439
+ │ ├── prophet-holidays/
440
+ │ └── lstm-multivariate/
441
+ ├── models/
442
+ │ ├── prophet_model.pkl
443
+ │ └── lstm_model.h5
444
+ ├── forecasts/
445
+ │ ├── forecast_2024-01.csv
446
+ │ ├── forecast_2024-02.csv
447
+ │ └── forecast_with_intervals.csv
448
+ └── analysis/
449
+ ├── stationarity_test.md
450
+ ├── seasonality_decomposition.png
451
+ └── forecast_evaluation.md
452
+ ```
453
+
454
+ ### Living Docs Integration
455
+
456
+ ```bash
457
+ /specweave:sync-docs update
458
+ ```
459
+
460
+ Updates:
461
+ ```markdown
462
+ <!-- .specweave/docs/internal/architecture/time-series-forecasting.md -->
463
+
464
+ ## Sales Forecasting Model (Increment 0042)
465
+
466
+ ### Method Selected: Prophet
467
+ - Reason: Handles multiple seasonality + holidays well
468
+ - Alternatives tried: ARIMA (MAPE 12%), LSTM (MAPE 10%)
469
+ - Prophet: MAPE 8.2% ✅ BEST
470
+
471
+ ### Seasonality Detected
472
+ - Weekly: Strong (7-day cycle)
473
+ - Monthly: Moderate (30-day cycle)
474
+ - Yearly: Weak
475
+
476
+ ### Holiday Effects
477
+ - Black Friday: +180% sales (strongest)
478
+ - Christmas: +120% sales
479
+ - Thanksgiving: +80% sales
480
+
481
+ ### Forecast Horizon
482
+ - 90 days ahead
483
+ - Confidence intervals: 80%, 95%
484
+ - Update frequency: Weekly retraining
485
+
486
+ ### Model Performance
487
+ - MAPE: 8.2% (target: <10%)
488
+ - Directional accuracy: 73%
489
+ - Deployed: 2024-01-15
490
+ ```
491
+
492
+ ## Commands
493
+
494
+ ```bash
495
+ # Create time series forecast
496
+ /ml:forecast --horizon 30 --method prophet
497
+
498
+ # Evaluate forecast
499
+ /ml:evaluate-forecast 0042
500
+
501
+ # Decompose time series
502
+ /ml:decompose-timeseries 0042
503
+ ```
504
+
505
+ ## Advanced Features
506
+
507
+ ### 1. Ensemble Forecasting
508
+
509
+ ```python
510
+ # Combine multiple methods for robustness
511
+ ensemble = EnsembleForecast(increment="0042")
512
+
513
+ ensemble.add_forecaster("arima", weight=0.3)
514
+ ensemble.add_forecaster("prophet", weight=0.5)
515
+ ensemble.add_forecaster("lstm", weight=0.2)
516
+
517
+ # Weighted average of all forecasts
518
+ forecast = ensemble.predict(horizon=30)
519
+
520
+ # Ensemble typically 10-20% more accurate than single model
521
+ ```
522
+
523
+ ### 2. Forecast Reconciliation
524
+
525
+ ```python
526
+ # For hierarchical time series (e.g., total sales = store1 + store2 + store3)
527
+ reconciler = ForecastReconciler(increment="0042")
528
+
529
+ # Ensures forecasts sum correctly
530
+ reconciled = reconciler.reconcile(
531
+ forecasts={
532
+ 'total': total_forecast,
533
+ 'store1': store1_forecast,
534
+ 'store2': store2_forecast,
535
+ 'store3': store3_forecast
536
+ },
537
+ method='bottom_up' # Or 'top_down', 'middle_out'
538
+ )
539
+ ```
540
+
541
+ ### 3. Forecast Monitoring
542
+
543
+ ```python
544
+ # Track forecast accuracy over time
545
+ monitor = ForecastMonitor(increment="0042")
546
+
547
+ # Compare forecasts vs actuals
548
+ monitor.track_performance(
549
+ forecasts=past_forecasts,
550
+ actuals=actual_values
551
+ )
552
+
553
+ # Alerts when accuracy degrades
554
+ if monitor.accuracy_degraded():
555
+ print("⚠️ Forecast accuracy dropped 15% - retrain model!")
556
+ ```
557
+
558
+ ## Summary
559
+
560
+ Time series forecasting requires specialized techniques:
561
+ - ✅ Temporal validation (no random split)
562
+ - ✅ Stationarity testing
563
+ - ✅ Seasonality detection
564
+ - ✅ Trend decomposition
565
+ - ✅ Cross-validation (expanding window)
566
+ - ✅ Confidence intervals
567
+ - ✅ Forecast monitoring
568
+
569
+ This skill handles all time series complexity within SpecWeave's increment workflow, ensuring forecasts are reproducible, documented, and production-ready.
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "specweave-payments",
3
+ "description": "Payment processing integration for Stripe, PayPal, and billing automation. Includes checkout flows, subscription lifecycle management, PCI DSS compliance guidance, and recurring billing. Focus on production-ready payment systems.",
4
+ "version": "1.0.0",
5
+ "author": {
6
+ "name": "SpecWeave Team"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "specweave-testing",
3
+ "description": "End-to-end browser testing with Playwright. Validates user flows, captures screenshots, checks accessibility, and visual regression. Test execution infrastructure for SpecWeave increments.",
4
+ "version": "1.0.0",
5
+ "author": {
6
+ "name": "SpecWeave Team"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "specweave-tooling",
3
+ "description": "SpecWeave skill development and orchestration tools. Create new skills with proper structure, test cases, and activation triggers. Includes skill router for intelligent skill activation based on context. Meta-tooling for extending SpecWeave.",
4
+ "version": "1.0.0",
5
+ "author": {
6
+ "name": "SpecWeave Team"
7
+ }
8
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "specweave-ui",
3
+ "description": "Complete UI/UX development toolkit - Playwright E2E testing, Figma design integration, React/Vue/Angular development, design systems, Storybook component testing. Auto-activates for frontend projects.",
4
+ "version": "1.0.0",
5
+ "author": {
6
+ "name": "Anton Abyzov",
7
+ "email": "anton@spec-weave.com",
8
+ "url": "https://spec-weave.com"
9
+ },
10
+ "license": "MIT",
11
+ "homepage": "https://spec-weave.com/plugins/ui",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/anton-abyzov/specweave.git",
15
+ "directory": "src/plugins/specweave-ui"
16
+ },
17
+ "keywords": [
18
+ "ui",
19
+ "ux",
20
+ "playwright",
21
+ "figma",
22
+ "react",
23
+ "nextjs",
24
+ "design-system",
25
+ "e2e-testing",
26
+ "storybook",
27
+ "frontend"
28
+ ],
29
+ "specweave": {
30
+ "core_version": ">=0.4.0",
31
+ "plugin_type": "domain",
32
+ "category": "ui-ux"
33
+ },
34
+ "provides": {
35
+ "skills": [
36
+ "e2e-playwright",
37
+ "figma-designer",
38
+ "figma-implementer",
39
+ "figma-mcp-connector",
40
+ "design-system-architect",
41
+ "frontend",
42
+ "nextjs"
43
+ ],
44
+ "agents": [
45
+ "ui-ux-specialist"
46
+ ],
47
+ "commands": [
48
+ "ui.test",
49
+ "ui.design",
50
+ "ui.implement"
51
+ ]
52
+ },
53
+ "auto_detect": {
54
+ "packages": [
55
+ "@playwright/test",
56
+ "playwright",
57
+ "figma",
58
+ "@figma/rest-api-types",
59
+ "react",
60
+ "react-dom",
61
+ "next",
62
+ "vue",
63
+ "@angular/core",
64
+ "@storybook/react",
65
+ "@storybook/vue",
66
+ "@storybook/angular"
67
+ ],
68
+ "files": [
69
+ "playwright.config.ts",
70
+ "playwright.config.js",
71
+ "figma.config.json",
72
+ ".storybook/",
73
+ "next.config.js",
74
+ "next.config.ts"
75
+ ],
76
+ "triggers": [
77
+ "playwright",
78
+ "e2e",
79
+ "end-to-end",
80
+ "figma",
81
+ "design",
82
+ "ui",
83
+ "ux",
84
+ "frontend",
85
+ "react",
86
+ "next",
87
+ "vue",
88
+ "angular",
89
+ "storybook",
90
+ "design system",
91
+ "component library"
92
+ ]
93
+ },
94
+ "dependencies": {
95
+ "mcp_servers": {
96
+ "browserbase": {
97
+ "optional": true,
98
+ "description": "Cloud browser automation for Playwright tests",
99
+ "env_vars": [
100
+ "BROWSERBASE_API_KEY",
101
+ "BROWSERBASE_PROJECT_ID"
102
+ ]
103
+ }
104
+ }
105
+ }
106
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "mcpServers": {
3
+ "browserbase": {
4
+ "command": "npx",
5
+ "args": ["-y", "@browserbasehq/mcp-server-browserbase"],
6
+ "env": {
7
+ "BROWSERBASE_API_KEY": "${BROWSERBASE_API_KEY}",
8
+ "BROWSERBASE_PROJECT_ID": "${BROWSERBASE_PROJECT_ID}"
9
+ },
10
+ "description": "Cloud browser automation for running Playwright tests in scalable infrastructure",
11
+ "optional": true
12
+ }
13
+ }
14
+ }