specweave 0.18.1 → 0.20.1

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 (389) hide show
  1. package/CLAUDE.md +229 -1817
  2. package/README.md +68 -0
  3. package/bin/specweave.js +62 -6
  4. package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -1
  5. package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +3 -0
  6. package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -1
  7. package/dist/plugins/specweave/lib/hooks/update-ac-status.d.ts +21 -0
  8. package/dist/plugins/specweave/lib/hooks/update-ac-status.d.ts.map +1 -0
  9. package/dist/plugins/specweave/lib/hooks/update-ac-status.js +162 -0
  10. package/dist/plugins/specweave/lib/hooks/update-ac-status.js.map +1 -0
  11. package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.d.ts.map +1 -1
  12. package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.js +65 -6
  13. package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.js.map +1 -1
  14. package/dist/plugins/specweave-github/lib/completion-calculator.d.ts +112 -0
  15. package/dist/plugins/specweave-github/lib/completion-calculator.d.ts.map +1 -0
  16. package/dist/plugins/specweave-github/lib/completion-calculator.js +301 -0
  17. package/dist/plugins/specweave-github/lib/completion-calculator.js.map +1 -0
  18. package/dist/plugins/specweave-github/lib/duplicate-detector.d.ts +3 -3
  19. package/dist/plugins/specweave-github/lib/duplicate-detector.js +3 -3
  20. package/dist/plugins/specweave-github/lib/epic-content-builder.d.ts +7 -0
  21. package/dist/plugins/specweave-github/lib/epic-content-builder.d.ts.map +1 -1
  22. package/dist/plugins/specweave-github/lib/epic-content-builder.js +42 -0
  23. package/dist/plugins/specweave-github/lib/epic-content-builder.js.map +1 -1
  24. package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +14 -0
  25. package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -1
  26. package/dist/plugins/specweave-github/lib/github-client-v2.js +51 -0
  27. package/dist/plugins/specweave-github/lib/github-client-v2.js.map +1 -1
  28. package/dist/plugins/specweave-github/lib/github-epic-sync.js +1 -1
  29. package/dist/plugins/specweave-github/lib/github-epic-sync.js.map +1 -1
  30. package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts +87 -0
  31. package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts.map +1 -0
  32. package/dist/plugins/specweave-github/lib/github-feature-sync.js +412 -0
  33. package/dist/plugins/specweave-github/lib/github-feature-sync.js.map +1 -0
  34. package/dist/plugins/specweave-github/lib/github-spec-content-sync.d.ts.map +1 -1
  35. package/dist/plugins/specweave-github/lib/github-spec-content-sync.js +64 -13
  36. package/dist/plugins/specweave-github/lib/github-spec-content-sync.js.map +1 -1
  37. package/dist/plugins/specweave-github/lib/progress-comment-builder.d.ts +78 -0
  38. package/dist/plugins/specweave-github/lib/progress-comment-builder.d.ts.map +1 -0
  39. package/dist/plugins/specweave-github/lib/progress-comment-builder.js +237 -0
  40. package/dist/plugins/specweave-github/lib/progress-comment-builder.js.map +1 -0
  41. package/dist/plugins/specweave-github/lib/user-story-content-builder.d.ts +97 -0
  42. package/dist/plugins/specweave-github/lib/user-story-content-builder.d.ts.map +1 -0
  43. package/dist/plugins/specweave-github/lib/user-story-content-builder.js +301 -0
  44. package/dist/plugins/specweave-github/lib/user-story-content-builder.js.map +1 -0
  45. package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts +83 -0
  46. package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts.map +1 -0
  47. package/dist/plugins/specweave-github/lib/user-story-issue-builder.js +386 -0
  48. package/dist/plugins/specweave-github/lib/user-story-issue-builder.js.map +1 -0
  49. package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts +8 -6
  50. package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts.map +1 -1
  51. package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js +78 -117
  52. package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js.map +1 -1
  53. package/dist/src/cli/commands/import-docs.js +4 -4
  54. package/dist/src/cli/commands/import-docs.js.map +1 -1
  55. package/dist/src/cli/commands/init-multiproject.d.ts.map +1 -1
  56. package/dist/src/cli/commands/init-multiproject.js +17 -18
  57. package/dist/src/cli/commands/init-multiproject.js.map +1 -1
  58. package/dist/src/cli/commands/migrate-to-multiproject.d.ts.map +1 -1
  59. package/dist/src/cli/commands/migrate-to-multiproject.js +8 -4
  60. package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -1
  61. package/dist/src/cli/commands/switch-project.d.ts.map +1 -1
  62. package/dist/src/cli/commands/switch-project.js +9 -26
  63. package/dist/src/cli/commands/switch-project.js.map +1 -1
  64. package/dist/src/cli/commands/sync-spec-content.js +3 -0
  65. package/dist/src/cli/commands/sync-spec-content.js.map +1 -1
  66. package/dist/src/core/deduplication/command-deduplicator.d.ts +166 -0
  67. package/dist/src/core/deduplication/command-deduplicator.d.ts.map +1 -0
  68. package/dist/src/core/deduplication/command-deduplicator.js +254 -0
  69. package/dist/src/core/deduplication/command-deduplicator.js.map +1 -0
  70. package/dist/src/core/increment/active-increment-manager.d.ts +42 -15
  71. package/dist/src/core/increment/active-increment-manager.d.ts.map +1 -1
  72. package/dist/src/core/increment/active-increment-manager.js +113 -46
  73. package/dist/src/core/increment/active-increment-manager.js.map +1 -1
  74. package/dist/src/core/increment/conflict-resolver.d.ts +40 -0
  75. package/dist/src/core/increment/conflict-resolver.d.ts.map +1 -0
  76. package/dist/src/core/increment/conflict-resolver.js +219 -0
  77. package/dist/src/core/increment/conflict-resolver.js.map +1 -0
  78. package/dist/src/core/increment/discipline-checker.d.ts.map +1 -1
  79. package/dist/src/core/increment/discipline-checker.js +7 -1
  80. package/dist/src/core/increment/discipline-checker.js.map +1 -1
  81. package/dist/src/core/increment/duplicate-detector.d.ts +52 -0
  82. package/dist/src/core/increment/duplicate-detector.d.ts.map +1 -0
  83. package/dist/src/core/increment/duplicate-detector.js +276 -0
  84. package/dist/src/core/increment/duplicate-detector.js.map +1 -0
  85. package/dist/src/core/increment/increment-archiver.d.ts +90 -0
  86. package/dist/src/core/increment/increment-archiver.d.ts.map +1 -0
  87. package/dist/src/core/increment/increment-archiver.js +368 -0
  88. package/dist/src/core/increment/increment-archiver.js.map +1 -0
  89. package/dist/src/core/increment/increment-reopener.d.ts +165 -0
  90. package/dist/src/core/increment/increment-reopener.d.ts.map +1 -0
  91. package/dist/src/core/increment/increment-reopener.js +390 -0
  92. package/dist/src/core/increment/increment-reopener.js.map +1 -0
  93. package/dist/src/core/increment/metadata-manager.d.ts +26 -1
  94. package/dist/src/core/increment/metadata-manager.d.ts.map +1 -1
  95. package/dist/src/core/increment/metadata-manager.js +143 -5
  96. package/dist/src/core/increment/metadata-manager.js.map +1 -1
  97. package/dist/src/core/increment/recent-work-scanner.d.ts +121 -0
  98. package/dist/src/core/increment/recent-work-scanner.d.ts.map +1 -0
  99. package/dist/src/core/increment/recent-work-scanner.js +303 -0
  100. package/dist/src/core/increment/recent-work-scanner.js.map +1 -0
  101. package/dist/src/core/increment/types.d.ts +1 -0
  102. package/dist/src/core/increment/types.d.ts.map +1 -1
  103. package/dist/src/core/increment-utils.d.ts +112 -0
  104. package/dist/src/core/increment-utils.d.ts.map +1 -0
  105. package/dist/src/core/increment-utils.js +210 -0
  106. package/dist/src/core/increment-utils.js.map +1 -0
  107. package/dist/src/core/living-docs/ac-project-specific-generator.d.ts +65 -0
  108. package/dist/src/core/living-docs/ac-project-specific-generator.d.ts.map +1 -0
  109. package/dist/src/core/living-docs/ac-project-specific-generator.js +175 -0
  110. package/dist/src/core/living-docs/ac-project-specific-generator.js.map +1 -0
  111. package/dist/src/core/living-docs/feature-archiver.d.ts +130 -0
  112. package/dist/src/core/living-docs/feature-archiver.d.ts.map +1 -0
  113. package/dist/src/core/living-docs/feature-archiver.js +549 -0
  114. package/dist/src/core/living-docs/feature-archiver.js.map +1 -0
  115. package/dist/src/core/living-docs/feature-id-manager.d.ts +81 -0
  116. package/dist/src/core/living-docs/feature-id-manager.d.ts.map +1 -0
  117. package/dist/src/core/living-docs/feature-id-manager.js +339 -0
  118. package/dist/src/core/living-docs/feature-id-manager.js.map +1 -0
  119. package/dist/src/core/living-docs/hierarchy-mapper.d.ts +144 -83
  120. package/dist/src/core/living-docs/hierarchy-mapper.d.ts.map +1 -1
  121. package/dist/src/core/living-docs/hierarchy-mapper.js +488 -270
  122. package/dist/src/core/living-docs/hierarchy-mapper.js.map +1 -1
  123. package/dist/src/core/living-docs/index.d.ts +6 -0
  124. package/dist/src/core/living-docs/index.d.ts.map +1 -1
  125. package/dist/src/core/living-docs/index.js +6 -0
  126. package/dist/src/core/living-docs/index.js.map +1 -1
  127. package/dist/src/core/living-docs/project-detector.d.ts +6 -0
  128. package/dist/src/core/living-docs/project-detector.d.ts.map +1 -1
  129. package/dist/src/core/living-docs/project-detector.js +35 -1
  130. package/dist/src/core/living-docs/project-detector.js.map +1 -1
  131. package/dist/src/core/living-docs/spec-distributor.d.ts +100 -26
  132. package/dist/src/core/living-docs/spec-distributor.d.ts.map +1 -1
  133. package/dist/src/core/living-docs/spec-distributor.js +1275 -258
  134. package/dist/src/core/living-docs/spec-distributor.js.map +1 -1
  135. package/dist/src/core/living-docs/task-project-specific-generator.d.ts +109 -0
  136. package/dist/src/core/living-docs/task-project-specific-generator.d.ts.map +1 -0
  137. package/dist/src/core/living-docs/task-project-specific-generator.js +221 -0
  138. package/dist/src/core/living-docs/task-project-specific-generator.js.map +1 -0
  139. package/dist/src/core/living-docs/types.d.ts +143 -0
  140. package/dist/src/core/living-docs/types.d.ts.map +1 -1
  141. package/dist/src/core/project-manager.d.ts +2 -17
  142. package/dist/src/core/project-manager.d.ts.map +1 -1
  143. package/dist/src/core/project-manager.js +68 -48
  144. package/dist/src/core/project-manager.js.map +1 -1
  145. package/dist/src/core/spec-content-sync.d.ts +1 -1
  146. package/dist/src/core/spec-content-sync.d.ts.map +1 -1
  147. package/dist/src/core/sync/enhanced-content-builder.d.ts.map +1 -1
  148. package/dist/src/core/sync/enhanced-content-builder.js +2 -1
  149. package/dist/src/core/sync/enhanced-content-builder.js.map +1 -1
  150. package/dist/src/core/sync/performance-optimizer.d.ts +153 -0
  151. package/dist/src/core/sync/performance-optimizer.d.ts.map +1 -0
  152. package/dist/src/core/sync/performance-optimizer.js +220 -0
  153. package/dist/src/core/sync/performance-optimizer.js.map +1 -0
  154. package/dist/src/core/sync/retry-handler.d.ts +98 -0
  155. package/dist/src/core/sync/retry-handler.d.ts.map +1 -0
  156. package/dist/src/core/sync/retry-handler.js +196 -0
  157. package/dist/src/core/sync/retry-handler.js.map +1 -0
  158. package/dist/src/core/types/config.d.ts +94 -0
  159. package/dist/src/core/types/config.d.ts.map +1 -1
  160. package/dist/src/core/types/config.js +16 -0
  161. package/dist/src/core/types/config.js.map +1 -1
  162. package/dist/src/core/types/increment-metadata.d.ts +6 -0
  163. package/dist/src/core/types/increment-metadata.d.ts.map +1 -1
  164. package/dist/src/core/types/increment-metadata.js +10 -1
  165. package/dist/src/core/types/increment-metadata.js.map +1 -1
  166. package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +1 -1
  167. package/dist/src/integrations/jira/jira-incremental-mapper.js +4 -8
  168. package/dist/src/integrations/jira/jira-incremental-mapper.js.map +1 -1
  169. package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -1
  170. package/dist/src/integrations/jira/jira-mapper.js +4 -8
  171. package/dist/src/integrations/jira/jira-mapper.js.map +1 -1
  172. package/package.json +1 -1
  173. package/plugins/specweave/COMMANDS.md +13 -4
  174. package/plugins/specweave/commands/specweave-abandon.md +22 -20
  175. package/plugins/specweave/commands/specweave-archive-features.md +121 -0
  176. package/plugins/specweave/commands/specweave-archive-increments.md +82 -0
  177. package/plugins/specweave/commands/specweave-archive.md +363 -0
  178. package/plugins/specweave/commands/specweave-backlog.md +211 -0
  179. package/plugins/specweave/commands/specweave-fix-duplicates.md +517 -0
  180. package/plugins/specweave/commands/specweave-increment.md +4 -3
  181. package/plugins/specweave/commands/specweave-progress.md +176 -27
  182. package/plugins/specweave/commands/specweave-reopen.md +391 -0
  183. package/plugins/specweave/commands/specweave-restore-feature.md +90 -0
  184. package/plugins/specweave/commands/specweave-restore.md +309 -0
  185. package/plugins/specweave/commands/specweave-resume.md +51 -23
  186. package/plugins/specweave/commands/specweave-status.md +41 -7
  187. package/plugins/specweave/commands/specweave-sync-specs.md +425 -0
  188. package/plugins/specweave/hooks/hooks.json +4 -0
  189. package/plugins/specweave/hooks/lib/sync-spec-content.sh +2 -2
  190. package/plugins/specweave/hooks/post-task-completion.sh +39 -0
  191. package/plugins/specweave/hooks/pre-command-deduplication.sh +83 -0
  192. package/plugins/specweave/hooks/user-prompt-submit.sh +1 -1
  193. package/plugins/specweave/lib/hooks/sync-living-docs.js +2 -0
  194. package/plugins/specweave/lib/hooks/sync-living-docs.ts +4 -0
  195. package/plugins/specweave/lib/hooks/update-ac-status.js +102 -0
  196. package/plugins/specweave/lib/hooks/update-ac-status.ts +192 -0
  197. package/plugins/specweave/skills/archive-increments/SKILL.md +198 -0
  198. package/plugins/specweave/skills/increment-planner/scripts/feature-utils.js +14 -0
  199. package/plugins/specweave/skills/smart-reopen-detector/SKILL.md +244 -0
  200. package/plugins/specweave-ado/lib/ado-spec-content-sync.js +49 -5
  201. package/plugins/specweave-ado/lib/ado-spec-content-sync.ts +72 -6
  202. package/plugins/specweave-confluent/.claude-plugin/plugin.json +23 -0
  203. package/plugins/specweave-confluent/README.md +375 -0
  204. package/plugins/specweave-confluent/agents/confluent-architect/AGENT.md +306 -0
  205. package/plugins/specweave-confluent/skills/confluent-kafka-connect/SKILL.md +453 -0
  206. package/plugins/specweave-confluent/skills/confluent-ksqldb/SKILL.md +470 -0
  207. package/plugins/specweave-confluent/skills/confluent-schema-registry/SKILL.md +316 -0
  208. package/plugins/specweave-github/agents/github-task-splitter/AGENT.md +2 -2
  209. package/plugins/specweave-github/agents/user-story-updater/AGENT.md +148 -0
  210. package/plugins/specweave-github/commands/specweave-github-cleanup-duplicates.md +1 -1
  211. package/plugins/specweave-github/commands/specweave-github-update-user-story.md +156 -0
  212. package/plugins/specweave-github/hooks/post-task-completion.sh +10 -9
  213. package/plugins/specweave-github/lib/completion-calculator.js +262 -0
  214. package/plugins/specweave-github/lib/completion-calculator.ts +434 -0
  215. package/plugins/specweave-github/lib/duplicate-detector.js +3 -3
  216. package/plugins/specweave-github/lib/duplicate-detector.ts +4 -4
  217. package/plugins/specweave-github/lib/epic-content-builder.js +38 -0
  218. package/plugins/specweave-github/lib/epic-content-builder.ts +59 -0
  219. package/plugins/specweave-github/lib/github-client-v2.js +49 -0
  220. package/plugins/specweave-github/lib/github-client-v2.ts +59 -0
  221. package/plugins/specweave-github/lib/github-epic-sync.ts +1 -1
  222. package/plugins/specweave-github/lib/github-feature-sync.js +381 -0
  223. package/plugins/specweave-github/lib/github-feature-sync.ts +568 -0
  224. package/plugins/specweave-github/lib/github-spec-content-sync.js +40 -10
  225. package/plugins/specweave-github/lib/github-spec-content-sync.ts +82 -14
  226. package/plugins/specweave-github/lib/progress-comment-builder.js +229 -0
  227. package/plugins/specweave-github/lib/progress-comment-builder.ts +324 -0
  228. package/plugins/specweave-github/lib/user-story-content-builder.js +299 -0
  229. package/plugins/specweave-github/lib/user-story-content-builder.ts +413 -0
  230. package/plugins/specweave-github/lib/user-story-issue-builder.js +344 -0
  231. package/plugins/specweave-github/lib/user-story-issue-builder.ts +543 -0
  232. package/plugins/specweave-github/skills/github-issue-standard/SKILL.md +189 -0
  233. package/plugins/{specweave-ado/lib/enhanced-ado-sync.js → specweave-jira/lib/enhanced-jira-sync.js} +25 -61
  234. package/plugins/specweave-jira/lib/{enhanced-jira-sync.ts.disabled → enhanced-jira-sync.ts} +26 -52
  235. package/plugins/specweave-kafka/.claude-plugin/plugin.json +26 -0
  236. package/plugins/specweave-kafka/IMPLEMENTATION-COMPLETE.md +483 -0
  237. package/plugins/specweave-kafka/README.md +242 -0
  238. package/plugins/specweave-kafka/agents/kafka-architect/AGENT.md +235 -0
  239. package/plugins/specweave-kafka/agents/kafka-devops/AGENT.md +209 -0
  240. package/plugins/specweave-kafka/agents/kafka-observability/AGENT.md +266 -0
  241. package/plugins/specweave-kafka/commands/deploy.md +99 -0
  242. package/plugins/specweave-kafka/commands/dev-env.md +176 -0
  243. package/plugins/specweave-kafka/commands/mcp-configure.md +101 -0
  244. package/plugins/specweave-kafka/commands/monitor-setup.md +96 -0
  245. package/plugins/specweave-kafka/docker/kafka-local/docker-compose.yml +187 -0
  246. package/plugins/specweave-kafka/docker/redpanda/docker-compose.yml +199 -0
  247. package/plugins/specweave-kafka/docker/templates/consumer-nodejs.js +225 -0
  248. package/plugins/specweave-kafka/docker/templates/consumer-python.py +220 -0
  249. package/plugins/specweave-kafka/docker/templates/producer-nodejs.js +168 -0
  250. package/plugins/specweave-kafka/docker/templates/producer-python.py +167 -0
  251. package/plugins/specweave-kafka/lib/adapters/apache-kafka-adapter.js +438 -0
  252. package/plugins/specweave-kafka/lib/adapters/apache-kafka-adapter.ts +541 -0
  253. package/plugins/specweave-kafka/lib/adapters/platform-adapter.js +47 -0
  254. package/plugins/specweave-kafka/lib/adapters/platform-adapter.ts +343 -0
  255. package/plugins/specweave-kafka/lib/cli/kcat-wrapper.js +258 -0
  256. package/plugins/specweave-kafka/lib/cli/kcat-wrapper.ts +298 -0
  257. package/plugins/specweave-kafka/lib/cli/types.js +10 -0
  258. package/plugins/specweave-kafka/lib/cli/types.ts +92 -0
  259. package/plugins/specweave-kafka/lib/connectors/connector-catalog.js +305 -0
  260. package/plugins/specweave-kafka/lib/connectors/connector-catalog.ts +528 -0
  261. package/plugins/specweave-kafka/lib/documentation/diagram-generator.js +114 -0
  262. package/plugins/specweave-kafka/lib/documentation/diagram-generator.ts +195 -0
  263. package/plugins/specweave-kafka/lib/documentation/exporter.js +210 -0
  264. package/plugins/specweave-kafka/lib/documentation/exporter.ts +338 -0
  265. package/plugins/specweave-kafka/lib/documentation/schema-catalog-generator.js +60 -0
  266. package/plugins/specweave-kafka/lib/documentation/schema-catalog-generator.ts +130 -0
  267. package/plugins/specweave-kafka/lib/documentation/topology-generator.js +143 -0
  268. package/plugins/specweave-kafka/lib/documentation/topology-generator.ts +290 -0
  269. package/plugins/specweave-kafka/lib/mcp/detector.js +298 -0
  270. package/plugins/specweave-kafka/lib/mcp/detector.ts +352 -0
  271. package/plugins/specweave-kafka/lib/mcp/types.js +21 -0
  272. package/plugins/specweave-kafka/lib/mcp/types.ts +77 -0
  273. package/plugins/specweave-kafka/lib/multi-cluster/cluster-config-manager.js +193 -0
  274. package/plugins/specweave-kafka/lib/multi-cluster/cluster-config-manager.ts +362 -0
  275. package/plugins/specweave-kafka/lib/multi-cluster/cluster-switcher.js +188 -0
  276. package/plugins/specweave-kafka/lib/multi-cluster/cluster-switcher.ts +359 -0
  277. package/plugins/specweave-kafka/lib/multi-cluster/health-aggregator.js +195 -0
  278. package/plugins/specweave-kafka/lib/multi-cluster/health-aggregator.ts +380 -0
  279. package/plugins/specweave-kafka/lib/observability/opentelemetry-kafka.js +209 -0
  280. package/plugins/specweave-kafka/lib/observability/opentelemetry-kafka.ts +358 -0
  281. package/plugins/specweave-kafka/lib/patterns/advanced-ksqldb-patterns.js +354 -0
  282. package/plugins/specweave-kafka/lib/patterns/advanced-ksqldb-patterns.ts +563 -0
  283. package/plugins/specweave-kafka/lib/patterns/circuit-breaker-resilience.js +259 -0
  284. package/plugins/specweave-kafka/lib/patterns/circuit-breaker-resilience.ts +516 -0
  285. package/plugins/specweave-kafka/lib/patterns/dead-letter-queue.js +233 -0
  286. package/plugins/specweave-kafka/lib/patterns/dead-letter-queue.ts +423 -0
  287. package/plugins/specweave-kafka/lib/patterns/exactly-once-semantics.js +266 -0
  288. package/plugins/specweave-kafka/lib/patterns/exactly-once-semantics.ts +445 -0
  289. package/plugins/specweave-kafka/lib/patterns/flink-kafka-integration.js +312 -0
  290. package/plugins/specweave-kafka/lib/patterns/flink-kafka-integration.ts +561 -0
  291. package/plugins/specweave-kafka/lib/patterns/multi-dc-replication.js +289 -0
  292. package/plugins/specweave-kafka/lib/patterns/multi-dc-replication.ts +607 -0
  293. package/plugins/specweave-kafka/lib/patterns/rate-limiting-backpressure.js +264 -0
  294. package/plugins/specweave-kafka/lib/patterns/rate-limiting-backpressure.ts +498 -0
  295. package/plugins/specweave-kafka/lib/patterns/stream-processing-optimization.js +263 -0
  296. package/plugins/specweave-kafka/lib/patterns/stream-processing-optimization.ts +549 -0
  297. package/plugins/specweave-kafka/lib/patterns/tiered-storage-compaction.js +205 -0
  298. package/plugins/specweave-kafka/lib/patterns/tiered-storage-compaction.ts +399 -0
  299. package/plugins/specweave-kafka/lib/performance/performance-optimizer.js +249 -0
  300. package/plugins/specweave-kafka/lib/performance/performance-optimizer.ts +427 -0
  301. package/plugins/specweave-kafka/lib/security/kafka-security.js +252 -0
  302. package/plugins/specweave-kafka/lib/security/kafka-security.ts +494 -0
  303. package/plugins/specweave-kafka/lib/utils/capacity-planner.js +203 -0
  304. package/plugins/specweave-kafka/lib/utils/capacity-planner.ts +469 -0
  305. package/plugins/specweave-kafka/lib/utils/config-validator.js +419 -0
  306. package/plugins/specweave-kafka/lib/utils/config-validator.ts +564 -0
  307. package/plugins/specweave-kafka/lib/utils/partitioning.js +329 -0
  308. package/plugins/specweave-kafka/lib/utils/partitioning.ts +473 -0
  309. package/plugins/specweave-kafka/lib/utils/sizing.js +221 -0
  310. package/plugins/specweave-kafka/lib/utils/sizing.ts +374 -0
  311. package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-broker-metrics.json +628 -0
  312. package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-cluster-overview.json +564 -0
  313. package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-consumer-lag.json +509 -0
  314. package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-jvm-metrics.json +674 -0
  315. package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-topic-metrics.json +578 -0
  316. package/plugins/specweave-kafka/monitoring/grafana/provisioning/dashboards/kafka.yml +17 -0
  317. package/plugins/specweave-kafka/monitoring/grafana/provisioning/datasources/prometheus.yml +17 -0
  318. package/plugins/specweave-kafka/monitoring/prometheus/kafka-alerts.yml +415 -0
  319. package/plugins/specweave-kafka/monitoring/prometheus/kafka-jmx-exporter.yml +256 -0
  320. package/plugins/specweave-kafka/package.json +41 -0
  321. package/plugins/specweave-kafka/skills/kafka-architecture/SKILL.md +647 -0
  322. package/plugins/specweave-kafka/skills/kafka-cli-tools/SKILL.md +433 -0
  323. package/plugins/specweave-kafka/skills/kafka-iac-deployment/SKILL.md +449 -0
  324. package/plugins/specweave-kafka/skills/kafka-kubernetes/SKILL.md +667 -0
  325. package/plugins/specweave-kafka/skills/kafka-mcp-integration/SKILL.md +273 -0
  326. package/plugins/specweave-kafka/skills/kafka-observability/SKILL.md +576 -0
  327. package/plugins/specweave-kafka/templates/config/broker-production.properties +254 -0
  328. package/plugins/specweave-kafka/templates/config/consumer-low-latency.properties +112 -0
  329. package/plugins/specweave-kafka/templates/config/producer-high-throughput.properties +120 -0
  330. package/plugins/specweave-kafka/templates/migration/mirrormaker2-config.properties +234 -0
  331. package/plugins/specweave-kafka/templates/monitoring/grafana/multi-cluster-dashboard.json +686 -0
  332. package/plugins/specweave-kafka/terraform/apache-kafka/main.tf +347 -0
  333. package/plugins/specweave-kafka/terraform/apache-kafka/outputs.tf +107 -0
  334. package/plugins/specweave-kafka/terraform/apache-kafka/templates/kafka-broker-init.sh.tpl +216 -0
  335. package/plugins/specweave-kafka/terraform/apache-kafka/variables.tf +156 -0
  336. package/plugins/specweave-kafka/terraform/aws-msk/main.tf +362 -0
  337. package/plugins/specweave-kafka/terraform/aws-msk/outputs.tf +93 -0
  338. package/plugins/specweave-kafka/terraform/aws-msk/templates/server.properties.tpl +32 -0
  339. package/plugins/specweave-kafka/terraform/aws-msk/variables.tf +235 -0
  340. package/plugins/specweave-kafka/terraform/azure-event-hubs/main.tf +281 -0
  341. package/plugins/specweave-kafka/terraform/azure-event-hubs/outputs.tf +118 -0
  342. package/plugins/specweave-kafka/terraform/azure-event-hubs/variables.tf +148 -0
  343. package/plugins/specweave-kafka/tsconfig.json +21 -0
  344. package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +23 -0
  345. package/plugins/specweave-kafka-streams/README.md +310 -0
  346. package/plugins/specweave-kafka-streams/skills/kafka-streams-topology/SKILL.md +539 -0
  347. package/plugins/specweave-n8n/.claude-plugin/plugin.json +22 -0
  348. package/plugins/specweave-n8n/README.md +354 -0
  349. package/plugins/specweave-n8n/skills/n8n-kafka-workflows/SKILL.md +504 -0
  350. package/plugins/specweave-release/commands/specweave-release-platform.md +1 -1
  351. package/plugins/specweave-release/hooks/post-task-completion.sh +2 -2
  352. package/src/templates/AGENTS.md.template +601 -7
  353. package/src/templates/CLAUDE.md.template +188 -88
  354. package/dist/locales/de/.gitkeep +0 -0
  355. package/dist/locales/de/cli.json +0 -108
  356. package/dist/locales/en/cli.json +0 -287
  357. package/dist/locales/en/errors.json +0 -7
  358. package/dist/locales/en/templates.json +0 -6
  359. package/dist/locales/es/.gitkeep +0 -0
  360. package/dist/locales/es/cli.json +0 -41
  361. package/dist/locales/fr/.gitkeep +0 -0
  362. package/dist/locales/fr/cli.json +0 -108
  363. package/dist/locales/ja/.gitkeep +0 -0
  364. package/dist/locales/ja/cli.json +0 -108
  365. package/dist/locales/ko/.gitkeep +0 -0
  366. package/dist/locales/ko/cli.json +0 -108
  367. package/dist/locales/pt/.gitkeep +0 -0
  368. package/dist/locales/pt/cli.json +0 -108
  369. package/dist/locales/ru/.gitkeep +0 -0
  370. package/dist/locales/ru/cli.json +0 -269
  371. package/dist/locales/zh/.gitkeep +0 -0
  372. package/dist/locales/zh/cli.json +0 -108
  373. package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.d.ts +0 -25
  374. package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.d.ts.map +0 -1
  375. package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.js +0 -191
  376. package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.js.map +0 -1
  377. package/dist/spec-parser.js +0 -629
  378. package/dist/src/core/sync/spec-content-sync.d.ts +0 -88
  379. package/dist/src/core/sync/spec-content-sync.d.ts.map +0 -1
  380. package/dist/src/core/sync/spec-content-sync.js +0 -5
  381. package/dist/src/core/sync/spec-content-sync.js.map +0 -1
  382. package/dist/tsconfig.tsbuildinfo +0 -1
  383. package/plugins/specweave-ado/commands/specweave-ado-sync-spec.md +0 -255
  384. package/plugins/specweave-github/commands/specweave-github-sync-epic.md +0 -248
  385. package/plugins/specweave-github/commands/specweave-github-sync-from.md +0 -147
  386. package/plugins/specweave-github/commands/specweave-github-sync-spec.md +0 -208
  387. package/plugins/specweave-github/commands/specweave-github-sync-tasks.md +0 -530
  388. package/plugins/specweave-jira/commands/specweave-jira-sync-epic.md +0 -267
  389. package/plugins/specweave-jira/commands/specweave-jira-sync-spec.md +0 -240
