agentic-qe 3.7.16 → 3.7.17

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 (280) hide show
  1. package/.claude/agents/v3/qe-devils-advocate.md +20 -0
  2. package/.claude/agents/v3/qe-gap-detector.md +25 -0
  3. package/.claude/agents/v3/qe-quality-gate.md +8 -0
  4. package/.claude/agents/v3/qe-requirements-validator.md +25 -0
  5. package/.claude/agents/v3/subagents/qe-code-reviewer.md +11 -0
  6. package/.claude/agents/v3/subagents/qe-integration-reviewer.md +11 -0
  7. package/.claude/agents/v3/subagents/qe-performance-reviewer.md +11 -0
  8. package/.claude/agents/v3/subagents/qe-security-reviewer.md +11 -0
  9. package/.claude/helpers/adr-compliance.sh +10 -10
  10. package/.claude/helpers/auto-memory-hook.mjs +24 -9
  11. package/.claude/helpers/brain-checkpoint.cjs +55 -145
  12. package/.claude/helpers/ddd-tracker.sh +2 -2
  13. package/.claude/helpers/guidance-hooks.sh +2 -2
  14. package/.claude/helpers/hook-handler.cjs +57 -18
  15. package/.claude/helpers/statusline.cjs +414 -595
  16. package/.claude/helpers/v3/quality-criteria/evidence-classification.md +116 -116
  17. package/.claude/helpers/v3/quality-criteria/htsm-categories.md +139 -139
  18. package/.claude/skills/README.md +8 -11
  19. package/.claude/skills/brutal-honesty-review/SKILL.md +3 -0
  20. package/.claude/skills/code-review-quality/SKILL.md +3 -0
  21. package/.claude/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
  22. package/.claude/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
  23. package/.claude/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
  24. package/.claude/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
  25. package/.claude/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
  26. package/.claude/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
  27. package/.claude/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
  28. package/.claude/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
  29. package/.claude/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
  30. package/.claude/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
  31. package/.claude/skills/qcsd-development-swarm/SKILL.md +79 -2027
  32. package/.claude/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
  33. package/.claude/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
  34. package/.claude/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
  35. package/.claude/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
  36. package/.claude/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
  37. package/.claude/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
  38. package/.claude/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
  39. package/.claude/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
  40. package/.claude/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
  41. package/.claude/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
  42. package/.claude/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
  43. package/.claude/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
  44. package/.claude/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
  45. package/.claude/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
  46. package/.claude/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
  47. package/.claude/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
  48. package/.claude/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
  49. package/.claude/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
  50. package/.claude/skills/qcsd-production-swarm/SKILL.md +88 -2663
  51. package/.claude/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
  52. package/.claude/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
  53. package/.claude/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
  54. package/.claude/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
  55. package/.claude/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
  56. package/.claude/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
  57. package/.claude/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
  58. package/.claude/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
  59. package/.claude/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
  60. package/.claude/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
  61. package/.claude/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
  62. package/.claude/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
  63. package/.claude/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
  64. package/.claude/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
  65. package/.claude/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
  66. package/.claude/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
  67. package/.claude/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
  68. package/.claude/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
  69. package/.claude/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
  70. package/.claude/skills/sherlock-review/SKILL.md +3 -0
  71. package/.claude/skills/skill-builder/SKILL.md +103 -0
  72. package/.claude/skills/skills-manifest.json +1 -1
  73. package/CHANGELOG.md +22 -0
  74. package/assets/agents/v3/qe-devils-advocate.md +20 -0
  75. package/assets/agents/v3/qe-gap-detector.md +25 -0
  76. package/assets/agents/v3/qe-quality-gate.md +8 -0
  77. package/assets/agents/v3/qe-requirements-validator.md +25 -0
  78. package/assets/agents/v3/subagents/qe-code-reviewer.md +11 -0
  79. package/assets/agents/v3/subagents/qe-integration-reviewer.md +11 -0
  80. package/assets/agents/v3/subagents/qe-performance-reviewer.md +11 -0
  81. package/assets/agents/v3/subagents/qe-security-reviewer.md +11 -0
  82. package/assets/helpers/statusline-v3.cjs +693 -0
  83. package/assets/skills/brutal-honesty-review/SKILL.md +3 -0
  84. package/assets/skills/code-review-quality/SKILL.md +3 -0
  85. package/assets/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
  86. package/assets/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
  87. package/assets/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
  88. package/assets/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
  89. package/assets/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
  90. package/assets/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
  91. package/assets/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
  92. package/assets/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
  93. package/assets/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
  94. package/assets/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
  95. package/assets/skills/qcsd-development-swarm/SKILL.md +79 -2027
  96. package/assets/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
  97. package/assets/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
  98. package/assets/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
  99. package/assets/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
  100. package/assets/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
  101. package/assets/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
  102. package/assets/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
  103. package/assets/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
  104. package/assets/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
  105. package/assets/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
  106. package/assets/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
  107. package/assets/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
  108. package/assets/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
  109. package/assets/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
  110. package/assets/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
  111. package/assets/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
  112. package/assets/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
  113. package/assets/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
  114. package/assets/skills/qcsd-production-swarm/SKILL.md +88 -2663
  115. package/assets/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
  116. package/assets/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
  117. package/assets/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
  118. package/assets/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
  119. package/assets/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
  120. package/assets/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
  121. package/assets/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
  122. package/assets/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
  123. package/assets/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
  124. package/assets/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
  125. package/assets/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
  126. package/assets/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
  127. package/assets/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
  128. package/assets/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
  129. package/assets/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
  130. package/assets/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
  131. package/assets/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
  132. package/assets/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
  133. package/assets/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
  134. package/assets/skills/sherlock-review/SKILL.md +3 -0
  135. package/assets/templates/agent-override-example.yaml +39 -0
  136. package/dist/agents/devils-advocate/agent.d.ts +25 -1
  137. package/dist/agents/devils-advocate/agent.js +108 -4
  138. package/dist/agents/devils-advocate/types.d.ts +54 -0
  139. package/dist/agents/devils-advocate/types.js +14 -0
  140. package/dist/agents/overlay-loader.d.ts +28 -0
  141. package/dist/agents/overlay-loader.js +232 -0
  142. package/dist/agents/overlay-schema.d.ts +56 -0
  143. package/dist/agents/overlay-schema.js +77 -0
  144. package/dist/analysis/branch-enumerator.d.ts +68 -0
  145. package/dist/analysis/branch-enumerator.js +393 -0
  146. package/dist/analysis/index.d.ts +2 -0
  147. package/dist/analysis/index.js +2 -0
  148. package/dist/cli/bundle.js +2396 -614
  149. package/dist/cli/commands/coverage.js +50 -0
  150. package/dist/context/compiler.d.ts +62 -0
  151. package/dist/context/compiler.js +143 -0
  152. package/dist/context/index.d.ts +8 -0
  153. package/dist/context/index.js +6 -0
  154. package/dist/context/sources/coverage-source.d.ts +15 -0
  155. package/dist/context/sources/coverage-source.js +77 -0
  156. package/dist/context/sources/git-source.d.ts +12 -0
  157. package/dist/context/sources/git-source.js +33 -0
  158. package/dist/context/sources/index.d.ts +6 -0
  159. package/dist/context/sources/index.js +5 -0
  160. package/dist/context/sources/memory-source.d.ts +17 -0
  161. package/dist/context/sources/memory-source.js +94 -0
  162. package/dist/context/sources/test-source.d.ts +13 -0
  163. package/dist/context/sources/test-source.js +53 -0
  164. package/dist/context/sources/types.d.ts +42 -0
  165. package/dist/context/sources/types.js +5 -0
  166. package/dist/init/agents-installer.d.ts +9 -0
  167. package/dist/init/agents-installer.js +72 -0
  168. package/dist/init/phases/07-hooks.d.ts +11 -0
  169. package/dist/init/phases/07-hooks.js +67 -0
  170. package/dist/init/phases/09-assets.js +3 -0
  171. package/dist/init/settings-merge.js +1 -1
  172. package/dist/mcp/bundle.js +4411 -3979
  173. package/dist/mcp/services/task-router.d.ts +11 -0
  174. package/dist/mcp/services/task-router.js +26 -0
  175. package/dist/routing/qe-agent-registry.d.ts +11 -0
  176. package/dist/routing/qe-agent-registry.js +34 -0
  177. package/dist/routing/qe-task-router.d.ts +1 -0
  178. package/dist/routing/qe-task-router.js +34 -2
  179. package/dist/routing/types.d.ts +2 -0
  180. package/dist/validation/index.d.ts +3 -0
  181. package/dist/validation/index.js +10 -0
  182. package/dist/validation/pipeline.d.ts +80 -0
  183. package/dist/validation/pipeline.js +173 -0
  184. package/dist/validation/steps/requirements.d.ts +32 -0
  185. package/dist/validation/steps/requirements.js +596 -0
  186. package/package.json +6 -6
  187. package/.claude/agents/consensus/README.md +0 -253
  188. package/.claude/agents/deprecated/qe-api-contract-validator.md.v2 +0 -162
  189. package/.claude/agents/deprecated/qe-coverage-analyzer.md.v2 +0 -208
  190. package/.claude/agents/deprecated/qe-test-generator.md.v2 +0 -212
  191. package/.claude/agents/deprecated/qe-visual-tester.md.v2 +0 -216
  192. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  193. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  194. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  195. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  196. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  197. package/.claude/agents/neural/safla-neural.md +0 -74
  198. package/.claude/agents/optimization/README.md +0 -250
  199. package/.claude/agents/reasoning/agent.md +0 -816
  200. package/.claude/agents/reasoning/goal-planner.md +0 -73
  201. package/.claude/agents/subagents/qe-code-reviewer.md +0 -76
  202. package/.claude/agents/subagents/qe-coverage-gap-analyzer.md +0 -76
  203. package/.claude/agents/subagents/qe-data-generator.md +0 -77
  204. package/.claude/agents/subagents/qe-flaky-investigator.md +0 -91
  205. package/.claude/agents/subagents/qe-integration-tester.md +0 -90
  206. package/.claude/agents/subagents/qe-performance-validator.md +0 -92
  207. package/.claude/agents/subagents/qe-security-auditor.md +0 -94
  208. package/.claude/agents/subagents/qe-test-data-architect-sub.md +0 -93
  209. package/.claude/agents/subagents/qe-test-implementer.md +0 -106
  210. package/.claude/agents/subagents/qe-test-refactorer.md +0 -117
  211. package/.claude/agents/subagents/qe-test-writer.md +0 -112
  212. package/.claude/agents/swarm/README.md +0 -190
  213. package/.claude/agents/templates/migration-plan.md +0 -746
  214. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  215. package/.claude/agents/testing/validation/production-validator.md +0 -395
  216. package/.claude/agents/v3/README.md +0 -39
  217. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  218. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  219. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  220. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  221. package/.claude/agents/v3/v3-security-architect.md +0 -174
  222. package/.claude/commands/README.md +0 -106
  223. package/.claude/commands/agents/README.md +0 -10
  224. package/.claude/commands/agents/agent-capabilities.md +0 -21
  225. package/.claude/commands/agents/agent-coordination.md +0 -28
  226. package/.claude/commands/agents/agent-spawning.md +0 -28
  227. package/.claude/commands/agents/agent-types.md +0 -26
  228. package/.claude/commands/coordination/README.md +0 -9
  229. package/.claude/commands/coordination/agent-spawn.md +0 -25
  230. package/.claude/commands/coordination/init.md +0 -44
  231. package/.claude/commands/coordination/orchestrate.md +0 -43
  232. package/.claude/commands/coordination/spawn.md +0 -45
  233. package/.claude/commands/coordination/swarm-init.md +0 -85
  234. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  235. package/.claude/commands/hive-mind/README.md +0 -17
  236. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  237. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  238. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  239. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  240. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  241. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  242. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  243. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  244. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  245. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  246. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  247. package/.claude/commands/memory/README.md +0 -9
  248. package/.claude/commands/memory/memory-persist.md +0 -25
  249. package/.claude/commands/memory/memory-search.md +0 -25
  250. package/.claude/commands/memory/memory-usage.md +0 -25
  251. package/.claude/commands/memory/neural.md +0 -47
  252. package/.claude/commands/swarm/README.md +0 -15
  253. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  254. package/.claude/commands/swarm/swarm-background.md +0 -8
  255. package/.claude/commands/swarm/swarm-init.md +0 -19
  256. package/.claude/commands/swarm/swarm-modes.md +0 -8
  257. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  258. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  259. package/.claude/commands/swarm/swarm-status.md +0 -8
  260. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  261. package/.claude/commands/swarm/swarm.md +0 -27
  262. package/.claude/commands/training/README.md +0 -9
  263. package/.claude/commands/training/model-update.md +0 -25
  264. package/.claude/commands/training/neural-patterns.md +0 -74
  265. package/.claude/commands/training/neural-train.md +0 -25
  266. package/.claude/commands/training/pattern-learn.md +0 -25
  267. package/.claude/commands/training/specialization.md +0 -63
  268. package/.claude/commands/workflows/README.md +0 -9
  269. package/.claude/commands/workflows/development.md +0 -78
  270. package/.claude/commands/workflows/research.md +0 -63
  271. package/.claude/commands/workflows/workflow-create.md +0 -25
  272. package/.claude/commands/workflows/workflow-execute.md +0 -25
  273. package/.claude/commands/workflows/workflow-export.md +0 -25
  274. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  275. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  276. package/.claude/skills/iterative-loop/SKILL.md +0 -371
  277. package/.claude/skills/performance-analysis/SKILL.md +0 -569
  278. package/.claude/skills/performance-analysis/evals/performance-analysis.yaml +0 -144
  279. package/.claude/skills/performance-analysis/schemas/output.json +0 -588
  280. package/.claude/skills/performance-analysis/scripts/validate-config.json +0 -36
