agentic-qe 3.7.15 → 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 (301) 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 -134
  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 +44 -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 +2469 -634
  149. package/dist/cli/commands/coverage.js +50 -0
  150. package/dist/cli/handlers/brain-handler.js +2 -1
  151. package/dist/context/compiler.d.ts +62 -0
  152. package/dist/context/compiler.js +143 -0
  153. package/dist/context/index.d.ts +8 -0
  154. package/dist/context/index.js +6 -0
  155. package/dist/context/sources/coverage-source.d.ts +15 -0
  156. package/dist/context/sources/coverage-source.js +77 -0
  157. package/dist/context/sources/git-source.d.ts +12 -0
  158. package/dist/context/sources/git-source.js +33 -0
  159. package/dist/context/sources/index.d.ts +6 -0
  160. package/dist/context/sources/index.js +5 -0
  161. package/dist/context/sources/memory-source.d.ts +17 -0
  162. package/dist/context/sources/memory-source.js +94 -0
  163. package/dist/context/sources/test-source.d.ts +13 -0
  164. package/dist/context/sources/test-source.js +53 -0
  165. package/dist/context/sources/types.d.ts +42 -0
  166. package/dist/context/sources/types.js +5 -0
  167. package/dist/domains/test-generation/coordinator.js +6 -4
  168. package/dist/feedback/feedback-loop.d.ts +5 -0
  169. package/dist/feedback/feedback-loop.js +12 -0
  170. package/dist/feedback/index.d.ts +1 -1
  171. package/dist/feedback/index.js +1 -1
  172. package/dist/init/agents-installer.d.ts +9 -0
  173. package/dist/init/agents-installer.js +72 -0
  174. package/dist/init/phases/07-hooks.d.ts +11 -0
  175. package/dist/init/phases/07-hooks.js +67 -0
  176. package/dist/init/phases/09-assets.js +3 -0
  177. package/dist/init/settings-merge.js +1 -1
  178. package/dist/kernel/hnsw-adapter.d.ts +3 -0
  179. package/dist/kernel/hnsw-adapter.js +11 -1
  180. package/dist/kernel/unified-memory-schemas.d.ts +1 -1
  181. package/dist/kernel/unified-memory-schemas.js +2 -0
  182. package/dist/kernel/unified-memory.js +25 -0
  183. package/dist/learning/experience-capture-middleware.js +24 -0
  184. package/dist/learning/sqlite-persistence.d.ts +3 -0
  185. package/dist/learning/sqlite-persistence.js +9 -0
  186. package/dist/learning/token-tracker.js +4 -0
  187. package/dist/mcp/bundle.js +3694 -3101
  188. package/dist/mcp/handlers/handler-factory.js +92 -11
  189. package/dist/mcp/services/task-router.d.ts +11 -0
  190. package/dist/mcp/services/task-router.js +26 -0
  191. package/dist/routing/qe-agent-registry.d.ts +11 -0
  192. package/dist/routing/qe-agent-registry.js +34 -0
  193. package/dist/routing/qe-task-router.d.ts +1 -0
  194. package/dist/routing/qe-task-router.js +34 -2
  195. package/dist/routing/routing-feedback.d.ts +5 -0
  196. package/dist/routing/routing-feedback.js +29 -3
  197. package/dist/routing/types.d.ts +2 -0
  198. package/dist/sync/pull-agent.js +2 -1
  199. package/dist/test-scheduling/pipeline.d.ts +7 -0
  200. package/dist/test-scheduling/pipeline.js +9 -0
  201. package/dist/validation/index.d.ts +3 -0
  202. package/dist/validation/index.js +10 -0
  203. package/dist/validation/pipeline.d.ts +80 -0
  204. package/dist/validation/pipeline.js +173 -0
  205. package/dist/validation/steps/requirements.d.ts +32 -0
  206. package/dist/validation/steps/requirements.js +596 -0
  207. package/package.json +6 -6
  208. package/.claude/agents/consensus/README.md +0 -253
  209. package/.claude/agents/deprecated/qe-api-contract-validator.md.v2 +0 -162
  210. package/.claude/agents/deprecated/qe-coverage-analyzer.md.v2 +0 -208
  211. package/.claude/agents/deprecated/qe-test-generator.md.v2 +0 -212
  212. package/.claude/agents/deprecated/qe-visual-tester.md.v2 +0 -216
  213. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  214. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  215. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  216. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  217. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  218. package/.claude/agents/neural/safla-neural.md +0 -74
  219. package/.claude/agents/optimization/README.md +0 -250
  220. package/.claude/agents/reasoning/agent.md +0 -816
  221. package/.claude/agents/reasoning/goal-planner.md +0 -73
  222. package/.claude/agents/subagents/qe-code-reviewer.md +0 -76
  223. package/.claude/agents/subagents/qe-coverage-gap-analyzer.md +0 -76
  224. package/.claude/agents/subagents/qe-data-generator.md +0 -77
  225. package/.claude/agents/subagents/qe-flaky-investigator.md +0 -91
  226. package/.claude/agents/subagents/qe-integration-tester.md +0 -90
  227. package/.claude/agents/subagents/qe-performance-validator.md +0 -92
  228. package/.claude/agents/subagents/qe-security-auditor.md +0 -94
  229. package/.claude/agents/subagents/qe-test-data-architect-sub.md +0 -93
  230. package/.claude/agents/subagents/qe-test-implementer.md +0 -106
  231. package/.claude/agents/subagents/qe-test-refactorer.md +0 -117
  232. package/.claude/agents/subagents/qe-test-writer.md +0 -112
  233. package/.claude/agents/swarm/README.md +0 -190
  234. package/.claude/agents/templates/migration-plan.md +0 -746
  235. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  236. package/.claude/agents/testing/validation/production-validator.md +0 -395
  237. package/.claude/agents/v3/README.md +0 -39
  238. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  239. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  240. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  241. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  242. package/.claude/agents/v3/v3-security-architect.md +0 -174
  243. package/.claude/commands/README.md +0 -106
  244. package/.claude/commands/agents/README.md +0 -10
  245. package/.claude/commands/agents/agent-capabilities.md +0 -21
  246. package/.claude/commands/agents/agent-coordination.md +0 -28
  247. package/.claude/commands/agents/agent-spawning.md +0 -28
  248. package/.claude/commands/agents/agent-types.md +0 -26
  249. package/.claude/commands/coordination/README.md +0 -9
  250. package/.claude/commands/coordination/agent-spawn.md +0 -25
  251. package/.claude/commands/coordination/init.md +0 -44
  252. package/.claude/commands/coordination/orchestrate.md +0 -43
  253. package/.claude/commands/coordination/spawn.md +0 -45
  254. package/.claude/commands/coordination/swarm-init.md +0 -85
  255. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  256. package/.claude/commands/hive-mind/README.md +0 -17
  257. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  258. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  259. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  260. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  261. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  262. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  263. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  264. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  265. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  266. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  267. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  268. package/.claude/commands/memory/README.md +0 -9
  269. package/.claude/commands/memory/memory-persist.md +0 -25
  270. package/.claude/commands/memory/memory-search.md +0 -25
  271. package/.claude/commands/memory/memory-usage.md +0 -25
  272. package/.claude/commands/memory/neural.md +0 -47
  273. package/.claude/commands/swarm/README.md +0 -15
  274. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  275. package/.claude/commands/swarm/swarm-background.md +0 -8
  276. package/.claude/commands/swarm/swarm-init.md +0 -19
  277. package/.claude/commands/swarm/swarm-modes.md +0 -8
  278. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  279. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  280. package/.claude/commands/swarm/swarm-status.md +0 -8
  281. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  282. package/.claude/commands/swarm/swarm.md +0 -27
  283. package/.claude/commands/training/README.md +0 -9
  284. package/.claude/commands/training/model-update.md +0 -25
  285. package/.claude/commands/training/neural-patterns.md +0 -74
  286. package/.claude/commands/training/neural-train.md +0 -25
  287. package/.claude/commands/training/pattern-learn.md +0 -25
  288. package/.claude/commands/training/specialization.md +0 -63
  289. package/.claude/commands/workflows/README.md +0 -9
  290. package/.claude/commands/workflows/development.md +0 -78
  291. package/.claude/commands/workflows/research.md +0 -63
  292. package/.claude/commands/workflows/workflow-create.md +0 -25
  293. package/.claude/commands/workflows/workflow-execute.md +0 -25
  294. package/.claude/commands/workflows/workflow-export.md +0 -25
  295. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  296. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  297. package/.claude/skills/iterative-loop/SKILL.md +0 -371
  298. package/.claude/skills/performance-analysis/SKILL.md +0 -569
  299. package/.claude/skills/performance-analysis/evals/performance-analysis.yaml +0 -144
  300. package/.claude/skills/performance-analysis/schemas/output.json +0 -588
  301. package/.claude/skills/performance-analysis/scripts/validate-config.json +0 -36
