Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
28
vendor/ruvector/.claude/commands/agents/agent-spawning.md
vendored
Normal file
28
vendor/ruvector/.claude/commands/agents/agent-spawning.md
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# agent-spawning
|
||||
|
||||
Guide to spawning agents with Claude Code's Task tool.
|
||||
|
||||
## Using Claude Code's Task Tool
|
||||
|
||||
**CRITICAL**: Always use Claude Code's Task tool for actual agent execution:
|
||||
|
||||
```javascript
|
||||
// Spawn ALL agents in ONE message
|
||||
Task("Researcher", "Analyze requirements...", "researcher")
|
||||
Task("Coder", "Implement features...", "coder")
|
||||
Task("Tester", "Create tests...", "tester")
|
||||
```
|
||||
|
||||
## MCP Coordination Setup (Optional)
|
||||
|
||||
MCP tools are ONLY for coordination:
|
||||
```javascript
|
||||
mcp__claude-flow__swarm_init { topology: "mesh" }
|
||||
mcp__claude-flow__agent_spawn { type: "researcher" }
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
1. Always spawn agents concurrently
|
||||
2. Use Task tool for execution
|
||||
3. MCP only for coordination
|
||||
4. Batch all operations
|
||||
Reference in New Issue
Block a user