name: migration-planner type: planning color: red description: Comprehensive migration plan for converting commands to agent-based system capabilities:
- migration-planning
- system-transformation
- agent-mapping
- compatibility-analysis
- rollout-coordination
priority: medium
hooks:
pre: |
echo "📋 Agent System Migration Planner activated"
echo "🔄 Analyzing current command structure for migration"
Check existing command structure
if [ -d ".claude$commands" ]; then echo "📁 Found existing command directory - will map to agents" find .claude$commands -name "*.md" | wc -l | xargs echo "Commands to migrate:" fi post: | echo "✅ Migration planning completed" echo "📊 Agent mapping strategy defined" echo "🚀 Ready for systematic agent system rollout"
Claude Flow Commands to Agent System Migration Plan
Overview
This document provides a comprehensive migration plan to convert existing .claude$commands to the new agent-based system. Each command is mapped to an equivalent agent with defined roles, responsibilities, capabilities, and tool access restrictions.
Agent Definition Format
Each agent uses YAML frontmatter with the following structure:
Migration Categories
1. Coordination Agents
Swarm Initializer Agent
Command: .claude$commands$coordination$init.md
Agent Spawner
Command: .claude$commands$coordination$spawn.md
Task Orchestrator
Command: .claude$commands$coordination$orchestrate.md
2. GitHub Integration Agents
PR Manager Agent
Command: .claude$commands$github$pr-manager.md
Code Review Swarm Agent
Command: .claude$commands$github$code-review-swarm.md
Release Manager Agent
Command: .claude$commands$github$release-manager.md
3. SPARC Methodology Agents
SPARC Orchestrator Agent
Command: .claude$commands$sparc$orchestrator.md
SPARC Coder Agent
Command: .claude$commands$sparc$coder.md
SPARC Tester Agent
Command: .claude$commands$sparc$tester.md
4. Analysis Agents
Performance Analyzer Agent
Command: .claude$commands$analysis$performance-bottlenecks.md
Token Efficiency Analyst Agent
Command: .claude$commands$analysis$token-efficiency.md
5. Memory Management Agents
Memory Coordinator Agent
Command: .claude$commands$memory$usage.md
Neural Pattern Agent
Command: .claude$commands$memory$neural.md
6. Automation Agents
Smart Agent Coordinator
Command: .claude$commands$automation$smart-agents.md
Self-Healing Coordinator Agent
Command: .claude$commands$automation$self-healing.md
7. Optimization Agents
Parallel Execution Optimizer Agent
Command: .claude$commands$optimization$parallel-execution.md
Auto-Topology Optimizer Agent
Command: .claude$commands$optimization$auto-topology.md
8. Monitoring Agents
Swarm Monitor Agent
Command: .claude$commands$monitoring$status.md
Implementation Guidelines
1. Agent Activation
- Agents are activated by pattern matching in user messages
- Higher priority patterns take precedence
- Multiple agents can be activated for complex tasks
2. Tool Restrictions
- Each agent has specific allowed and restricted tools
- Restrictions ensure agents stay within their domain
- Critical operations require specialized agents
3. Inter-Agent Communication
- Agents communicate through shared memory
- Task orchestrator coordinates multi-agent workflows
- Results are aggregated by coordinator agents
4. Migration Steps
- Create
.claude$agents/directory structure - Convert each command to agent definition format
- Update activation patterns for natural language
- Test agent interactions and handoffs
- Implement gradual rollout with fallbacks
5. Backwards Compatibility
- Keep command files during transition
- Map command invocations to agent activations
- Provide migration warnings for deprecated commands
Monitoring Migration Success
Key Metrics
- Agent activation accuracy
- Task completion rates
- Inter-agent coordination efficiency
- User satisfaction scores
- Performance improvements
Validation Criteria
- All commands have equivalent agents
- No functionality loss during migration
- Improved natural language understanding
- Better task decomposition and parallelization
- Enhanced error handling and recovery


