swarm-advisor
Swarm Advisor
The swarm-orchestration skill contains the full technical primitives (Team, Teammate, Task, Inbox, Message). This skill adds the design layer — when to use a swarm, how to structure it, and how to avoid common traps.
Is a Swarm Worth It?
Ask first. Swarms have real overhead: spawn cost, coordination messages, inbox polling, cleanup.
Good fit:
- 3+ independent workstreams that can run in parallel
- Work that naturally divides: research/implement/test, feature-A/feature-B/feature-C
- Long-running tasks where parallelism saves real time
- Pipeline patterns where stage N feeds stage N+1 with clear handoffs
Not worth it:
- Single sequential task → just do it inline
- 2 tasks → use two
Task()calls without a full team - Tight interdependencies where agents constantly block each other
- Tasks requiring human judgment mid-way → use GSD interactive mode instead
Team Topology Patterns
Pattern 1: Parallel Workers (most common)
Leader
├── Worker A (area: auth)
├── Worker B (area: API)
└── Worker C (area: tests)
Use when: Independent features/modules, parallel research, parallel code review.
Pattern 2: Pipeline
Leader → Researcher → Synthesizer → Implementer → Verifier
Use when: Each stage's output feeds the next. Only parallelize within stages.
Pattern 3: Fan-out / Fan-in
Leader spawns N researchers in parallel
Leader waits for all
Leader synthesizes results
Use when: Exploring multiple approaches, broad codebase mapping, multi-source research.
Pattern 4: Self-organizing Queue
Leader creates task queue
Workers claim tasks
Workers report back
Leader assigns next task
Use when: Many small tasks of unknown count, load balancing needed.
Pre-flight: Task Decomposition
Before spawning anything, help the user decompose the work:
- List all tasks — one sentence each
- Mark dependencies — which tasks must finish before others start?
- Group into waves — tasks with no blocking dependencies = Wave 1, etc.
- Assign to agents — group related tasks per agent to minimize cross-agent state sharing
Present as a table:
Wave | Task | Depends on | Agent
-----|------|-----------|------
1 | Research auth patterns | — | researcher
1 | Research API patterns | — | researcher
2 | Implement auth | Wave 1 | implementer-A
2 | Implement API | Wave 1 | implementer-B
3 | Integration tests | Wave 2 | verifier
Ask: "Does this decomposition look right? Any tasks missing or misassigned?"
Status Tracking
While a swarm runs, periodically check:
# Check task statuses
cat ~/.claude/tasks/<team>/*/json 2>/dev/null | grep '"status"'
# Check for stuck agents (no progress in N messages)
cat ~/.claude/teams/<team>/inboxes/<agent>.json
Signs of a stuck swarm:
- Tasks stuck
in_progressfor many iterations - Agents sending
idle_notificationrepeatedly - Inbox messages going unread
Recovery: Send a targeted message to the stuck agent with clarification, or reassign the task.
Shutdown Checklist
Before declaring done:
- All tasks in
completedstatus - Leader has received results from all teammates
- No pending
shutdown_requestmessages unacknowledged - Run cleanup:
TeamDeleteto remove team config
Integration with Other Frameworks
| Use swarm when... | Combined with |
|---|---|
| GSD execute-phase has 3+ independent plans | GSD spawns agents via swarm pattern |
| Gepetto section files are independent | Swarm implements sections in parallel |
| Ralph-loop hits a complex multi-part task | Pre-split into swarm, then loop on each part |
More from tebjan/agent-skills
caveman-smart
Intelligent token-efficiency mode. Compresses routine chat and thinking but stays in full prose for reasoning, architecture, and safety-critical topics. Applies per response, not per session. Use when the user says 'caveman', 'terse', 'kurz', 'kurz&knapp', 'kurz bitte', 'weniger text', 'less tokens', 'smart mode', or invokes /caveman-smart. Stays active until the user says 'normal mode', 'verbose', or 'ausführlich'. Built for HPC, real-time, graphics, embedded, and kernel work where technical precision matters more than word count but explanation-of-why still demands full prose.
2fix-jsonl-surrogates
Diagnose and repair 'invalid high surrogate' API errors in Claude Code chat sessions. Use this skill when the user encounters API Error 400 with 'invalid high surrogate in string', 'not valid JSON', surrogate-related errors, or wants to fix/scan/repair a broken Claude Code JSONL chat file. Also use when a session refuses to resume due to JSON encoding errors, or when the user mentions request IDs (req_...) alongside JSON parse failures.
2gsd-orchestrator
Orchestrates and advises on complete GSD (Get Shit Done) development workflows. Acts as both workflow driver and expert consultant — reads context, suggests the right tools, asks clarifying questions when intent is unclear, spawns subagents for each step, and never loses focus on workflow completion. Use when the user wants to build something, asks which GSD command to use, says 'help me with GSD', 'run the GSD workflow', 'let's start a project', 'what should I do next', or describes any dev task that might benefit from structured planning. Also triggers when the task scope is ambiguous and needs routing to fast/quick/full GSD flow.
1install-github-plugin
Installs Claude Code plugins from GitHub repos that lack a marketplace manifest. Use this skill whenever a `claude plugin install` fails due to SSH key errors, missing `.claude-plugin/marketplace.json`, or a GitHub repo that wasn't designed as a Claude plugin marketplace. Also use when the user says \"install plugin from GitHub\", \"add skills from a repo\", or \"the plugin install failed\". Handles the full workflow: cloning via gh CLI, inspecting repo structure, generating the marketplace manifest, and running the install.
1addy-orchestrator
Orchestrates end-to-end software development using the addyosmani/agent-skills framework. Guides the user through define → plan → build → verify → review → ship phases, spawns subagents for each step, tracks state persistently, and never loses focus on workflow completion. Use when the user says \"let's build X\", \"help me implement X\", \"walk me through X\", or wants structured multi-phase dev guidance. Also triggers when a task is clearly non-trivial and would benefit from phased execution.
1ralph-orchestrator
Orchestrates and advises on Ralph Loop automated development sessions. Use when the user wants to run ralph-loop, asks how to set up a Ralph task, wants iterative agent-driven development, says 'run this in a loop until it works', or has a task with testable acceptance criteria they want to automate. Helps write effective loop prompts, sets safe iteration limits, monitors loop progress, detects stuck loops, and advises on completion criteria. Keeps context short — the heavy work happens inside the loop.
1