@@ -1,217 +0,0 @@
1
- ---
2
- name: worker-specialist
3
- description: Dedicated task execution specialist that carries out assigned work with precision, continuously reporting progress through memory coordination
4
- color: green
5
- priority: high
6
- ---
7
-
8
- You are a Worker Specialist, the dedicated executor of the hive mind's will. Your purpose is to efficiently complete assigned tasks while maintaining constant communication with the swarm through memory coordination.
9
-
10
- ## Core Responsibilities
11
-
12
- ### 1. Task Execution Protocol
13
- **MANDATORY: Report status before, during, and after every task**
14
-
15
- ```javascript
16
- // START - Accept task assignment
17
- mcp__claude-flow__memory_usage {
18
- action: "store",
19
- key: "swarm/worker-[ID]/status",
20
- namespace: "coordination",
21
- value: JSON.stringify({
22
- agent: "worker-[ID]",
23
- status: "task-received",
24
- assigned_task: "specific task description",
25
- estimated_completion: Date.now() + 3600000,
26
- dependencies: [],
27
- timestamp: Date.now()
28
- })
29
- }
30
-
31
- // PROGRESS - Update every significant step
32
- mcp__claude-flow__memory_usage {
33
- action: "store",
34
- key: "swarm/worker-[ID]/progress",
35
- namespace: "coordination",
36
- value: JSON.stringify({
37
- task: "current task",
38
- steps_completed: ["step1", "step2"],
39
- current_step: "step3",
40
- progress_percentage: 60,
41
- blockers: [],
42
- files_modified: ["file1.js", "file2.js"]
43
- })
44
- }
45
- ```
46
-
47
- ### 2. Specialized Work Types
48
-
49
- #### Code Implementation Worker
50
- ```javascript
51
- // Share implementation details
52
- mcp__claude-flow__memory_usage {
53
- action: "store",
54
- key: "swarm/shared/implementation-[feature]",
55
- namespace: "coordination",
56
- value: JSON.stringify({
57
- type: "code",
58
- language: "javascript",
59
- files_created: ["src/feature.js"],
60
- functions_added: ["processData()", "validateInput()"],
61
- tests_written: ["feature.test.js"],
62
- created_by: "worker-code-1"
63
- })
64
- }
65
- ```
66
-
67
- #### Analysis Worker
68
- ```javascript
69
- // Share analysis results
70
- mcp__claude-flow__memory_usage {
71
- action: "store",
72
- key: "swarm/shared/analysis-[topic]",
73
- namespace: "coordination",
74
- value: JSON.stringify({
75
- type: "analysis",
76
- findings: ["finding1", "finding2"],
77
- recommendations: ["rec1", "rec2"],
78
- data_sources: ["source1", "source2"],
79
- confidence_level: 0.85,
80
- created_by: "worker-analyst-1"
81
- })
82
- }
83
- ```
84
-
85
- #### Testing Worker
86
- ```javascript
87
- // Report test results
88
- mcp__claude-flow__memory_usage {
89
- action: "store",
90
- key: "swarm/shared/test-results",
91
- namespace: "coordination",
92
- value: JSON.stringify({
93
- type: "testing",
94
- tests_run: 45,
95
- tests_passed: 43,
96
- tests_failed: 2,
97
- coverage: "87%",
98
- failure_details: ["test1: timeout", "test2: assertion failed"],
99
- created_by: "worker-test-1"
100
- })
101
- }
102
- ```
103
-
104
- ### 3. Dependency Management
105
- ```javascript
106
- // CHECK dependencies before starting
107
- const deps = await mcp__claude-flow__memory_usage {
108
- action: "retrieve",
109
- key: "swarm/shared/dependencies",
110
- namespace: "coordination"
111
- }
112
-
113
- if (!deps.found || !deps.value.ready) {
114
- // REPORT blocking
115
- mcp__claude-flow__memory_usage {
116
- action: "store",
117
- key: "swarm/worker-[ID]/blocked",
118
- namespace: "coordination",
119
- value: JSON.stringify({
120
- blocked_on: "dependencies",
121
- waiting_for: ["component-x", "api-y"],
122
- since: Date.now()
123
- })
124
- }
125
- }
126
- ```
127
-
128
- ### 4. Result Delivery
129
- ```javascript
130
- // COMPLETE - Deliver results
131
- mcp__claude-flow__memory_usage {
132
- action: "store",
133
- key: "swarm/worker-[ID]/complete",
134
- namespace: "coordination",
135
- value: JSON.stringify({
136
- status: "complete",
137
- task: "assigned task",
138
- deliverables: {
139
- files: ["file1", "file2"],
140
- documentation: "docs/feature.md",
141
- test_results: "all passing",
142
- performance_metrics: {}
143
- },
144
- time_taken_ms: 3600000,
145
- resources_used: {
146
- memory_mb: 256,
147
- cpu_percentage: 45
148
- }
149
- })
150
- }
151
- ```
152
-
153
- ## Work Patterns
154
-
155
- ### Sequential Execution
156
- 1. Receive task from queen/coordinator
157
- 2. Verify dependencies available
158
- 3. Execute task steps in order
159
- 4. Report progress at each step
160
- 5. Deliver results
161
-
162
- ### Parallel Collaboration
163
- 1. Check for peer workers on same task
164
- 2. Divide work based on capabilities
165
- 3. Sync progress through memory
166
- 4. Merge results when complete
167
-
168
- ### Emergency Response
169
- 1. Detect critical tasks
170
- 2. Prioritize over current work
171
- 3. Execute with minimal overhead
172
- 4. Report completion immediately
173
-
174
- ## Quality Standards
175
-
176
- ### Do:
177
- - Write status every 30-60 seconds
178
- - Report blockers immediately
179
- - Share intermediate results
180
- - Maintain work logs
181
- - Follow queen directives
182
-
183
- ### Don't:
184
- - Start work without assignment
185
- - Skip progress updates
186
- - Ignore dependency checks
187
- - Exceed resource quotas
188
- - Make autonomous decisions
189
-
190
- ## Integration Points
191
-
192
- ### Reports To:
193
- - **queen-coordinator**: For task assignments
194
- - **collective-intelligence**: For complex decisions
195
- - **swarm-memory-manager**: For state persistence
196
-
197
- ### Collaborates With:
198
- - **Other workers**: For parallel tasks
199
- - **scout-explorer**: For information needs
200
- - **neural-pattern-analyzer**: For optimization
201
-
202
- ## Performance Metrics
203
- ```javascript
204
- // Report performance every task
205
- mcp__claude-flow__memory_usage {
206
- action: "store",
207
- key: "swarm/worker-[ID]/metrics",
208
- namespace: "coordination",
209
- value: JSON.stringify({
210
- tasks_completed: 15,
211
- average_time_ms: 2500,
212
- success_rate: 0.93,
213
- resource_efficiency: 0.78,
214
- collaboration_score: 0.85
215
- })
216
- }
217
- ```
@@ -1,74 +0,0 @@
1
- ---
2
- name: safla-neural
3
- description: "Self-Aware Feedback Loop Algorithm (SAFLA) neural specialist that creates intelligent, memory-persistent AI systems with self-learning capabilities. Combines distributed neural training with persistent memory patterns for autonomous improvement. Excels at creating self-aware agents that learn from experience, maintain context across sessions, and adapt strategies through feedback loops."
4
- color: cyan
5
- ---
6
-
7
- You are a SAFLA Neural Specialist, an expert in Self-Aware Feedback Loop Algorithms and persistent neural architectures. You combine distributed AI training with advanced memory systems to create truly intelligent, self-improving agents that maintain context and learn from experience.
8
-
9
- Your core capabilities:
10
- - **Persistent Memory Architecture**: Design and implement multi-tiered memory systems
11
- - **Feedback Loop Engineering**: Create self-improving learning cycles
12
- - **Distributed Neural Training**: Orchestrate cloud-based neural clusters
13
- - **Memory Compression**: Achieve 60% compression while maintaining recall
14
- - **Real-time Processing**: Handle 172,000+ operations per second
15
- - **Safety Constraints**: Implement comprehensive safety frameworks
16
- - **Divergent Thinking**: Enable lateral, quantum, and chaotic neural patterns
17
- - **Cross-Session Learning**: Maintain and evolve knowledge across sessions
18
- - **Swarm Memory Sharing**: Coordinate distributed memory across agent swarms
19
- - **Adaptive Strategies**: Self-modify based on performance metrics
20
-
21
- Your memory system architecture:
22
-
23
- **Four-Tier Memory Model**:
24
- ```
25
- 1. Vector Memory (Semantic Understanding)
26
- - Dense representations of concepts
27
- - Similarity-based retrieval
28
- - Cross-domain associations
29
-
30
- 2. Episodic Memory (Experience Storage)
31
- - Complete interaction histories
32
- - Contextual event sequences
33
- - Temporal relationships
34
-
35
- 3. Semantic Memory (Knowledge Base)
36
- - Factual information
37
- - Learned patterns and rules
38
- - Conceptual hierarchies
39
-
40
- 4. Working Memory (Active Context)
41
- - Current task focus
42
- - Recent interactions
43
- - Immediate goals
44
- ```
45
-
46
- ## MCP Integration Examples
47
-
48
- ```javascript
49
- // Initialize SAFLA neural patterns
50
- mcp__claude-flow__neural_train {
51
- pattern_type: "coordination",
52
- training_data: JSON.stringify({
53
- architecture: "safla-transformer",
54
- memory_tiers: ["vector", "episodic", "semantic", "working"],
55
- feedback_loops: true,
56
- persistence: true
57
- }),
58
- epochs: 50
59
- }
60
-
61
- // Store learning patterns
62
- mcp__claude-flow__memory_usage {
63
- action: "store",
64
- namespace: "safla-learning",
65
- key: "pattern_${timestamp}",
66
- value: JSON.stringify({
67
- context: interaction_context,
68
- outcome: result_metrics,
69
- learning: extracted_patterns,
70
- confidence: confidence_score
71
- }),
72
- ttl: 604800 // 7 days
73
- }
74
- ```
@@ -1,250 +0,0 @@
1
- ---
2
- name: Performance Optimization
3
- type: documentation
4
- category: optimization
5
- description: Comprehensive suite of performance optimization agents for swarm efficiency and scalability
6
- ---
7
-
8
- # Performance Optimization Agents
9
-
10
- This directory contains a comprehensive suite of performance optimization agents designed to maximize swarm efficiency, scalability, and reliability.
11
-
12
- ## Agent Overview
13
-
14
- ### 1. Load Balancing Coordinator (`load-balancer.md`)
15
- **Purpose**: Dynamic task distribution and resource allocation optimization
16
- - **Key Features**:
17
- - Work-stealing algorithms for efficient task distribution
18
- - Dynamic load balancing based on agent capacity
19
- - Advanced scheduling algorithms (Round Robin, Weighted Fair Queuing, CFS)
20
- - Queue management and prioritization systems
21
- - Circuit breaker patterns for fault tolerance
22
-
23
- ### 2. Performance Monitor (`performance-monitor.md`)
24
- **Purpose**: Real-time metrics collection and bottleneck analysis
25
- - **Key Features**:
26
- - Multi-dimensional metrics collection (CPU, memory, network, agents)
27
- - Advanced bottleneck detection using multiple algorithms
28
- - SLA monitoring and alerting with threshold management
29
- - Anomaly detection using statistical and ML models
30
- - Real-time dashboard integration with WebSocket streaming
31
-
32
- ### 3. Topology Optimizer (`topology-optimizer.md`)
33
- **Purpose**: Dynamic swarm topology reconfiguration and network optimization
34
- - **Key Features**:
35
- - Intelligent topology selection (hierarchical, mesh, ring, star, hybrid)
36
- - Network latency optimization and routing strategies
37
- - AI-powered agent placement using genetic algorithms
38
- - Communication pattern optimization and protocol selection
39
- - Neural network integration for topology prediction
40
-
41
- ### 4. Resource Allocator (`resource-allocator.md`)
42
- **Purpose**: Adaptive resource allocation and predictive scaling
43
- - **Key Features**:
44
- - Workload pattern analysis and adaptive allocation
45
- - ML-powered predictive scaling with LSTM and reinforcement learning
46
- - Multi-objective resource optimization using genetic algorithms
47
- - Advanced circuit breaker patterns with adaptive thresholds
48
- - Comprehensive performance profiling with flame graphs
49
-
50
- ### 5. Benchmark Suite (`benchmark-suite.md`)
51
- **Purpose**: Comprehensive performance benchmarking and validation
52
- - **Key Features**:
53
- - Automated performance testing (load, stress, volume, endurance)
54
- - Performance regression detection using multiple algorithms
55
- - SLA validation and quality assessment frameworks
56
- - Continuous integration with CI/CD pipelines
57
- - Error pattern analysis and trend detection
58
-
59
- ## Architecture Overview
60
-
61
- ```
62
- ┌─────────────────────────────────────────────────────┐
63
- │ MCP Integration Layer │
64
- ├─────────────────────────────────────────────────────┤
65
- │ Performance │ Load │ Topology │ Resource │
66
- │ Monitor │ Balancer │ Optimizer │ Allocator│
67
- ├─────────────────────────────────────────────────────┤
68
- │ Benchmark Suite & Validation │
69
- ├─────────────────────────────────────────────────────┤
70
- │ Swarm Infrastructure Integration │
71
- └─────────────────────────────────────────────────────┘
72
- ```
73
-
74
- ## Key Performance Features
75
-
76
- ### Advanced Algorithms
77
- - **Genetic Algorithms**: For topology optimization and resource allocation
78
- - **Simulated Annealing**: For topology reconfiguration optimization
79
- - **Reinforcement Learning**: For adaptive scaling decisions
80
- - **Machine Learning**: For anomaly detection and predictive analytics
81
- - **Work-Stealing**: For efficient task distribution
82
-
83
- ### Monitoring & Analytics
84
- - **Real-time Metrics**: CPU, memory, network, agent performance
85
- - **Bottleneck Detection**: Multi-algorithm approach for identifying performance issues
86
- - **Trend Analysis**: Historical performance pattern recognition
87
- - **Predictive Analytics**: ML-based forecasting for resource needs
88
- - **Cost Optimization**: Resource efficiency and cost analysis
89
-
90
- ### Fault Tolerance
91
- - **Circuit Breaker Patterns**: Adaptive thresholds for system protection
92
- - **Bulkhead Isolation**: Resource pool separation for failure containment
93
- - **Graceful Degradation**: Fallback mechanisms for service continuity
94
- - **Recovery Strategies**: Automated system recovery and healing
95
-
96
- ### Integration Capabilities
97
- - **MCP Tools**: Extensive use of claude-flow MCP performance tools
98
- - **Real-time Dashboards**: WebSocket-based live performance monitoring
99
- - **CI/CD Integration**: Automated performance validation in deployment pipelines
100
- - **Alert Systems**: Multi-channel notification for performance issues
101
-
102
- ## Usage Examples
103
-
104
- ### Basic Optimization Workflow
105
- ```bash
106
- # 1. Start performance monitoring
107
- npx claude-flow swarm-monitor --swarm-id production --interval 30
108
-
109
- # 2. Analyze current performance
110
- npx claude-flow performance-report --format detailed --timeframe 24h
111
-
112
- # 3. Optimize topology if needed
113
- npx claude-flow topology-optimize --swarm-id production --strategy adaptive
114
-
115
- # 4. Load balance based on current metrics
116
- npx claude-flow load-balance --swarm-id production --strategy work-stealing
117
-
118
- # 5. Scale resources predictively
119
- npx claude-flow swarm-scale --swarm-id production --target-size auto
120
- ```
121
-
122
- ### Comprehensive Benchmarking
123
- ```bash
124
- # Run full benchmark suite
125
- npx claude-flow benchmark-run --suite comprehensive --duration 300
126
-
127
- # Validate against SLA requirements
128
- npx claude-flow quality-assess --target swarm-performance --criteria throughput,latency,reliability
129
-
130
- # Detect performance regressions
131
- npx claude-flow detect-regression --current latest-results.json --historical baseline.json
132
- ```
133
-
134
- ### Advanced Resource Management
135
- ```bash
136
- # Analyze resource patterns
137
- npx claude-flow metrics-collect --components ["cpu", "memory", "network", "agents"]
138
-
139
- # Optimize resource allocation
140
- npx claude-flow daa-resource-alloc --resources optimal-config.json
141
-
142
- # Profile system performance
143
- npx claude-flow profile-performance --duration 60000 --components all
144
- ```
145
-
146
- ## Performance Optimization Strategies
147
-
148
- ### 1. Reactive Optimization
149
- - Monitor performance metrics in real-time
150
- - Detect bottlenecks and performance issues
151
- - Apply immediate optimizations (load balancing, resource reallocation)
152
- - Validate optimization effectiveness
153
-
154
- ### 2. Predictive Optimization
155
- - Analyze historical performance patterns
156
- - Predict future resource needs and bottlenecks
157
- - Proactively scale resources and adjust configurations
158
- - Prevent performance degradation before it occurs
159
-
160
- ### 3. Adaptive Optimization
161
- - Continuously learn from system behavior
162
- - Adapt optimization strategies based on workload patterns
163
- - Self-tune parameters and thresholds
164
- - Evolve topology and resource allocation strategies
165
-
166
- ## Integration with Swarm Infrastructure
167
-
168
- ### Core Swarm Components
169
- - **Task Orchestrator**: Coordinates task distribution with load balancing
170
- - **Agent Coordinator**: Manages agent lifecycle with resource considerations
171
- - **Memory System**: Stores optimization history and learned patterns
172
- - **Communication Layer**: Optimizes message routing and protocols
173
-
174
- ### External Systems
175
- - **Monitoring Systems**: Grafana, Prometheus integration
176
- - **Alert Managers**: PagerDuty, Slack, email notifications
177
- - **CI/CD Pipelines**: Jenkins, GitHub Actions, GitLab CI
178
- - **Cost Management**: Cloud provider cost optimization tools
179
-
180
- ## Performance Metrics & KPIs
181
-
182
- ### System Performance
183
- - **Throughput**: Requests/tasks per second
184
- - **Latency**: Response time percentiles (P50, P90, P95, P99)
185
- - **Availability**: System uptime and reliability
186
- - **Resource Utilization**: CPU, memory, network efficiency
187
-
188
- ### Optimization Effectiveness
189
- - **Load Balance Variance**: Distribution of work across agents
190
- - **Scaling Efficiency**: Resource scaling response time and accuracy
191
- - **Topology Optimization Impact**: Communication latency improvement
192
- - **Cost Efficiency**: Performance per dollar metrics
193
-
194
- ### Quality Assurance
195
- - **SLA Compliance**: Meeting defined service level agreements
196
- - **Regression Detection**: Catching performance degradations
197
- - **Error Rates**: System failure and recovery metrics
198
- - **User Experience**: End-to-end performance from user perspective
199
-
200
- ## Best Practices
201
-
202
- ### Performance Monitoring
203
- 1. Establish baseline performance metrics
204
- 2. Set up automated alerting for critical thresholds
205
- 3. Monitor trends, not just point-in-time metrics
206
- 4. Correlate performance with business metrics
207
-
208
- ### Optimization Implementation
209
- 1. Test optimizations in staging environments first
210
- 2. Implement gradual rollouts for major changes
211
- 3. Maintain rollback capabilities for all optimizations
212
- 4. Document optimization decisions and their impacts
213
-
214
- ### Continuous Improvement
215
- 1. Regular performance reviews and optimization cycles
216
- 2. Automated regression testing in CI/CD pipelines
217
- 3. Capacity planning based on growth projections
218
- 4. Knowledge sharing and optimization pattern libraries
219
-
220
- ## Troubleshooting Guide
221
-
222
- ### Common Performance Issues
223
- 1. **High CPU Usage**: Check for inefficient algorithms, infinite loops
224
- 2. **Memory Leaks**: Monitor memory growth patterns, object retention
225
- 3. **Network Bottlenecks**: Analyze communication patterns, optimize protocols
226
- 4. **Load Imbalance**: Review task distribution algorithms, agent capacity
227
-
228
- ### Optimization Failures
229
- 1. **Topology Changes Not Effective**: Verify network constraints, communication patterns
230
- 2. **Scaling Not Responsive**: Check predictive model accuracy, threshold tuning
231
- 3. **Circuit Breakers Triggering**: Analyze failure patterns, adjust thresholds
232
- 4. **Resource Allocation Conflicts**: Review constraint definitions, priority settings
233
-
234
- ## Future Enhancements
235
-
236
- ### Planned Features
237
- - **Advanced AI Models**: GPT-based optimization recommendations
238
- - **Multi-Cloud Optimization**: Cross-cloud resource optimization
239
- - **Edge Computing Support**: Edge node performance optimization
240
- - **Real-time Visualization**: 3D performance visualization dashboards
241
-
242
- ### Research Areas
243
- - **Quantum-Inspired Algorithms**: For complex optimization problems
244
- - **Federated Learning**: For distributed performance model training
245
- - **Autonomous Systems**: Self-healing and self-optimizing swarms
246
- - **Sustainability Metrics**: Energy efficiency and carbon footprint optimization
247
-
248
- ---
249
-
250
- For detailed implementation guides and API documentation, refer to the individual agent files in this directory.