swarm
Use to dispatch multiple parallel subagents on independent tasks. Discipline around isolation, conflict resolution, merge strategy. Wraps native parallel Task dispatch with structured gates.
What this skill does
# swarm Parallel subagent dispatch with discipline. Native CC supports parallel `Task` calls; this skill adds isolation + merge strategy. ## When this beats raw parallel Task - Tasks share files → need isolation (worktrees) - Tasks may conflict → need merge strategy - Tasks have shared dep order → need orchestration - N tasks > 3 → benefit from explicit dispatch matrix ## Method 1. **Decompose.** Confirm tasks are truly independent. If task B depends on task A's output, swarm is wrong — sequence them. 2. **Per-task isolation.** - Read-only tasks → no isolation needed - Write tasks → `Agent` with `isolation: "worktree"` 3. **Dispatch matrix.** Table of task × subagent × scope. 4. **Launch in single message.** Multiple `Task` tool calls in one assistant turn — that's how parallel works in CC. 5. **Wait** for results. Don't fabricate predictions while pending. 6. **Merge strategy.** - Independent files → just merge - Shared files → conflict resolution plan (one wins | rebase | manual review) 7. **Verify.** Tests after merge. Lint. Typecheck. ## Output shape ``` Goal: <umbrella task> Dispatch matrix: T1 [worktree-a] refactor src/auth → general-purpose T2 [worktree-b] refactor src/payment → general-purpose T3 [read-only] audit src/admin → Explore Launching 3 agents in parallel... [results land — fork notifications in later turns] Merge plan: T1 → branch: refactor-auth (no conflicts) T2 → branch: refactor-payment (no conflicts) T3 → output: docs/admin-audit.md (read-only; just commit) Merge order: T3, T1, T2 (T3 produces nothing conflicting) Verification: Tests after each merge: ✓ green Final tests: ✓ N passing ``` ## Rules - **One assistant message launches all parallel agents.** Sequencing them across turns defeats parallelism. - **Isolation for write-tasks.** Conflict resolution is harder than upfront isolation. - **Don't predict results.** While agents run, don't fabricate. Status updates only. - **Merge order is deterministic.** Document it. ## Anti-patterns - Launching 7 agents on truly independent tasks (CC permits up to ~3-4 cleanly; more = cap risk) - Shared write target without isolation (race-condition equivalent) - Sequencing dependent tasks as parallel - Reading sub-agent transcripts mid-flight (defeats the context savings) ## When NOT to use - Single task — direct dispatch - Sequential dependencies — `Plan` then sequential `Task`s - Tiny tasks — overhead exceeds value ## Subagent dispatch - This skill IS the dispatch pattern - Agents launched are typically `general-purpose` and `Explore` ## Value over native parallel Task Native parallel Task is just multiple calls in one message. Swarm adds: explicit isolation, merge strategy, verification gates. The discipline IS the value — keeps parallel work from creating conflict tar pits.
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.