@@ -5,6 +5,152 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## 🚨 CRITICAL: How to Use This File (Non-Claude Code Tools)
9
+
10
+ **You're using Cursor, GitHub Copilot, or another AI tool - NOT Claude Code.**
11
+
12
+ This means you **DO NOT have progressive disclosure** - this ENTIRE file (2000+ lines) is loaded into your context right now.
13
+
14
+ **BUT** - you don't need to process everything at once!
15
+
16
+ ### Think of This File as a REFERENCE MANUAL
17
+
18
+ - 📖 **Skim section headers** at session start (don't read all details)
19
+ - 🔍 **Search for sections** when needed (use Ctrl+F / Command+F)
20
+ - ✅ **Process ONLY relevant section** for current task
21
+ - ♻️ **Ignore irrelevant sections** (don't waste tokens processing them)
22
+
23
+ ### Navigation Pattern
24
+
25
+ **When user requests a task**:
26
+ 1. Search for relevant section (use Section Index below)
27
+ 2. Example: "sync to GitHub" → Search for `#workflow-github-sync`
28
+ 3. Read ONLY that section (50-100 lines)
29
+ 4. Execute workflow from that section
30
+ 5. Ignore other 1900+ lines (not needed right now!)
31
+
32
+ ### Example Workflow
33
+
34
+ ```
35
+ User says: "Create new increment for user auth"
36
+
37
+ You search: "increment" or "#command-increment"
38
+
39
+ You find: ## Command: /specweave:increment {#command-increment}
40
+
41
+ You read: That section ONLY (workflow, parameters, examples)
42
+
43
+ You execute: Follow workflow from that section
44
+
45
+ Done! (Ignored 95% of file - that's good!)
46
+ ```
47
+
48
+ **This simulates progressive disclosure without tool support!**
49
+
50
+ ---
51
+
52
+ ## 📑 SECTION INDEX (Your Navigation Menu)
53
+
54
+ **Use Ctrl+F / Command+F to jump to sections instantly!**
55
+
56
+ ### 🎯 Essential (Read First - Always)
57
+ - [Essential Knowledge](#essential-knowledge) ← **START HERE** every session
58
+ - [Quick Reference Cards](#quick-reference-cards) ← Common commands
59
+ - [Critical Rules](#critical-rules) ← Never violate these
60
+ - [File Organization](#file-organization) ← Where files go
61
+
62
+ ### 🚀 Commands (When User Requests Action)
63
+ Search pattern: `#command-{name}`
64
+
65
+ **Core Commands**:
66
+ - [/specweave:increment](#command-increment) - Plan new feature
67
+ - [/specweave:do](#command-do) - Execute tasks
68
+ - [/specweave:done](#command-done) - Close increment
69
+ - [/specweave:progress](#command-progress) - Check status
70
+ - [/specweave:validate](#command-validate) - Quality check
71
+ - [/specweave:sync-docs](#command-sync-docs) - Sync living docs
72
+ - [/specweave:sync-tasks](#command-sync-tasks) - Sync task status
73
+ - [/specweave:next](#command-next) - Smart transition
74
+ - [/specweave:costs](#command-costs) - AI cost dashboard
75
+
76
+ **Plugin Commands** (if installed):
77
+ - [/specweave:github:sync](#command-github-sync) - Sync to GitHub
78
+ - [/specweave:jira:sync](#command-jira-sync) - Sync to Jira
79
+ - [/specweave:ado:sync](#command-ado-sync) - Sync to Azure DevOps
80
+
81
+ ### 🎓 Skills (When You Need Specific Capability)
82
+ Search pattern: `#skill-{name}`
83
+
84
+ **Core Skills**:
85
+ - [increment-planner](#skill-increment-planner) - Plan features
86
+ - [spec-generator](#skill-spec-generator) - Generate specs
87
+ - [context-loader](#skill-context-loader) - Token optimization
88
+ - [brownfield-analyzer](#skill-brownfield-analyzer) - Analyze existing projects
89
+
90
+ **Integration Skills**:
91
+ - [github-sync](#skill-github-sync) - GitHub integration
92
+ - [jira-sync](#skill-jira-sync) - Jira integration
93
+ - [ado-sync](#skill-ado-sync) - Azure DevOps integration
94
+
95
+ **Tech Stack Skills**:
96
+ - [frontend](#skill-frontend) - React/Next.js/Vue
97
+ - [backend](#skill-backend) - Node.js/Python/.NET
98
+ - [infrastructure](#skill-infrastructure) - DevOps/Cloud
99
+
100
+ ### 👔 Agents (When You Need Role Perspective)
101
+ Search pattern: `#agent-{name}`
102
+
103
+ **Core Agents**:
104
+ - [PM (Product Manager)](#agent-pm) - Requirements, user stories
105
+ - [Architect](#agent-architect) - System design, technical planning
106
+ - [Tech Lead](#agent-tech-lead) - Code review, best practices
107
+ - [DevOps](#agent-devops) - Infrastructure, deployment
108
+ - [QA Lead](#agent-qa-lead) - Testing strategy, quality gates
109
+ - [Security](#agent-security) - Threat modeling, compliance
110
+
111
+ ### 📖 Workflows (Step-by-Step Procedures)
112
+ Search pattern: `#workflow-{name}`
113
+
114
+ **Daily Workflows**:
115
+ - [Daily Development Workflow](#workflow-daily-development)
116
+ - [Feature Increment Lifecycle](#workflow-increment-lifecycle)
117
+ - [Task Completion Workflow](#workflow-task-completion)
118
+
119
+ **Sync Workflows**:
120
+ - [Living Docs Sync](#workflow-living-docs-sync)
121
+ - [GitHub Sync](#workflow-github-sync)
122
+ - [Jira Sync](#workflow-jira-sync)
123
+ - [External Tracker Sync](#workflow-external-sync)
124
+
125
+ **Advanced Workflows**:
126
+ - [Multi-Project Setup](#workflow-multi-project)
127
+ - [Increment Closure](#workflow-increment-closure)
128
+ - [Documentation Updates](#workflow-documentation-updates)
129
+
130
+ ### 🆘 Troubleshooting (When Stuck)
131
+ Search pattern: `#troubleshoot-{topic}`
132
+
133
+ - [Skills Not Working](#troubleshoot-skills)
134
+ - [Commands Not Found](#troubleshoot-commands)
135
+ - [Sync Issues](#troubleshoot-sync)
136
+ - [Root Folder Polluted](#troubleshoot-root-pollution)
137
+ - [Duplicate Increments](#troubleshoot-duplicates)
138
+ - [More Troubleshooting →](#troubleshooting)
139
+
140
+ ### 🔍 Search Patterns Reference
141
+
142
+ | What You Need | Search For | Example |
143
+ |---------------|------------|---------|
144
+ | Command workflow | `#command-{name}` | "github sync" → `#command-github-sync` |
145
+ | Skill capability | `#skill-{name}` | "planning" → `#skill-increment-planner` |
146
+ | Agent role | `#agent-{name}` | "architect" → `#agent-architect` |
147
+ | Procedure | `#workflow-{name}` | "daily work" → `#workflow-daily-development` |
148
+ | Problem solving | `#troubleshoot-{topic}` | "sync broken" → `#troubleshoot-sync` |
149
+
150
+ **Remember**: You have access to ALL knowledge - use search to find it efficiently!
151
+
152
+ ---
153
+
8
154
  ## Project Overview
9
155
 
10
156
  This is a **SpecWeave project** where specifications and documentation are the source of truth.
@@ -51,6 +197,73 @@ This is a **SpecWeave project** where specifications and documentation are the s
51
197
 
52
198
  ---
53
199
 
200
+ ## 📋 Quick Reference Cards {#quick-reference-cards}
201
+
202
+ ### 🎯 Essential Knowledge {#essential-knowledge}
203
+
204
+ **Read this EVERY session start!**
205
+
206
+ #### Critical Rules {#critical-rules}
207
+ ```
208
+ ⛔ NEVER pollute project root with .md files!
209
+ ⛔ Increment IDs must be unique (0001-9999)!
210
+ ⛔ All reports/scripts/logs go in increment folders!
211
+ ⛔ Always check: git status (before committing)!
212
+ ```
213
+
214
+ #### File Organization {#file-organization}
215
+ ```
216
+ ┌────────────────────────────────────────────────────────────┐
217
+ │ NEVER in Root ↔ ALWAYS in Increment Folder │
218
+ ├────────────────────────────────────────────────────────────┤
219
+ │ ❌ analysis.md ↔ ✅ .../0001/reports/analysis.md │
220
+ │ ❌ migration.py ↔ ✅ .../0001/scripts/migration.py │
221
+ │ ❌ execution.log ↔ ✅ .../0001/logs/execution.log │
222
+ │ ❌ session-notes.md ↔ ✅ .../0001/reports/session.md │
223
+ └────────────────────────────────────────────────────────────┘
224
+ ```
225
+
226
+ ### Daily Workflow
227
+ ```
228
+ ┌────────────────────────────────────────────────────────────┐
229
+ │ TASK → COMMAND │
230
+ ├────────────────────────────────────────────────────────────┤
231
+ │ Plan new feature → /specweave:increment "feature" │
232
+ │ Execute tasks → /specweave:do │
233
+ │ Check progress → /specweave:progress │
234
+ │ Validate quality → /specweave:validate 0001 │
235
+ │ Close increment → /specweave:done 0001 │
236
+ └────────────────────────────────────────────────────────────┘
237
+ ```
238
+
239
+ ### After EVERY Task Completion (CRITICAL!)
240
+ ```
241
+ ⚠️ Non-Claude tools do NOT have automatic hooks!
242
+
243
+ After completing EACH task, you MUST run:
244
+
245
+ 1. /specweave:sync-tasks # Update tasks.md
246
+ 2. /specweave:sync-docs update # Sync living docs
247
+ 3. /specweave:github:sync <increment-id> # Sync to GitHub (if enabled)
248
+
249
+ Without these, your work won't be tracked properly!
250
+ ```
251
+
252
+ ### When to Use Which Command
253
+
254
+ | User Says... | Use Command |
255
+ |---------------------------|------------------------------------|
256
+ | "Let's build X" | `/specweave:increment "X"` |
257
+ | "Start implementing" | `/specweave:do` |
258
+ | "What's the status?" | `/specweave:progress` |
259
+ | "Is this ready?" | `/specweave:validate 0001` |
260
+ | "We're done" | `/specweave:done 0001` |
261
+ | "Sync to GitHub" | `/specweave:github:sync` |
262
+ | "Sync to Jira" | `/specweave:jira:sync` |
263
+ | "Update docs" | `/specweave:sync-docs update` |
264
+
265
+ ---
266
+
54
267
  ## Project Structure
55
268
 
56
269
  **IMPORTANT**: This project uses {MONOREPO_OR_SINGLE} mode.
@@ -64,8 +277,7 @@ This is a **SpecWeave project** where specifications and documentation are the s
64
277
  │ └── 0001-feature-name/
65
278
  │ ├── spec.md # WHAT & WHY (business requirements)
66
279
  │ ├── plan.md # HOW (technical implementation)
67
- │ ├── tasks.md # Implementation checklist
68
- │ ├── tests.md # Test strategy
280
+ │ ├── tasks.md # Tasks with embedded test plans (BDD format)
69
281
  │ ├── context-manifest.yaml # Selective loading (token savings!)
70
282
  │ ├── logs/ # Execution logs, errors
71
283
  │ ├── scripts/ # Helper scripts
@@ -1016,7 +1228,7 @@ Template:
1016
1228
  [Step-by-step approach]
1017
1229
  ```
1018
1230
 
1019
- **Step 4: Create tasks.md**
1231
+ **Step 4: Create tasks.md (with embedded tests)**
1020
1232
  ```markdown
1021
1233
  ---
1022
1234
  increment: 0001-feature-name
@@ -1026,8 +1238,18 @@ completed_tasks: 0
1026
1238
 
1027
1239
  # Implementation Tasks
1028
1240
 
1029
- - [ ] T001: Task description
1030
- - [ ] T002: Task description
1241
+ ## T-001: Task description
1242
+
1243
+ **AC**: AC-US1-01, AC-US1-02
1244
+
1245
+ **Test Plan** (BDD):
1246
+ - **Given** [context] → **When** [action] → **Then** [expected result]
1247
+
1248
+ **Test Cases**:
1249
+ - Unit (`*.test.ts`): testCase1, testCase2 → 90% coverage
1250
+ - Integration (`*.spec.ts`): integrationTest → 85% coverage
1251
+
1252
+ **Implementation**: [Technical details]
1031
1253
  ```
1032
1254
 
1033
1255
  **Step 5: Create context-manifest.yaml (CRITICAL)**
@@ -1482,11 +1704,13 @@ npm run lint
1482
1704
 
1483
1705
  **Four Levels of Test Cases**:
1484
1706
 
1485
- 1. **Specification** (`.specweave/docs/internal/strategy/`) - TC-0001 acceptance criteria
1486
- 2. **Feature** (`.specweave/increments/####/tests.md`) - Test coverage matrix
1707
+ 1. **Specification** (`.specweave/docs/internal/strategy/`) - AC-IDs (AC-US1-01, etc.)
1708
+ 2. **Feature** (`.specweave/increments/####/tasks.md`) - Test plans embedded in tasks (BDD format)
1487
1709
  3. **Skill** (`src/skills/{name}/test-cases/`) - YAML test cases (if creating skills)
1488
1710
  4. **Code** (`tests/`) - Automated tests (Unit, Integration, E2E)
1489
1711
 
1712
+ **Test-Aware Planning**: Tests are embedded directly in tasks.md using BDD format (Given/When/Then), with AC-ID traceability (mapping to spec.md acceptance criteria) and realistic coverage targets (80-90%).
1713
+
1490
1714
  **Requirements:**
1491
1715
  - E2E tests (Playwright/Cypress) when UI exists
1492
1716
  - >80% coverage for critical paths
@@ -1939,6 +2163,376 @@ When you encounter a new task:
1939
2163
 
1940
2164
  ---
1941
2165
 
2166
+ ## 🆘 Troubleshooting {#troubleshooting}
2167
+
2168
+ **Use Ctrl+F / Command+F with the search patterns below to jump to specific issues!**
2169
+
2170
+ ### Skills Not Working {#troubleshoot-skills}
2171
+
2172
+ **Symptoms**: Expected skill didn't activate or can't find skill
2173
+
2174
+ **Solutions (Non-Claude Tools)**:
2175
+ 1. **Skills don't auto-activate in Cursor/Copilot** - This is normal!
2176
+ - You must manually discover skills from Section Index above
2177
+ - Search for relevant skill: `#skill-{name}`
2178
+ - Read that section and follow the workflow
2179
+
2180
+ 2. **Can't find the right skill**:
2181
+ ```bash
2182
+ # Check Section Index above for skill list
2183
+ # Search this file for: #skill-increment-planner, #skill-github-sync, etc.
2184
+ ```
2185
+
2186
+ 3. **Skill workflow unclear**:
2187
+ - Each skill section has "How It Works" and "Workflow" subsections
2188
+ - Follow step-by-step instructions
2189
+ - Check examples provided
2190
+
2191
+ **Remember**: In non-Claude tools, YOU control skill discovery (search this file), not automatic activation!
2192
+
2193
+ ---
2194
+
2195
+ ### Commands Not Found {#troubleshoot-commands}
2196
+
2197
+ **Symptoms**: `/specweave:increment` or other commands don't work
2198
+
2199
+ **Solutions (Non-Claude Tools)**:
2200
+ 1. **Commands are NOT slash commands in Cursor/Copilot** - They're workflows!
2201
+ - Search this file for: `#command-increment`, `#command-do`, etc.
2202
+ - Read the workflow from that section
2203
+ - Execute manually (step by step)
2204
+
2205
+ 2. **Example**: User says "create increment"
2206
+ ```
2207
+ You search: "#command-increment"
2208
+ You find: ## Command: /specweave:increment {#command-increment}
2209
+ You read: Workflow section (PM-led planning, spec creation, etc.)
2210
+ You execute: Follow those steps manually
2211
+ ```
2212
+
2213
+ 3. **Command workflow unclear**:
2214
+ - Each command section has detailed workflow
2215
+ - Check "When to use", "Parameters", "Workflow", "Example"
2216
+ - Follow step-by-step
2217
+
2218
+ **Remember**: In non-Claude tools, commands are manual workflows, not automatic slash commands!
2219
+
2220
+ ---
2221
+
2222
+ ### Sync Issues {#troubleshoot-sync}
2223
+
2224
+ **Symptoms**: GitHub/Jira not updating, living docs not syncing
2225
+
2226
+ **Solutions (Non-Claude Tools)**:
2227
+ 1. **No automatic hooks** - You must manually sync:
2228
+ ```bash
2229
+ # After EACH task completion:
2230
+ /specweave:sync-tasks # Update tasks.md
2231
+ /specweave:sync-docs update # Sync living docs
2232
+ /specweave:github:sync <increment-id> # Sync to GitHub
2233
+ ```
2234
+
2235
+ 2. **Living docs sync not working**:
2236
+ - Search for: `#workflow-living-docs-sync`
2237
+ - Follow manual workflow from that section
2238
+ - Check: `.specweave/docs/internal/specs/{project}/` for output
2239
+
2240
+ 3. **GitHub sync not working**:
2241
+ - Search for: `#workflow-github-sync`
2242
+ - Verify credentials: `gh auth status`
2243
+ - Check metadata: `cat .specweave/increments/0001/metadata.json`
2244
+ - Manual sync: Follow workflow from `#command-github-sync`
2245
+
2246
+ 4. **Jira sync not working**:
2247
+ - Search for: `#workflow-jira-sync`
2248
+ - Verify credentials: `jira config list`
2249
+ - Manual sync: Follow workflow from `#command-jira-sync`
2250
+
2251
+ **Remember**: Automatic sync ONLY works in Claude Code. In other tools, you must manually run sync commands!
2252
+
2253
+ ---
2254
+
2255
+ ### Root Folder Polluted {#troubleshoot-root-pollution}
2256
+
2257
+ **Symptoms**: `git status` shows `.md` files in project root
2258
+
2259
+ **Solutions**:
2260
+ 1. **Immediate fix** - Move files to increment folder:
2261
+ ```bash
2262
+ # Find current increment
2263
+ CURRENT=$(ls -t .specweave/increments/ | grep -v "_backlog" | head -1)
2264
+
2265
+ # Move files
2266
+ mv SESSION-NOTES.md .specweave/increments/$CURRENT/reports/
2267
+ mv analysis.md .specweave/increments/$CURRENT/reports/
2268
+ mv migration.py .specweave/increments/$CURRENT/scripts/
2269
+ mv execution.log .specweave/increments/$CURRENT/logs/
2270
+ ```
2271
+
2272
+ 2. **Update .gitignore** if needed:
2273
+ ```bash
2274
+ echo "/*.md" >> .gitignore # Ignore all root .md files except CLAUDE.md
2275
+ echo "!CLAUDE.md" >> .gitignore
2276
+ echo "!README.md" >> .gitignore
2277
+ ```
2278
+
2279
+ 3. **Commit cleaned structure**:
2280
+ ```bash
2281
+ git add .
2282
+ git commit -m "fix: move reports/scripts/logs to increment folders"
2283
+ ```
2284
+
2285
+ **Prevention**: Always create files in increment folders (reports/, scripts/, logs/), NEVER in root!
2286
+
2287
+ ---
2288
+
2289
+ ### Duplicate Increments {#troubleshoot-duplicates}
2290
+
2291
+ **Symptoms**: Multiple increments with same number (0001, 0001, etc.)
2292
+
2293
+ **Solutions**:
2294
+ 1. **Check for duplicates**:
2295
+ ```bash
2296
+ ls -1 .specweave/increments/ | grep -E "^[0-9]{4}-" | sort
2297
+ # Look for duplicate numbers
2298
+ ```
2299
+
2300
+ 2. **Find next available number**:
2301
+ ```bash
2302
+ ls -1 .specweave/increments/ | grep -E "^[0-9]{4}-" | sort | tail -1
2303
+ # Increment the number by 1
2304
+ ```
2305
+
2306
+ 3. **Fix duplicates** (if they exist):
2307
+ - Search for: `#command-fix-duplicates`
2308
+ - Follow manual workflow to resolve
2309
+
2310
+ **Prevention**: Always check existing increments before creating new ones!
2311
+
2312
+ ---
2313
+
2314
+ ### Tasks.md Out of Sync {#troubleshoot-tasks-out-of-sync}
2315
+
2316
+ **Symptoms**: Progress shows 0/24 but many tasks actually done
2317
+
2318
+ **Solutions**:
2319
+ 1. **Auto-sync from reality**:
2320
+ - Search for: `#command-sync-tasks`
2321
+ - Follow workflow to sync tasks.md with actual status
2322
+
2323
+ 2. **Manual update**:
2324
+ ```bash
2325
+ # Open tasks.md
2326
+ vim .specweave/increments/0001/tasks.md
2327
+
2328
+ # Change completed tasks:
2329
+ **Status**: [ ] pending → **Status**: [x] completed
2330
+
2331
+ # Update progress counters:
2332
+ **Completed**: 0 → **Completed**: 15
2333
+ **Progress**: 0% → **Progress**: 62% (15/24 = 62%)
2334
+ ```
2335
+
2336
+ 3. **Verify sync**:
2337
+ - Search for: `#command-progress`
2338
+ - Run progress check to verify correct counts
2339
+
2340
+ **Prevention**: In non-Claude tools, manually update tasks.md after EACH task completion!
2341
+
2342
+ ---
2343
+
2344
+ ### Can't Find Current Increment {#troubleshoot-find-increment}
2345
+
2346
+ **Symptoms**: Don't know which increment is active
2347
+
2348
+ **Solutions**:
2349
+ 1. **Check active increment**:
2350
+ ```bash
2351
+ cat .specweave/state/active-increment.json
2352
+ ```
2353
+
2354
+ 2. **List all increments with status**:
2355
+ - Search for: `#command-status`
2356
+ - Follow workflow to see all increments and their states
2357
+
2358
+ 3. **Check progress**:
2359
+ - Search for: `#command-progress`
2360
+ - Shows active increment and completion %
2361
+
2362
+ ---
2363
+
2364
+ ### Commands Taking Too Long {#troubleshoot-slow-commands}
2365
+
2366
+ **Symptoms**: Command workflows seem to take forever
2367
+
2368
+ **Causes & Solutions**:
2369
+ 1. **Loading entire AGENTS.md** - This is normal!
2370
+ - File is 2000+ lines (comprehensive)
2371
+ - Use search (Ctrl+F) to jump to relevant sections
2372
+ - Don't read everything - only what you need
2373
+
2374
+ 2. **Too much context loaded**:
2375
+ - Check for `context-manifest.yaml` in increment folder
2376
+ - Load ONLY files listed there
2377
+ - Don't load entire `.specweave/docs/` folder
2378
+
2379
+ 3. **Workflow unclear**:
2380
+ - Each section has step-by-step workflow
2381
+ - Follow instructions precisely
2382
+ - Check examples
2383
+
2384
+ **Optimization**: Use Section Index above to quickly find and jump to relevant sections!
2385
+
2386
+ ---
2387
+
2388
+ ### Living Docs Not Updating {#troubleshoot-living-docs}
2389
+
2390
+ **Symptoms**: `.specweave/docs/internal/specs/` not showing new user stories
2391
+
2392
+ **Solutions**:
2393
+ 1. **Manual sync required** (non-Claude tools):
2394
+ - Search for: `#command-sync-docs`
2395
+ - Follow workflow to sync increment → living docs
2396
+
2397
+ 2. **Check spec distribution**:
2398
+ ```bash
2399
+ # After sync, verify files exist:
2400
+ ls -la .specweave/docs/internal/specs/{project}/
2401
+ # Should show FS-XXX folders with us-XXX.md files
2402
+ ```
2403
+
2404
+ 3. **Verify project detection**:
2405
+ ```bash
2406
+ # Check increment name for project hint:
2407
+ ls .specweave/increments/
2408
+ # Example: 0001-backend-auth → project: backend
2409
+ # 0002-frontend-ui → project: frontend
2410
+ ```
2411
+
2412
+ **Prevention**: Run `/specweave:sync-docs update` after completing increments!
2413
+
2414
+ ---
2415
+
2416
+ ### External Tracker Credentials {#troubleshoot-credentials}
2417
+
2418
+ **Symptoms**: GitHub/Jira sync fails with auth errors
2419
+
2420
+ **Solutions (GitHub)**:
2421
+ ```bash
2422
+ # Check auth status
2423
+ gh auth status
2424
+
2425
+ # Re-authenticate if needed
2426
+ gh auth login
2427
+
2428
+ # Test access
2429
+ gh repo view
2430
+ ```
2431
+
2432
+ **Solutions (Jira)**:
2433
+ ```bash
2434
+ # Check config
2435
+ jira config list
2436
+
2437
+ # Set up credentials
2438
+ jira init
2439
+
2440
+ # Test access
2441
+ jira issue list --project PROJ
2442
+ ```
2443
+
2444
+ **Solutions (Azure DevOps)**:
2445
+ ```bash
2446
+ # Check auth
2447
+ az account show
2448
+
2449
+ # Login if needed
2450
+ az login
2451
+
2452
+ # Set default org/project
2453
+ az devops configure --defaults organization=https://dev.azure.com/YOUR_ORG project=YOUR_PROJECT
2454
+ ```
2455
+
2456
+ ---
2457
+
2458
+ ### Context Manifest Not Working {#troubleshoot-context-manifest}
2459
+
2460
+ **Symptoms**: Loading too many files, high token usage
2461
+
2462
+ **Solutions**:
2463
+ 1. **Check for context-manifest.yaml**:
2464
+ ```bash
2465
+ ls .specweave/increments/0001/context-manifest.yaml
2466
+ ```
2467
+
2468
+ 2. **If missing, create one**:
2469
+ ```yaml
2470
+ # .specweave/increments/0001/context-manifest.yaml
2471
+ spec_sections:
2472
+ - .specweave/docs/internal/strategy/relevant-spec.md
2473
+ documentation:
2474
+ - .specweave/docs/internal/architecture/relevant-design.md
2475
+ max_context_tokens: 10000
2476
+ ```
2477
+
2478
+ 3. **Load ONLY files listed**:
2479
+ - Read context-manifest.yaml first
2480
+ - Load files from `spec_sections` and `documentation`
2481
+ - Don't load entire `.specweave/docs/` folder
2482
+
2483
+ **Token Savings**: 70%+ reduction when using context manifests!
2484
+
2485
+ ---
2486
+
2487
+ ### Multi-Tool Confusion {#troubleshoot-multi-tool}
2488
+
2489
+ **Symptoms**: Instructions mention Claude Code but I'm using Cursor/Copilot
2490
+
2491
+ **Solutions**:
2492
+ 1. **Look for multi-tool callouts**:
2493
+ ```markdown
2494
+ **For Claude Code**: ✅ Automatic via hooks
2495
+ **For Other Tools**: ⚠️ Manual sync required
2496
+ ```
2497
+
2498
+ 2. **If instruction says "automatic"**:
2499
+ - In Claude Code: It's automatic
2500
+ - In other tools: Find manual workflow section
2501
+
2502
+ 3. **General pattern**:
2503
+ - Claude Code: Commands via slash syntax, hooks automatic
2504
+ - Other tools: Commands via manual workflows, sync manual
2505
+
2506
+ **This file (AGENTS.md) is optimized for non-Claude tools!** Follow the manual workflows.
2507
+
2508
+ ---
2509
+
2510
+ ### More Help {#more-help}
2511
+
2512
+ **Documentation**:
2513
+ - Official docs: https://spec-weave.com/docs
2514
+ - Troubleshooting guide: https://spec-weave.com/docs/troubleshooting
2515
+ - Multi-tool guide: https://spec-weave.com/docs/multi-tool-support
2516
+
2517
+ **Community**:
2518
+ - GitHub Issues: https://github.com/anton-abyzov/specweave/issues
2519
+ - Discussions: https://github.com/anton-abyzov/specweave/discussions
2520
+ - Discord: https://discord.gg/specweave (if available)
2521
+
2522
+ **Quick Reference**:
2523
+ - Section Index: See top of this file
2524
+ - Search patterns: `#command-*`, `#skill-*`, `#agent-*`, `#workflow-*`
2525
+ - Quick reference cards: See `#quick-reference-cards` above
2526
+
2527
+ **When reporting issues**:
2528
+ 1. Tool used (Cursor, Copilot, ChatGPT, etc.)
2529
+ 2. SpecWeave version: `specweave --version`
2530
+ 3. Command/workflow attempted
2531
+ 4. Error message or unexpected behavior
2532
+ 5. Relevant files (metadata.json, config.json)
2533
+
2534
+ ---
2535
+
1942
2536
  ## Documentation
1943
2537
 
1944
2538
  - **CLAUDE.md**: Quick reference for Claude Code users