Claude-Flow / Ruflo — Components
Commands (Slash-Commands in .claude/commands/)
Count: ~160 command .md files across categories. Key commands by category:
SPARC Commands
| Command |
Purpose |
/sparc |
SPARC orchestrator — delegates to specialist modes |
/sparc-architect |
System design and architecture |
/sparc-code / /sparc-coder |
Auto-coder implementation |
/sparc-tdd / /sparc-tester |
TDD workflow (Red-Green-Refactor) |
/sparc-debug / /sparc-debugger |
Debugging specialist |
/sparc-security-review |
Security review |
/sparc-docs-writer / /sparc-documenter |
Documentation generation |
/sparc-integration |
System integration |
/sparc-post-deployment-monitoring-mode |
Deployment monitoring |
/sparc-refinement-optimization-mode |
Code optimization |
/sparc-ask |
Interactive question/answer mode |
/sparc-devops |
DevOps automation |
/sparc-tutorial |
SPARC tutorial |
/sparc-supabase-admin |
Supabase administration |
/sparc-spec-pseudocode |
Specification writer |
/sparc-mcp |
MCP integration mode |
/sparc-sparc |
SPARC orchestrator (recursive) |
/sparc-orchestrator |
Orchestration mode |
/sparc-researcher |
Research mode |
/sparc-reviewer |
Code review mode |
/sparc-batch-executor |
Batch execution |
/sparc-memory-manager |
Memory management |
/sparc-swarm-coordinator |
Swarm coordination |
/sparc-workflow-manager |
Workflow management |
Hive-Mind Commands
| Command |
Purpose |
/hive-mind |
Main hive-mind collective intelligence |
/hive-mind-init |
Initialize hive-mind system |
/hive-mind-spawn |
Spawn hive-mind swarm |
/hive-mind-status |
Check status |
/hive-mind-resume |
Resume paused session |
/hive-mind-stop |
Stop running session |
/hive-mind-consensus |
View/manage consensus |
/hive-mind-memory |
Hive-mind memory operations |
/hive-mind-metrics |
View metrics |
/hive-mind-sessions |
Manage sessions |
/hive-mind-wizard |
Interactive wizard |
Swarm Commands
| Command |
Purpose |
/swarm |
Main swarm orchestration |
/swarm-init |
Initialize swarm |
/swarm-spawn |
Spawn agents |
/swarm-status |
Monitor status |
/swarm-monitor |
Real-time monitoring |
/swarm-modes |
View available modes |
/swarm-strategies |
View strategies |
/swarm-background |
Background execution |
/swarm-analysis |
Analysis swarm |
Coordination Commands
| Command |
Purpose |
/coordination-init |
Initialize coordination |
/coordination-orchestrate |
Orchestrate tasks |
/coordination-spawn |
Spawn agents |
/coordination-task-orchestrate |
Task-level orchestration |
Hook Commands
| Command |
Purpose |
/hooks-setup |
Set up hooks |
/hooks-overview |
View hooks overview |
/hooks-pre-task |
Pre-task hook |
/hooks-post-task |
Post-task hook |
/hooks-pre-edit |
Pre-edit hook |
/hooks-post-edit |
Post-edit hook |
/hooks-session-end |
Session end hook |
Memory Commands
| Command |
Purpose |
/claude-flow-memory |
Memory operations |
/memory-persist |
Persist memory |
/memory-search |
Search memory |
/memory-usage |
View memory usage |
/memory-neural |
Neural memory training |
Other Key Commands
| Command |
Purpose |
/claude-flow-help |
Help documentation |
/claude-flow-swarm |
Swarm quick-start |
Various /github/* |
GitHub PR management, code review, issue tracking, releases |
Various /monitoring/* |
Real-time agent monitoring, metrics |
Various /optimization/* |
Topology optimization, parallel execution |
Various /automation/* |
Auto-agent, self-healing, workflow selection |
Skills (in .agents/skills/)
Count: 107 unique skill directories (107 SKILL.md files). Key named skills:
SPARC Methodology Skills: agent-specification, agent-pseudocode, agent-architecture, agent-refinement, agent-implementer-sparc-coder, agent-sparc-coordinator, sparc-methodology
Coordination Skills: agent-adaptive-coordinator, agent-byzantine-coordinator, agent-consensus-coordinator, agent-collective-intelligence-coordinator, agent-gossip-coordinator, agent-hierarchical-coordinator, agent-mesh-coordinator, agent-queen-coordinator, agent-v3-queen-coordinator, agent-coordinator-swarm-init, agent-coordination
Swarm Skills: agent-swarm, swarm-orchestration, swarm-advanced, agent-swarm-memory-manager, agent-multi-repo-swarm, agent-code-review-swarm, agent-release-swarm, agent-tdd-london-swarm
Memory Skills: agentdb-advanced, agentdb-learning, agentdb-memory-patterns, agentdb-optimization, agentdb-vector-search, agent-memory-coordinator, agent-v3-memory-specialist, memory-management, reasoningbank-agentdb, reasoningbank-intelligence
Developer Skills: agent-coder, agent-architect, agent-architecture, agent-planner, agent-goal-planner, agent-code-goal-planner, agent-code-analyzer, agent-analyze-code-quality, agent-tester, agent-reviewer, agent-researcher, agent-orchestrator-task, agent-worker-specialist
Operations Skills: agent-ops-cicd-github, agent-github-pr-manager, agent-github-modes, agent-release-manager, agent-issue-tracker, agent-project-board-sync, agent-sync-coordinator, agent-pr-manager, agent-swarm-pr, github-automation, github-code-review, github-release-management
Performance Skills: agent-performance-analyzer, agent-performance-benchmarker, agent-performance-monitor, agent-performance-optimizer, agent-matrix-optimizer, agent-pagerank-analyzer, performance-analysis, worker-benchmarks
Consensus Algorithm Skills: agent-raft-manager, agent-quorum-manager, agent-crdt-synchronizer, agent-load-balancer, agent-resource-allocator, agent-topology-optimizer
Specialized Skills: agent-neural-network, agent-safla-neural, agent-sona-learning-optimizer, flow-nexus-neural, neural-training, agent-trading-predictor, agent-agentic-payments, agent-payments, agent-authentication, agent-security-manager, agent-v3-security-architect, hive-mind, hive-mind-advanced
Subagents (Named Roles)
Count: 44 named agents in inventory (per verification/inventory.json). From .claude/agents/:
Key agent personas include: architect, coder, tester, reviewer, security-architect, database-specialist, swarm-memory-manager, memory-coordinator, coordinator, queen-coordinator, worker-specialist, performance-engineer, integration-architect, v3-queen-coordinator
From v3/plugins/gastown-bridge/agents/: architect.yaml, coder.yaml, reviewer.yaml, security-architect.yaml, tester.yaml
Hooks (Claude Code Hook Events)
Count: 7 distinct event types configured in .claude/settings.json
| Event |
What It Does |
PreToolUse (Bash matcher) |
Runs hook-handler.cjs pre-bash — intercepts bash commands for routing and safety checks |
PreToolUse (Write/Edit/MultiEdit matcher) |
Runs ruflo-hook.sh modify-file — pre-edit validation |
PostToolUse (Write/Edit/MultiEdit matcher) |
Runs hook-handler.cjs post-edit — format, update memory |
UserPromptSubmit |
Runs hook-handler.cjs route — 3-tier model routing decision (WASM/Haiku/Sonnet) |
SessionStart |
Runs hook-handler.cjs session-restore + auto-memory-hook.mjs import — restores session state and imports memory |
SessionEnd |
Runs hook-handler.cjs session-end — persists state |
Stop |
Runs auto-memory-hook.mjs sync — syncs memory to AgentDB |
SubagentStop |
Runs hook-handler.cjs post-task — handles subagent completion |
PreCompact (manual) |
Prints SPARC/agent guidance before compaction, saves session state |
PreCompact (auto) |
Prints SPARC/agent guidance before auto-compaction |
MCP Servers
Count: 1 bundled MCP server (claude-flow) exposing 285–305 tools (305 per verification/inventory.json as of latest; 285 per baseline from 2026-05-11)
| Server |
Invocation |
Tool Categories |
claude-flow |
npx -y ruflo@latest mcp start |
mcp__claude-flow__*, mcp__ruv-swarm__*, mcp__flow-nexus__* |
MCP tool namespaces include: agentdb_* (15 tools), embeddings_* (10 tools), ruvllm_hnsw_* (3 tools), swarm management, memory operations, SPARC mode runners, agent spawning, performance analysis.
Scripts / Binaries
| Binary/Script |
Purpose |
claude-flow (bin) |
Main CLI entry point (./bin/cli.js) |
npx claude-flow init |
Initialize project |
npx claude-flow swarm |
Swarm orchestration |
npx claude-flow hive-mind |
Hive-mind collective intelligence |
npx claude-flow sparc |
SPARC methodology runner |
npx claude-flow memory |
Memory operations |
npx claude-flow hook |
Hook management |
npx claude-flow mcp start |
Start MCP server |
npx claude-flow agent |
Agent management |
npx claude-flow neural |
Neural training |
npx claude-flow daemon |
Background daemon |
.claude/helpers/hook-handler.cjs |
Hook event processor |
.claude/helpers/auto-memory-hook.mjs |
Memory sync hook |
.claude/helpers/statusline.cjs |
Status line renderer |
scripts/ruflo-hook.sh (POSIX) |
Cross-platform hook shim |