claude-flow-guidance-implementation 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/.agents/README.md +38 -0
  2. package/.agents/config.toml +298 -0
  3. package/.agents/skills/memory-management/SKILL.md +126 -0
  4. package/.agents/skills/memory-management/scripts/memory-backup.sh +16 -0
  5. package/.agents/skills/memory-management/scripts/memory-consolidate.sh +11 -0
  6. package/.agents/skills/security-audit/SKILL.md +135 -0
  7. package/.agents/skills/security-audit/scripts/cve-remediate.sh +16 -0
  8. package/.agents/skills/security-audit/scripts/security-scan.sh +33 -0
  9. package/.agents/skills/sparc-methodology/SKILL.md +118 -0
  10. package/.agents/skills/sparc-methodology/scripts/sparc-init.sh +21 -0
  11. package/.agents/skills/sparc-methodology/scripts/sparc-review.sh +18 -0
  12. package/.agents/skills/swarm-orchestration/SKILL.md +114 -0
  13. package/.agents/skills/swarm-orchestration/scripts/swarm-monitor.sh +8 -0
  14. package/.agents/skills/swarm-orchestration/scripts/swarm-start.sh +14 -0
  15. package/.claude/agents/analysis/analyze-code-quality.md +179 -0
  16. package/.claude/agents/analysis/code-analyzer.md +210 -0
  17. package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
  18. package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
  19. package/.claude/agents/consensus/README.md +253 -0
  20. package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  21. package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  22. package/.claude/agents/consensus/gossip-coordinator.md +63 -0
  23. package/.claude/agents/consensus/performance-benchmarker.md +851 -0
  24. package/.claude/agents/consensus/quorum-manager.md +823 -0
  25. package/.claude/agents/consensus/raft-manager.md +63 -0
  26. package/.claude/agents/consensus/security-manager.md +622 -0
  27. package/.claude/agents/core/coder.md +266 -0
  28. package/.claude/agents/core/planner.md +168 -0
  29. package/.claude/agents/core/researcher.md +190 -0
  30. package/.claude/agents/core/reviewer.md +326 -0
  31. package/.claude/agents/core/tester.md +319 -0
  32. package/.claude/agents/custom/test-long-runner.md +44 -0
  33. package/.claude/agents/data/ml/data-ml-model.md +193 -0
  34. package/.claude/agents/development/backend/dev-backend-api.md +142 -0
  35. package/.claude/agents/development/dev-backend-api.md +345 -0
  36. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  37. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  38. package/.claude/agents/dual-mode/README.md +94 -0
  39. package/.claude/agents/dual-mode/codex-coordinator.md +224 -0
  40. package/.claude/agents/dual-mode/codex-worker.md +211 -0
  41. package/.claude/agents/dual-mode/dual-orchestrator.md +291 -0
  42. package/.claude/agents/flow-nexus/app-store.md +88 -0
  43. package/.claude/agents/flow-nexus/authentication.md +69 -0
  44. package/.claude/agents/flow-nexus/challenges.md +81 -0
  45. package/.claude/agents/flow-nexus/neural-network.md +88 -0
  46. package/.claude/agents/flow-nexus/payments.md +83 -0
  47. package/.claude/agents/flow-nexus/sandbox.md +76 -0
  48. package/.claude/agents/flow-nexus/swarm.md +76 -0
  49. package/.claude/agents/flow-nexus/user-tools.md +96 -0
  50. package/.claude/agents/flow-nexus/workflow.md +84 -0
  51. package/.claude/agents/github/code-review-swarm.md +538 -0
  52. package/.claude/agents/github/github-modes.md +173 -0
  53. package/.claude/agents/github/issue-tracker.md +319 -0
  54. package/.claude/agents/github/multi-repo-swarm.md +553 -0
  55. package/.claude/agents/github/pr-manager.md +191 -0
  56. package/.claude/agents/github/project-board-sync.md +509 -0
  57. package/.claude/agents/github/release-manager.md +367 -0
  58. package/.claude/agents/github/release-swarm.md +583 -0
  59. package/.claude/agents/github/repo-architect.md +398 -0
  60. package/.claude/agents/github/swarm-issue.md +573 -0
  61. package/.claude/agents/github/swarm-pr.md +428 -0
  62. package/.claude/agents/github/sync-coordinator.md +452 -0
  63. package/.claude/agents/github/workflow-automation.md +635 -0
  64. package/.claude/agents/goal/agent.md +816 -0
  65. package/.claude/agents/goal/code-goal-planner.md +446 -0
  66. package/.claude/agents/goal/goal-planner.md +168 -0
  67. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +130 -0
  68. package/.claude/agents/hive-mind/queen-coordinator.md +203 -0
  69. package/.claude/agents/hive-mind/scout-explorer.md +242 -0
  70. package/.claude/agents/hive-mind/swarm-memory-manager.md +193 -0
  71. package/.claude/agents/hive-mind/worker-specialist.md +217 -0
  72. package/.claude/agents/optimization/README.md +250 -0
  73. package/.claude/agents/optimization/benchmark-suite.md +665 -0
  74. package/.claude/agents/optimization/load-balancer.md +431 -0
  75. package/.claude/agents/optimization/performance-monitor.md +672 -0
  76. package/.claude/agents/optimization/resource-allocator.md +674 -0
  77. package/.claude/agents/optimization/topology-optimizer.md +808 -0
  78. package/.claude/agents/payments/agentic-payments.md +126 -0
  79. package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
  80. package/.claude/agents/sparc/architecture.md +472 -0
  81. package/.claude/agents/sparc/pseudocode.md +318 -0
  82. package/.claude/agents/sparc/refinement.md +525 -0
  83. package/.claude/agents/sparc/specification.md +276 -0
  84. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
  85. package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
  86. package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
  87. package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
  88. package/.claude/agents/sublinear/performance-optimizer.md +368 -0
  89. package/.claude/agents/sublinear/trading-predictor.md +246 -0
  90. package/.claude/agents/swarm/README.md +190 -0
  91. package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
  92. package/.claude/agents/swarm/hierarchical-coordinator.md +327 -0
  93. package/.claude/agents/swarm/mesh-coordinator.md +392 -0
  94. package/.claude/agents/templates/automation-smart-agent.md +205 -0
  95. package/.claude/agents/templates/coordinator-swarm-init.md +105 -0
  96. package/.claude/agents/templates/github-pr-manager.md +177 -0
  97. package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  98. package/.claude/agents/templates/memory-coordinator.md +187 -0
  99. package/.claude/agents/templates/migration-plan.md +746 -0
  100. package/.claude/agents/templates/orchestrator-task.md +139 -0
  101. package/.claude/agents/templates/performance-analyzer.md +199 -0
  102. package/.claude/agents/templates/sparc-coordinator.md +183 -0
  103. package/.claude/agents/testing/production-validator.md +395 -0
  104. package/.claude/agents/testing/tdd-london-swarm.md +244 -0
  105. package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
  106. package/.claude/agents/testing/validation/production-validator.md +395 -0
  107. package/.claude/agents/v3/database-specialist.yaml +21 -0
  108. package/.claude/agents/v3/index.yaml +17 -0
  109. package/.claude/agents/v3/project-coordinator.yaml +15 -0
  110. package/.claude/agents/v3/python-specialist.yaml +21 -0
  111. package/.claude/agents/v3/test-architect.yaml +20 -0
  112. package/.claude/agents/v3/typescript-specialist.yaml +21 -0
  113. package/.claude/agents/v3/v3-integration-architect.md +346 -0
  114. package/.claude/agents/v3/v3-memory-specialist.md +318 -0
  115. package/.claude/agents/v3/v3-performance-engineer.md +397 -0
  116. package/.claude/agents/v3/v3-queen-coordinator.md +98 -0
  117. package/.claude/agents/v3/v3-security-architect.md +174 -0
  118. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  119. package/.claude/commands/analysis/README.md +9 -0
  120. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  121. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  122. package/.claude/commands/analysis/performance-report.md +25 -0
  123. package/.claude/commands/analysis/token-efficiency.md +45 -0
  124. package/.claude/commands/analysis/token-usage.md +25 -0
  125. package/.claude/commands/automation/README.md +9 -0
  126. package/.claude/commands/automation/auto-agent.md +122 -0
  127. package/.claude/commands/automation/self-healing.md +106 -0
  128. package/.claude/commands/automation/session-memory.md +90 -0
  129. package/.claude/commands/automation/smart-agents.md +73 -0
  130. package/.claude/commands/automation/smart-spawn.md +25 -0
  131. package/.claude/commands/automation/workflow-select.md +25 -0
  132. package/.claude/commands/claude-flow-help.md +103 -0
  133. package/.claude/commands/claude-flow-memory.md +107 -0
  134. package/.claude/commands/claude-flow-swarm.md +205 -0
  135. package/.claude/commands/github/README.md +11 -0
  136. package/.claude/commands/github/code-review-swarm.md +514 -0
  137. package/.claude/commands/github/code-review.md +25 -0
  138. package/.claude/commands/github/github-modes.md +147 -0
  139. package/.claude/commands/github/github-swarm.md +121 -0
  140. package/.claude/commands/github/issue-tracker.md +292 -0
  141. package/.claude/commands/github/issue-triage.md +25 -0
  142. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  143. package/.claude/commands/github/pr-enhance.md +26 -0
  144. package/.claude/commands/github/pr-manager.md +170 -0
  145. package/.claude/commands/github/project-board-sync.md +471 -0
  146. package/.claude/commands/github/release-manager.md +338 -0
  147. package/.claude/commands/github/release-swarm.md +544 -0
  148. package/.claude/commands/github/repo-analyze.md +25 -0
  149. package/.claude/commands/github/repo-architect.md +367 -0
  150. package/.claude/commands/github/swarm-issue.md +482 -0
  151. package/.claude/commands/github/swarm-pr.md +285 -0
  152. package/.claude/commands/github/sync-coordinator.md +301 -0
  153. package/.claude/commands/github/workflow-automation.md +442 -0
  154. package/.claude/commands/hooks/README.md +11 -0
  155. package/.claude/commands/hooks/overview.md +58 -0
  156. package/.claude/commands/hooks/post-edit.md +117 -0
  157. package/.claude/commands/hooks/post-task.md +112 -0
  158. package/.claude/commands/hooks/pre-edit.md +113 -0
  159. package/.claude/commands/hooks/pre-task.md +111 -0
  160. package/.claude/commands/hooks/session-end.md +118 -0
  161. package/.claude/commands/hooks/setup.md +103 -0
  162. package/.claude/commands/monitoring/README.md +9 -0
  163. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  164. package/.claude/commands/monitoring/agents.md +44 -0
  165. package/.claude/commands/monitoring/real-time-view.md +25 -0
  166. package/.claude/commands/monitoring/status.md +46 -0
  167. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  168. package/.claude/commands/optimization/README.md +9 -0
  169. package/.claude/commands/optimization/auto-topology.md +62 -0
  170. package/.claude/commands/optimization/cache-manage.md +25 -0
  171. package/.claude/commands/optimization/parallel-execute.md +25 -0
  172. package/.claude/commands/optimization/parallel-execution.md +50 -0
  173. package/.claude/commands/optimization/topology-optimize.md +25 -0
  174. package/.claude/commands/sparc/analyzer.md +52 -0
  175. package/.claude/commands/sparc/architect.md +53 -0
  176. package/.claude/commands/sparc/ask.md +97 -0
  177. package/.claude/commands/sparc/batch-executor.md +54 -0
  178. package/.claude/commands/sparc/code.md +89 -0
  179. package/.claude/commands/sparc/coder.md +54 -0
  180. package/.claude/commands/sparc/debug.md +83 -0
  181. package/.claude/commands/sparc/debugger.md +54 -0
  182. package/.claude/commands/sparc/designer.md +53 -0
  183. package/.claude/commands/sparc/devops.md +109 -0
  184. package/.claude/commands/sparc/docs-writer.md +80 -0
  185. package/.claude/commands/sparc/documenter.md +54 -0
  186. package/.claude/commands/sparc/innovator.md +54 -0
  187. package/.claude/commands/sparc/integration.md +83 -0
  188. package/.claude/commands/sparc/mcp.md +117 -0
  189. package/.claude/commands/sparc/memory-manager.md +54 -0
  190. package/.claude/commands/sparc/optimizer.md +54 -0
  191. package/.claude/commands/sparc/orchestrator.md +132 -0
  192. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  193. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  194. package/.claude/commands/sparc/researcher.md +54 -0
  195. package/.claude/commands/sparc/reviewer.md +54 -0
  196. package/.claude/commands/sparc/security-review.md +80 -0
  197. package/.claude/commands/sparc/sparc-modes.md +174 -0
  198. package/.claude/commands/sparc/sparc.md +111 -0
  199. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  200. package/.claude/commands/sparc/supabase-admin.md +348 -0
  201. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  202. package/.claude/commands/sparc/tdd.md +54 -0
  203. package/.claude/commands/sparc/tester.md +54 -0
  204. package/.claude/commands/sparc/tutorial.md +79 -0
  205. package/.claude/commands/sparc/workflow-manager.md +54 -0
  206. package/.claude/helpers/hook-handler.cjs +168 -0
  207. package/.claude/helpers/intelligence.cjs +197 -0
  208. package/.claude/helpers/memory.js +83 -0
  209. package/.claude/helpers/post-commit +16 -0
  210. package/.claude/helpers/pre-commit +26 -0
  211. package/.claude/helpers/router.js +66 -0
  212. package/.claude/helpers/session.js +127 -0
  213. package/.claude/settings.json +250 -0
  214. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  215. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  216. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  217. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  218. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  219. package/.claude/skills/github-code-review/SKILL.md +1140 -0
  220. package/.claude/skills/github-multi-repo/SKILL.md +874 -0
  221. package/.claude/skills/github-project-management/SKILL.md +1277 -0
  222. package/.claude/skills/github-release-management/SKILL.md +1081 -0
  223. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
  224. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  225. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  226. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  227. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  228. package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +1 -0
  229. package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +87 -0
  230. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +10 -0
  231. package/.claude/skills/skill-builder/SKILL.md +910 -0
  232. package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
  233. package/.claude/skills/stream-chain/SKILL.md +563 -0
  234. package/.claude/skills/swarm-advanced/SKILL.md +973 -0
  235. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  236. package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
  237. package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
  238. package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
  239. package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
  240. package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
  241. package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
  242. package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
  243. package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
  244. package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
  245. package/.claude/skills/verification-quality/SKILL.md +649 -0
  246. package/.claude/statusline.mjs +109 -0
  247. package/.claude/statusline.sh +375 -0
  248. package/.claude-flow/CAPABILITIES.md +403 -0
  249. package/.claude-flow/config.yaml +43 -0
  250. package/.claude-flow/metrics/learning.json +17 -0
  251. package/.claude-flow/metrics/swarm-activity.json +18 -0
  252. package/.claude-flow/metrics/v3-progress.json +26 -0
  253. package/.claude-flow/security/audit-status.json +8 -0
  254. package/.mcp.json +20 -0
  255. package/AGENTS.md +145 -0
  256. package/CLAUDE.md +188 -0
  257. package/LICENSE +21 -0
  258. package/README.md +115 -0
  259. package/bin/cf-guidance-impl.mjs +74 -0
  260. package/package.json +23 -0
  261. package/scaffold/.claude/helpers/hook-handler.cjs +576 -0
  262. package/scaffold/docs/guidance-control-plane.md +441 -0
  263. package/scaffold/docs/guidance-implementation-guide.md +424 -0
  264. package/scaffold/scripts/analyze-guidance.js +176 -0
  265. package/scaffold/scripts/guidance-ab-benchmark.js +40 -0
  266. package/scaffold/scripts/guidance-autopilot.js +473 -0
  267. package/scaffold/scripts/guidance-codex-bridge.js +337 -0
  268. package/scaffold/scripts/guidance-integrations.js +587 -0
  269. package/scaffold/scripts/guidance-runtime.js +133 -0
  270. package/scaffold/scripts/scaffold-guidance.js +122 -0
  271. package/scaffold/src/guidance/advanced-runtime.js +658 -0
  272. package/scaffold/src/guidance/content-aware-executor.js +70 -0
  273. package/scaffold/src/guidance/phase1-runtime.js +151 -0
  274. package/src/default-settings.mjs +111 -0
  275. package/src/installer.mjs +415 -0