@@ -1,569 +0,0 @@
1
- ---
2
- name: performance-analysis
3
- version: 1.0.0
4
- description: Comprehensive performance analysis, bottleneck detection, and optimization recommendations for Claude Flow swarms
5
- category: monitoring
6
- tags: [performance, bottleneck, optimization, profiling, metrics, analysis]
7
- author: Claude Flow Team
8
- trust_tier: 3
9
- validation:
10
- schema_path: schemas/output.json
11
- validator_path: scripts/validate-config.json
12
- eval_path: evals/performance-analysis.yaml
13
-
14
- ---
15
-
16
- # Performance Analysis Skill
17
-
18
- Comprehensive performance analysis suite for identifying bottlenecks, profiling swarm operations, generating detailed reports, and providing actionable optimization recommendations.
19
-
20
- ## Overview
21
-
22
- This skill consolidates all performance analysis capabilities:
23
- - **Bottleneck Detection**: Identify performance bottlenecks across communication, processing, memory, and network
24
- - **Performance Profiling**: Real-time monitoring and historical analysis of swarm operations
25
- - **Report Generation**: Create comprehensive performance reports in multiple formats
26
- - **Optimization Recommendations**: AI-powered suggestions for improving performance
27
-
28
- ## Quick Start
29
-
30
- ### Basic Bottleneck Detection
31
- ```bash
32
- npx claude-flow bottleneck detect
33
- ```
34
-
35
- ### Generate Performance Report
36
- ```bash
37
- npx claude-flow analysis performance-report --format html --include-metrics
38
- ```
39
-
40
- ### Analyze and Auto-Fix
41
- ```bash
42
- npx claude-flow bottleneck detect --fix --threshold 15
43
- ```
44
-
45
- ## Core Capabilities
46
-
47
- ### 1. Bottleneck Detection
48
-
49
- #### Command Syntax
50
- ```bash
51
- npx claude-flow bottleneck detect [options]
52
- ```
53
-
54
- #### Options
55
- - `--swarm-id, -s <id>` - Analyze specific swarm (default: current)
56
- - `--time-range, -t <range>` - Analysis period: 1h, 24h, 7d, all (default: 1h)
57
- - `--threshold <percent>` - Bottleneck threshold percentage (default: 20)
58
- - `--export, -e <file>` - Export analysis to file
59
- - `--fix` - Apply automatic optimizations
60
-
61
- #### Usage Examples
62
- ```bash
63
- # Basic detection for current swarm
64
- npx claude-flow bottleneck detect
65
-
66
- # Analyze specific swarm over 24 hours
67
- npx claude-flow bottleneck detect --swarm-id swarm-123 -t 24h
68
-
69
- # Export detailed analysis
70
- npx claude-flow bottleneck detect -t 24h -e bottlenecks.json
71
-
72
- # Auto-fix detected issues
73
- npx claude-flow bottleneck detect --fix --threshold 15
74
-
75
- # Low threshold for sensitive detection
76
- npx claude-flow bottleneck detect --threshold 10 --export critical-issues.json
77
- ```
78
-
79
- #### Metrics Analyzed
80
-
81
- **Communication Bottlenecks:**
82
- - Message queue delays
83
- - Agent response times
84
- - Coordination overhead
85
- - Memory access patterns
86
- - Inter-agent communication latency
87
-
88
- **Processing Bottlenecks:**
89
- - Task completion times
90
- - Agent utilization rates
91
- - Parallel execution efficiency
92
- - Resource contention
93
- - CPU/memory usage patterns
94
-
95
- **Memory Bottlenecks:**
96
- - Cache hit rates
97
- - Memory access patterns
98
- - Storage I/O performance
99
- - Neural pattern loading times
100
- - Memory allocation efficiency
101
-
102
- **Network Bottlenecks:**
103
- - API call latency
104
- - MCP communication delays
105
- - External service timeouts
106
- - Concurrent request limits
107
- - Network throughput issues
108
-
109
- #### Output Format
110
- ```
111
- 🔍 Bottleneck Analysis Report
112
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
113
-
114
- 📊 Summary
115
- ├── Time Range: Last 1 hour
116
- ├── Agents Analyzed: 6
117
- ├── Tasks Processed: 42
118
- └── Critical Issues: 2
119
-
120
- 🚨 Critical Bottlenecks
121
- 1. Agent Communication (35% impact)
122
- └── coordinator → coder-1 messages delayed by 2.3s avg
123
-
124
- 2. Memory Access (28% impact)
125
- └── Neural pattern loading taking 1.8s per access
126
-
127
- ⚠️ Warning Bottlenecks
128
- 1. Task Queue (18% impact)
129
- └── 5 tasks waiting > 10s for assignment
130
-
131
- 💡 Recommendations
132
- 1. Switch to hierarchical topology (est. 40% improvement)
133
- 2. Enable memory caching (est. 25% improvement)
134
- 3. Increase agent concurrency to 8 (est. 20% improvement)
135
-
136
- ✅ Quick Fixes Available
137
- Run with --fix to apply:
138
- - Enable smart caching
139
- - Optimize message routing
140
- - Adjust agent priorities
141
- ```
142
-
143
- ### 2. Performance Profiling
144
-
145
- #### Real-time Detection
146
- Automatic analysis during task execution:
147
- - Execution time vs. complexity
148
- - Agent utilization rates
149
- - Resource constraints
150
- - Operation patterns
151
-
152
- #### Common Bottleneck Patterns
153
-
154
- **Time Bottlenecks:**
155
- - Tasks taking > 5 minutes
156
- - Sequential operations that could parallelize
157
- - Redundant file operations
158
- - Inefficient algorithm implementations
159
-
160
- **Coordination Bottlenecks:**
161
- - Single agent for complex tasks
162
- - Unbalanced agent workloads
163
- - Poor topology selection
164
- - Excessive synchronization points
165
-
166
- **Resource Bottlenecks:**
167
- - High operation count (> 100)
168
- - Memory constraints
169
- - I/O limitations
170
- - Thread pool saturation
171
-
172
- #### MCP Integration
173
- ```javascript
174
- // Check for bottlenecks in Claude Code
175
- mcp__claude-flow__bottleneck_detect({
176
- timeRange: "1h",
177
- threshold: 20,
178
- autoFix: false
179
- })
180
-
181
- // Get detailed task results with bottleneck analysis
182
- mcp__claude-flow__task_results({
183
- taskId: "task-123",
184
- format: "detailed"
185
- })
186
- ```
187
-
188
- **Result Format:**
189
- ```json
190
- {
191
- "bottlenecks": [
192
- {
193
- "type": "coordination",
194
- "severity": "high",
195
- "description": "Single agent used for complex task",
196
- "recommendation": "Spawn specialized agents for parallel work",
197
- "impact": "35%",
198
- "affectedComponents": ["coordinator", "coder-1"]
199
- }
200
- ],
201
- "improvements": [
202
- {
203
- "area": "execution_time",
204
- "suggestion": "Use parallel task execution",
205
- "expectedImprovement": "30-50% time reduction",
206
- "implementationSteps": [
207
- "Split task into smaller units",
208
- "Spawn 3-4 specialized agents",
209
- "Use mesh topology for coordination"
210
- ]
211
- }
212
- ],
213
- "metrics": {
214
- "avgExecutionTime": "142s",
215
- "agentUtilization": "67%",
216
- "cacheHitRate": "82%",
217
- "parallelizationFactor": 1.2
218
- }
219
- }
220
- ```
221
-
222
- ### 3. Report Generation
223
-
224
- #### Command Syntax
225
- ```bash
226
- npx claude-flow analysis performance-report [options]
227
- ```
228
-
229
- #### Options
230
- - `--format <type>` - Report format: json, html, markdown (default: markdown)
231
- - `--include-metrics` - Include detailed metrics and charts
232
- - `--compare <id>` - Compare with previous swarm
233
- - `--time-range <range>` - Analysis period: 1h, 24h, 7d, 30d, all
234
- - `--output <file>` - Output file path
235
- - `--sections <list>` - Comma-separated sections to include
236
-
237
- #### Report Sections
238
- 1. **Executive Summary**
239
- - Overall performance score
240
- - Key metrics overview
241
- - Critical findings
242
-
243
- 2. **Swarm Overview**
244
- - Topology configuration
245
- - Agent distribution
246
- - Task statistics
247
-
248
- 3. **Performance Metrics**
249
- - Execution times
250
- - Throughput analysis
251
- - Resource utilization
252
- - Latency breakdown
253
-
254
- 4. **Bottleneck Analysis**
255
- - Identified bottlenecks
256
- - Impact assessment
257
- - Optimization priorities
258
-
259
- 5. **Comparative Analysis** (when --compare used)
260
- - Performance trends
261
- - Improvement metrics
262
- - Regression detection
263
-
264
- 6. **Recommendations**
265
- - Prioritized action items
266
- - Expected improvements
267
- - Implementation guidance
268
-
269
- #### Usage Examples
270
- ```bash
271
- # Generate HTML report with all metrics
272
- npx claude-flow analysis performance-report --format html --include-metrics
273
-
274
- # Compare current swarm with previous
275
- npx claude-flow analysis performance-report --compare swarm-123 --format markdown
276
-
277
- # Custom output with specific sections
278
- npx claude-flow analysis performance-report \
279
- --sections summary,metrics,recommendations \
280
- --output reports/perf-analysis.html \
281
- --format html
282
-
283
- # Weekly performance report
284
- npx claude-flow analysis performance-report \
285
- --time-range 7d \
286
- --include-metrics \
287
- --format markdown \
288
- --output docs/weekly-performance.md
289
-
290
- # JSON format for CI/CD integration
291
- npx claude-flow analysis performance-report \
292
- --format json \
293
- --output build/performance.json
294
- ```
295
-
296
- #### Sample Markdown Report
297
- ```markdown
298
- # Performance Analysis Report
299
-
300
- ## Executive Summary
301
- - **Overall Score**: 87/100
302
- - **Analysis Period**: Last 24 hours
303
- - **Swarms Analyzed**: 3
304
- - **Critical Issues**: 1
305
-
306
- ## Key Metrics
307
- | Metric | Value | Trend | Target |
308
- |--------|-------|-------|--------|
309
- | Avg Task Time | 42s | ↓ 12% | 35s |
310
- | Agent Utilization | 78% | ↑ 5% | 85% |
311
- | Cache Hit Rate | 91% | → | 90% |
312
- | Parallel Efficiency | 2.3x | ↑ 0.4x | 2.5x |
313
-
314
- ## Bottleneck Analysis
315
- ### Critical
316
- 1. **Agent Communication Delay** (Impact: 35%)
317
- - Coordinator → Coder messages delayed by 2.3s avg
318
- - **Fix**: Switch to hierarchical topology
319
-
320
- ### Warnings
321
- 1. **Memory Access Pattern** (Impact: 18%)
322
- - Neural pattern loading: 1.8s per access
323
- - **Fix**: Enable memory caching
324
-
325
- ## Recommendations
326
- 1. **High Priority**: Switch to hierarchical topology (40% improvement)
327
- 2. **Medium Priority**: Enable memory caching (25% improvement)
328
- 3. **Low Priority**: Increase agent concurrency to 8 (20% improvement)
329
- ```
330
-
331
- ### 4. Optimization Recommendations
332
-
333
- #### Automatic Fixes
334
- When using `--fix`, the following optimizations may be applied:
335
-
336
- **1. Topology Optimization**
337
- - Switch to more efficient topology (mesh → hierarchical)
338
- - Adjust communication patterns
339
- - Reduce coordination overhead
340
- - Optimize message routing
341
-
342
- **2. Caching Enhancement**
343
- - Enable memory caching
344
- - Optimize cache strategies
345
- - Preload common patterns
346
- - Implement cache warming
347
-
348
- **3. Concurrency Tuning**
349
- - Adjust agent counts
350
- - Optimize parallel execution
351
- - Balance workload distribution
352
- - Implement load balancing
353
-
354
- **4. Priority Adjustment**
355
- - Reorder task queues
356
- - Prioritize critical paths
357
- - Reduce wait times
358
- - Implement fair scheduling
359
-
360
- **5. Resource Optimization**
361
- - Optimize memory usage
362
- - Reduce I/O operations
363
- - Batch API calls
364
- - Implement connection pooling
365
-
366
- #### Performance Impact
367
- Typical improvements after bottleneck resolution:
368
-
369
- - **Communication**: 30-50% faster message delivery
370
- - **Processing**: 20-40% reduced task completion time
371
- - **Memory**: 40-60% fewer cache misses
372
- - **Network**: 25-45% reduced API latency
373
- - **Overall**: 25-45% total performance improvement
374
-
375
- ## Advanced Usage
376
-
377
- ### Continuous Monitoring
378
- ```bash
379
- # Monitor performance in real-time
380
- npx claude-flow swarm monitor --interval 5
381
-
382
- # Generate hourly reports
383
- while true; do
384
- npx claude-flow analysis performance-report \
385
- --format json \
386
- --output logs/perf-$(date +%Y%m%d-%H%M).json
387
- sleep 3600
388
- done
389
- ```
390
-
391
- ### CI/CD Integration
392
- ```yaml
393
- # .github/workflows/performance.yml
394
- name: Performance Analysis
395
- on: [push, pull_request]
396
-
397
- jobs:
398
- analyze:
399
- runs-on: ubuntu-latest
400
- steps:
401
- - uses: actions/checkout@v2
402
- - name: Run Performance Analysis
403
- run: |
404
- npx claude-flow analysis performance-report \
405
- --format json \
406
- --output performance.json
407
- - name: Check Performance Thresholds
408
- run: |
409
- npx claude-flow bottleneck detect \
410
- --threshold 15 \
411
- --export bottlenecks.json
412
- - name: Upload Reports
413
- uses: actions/upload-artifact@v2
414
- with:
415
- name: performance-reports
416
- path: |
417
- performance.json
418
- bottlenecks.json
419
- ```
420
-
421
- ### Custom Analysis Scripts
422
- ```javascript
423
- // scripts/analyze-performance.js
424
- const { exec } = require('child_process');
425
- const fs = require('fs');
426
-
427
- async function analyzePerformance() {
428
- // Run bottleneck detection
429
- const bottlenecks = await runCommand(
430
- 'npx claude-flow bottleneck detect --format json'
431
- );
432
-
433
- // Generate performance report
434
- const report = await runCommand(
435
- 'npx claude-flow analysis performance-report --format json'
436
- );
437
-
438
- // Analyze results
439
- const analysis = {
440
- bottlenecks: JSON.parse(bottlenecks),
441
- performance: JSON.parse(report),
442
- timestamp: new Date().toISOString()
443
- };
444
-
445
- // Save combined analysis
446
- fs.writeFileSync(
447
- 'analysis/combined-report.json',
448
- JSON.stringify(analysis, null, 2)
449
- );
450
-
451
- // Generate alerts if needed
452
- if (analysis.bottlenecks.critical.length > 0) {
453
- console.error('CRITICAL: Performance bottlenecks detected!');
454
- process.exit(1);
455
- }
456
- }
457
-
458
- function runCommand(cmd) {
459
- return new Promise((resolve, reject) => {
460
- exec(cmd, (error, stdout, stderr) => {
461
- if (error) reject(error);
462
- else resolve(stdout);
463
- });
464
- });
465
- }
466
-
467
- analyzePerformance().catch(console.error);
468
- ```
469
-
470
- ## Best Practices
471
-
472
- ### 1. Regular Analysis
473
- - Run bottleneck detection after major changes
474
- - Generate weekly performance reports
475
- - Monitor trends over time
476
- - Set up automated alerts
477
-
478
- ### 2. Threshold Tuning
479
- - Start with default threshold (20%)
480
- - Lower for production systems (10-15%)
481
- - Higher for development (25-30%)
482
- - Adjust based on requirements
483
-
484
- ### 3. Fix Strategy
485
- - Always review before applying --fix
486
- - Test fixes in development first
487
- - Apply fixes incrementally
488
- - Monitor impact after changes
489
-
490
- ### 4. Report Integration
491
- - Include in documentation
492
- - Share with team regularly
493
- - Track improvements over time
494
- - Use for capacity planning
495
-
496
- ### 5. Continuous Optimization
497
- - Learn from each analysis
498
- - Build performance budgets
499
- - Establish baselines
500
- - Set improvement goals
501
-
502
- ## Troubleshooting
503
-
504
- ### Common Issues
505
-
506
- **High Memory Usage**
507
- ```bash
508
- # Analyze memory bottlenecks
509
- npx claude-flow bottleneck detect --threshold 10
510
-
511
- # Check cache performance
512
- npx claude-flow cache manage --action stats
513
-
514
- # Review memory metrics
515
- npx claude-flow memory usage
516
- ```
517
-
518
- **Slow Task Execution**
519
- ```bash
520
- # Identify slow tasks
521
- npx claude-flow task status --detailed
522
-
523
- # Analyze coordination overhead
524
- npx claude-flow bottleneck detect --time-range 1h
525
-
526
- # Check agent utilization
527
- npx claude-flow agent metrics
528
- ```
529
-
530
- **Poor Cache Performance**
531
- ```bash
532
- # Analyze cache hit rates
533
- npx claude-flow analysis performance-report --sections metrics
534
-
535
- # Review cache strategy
536
- npx claude-flow cache manage --action analyze
537
-
538
- # Enable cache warming
539
- npx claude-flow bottleneck detect --fix
540
- ```
541
-
542
- ## Integration with Other Skills
543
-
544
- - **swarm-orchestration**: Use performance data to optimize topology
545
- - **memory-management**: Improve cache strategies based on analysis
546
- - **task-coordination**: Adjust scheduling based on bottlenecks
547
- - **neural-training**: Train patterns from performance data
548
-
549
- ## Related Commands
550
-
551
- - `npx claude-flow swarm monitor` - Real-time monitoring
552
- - `npx claude-flow token usage` - Token optimization analysis
553
- - `npx claude-flow cache manage` - Cache optimization
554
- - `npx claude-flow agent metrics` - Agent performance metrics
555
- - `npx claude-flow task status` - Task execution analysis
556
-
557
- ## See Also
558
-
559
- - [Bottleneck Detection Guide](/workspaces/claude-code-flow/.claude/commands/analysis/bottleneck-detect.md)
560
- - [Performance Report Guide](/workspaces/claude-code-flow/.claude/commands/analysis/performance-report.md)
561
- - [Performance Bottlenecks Overview](/workspaces/claude-code-flow/.claude/commands/analysis/performance-bottlenecks.md)
562
- - [Swarm Monitoring Documentation](../swarm-orchestration/SKILL.md)
563
- - [Memory Management Documentation](../memory-management/SKILL.md)
564
-
565
- ---
566
-
567
- **Version**: 1.0.0
568
- **Last Updated**: 2025-10-19
569
- **Maintainer**: Claude Flow Team
@@ -1,144 +0,0 @@
1
- skill: performance-analysis
2
- version: 1.0.0
3
- description: >
4
- Evaluation suite for performance analysis skill.
5
- Tests metrics collection, bottleneck detection, and optimization recommendations.
6
-
7
- models_to_test:
8
- - claude-3.5-sonnet
9
- - claude-3-haiku
10
-
11
- mcp_integration:
12
- enabled: true
13
- namespace: skill-validation
14
- query_patterns: true
15
- track_outcomes: true
16
- store_patterns: true
17
- target_agents:
18
- - qe-learning-coordinator
19
-
20
- learning:
21
- store_success_patterns: true
22
- store_failure_patterns: true
23
- pattern_ttl_days: 90
24
-
25
- result_format:
26
- json_output: true
27
- include_timing: true
28
- include_token_usage: true
29
-
30
- setup:
31
- required_tools:
32
- - jq
33
-
34
- test_cases:
35
-
36
- - id: tc001_cpu_bottleneck_detection
37
- description: "Detect CPU performance bottlenecks"
38
- category: metrics
39
- priority: critical
40
-
41
- input:
42
- metrics:
43
- cpu_usage: 95
44
- memory_usage: 45
45
- response_time_ms: 2500
46
-
47
- expected_output:
48
- must_contain:
49
- - "CPU"
50
- - "bottleneck"
51
- - "optimization"
52
-
53
- validation:
54
- schema_check: true
55
- keyword_match_threshold: 0.8
56
-
57
- - id: tc002_memory_leak_detection
58
- description: "Identify potential memory leaks"
59
- category: metrics
60
- priority: high
61
-
62
- input:
63
- metrics:
64
- memory_growth_percent_per_hour: 15
65
- total_runtime_hours: 8
66
-
67
- expected_output:
68
- must_contain:
69
- - "memory"
70
- - "leak"
71
-
72
- validation:
73
- schema_check: true
74
-
75
- - id: tc003_response_time_analysis
76
- description: "Analyze and report response time metrics"
77
- category: metrics
78
- priority: high
79
-
80
- input:
81
- metrics:
82
- p50_ms: 100
83
- p95_ms: 500
84
- p99_ms: 1200
85
-
86
- expected_output:
87
- must_contain:
88
- - "latency"
89
- - "response"
90
-
91
- validation:
92
- schema_check: true
93
-
94
- - id: tc004_optimization_recommendations
95
- description: "Provide actionable optimization recommendations"
96
- category: recommendations
97
- priority: medium
98
-
99
- input:
100
- metrics:
101
- cpu_usage: 85
102
- cache_hit_rate: 0.6
103
-
104
- expected_output:
105
- must_contain:
106
- - "recommend"
107
- - "improve"
108
- - "cache"
109
-
110
- validation:
111
- schema_check: true
112
-
113
- - id: tc005_no_issues_healthy_system
114
- description: "Recognize healthy system metrics"
115
- category: negative
116
- priority: medium
117
-
118
- input:
119
- metrics:
120
- cpu_usage: 35
121
- memory_usage: 40
122
- response_time_ms: 100
123
-
124
- expected_output:
125
- must_contain:
126
- - "healthy"
127
- - "optimal"
128
-
129
- validation:
130
- schema_check: true
131
- allow_partial: true
132
-
133
- success_criteria:
134
- pass_rate: 0.9
135
- critical_pass_rate: 1.0
136
- avg_reasoning_quality: 0.7
137
- max_execution_time_ms: 300000
138
-
139
- metadata:
140
- author: "qe-performance-analyst"
141
- created: "2026-02-02"
142
- coverage_target: >
143
- Performance analysis with 5 test cases covering CPU/memory bottlenecks,
144
- leak detection, response time analysis, and optimization recommendations.