← ClaudeAtlas

multi-agentlisted

Rules for sub-agents, Agent Teams, worktree agents, central commit pattern, and parallel work coordination.
juan294/cc-rpi · ★ 5 · AI & Automation · score 77
Install: claude install-skill juan294/cc-rpi
# Multi-Agent Coordination ## Central Commit Pattern Wrong -- sub-agent pushes directly, causes wrong-branch push: ```bash # In sub-agent worktree: git add . && git commit -m "fix" && git push origin feature-branch ``` Right -- sub-agent commits locally, main agent pushes: ```bash # Sub-agent (worktree): commit only git add . && git commit -m "fix" # Main agent: review, then batch-push all branches git push origin branch-1 branch-2 branch-3 ``` ## Central Push Pattern Wrong -- N agents push independently, triggering N x M CI runs: ```bash # Agent 1 pushes -> 9 CI workflows # Agent 2 pushes -> 9 CI workflows # Agent 3 pushes -> 9 CI workflows # Total: 27 workflow runs ``` Right -- main agent batch-pushes, monitors CI centrally: ```bash # All agents commit locally in their worktrees # Main agent pushes all at once: git push origin branch-1 branch-2 branch-3 # One background agent monitors all CI runs ``` ## Sub-Agent Permissions Wrong -- spawn sub-agent for write operation, it fails silently: ```bash # Sub-agent: "I don't have permission to edit files" ``` Right -- verify permissions before spawning, take over if blocked: ```text 1. Check tool permissions before spawning sub-agents for write ops 2. If a sub-agent fails due to permissions, take over manually immediately 3. Don't retry the sub-agent -- do the work yourself ``` ## Agent Team Spawn Context Wrong -- teammate has no context, makes wrong assumptions: ```text "Fix the login bug" ``` Right -- include