@@ -0,0 +1,403 @@
1
+ # Claude Flow V3 - Complete Capabilities Reference
2
+ > Generated: 2026-02-17T10:52:00.528Z
3
+ > Full documentation: https://github.com/ruvnet/claude-flow
4
+
5
+ ## 📋 Table of Contents
6
+
7
+ 1. [Overview](#overview)
8
+ 2. [Swarm Orchestration](#swarm-orchestration)
9
+ 3. [Available Agents (60+)](#available-agents)
10
+ 4. [CLI Commands (26 Commands, 140+ Subcommands)](#cli-commands)
11
+ 5. [Hooks System (27 Hooks + 12 Workers)](#hooks-system)
12
+ 6. [Memory & Intelligence (RuVector)](#memory--intelligence)
13
+ 7. [Hive-Mind Consensus](#hive-mind-consensus)
14
+ 8. [Performance Targets](#performance-targets)
15
+ 9. [Integration Ecosystem](#integration-ecosystem)
16
+
17
+ ---
18
+
19
+ ## Overview
20
+
21
+ Claude Flow V3 is a domain-driven design architecture for multi-agent AI coordination with:
22
+
23
+ - **15-Agent Swarm Coordination** with hierarchical and mesh topologies
24
+ - **HNSW Vector Search** - 150x-12,500x faster pattern retrieval
25
+ - **SONA Neural Learning** - Self-optimizing with <0.05ms adaptation
26
+ - **Byzantine Fault Tolerance** - Queen-led consensus mechanisms
27
+ - **MCP Server Integration** - Model Context Protocol support
28
+
29
+ ### Current Configuration
30
+ | Setting | Value |
31
+ |---------|-------|
32
+ | Topology | hierarchical-mesh |
33
+ | Max Agents | 15 |
34
+ | Memory Backend | hybrid |
35
+ | HNSW Indexing | Enabled |
36
+ | Neural Learning | Enabled |
37
+ | LearningBridge | Enabled (SONA + ReasoningBank) |
38
+ | Knowledge Graph | Enabled (PageRank + Communities) |
39
+ | Agent Scopes | Enabled (project/local/user) |
40
+
41
+ ---
42
+
43
+ ## Swarm Orchestration
44
+
45
+ ### Topologies
46
+ | Topology | Description | Best For |
47
+ |----------|-------------|----------|
48
+ | `hierarchical` | Queen controls workers directly | Anti-drift, tight control |
49
+ | `mesh` | Fully connected peer network | Distributed tasks |
50
+ | `hierarchical-mesh` | V3 hybrid (recommended) | 10+ agents |
51
+ | `ring` | Circular communication | Sequential workflows |
52
+ | `star` | Central coordinator | Simple coordination |
53
+ | `adaptive` | Dynamic based on load | Variable workloads |
54
+
55
+ ### Strategies
56
+ - `balanced` - Even distribution across agents
57
+ - `specialized` - Clear roles, no overlap (anti-drift)
58
+ - `adaptive` - Dynamic task routing
59
+
60
+ ### Quick Commands
61
+ ```bash
62
+ # Initialize swarm
63
+ npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized
64
+
65
+ # Check status
66
+ npx @claude-flow/cli@latest swarm status
67
+
68
+ # Monitor activity
69
+ npx @claude-flow/cli@latest swarm monitor
70
+ ```
71
+
72
+ ---
73
+
74
+ ## Available Agents
75
+
76
+ ### Core Development (5)
77
+ `coder`, `reviewer`, `tester`, `planner`, `researcher`
78
+
79
+ ### V3 Specialized (4)
80
+ `security-architect`, `security-auditor`, `memory-specialist`, `performance-engineer`
81
+
82
+ ### Swarm Coordination (5)
83
+ `hierarchical-coordinator`, `mesh-coordinator`, `adaptive-coordinator`, `collective-intelligence-coordinator`, `swarm-memory-manager`
84
+
85
+ ### Consensus & Distributed (7)
86
+ `byzantine-coordinator`, `raft-manager`, `gossip-coordinator`, `consensus-builder`, `crdt-synchronizer`, `quorum-manager`, `security-manager`
87
+
88
+ ### Performance & Optimization (5)
89
+ `perf-analyzer`, `performance-benchmarker`, `task-orchestrator`, `memory-coordinator`, `smart-agent`
90
+
91
+ ### GitHub & Repository (9)
92
+ `github-modes`, `pr-manager`, `code-review-swarm`, `issue-tracker`, `release-manager`, `workflow-automation`, `project-board-sync`, `repo-architect`, `multi-repo-swarm`
93
+
94
+ ### SPARC Methodology (6)
95
+ `sparc-coord`, `sparc-coder`, `specification`, `pseudocode`, `architecture`, `refinement`
96
+
97
+ ### Specialized Development (8)
98
+ `backend-dev`, `mobile-dev`, `ml-developer`, `cicd-engineer`, `api-docs`, `system-architect`, `code-analyzer`, `base-template-generator`
99
+
100
+ ### Testing & Validation (2)
101
+ `tdd-london-swarm`, `production-validator`
102
+
103
+ ### Agent Routing by Task
104
+ | Task Type | Recommended Agents | Topology |
105
+ |-----------|-------------------|----------|
106
+ | Bug Fix | researcher, coder, tester | mesh |
107
+ | New Feature | coordinator, architect, coder, tester, reviewer | hierarchical |
108
+ | Refactoring | architect, coder, reviewer | mesh |
109
+ | Performance | researcher, perf-engineer, coder | hierarchical |
110
+ | Security | security-architect, auditor, reviewer | hierarchical |
111
+ | Docs | researcher, api-docs | mesh |
112
+
113
+ ---
114
+
115
+ ## CLI Commands
116
+
117
+ ### Core Commands (12)
118
+ | Command | Subcommands | Description |
119
+ |---------|-------------|-------------|
120
+ | `init` | 4 | Project initialization |
121
+ | `agent` | 8 | Agent lifecycle management |
122
+ | `swarm` | 6 | Multi-agent coordination |
123
+ | `memory` | 11 | AgentDB with HNSW search |
124
+ | `mcp` | 9 | MCP server management |
125
+ | `task` | 6 | Task assignment |
126
+ | `session` | 7 | Session persistence |
127
+ | `config` | 7 | Configuration |
128
+ | `status` | 3 | System monitoring |
129
+ | `workflow` | 6 | Workflow templates |
130
+ | `hooks` | 17 | Self-learning hooks |
131
+ | `hive-mind` | 6 | Consensus coordination |
132
+
133
+ ### Advanced Commands (14)
134
+ | Command | Subcommands | Description |
135
+ |---------|-------------|-------------|
136
+ | `daemon` | 5 | Background workers |
137
+ | `neural` | 5 | Pattern training |
138
+ | `security` | 6 | Security scanning |
139
+ | `performance` | 5 | Profiling & benchmarks |
140
+ | `providers` | 5 | AI provider config |
141
+ | `plugins` | 5 | Plugin management |
142
+ | `deployment` | 5 | Deploy management |
143
+ | `embeddings` | 4 | Vector embeddings |
144
+ | `claims` | 4 | Authorization |
145
+ | `migrate` | 5 | V2→V3 migration |
146
+ | `process` | 4 | Process management |
147
+ | `doctor` | 1 | Health diagnostics |
148
+ | `completions` | 4 | Shell completions |
149
+
150
+ ### Example Commands
151
+ ```bash
152
+ # Initialize
153
+ npx @claude-flow/cli@latest init --wizard
154
+
155
+ # Spawn agent
156
+ npx @claude-flow/cli@latest agent spawn -t coder --name my-coder
157
+
158
+ # Memory operations
159
+ npx @claude-flow/cli@latest memory store --key "pattern" --value "data" --namespace patterns
160
+ npx @claude-flow/cli@latest memory search --query "authentication"
161
+
162
+ # Diagnostics
163
+ npx @claude-flow/cli@latest doctor --fix
164
+ ```
165
+
166
+ ---
167
+
168
+ ## Hooks System
169
+
170
+ ### 27 Available Hooks
171
+
172
+ #### Core Hooks (6)
173
+ | Hook | Description |
174
+ |------|-------------|
175
+ | `pre-edit` | Context before file edits |
176
+ | `post-edit` | Record edit outcomes |
177
+ | `pre-command` | Risk assessment |
178
+ | `post-command` | Command metrics |
179
+ | `pre-task` | Task start + agent suggestions |
180
+ | `post-task` | Task completion learning |
181
+
182
+ #### Session Hooks (4)
183
+ | Hook | Description |
184
+ |------|-------------|
185
+ | `session-start` | Start/restore session |
186
+ | `session-end` | Persist state |
187
+ | `session-restore` | Restore previous |
188
+ | `notify` | Cross-agent notifications |
189
+
190
+ #### Intelligence Hooks (5)
191
+ | Hook | Description |
192
+ |------|-------------|
193
+ | `route` | Optimal agent routing |
194
+ | `explain` | Routing decisions |
195
+ | `pretrain` | Bootstrap intelligence |
196
+ | `build-agents` | Generate configs |
197
+ | `transfer` | Pattern transfer |
198
+
199
+ #### Coverage Hooks (3)
200
+ | Hook | Description |
201
+ |------|-------------|
202
+ | `coverage-route` | Coverage-based routing |
203
+ | `coverage-suggest` | Improvement suggestions |
204
+ | `coverage-gaps` | Gap analysis |
205
+
206
+ ### 12 Background Workers
207
+ | Worker | Priority | Purpose |
208
+ |--------|----------|---------|
209
+ | `ultralearn` | normal | Deep knowledge |
210
+ | `optimize` | high | Performance |
211
+ | `consolidate` | low | Memory consolidation |
212
+ | `predict` | normal | Predictive preload |
213
+ | `audit` | critical | Security |
214
+ | `map` | normal | Codebase mapping |
215
+ | `preload` | low | Resource preload |
216
+ | `deepdive` | normal | Deep analysis |
217
+ | `document` | normal | Auto-docs |
218
+ | `refactor` | normal | Suggestions |
219
+ | `benchmark` | normal | Benchmarking |
220
+ | `testgaps` | normal | Coverage gaps |
221
+
222
+ ---
223
+
224
+ ## Memory & Intelligence
225
+
226
+ ### RuVector Intelligence System
227
+ - **SONA**: Self-Optimizing Neural Architecture (<0.05ms)
228
+ - **MoE**: Mixture of Experts routing
229
+ - **HNSW**: 150x-12,500x faster search
230
+ - **EWC++**: Prevents catastrophic forgetting
231
+ - **Flash Attention**: 2.49x-7.47x speedup
232
+ - **Int8 Quantization**: 3.92x memory reduction
233
+
234
+ ### 4-Step Intelligence Pipeline
235
+ 1. **RETRIEVE** - HNSW pattern search
236
+ 2. **JUDGE** - Success/failure verdicts
237
+ 3. **DISTILL** - LoRA learning extraction
238
+ 4. **CONSOLIDATE** - EWC++ preservation
239
+
240
+ ### Self-Learning Memory (ADR-049)
241
+
242
+ | Component | Status | Description |
243
+ |-----------|--------|-------------|
244
+ | **LearningBridge** | ✅ Enabled | Connects insights to SONA/ReasoningBank neural pipeline |
245
+ | **MemoryGraph** | ✅ Enabled | PageRank knowledge graph + community detection |
246
+ | **AgentMemoryScope** | ✅ Enabled | 3-scope agent memory (project/local/user) |
247
+
248
+ **LearningBridge** - Insights trigger learning trajectories. Confidence evolves: +0.03 on access, -0.005/hour decay. Consolidation runs the JUDGE/DISTILL/CONSOLIDATE pipeline.
249
+
250
+ **MemoryGraph** - Builds a knowledge graph from entry references. PageRank identifies influential insights. Communities group related knowledge. Graph-aware ranking blends vector + structural scores.
251
+
252
+ **AgentMemoryScope** - Maps Claude Code 3-scope directories:
253
+ - `project`: `<gitRoot>/.claude/agent-memory/<agent>/`
254
+ - `local`: `<gitRoot>/.claude/agent-memory-local/<agent>/`
255
+ - `user`: `~/.claude/agent-memory/<agent>/`
256
+
257
+ High-confidence insights (>0.8) can transfer between agents.
258
+
259
+ ### Memory Commands
260
+ ```bash
261
+ # Store pattern
262
+ npx @claude-flow/cli@latest memory store --key "name" --value "data" --namespace patterns
263
+
264
+ # Semantic search
265
+ npx @claude-flow/cli@latest memory search --query "authentication"
266
+
267
+ # List entries
268
+ npx @claude-flow/cli@latest memory list --namespace patterns
269
+
270
+ # Initialize database
271
+ npx @claude-flow/cli@latest memory init --force
272
+ ```
273
+
274
+ ---
275
+
276
+ ## Hive-Mind Consensus
277
+
278
+ ### Queen Types
279
+ | Type | Role |
280
+ |------|------|
281
+ | Strategic Queen | Long-term planning |
282
+ | Tactical Queen | Execution coordination |
283
+ | Adaptive Queen | Dynamic optimization |
284
+
285
+ ### Worker Types (8)
286
+ `researcher`, `coder`, `analyst`, `tester`, `architect`, `reviewer`, `optimizer`, `documenter`
287
+
288
+ ### Consensus Mechanisms
289
+ | Mechanism | Fault Tolerance | Use Case |
290
+ |-----------|-----------------|----------|
291
+ | `byzantine` | f < n/3 faulty | Adversarial |
292
+ | `raft` | f < n/2 failed | Leader-based |
293
+ | `gossip` | Eventually consistent | Large scale |
294
+ | `crdt` | Conflict-free | Distributed |
295
+ | `quorum` | Configurable | Flexible |
296
+
297
+ ### Hive-Mind Commands
298
+ ```bash
299
+ # Initialize
300
+ npx @claude-flow/cli@latest hive-mind init --queen-type strategic
301
+
302
+ # Status
303
+ npx @claude-flow/cli@latest hive-mind status
304
+
305
+ # Spawn workers
306
+ npx @claude-flow/cli@latest hive-mind spawn --count 5 --type worker
307
+
308
+ # Consensus
309
+ npx @claude-flow/cli@latest hive-mind consensus --propose "task"
310
+ ```
311
+
312
+ ---
313
+
314
+ ## Performance Targets
315
+
316
+ | Metric | Target | Status |
317
+ |--------|--------|--------|
318
+ | HNSW Search | 150x-12,500x faster | ✅ Implemented |
319
+ | Memory Reduction | 50-75% | ✅ Implemented (3.92x) |
320
+ | SONA Integration | Pattern learning | ✅ Implemented |
321
+ | Flash Attention | 2.49x-7.47x | 🔄 In Progress |
322
+ | MCP Response | <100ms | ✅ Achieved |
323
+ | CLI Startup | <500ms | ✅ Achieved |
324
+ | SONA Adaptation | <0.05ms | 🔄 In Progress |
325
+ | Graph Build (1k) | <200ms | ✅ 2.78ms (71.9x headroom) |
326
+ | PageRank (1k) | <100ms | ✅ 12.21ms (8.2x headroom) |
327
+ | Insight Recording | <5ms/each | ✅ 0.12ms (41x headroom) |
328
+ | Consolidation | <500ms | ✅ 0.26ms (1,955x headroom) |
329
+ | Knowledge Transfer | <100ms | ✅ 1.25ms (80x headroom) |
330
+
331
+ ---
332
+
333
+ ## Integration Ecosystem
334
+
335
+ ### Integrated Packages
336
+ | Package | Version | Purpose |
337
+ |---------|---------|---------|
338
+ | agentic-flow | 2.0.1-alpha | Core coordination |
339
+ | agentdb | 2.0.0-alpha.3.4 | Vector database |
340
+ | @ruvector/attention | 0.1.3 | Flash attention |
341
+ | @ruvector/sona | 0.1.5 | Neural learning |
342
+
343
+ ### Optional Integrations
344
+ | Package | Command |
345
+ |---------|---------|
346
+ | ruv-swarm | `npx ruv-swarm mcp start` |
347
+ | flow-nexus | `npx flow-nexus@latest mcp start` |
348
+ | agentic-jujutsu | `npx agentic-jujutsu@latest` |
349
+
350
+ ### MCP Server Setup
351
+ ```bash
352
+ # Add Claude Flow MCP
353
+ claude mcp add claude-flow -- npx -y @claude-flow/cli@latest
354
+
355
+ # Optional servers
356
+ claude mcp add ruv-swarm -- npx -y ruv-swarm mcp start
357
+ claude mcp add flow-nexus -- npx -y flow-nexus@latest mcp start
358
+ ```
359
+
360
+ ---
361
+
362
+ ## Quick Reference
363
+
364
+ ### Essential Commands
365
+ ```bash
366
+ # Setup
367
+ npx @claude-flow/cli@latest init --wizard
368
+ npx @claude-flow/cli@latest daemon start
369
+ npx @claude-flow/cli@latest doctor --fix
370
+
371
+ # Swarm
372
+ npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8
373
+ npx @claude-flow/cli@latest swarm status
374
+
375
+ # Agents
376
+ npx @claude-flow/cli@latest agent spawn -t coder
377
+ npx @claude-flow/cli@latest agent list
378
+
379
+ # Memory
380
+ npx @claude-flow/cli@latest memory search --query "patterns"
381
+
382
+ # Hooks
383
+ npx @claude-flow/cli@latest hooks pre-task --description "task"
384
+ npx @claude-flow/cli@latest hooks worker dispatch --trigger optimize
385
+ ```
386
+
387
+ ### File Structure
388
+ ```
389
+ .claude-flow/
390
+ ├── config.yaml # Runtime configuration
391
+ ├── CAPABILITIES.md # This file
392
+ ├── data/ # Memory storage
393
+ ├── logs/ # Operation logs
394
+ ├── sessions/ # Session state
395
+ ├── hooks/ # Custom hooks
396
+ ├── agents/ # Agent configs
397
+ └── workflows/ # Workflow templates
398
+ ```
399
+
400
+ ---
401
+
402
+ **Full Documentation**: https://github.com/ruvnet/claude-flow
403
+ **Issues**: https://github.com/ruvnet/claude-flow/issues
@@ -0,0 +1,43 @@
1
+ # Claude Flow V3 Runtime Configuration
2
+ # Generated: 2026-02-17T10:52:00.528Z
3
+
4
+ version: "3.0.0"
5
+
6
+ swarm:
7
+ topology: hierarchical-mesh
8
+ maxAgents: 15
9
+ autoScale: true
10
+ coordinationStrategy: consensus
11
+
12
+ memory:
13
+ backend: hybrid
14
+ enableHNSW: true
15
+ persistPath: .claude-flow/data
16
+ cacheSize: 100
17
+ # ADR-049: Self-Learning Memory
18
+ learningBridge:
19
+ enabled: true
20
+ sonaMode: balanced
21
+ confidenceDecayRate: 0.005
22
+ accessBoostAmount: 0.03
23
+ consolidationThreshold: 10
24
+ memoryGraph:
25
+ enabled: true
26
+ pageRankDamping: 0.85
27
+ maxNodes: 5000
28
+ similarityThreshold: 0.8
29
+ agentScopes:
30
+ enabled: true
31
+ defaultScope: project
32
+
33
+ neural:
34
+ enabled: true
35
+ modelPath: .claude-flow/neural
36
+
37
+ hooks:
38
+ enabled: true
39
+ autoExecute: true
40
+
41
+ mcp:
42
+ autoStart: false
43
+ port: 3000
@@ -0,0 +1,17 @@
1
+ {
2
+ "initialized": "2026-02-17T10:52:00.528Z",
3
+ "routing": {
4
+ "accuracy": 0,
5
+ "decisions": 0
6
+ },
7
+ "patterns": {
8
+ "shortTerm": 0,
9
+ "longTerm": 0,
10
+ "quality": 0
11
+ },
12
+ "sessions": {
13
+ "total": 0,
14
+ "current": null
15
+ },
16
+ "_note": "Intelligence grows as you use Claude Flow"
17
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "timestamp": "2026-02-17T10:52:00.528Z",
3
+ "processes": {
4
+ "agentic_flow": 0,
5
+ "mcp_server": 0,
6
+ "estimated_agents": 0
7
+ },
8
+ "swarm": {
9
+ "active": false,
10
+ "agent_count": 0,
11
+ "coordination_active": false
12
+ },
13
+ "integration": {
14
+ "agentic_flow_active": false,
15
+ "mcp_active": false
16
+ },
17
+ "_initialized": true
18
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "version": "3.0.0",
3
+ "initialized": "2026-02-17T10:52:00.528Z",
4
+ "domains": {
5
+ "completed": 0,
6
+ "total": 5,
7
+ "status": "INITIALIZING"
8
+ },
9
+ "ddd": {
10
+ "progress": 0,
11
+ "modules": 0,
12
+ "totalFiles": 0,
13
+ "totalLines": 0
14
+ },
15
+ "swarm": {
16
+ "activeAgents": 0,
17
+ "maxAgents": 15,
18
+ "topology": "hierarchical-mesh"
19
+ },
20
+ "learning": {
21
+ "status": "READY",
22
+ "patternsLearned": 0,
23
+ "sessionsCompleted": 0
24
+ },
25
+ "_note": "Metrics will update as you use Claude Flow. Run: npx @claude-flow/cli@latest daemon start"
26
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "initialized": "2026-02-17T10:52:00.528Z",
3
+ "status": "PENDING",
4
+ "cvesFixed": 0,
5
+ "totalCves": 3,
6
+ "lastScan": null,
7
+ "_note": "Run: npx @claude-flow/cli@latest security scan"
8
+ }
package/.mcp.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "mcpServers": {
3
+ "claude-flow": {
4
+ "command": "npx",
5
+ "args": [
6
+ "@claude-flow/cli@latest",
7
+ "mcp",
8
+ "start"
9
+ ],
10
+ "env": {
11
+ "CLAUDE_FLOW_MODE": "v3",
12
+ "CLAUDE_FLOW_HOOKS_ENABLED": "true",
13
+ "CLAUDE_FLOW_TOPOLOGY": "hierarchical-mesh",
14
+ "CLAUDE_FLOW_MAX_AGENTS": "15",
15
+ "CLAUDE_FLOW_MEMORY_BACKEND": "hybrid"
16
+ },
17
+ "autoStart": false
18
+ }
19
+ }
20
+ }
package/AGENTS.md ADDED
@@ -0,0 +1,145 @@
1
+ # claude-flow-guidance-implementation
2
+
3
+ > Multi-agent orchestration framework for agentic coding
4
+
5
+ ## Project Overview
6
+
7
+ A Claude Flow powered project
8
+
9
+ **Tech Stack**: TypeScript, Node.js
10
+ **Architecture**: Domain-Driven Design with bounded contexts
11
+
12
+ ## Quick Start
13
+
14
+ ### Installation
15
+ ```bash
16
+ npm install
17
+ ```
18
+
19
+ ### Build
20
+ ```bash
21
+ npm run build
22
+ ```
23
+
24
+ ### Test
25
+ ```bash
26
+ npm test
27
+ ```
28
+
29
+ ### Development
30
+ ```bash
31
+ npm run dev
32
+ ```
33
+
34
+ ## Agent Coordination
35
+
36
+ ### Swarm Configuration
37
+
38
+ This project uses hierarchical swarm coordination for complex tasks:
39
+
40
+ | Setting | Value | Purpose |
41
+ |---------|-------|---------|
42
+ | Topology | `hierarchical` | Queen-led coordination (anti-drift) |
43
+ | Max Agents | 8 | Optimal team size |
44
+ | Strategy | `specialized` | Clear role boundaries |
45
+ | Consensus | `raft` | Leader-based consistency |
46
+
47
+ ### When to Use Swarms
48
+
49
+ **Invoke swarm for:**
50
+ - Multi-file changes (3+ files)
51
+ - New feature implementation
52
+ - Cross-module refactoring
53
+ - API changes with tests
54
+ - Security-related changes
55
+ - Performance optimization
56
+
57
+ **Skip swarm for:**
58
+ - Single file edits
59
+ - Simple bug fixes (1-2 lines)
60
+ - Documentation updates
61
+ - Configuration changes
62
+
63
+ ### Available Skills
64
+
65
+ Use `$skill-name` syntax to invoke:
66
+
67
+ | Skill | Use Case |
68
+ |-------|----------|
69
+ | `$swarm-orchestration` | Multi-agent task coordination |
70
+ | `$memory-management` | Pattern storage and retrieval |
71
+ | `$sparc-methodology` | Structured development workflow |
72
+ | `$security-audit` | Security scanning and CVE detection |
73
+
74
+ ### Agent Types
75
+
76
+ | Type | Role | Use Case |
77
+ |------|------|----------|
78
+ | `researcher` | Requirements analysis | Understanding scope |
79
+ | `architect` | System design | Planning structure |
80
+ | `coder` | Implementation | Writing code |
81
+ | `tester` | Test creation | Quality assurance |
82
+ | `reviewer` | Code review | Security and quality |
83
+
84
+ ## Code Standards
85
+
86
+ ### File Organization
87
+ - **NEVER** save to root folder
88
+ - `/src` - Source code files
89
+ - `/tests` - Test files
90
+ - `/docs` - Documentation
91
+ - `/config` - Configuration files
92
+
93
+ ### Quality Rules
94
+ - Files under 500 lines
95
+ - No hardcoded secrets
96
+ - Input validation at boundaries
97
+ - Typed interfaces for public APIs
98
+ - TDD London School (mock-first) preferred
99
+
100
+ ### Commit Messages
101
+ ```
102
+ <type>(<scope>): <description>
103
+
104
+ [optional body]
105
+
106
+ Co-Authored-By: claude-flow <ruv@ruv.net>
107
+ ```
108
+
109
+ Types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore`
110
+
111
+ ## Security
112
+
113
+ ### Critical Rules
114
+ - NEVER commit secrets, credentials, or .env files
115
+ - NEVER hardcode API keys
116
+ - Always validate user input
117
+ - Use parameterized queries for SQL
118
+ - Sanitize output to prevent XSS
119
+
120
+ ### Path Security
121
+ - Validate all file paths
122
+ - Prevent directory traversal (../)
123
+ - Use absolute paths internally
124
+
125
+ ## Memory System
126
+
127
+ ### Storing Patterns
128
+ ```bash
129
+ npx @claude-flow/cli memory store \
130
+ --key "pattern-name" \
131
+ --value "pattern description" \
132
+ --namespace patterns
133
+ ```
134
+
135
+ ### Searching Memory
136
+ ```bash
137
+ npx @claude-flow/cli memory search \
138
+ --query "search terms" \
139
+ --namespace patterns
140
+ ```
141
+
142
+ ## Links
143
+
144
+ - Documentation: https://github.com/ruvnet/claude-flow
145
+ - Issues: https://github.com/ruvnet/claude-flow/issues