/maintenance
System maintenance and updates through coordinated agents.
> /plugin marketplace add ruvnet/claude-flowHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/maintenance
Context preview
What this command does when you run it.
System maintenance and updates through coordinated agents.
Command definition
maintenance.mdMaintenance Swarm Strategy
Purpose
System maintenance and updates through coordinated agents.
Activation
Using MCP Tools
// Initialize maintenance swarm
mcp__claude-flow__swarm_init({
"topology": "star",
"maxAgents": 5,
"strategy": "sequential"
})
// Orchestrate maintenance task
mcp__claude-flow__task_orchestrate({
"task": "update dependencies",
"strategy": "sequential",
"priority": "medium",
"dependencies": ["backup", "test", "update", "verify"]
})Using CLI (Fallback)
`npx claude-flow swarm "update dependencies" --strategy maintenance`
Agent Roles
Agent Spawning with MCP
// Spawn maintenance agents
mcp__claude-flow__agent_spawn({
"type": "analyst",
"name": "Dependency Analyzer",
"capabilities": ["dependency-analysis", "version-management"]
})
mcp__claude-flow__agent_spawn({
"type": "monitor",
"name": "Security Scanner",
"capabilities": ["security", "vulnerability-scan"]
})
mcp__claude-flow__agent_spawn({
"type": "tester",
"name": "Test Runner",
"capabilities": ["testing", "validation"]
})
mcp__claude-flow__agent_spawn({
"type": "documenter",
"name": "Documentation Updater",
"capabilities": ["documentation", "changelog"]
})Safety Features
Backup and Recovery
// Create system backup
mcp__claude-flow__backup_create({
"components": ["code", "config", "dependencies"],
"destination": "./backups/maintenance-" + Date.now()
})
// Create state snapshot
mcp__claude-flow__state_snapshot({
"name": "pre-maintenance-" + Date.now()
})
// Enable fault tolerance
mcp__claude-flow__daa_fault_tolerance({
"agentId": "all",
"strategy": "checkpoint-recovery"
})Security Scanning
// Run security scan
mcp__claude-flow__security_scan({
"target": "./",
"depth": "comprehensive"
})Monitoring
// Health check before/after
mcp__claude-flow__health_check({
"components": ["dependencies", "tests", "build"]
})
// Monitor maintenance progress
mcp__claude-flow__swarm_monitor({
"swarmId": "maintenance-swarm",
"interval": 3000
})Read more
Maintenance Swarm Strategy
Purpose
System maintenance and updates through coordinated agents.
Activation
Using MCP Tools
// Initialize maintenance swarm
mcp__claude-flow__swarm_init({
"topology": "star",
"maxAgents": 5,
"strategy": "sequential"
})
// Orchestrate maintenance task
mcp__claude-flow__task_orchestrate({
"task": "update dependencies",
"strategy": "sequential",
"priority": "medium",
"dependencies": ["backup", "test", "update", "verify"]
})Using CLI (Fallback)
`npx claude-flow swarm "update dependencies" --strategy maintenance`
Agent Roles
Agent Spawning with MCP
// Spawn maintenance agents
mcp__claude-flow__agent_spawn({
"type": "analyst",
"name": "Dependency Analyzer",
"capabilities": ["dependency-analysis", "version-management"]
})
mcp__claude-flow__agent_spawn({
"type": "monitor",
"name": "Security Scanner",
"capabilities": ["security", "vulnerability-scan"]
})
mcp__claude-flow__agent_spawn({
"type": "tester",
"name": "Test Runner",
"capabilities": ["testing", "validation"]
})
mcp__claude-flow__agent_spawn({
"type": "documenter",
"name": "Documentation Updater",
"capabilities": ["documentation", "changelog"]
})Safety Features
Backup and Recovery
// Create system backup
mcp__claude-flow__backup_create({
"components": ["code", "config", "dependencies"],
"destination": "./backups/maintenance-" + Date.now()
})
// Create state snapshot
mcp__claude-flow__state_snapshot({
"name": "pre-maintenance-" + Date.now()
})
// Enable fault tolerance
mcp__claude-flow__daa_fault_tolerance({
"agentId": "all",
"strategy": "checkpoint-recovery"
})Security Scanning
// Run security scan
mcp__claude-flow__security_scan({
"target": "./",
"depth": "comprehensive"
})Monitoring
// Health check before/after
mcp__claude-flow__health_check({
"components": ["dependencies", "tests", "build"]
})
// Monitor maintenance progress
mcp__claude-flow__swarm_monitor({
"swarmId": "maintenance-swarm",
"interval": 3000
})An agent meta-harness for Claude Code and Codex. Agent = Model + Harness. The model writes; the harness gives it tools, memory, loops, sandboxes, and controls so it can actually work.
Repo: ruvnet/claude-flow
Other commands on claude-flow.
- /agent-capabilities
Matrix of agent capabilities and their specializations.
Open command - /agent-coordination
Coordination patterns for multi-agent collaboration.
Open command - /agent-spawning
Guide to spawning agents with Claude Code's Task tool.
Open command - /agent-types
Complete guide to all 54 available agent types in Claude Flow.
Open command - /COMMAND_COMPLIANCE_REPORT
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools (preferred) - `npx claude-flow` commands (as fallback) - No direct implementation calls
Open command - /bottleneck-detect
Analyze performance bottlenecks in swarm operations and suggest optimizations.
Open command

