.claude/skills/swarm/SKILL.md
Enable a high-quality swarm-like Claude Code workflow for the current session, and optionally execute a task immediately using that mode. Uses parallel subagents for breadth, independent reviewer validation for precision, and critic challenge for final confidence. Use when the user wants swarm-like behavior, higher review rigor, or maximum quality without sacrificing Claude Code speed.
npx skillsauth add zaxbysauce/ragappv3 swarmInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Enable swarm mode for the current session. If arguments are provided, enable swarm mode first and then execute that task using the swarm-like implementation workflow.
Argument handling:
$ARGUMENTS as the task to execute immediately.Examples:
/swarm/swarm implement OAuth login without breaking existing session handling/swarm fix the failing auth refresh tests and verify the session flow/swarm refactor this parser safely and check for regressionsTurn Claude Code into a swarm-like orchestrator while preserving Claude Code speed advantages.
When enabled, Claude should:
Code quality and pre-ship defect detection are paramount. Speed still matters. The point of swarm mode is not to recreate slow serial swarm behavior inside Claude Code. The point is to keep Claude Code fast by parallelizing everything that can safely be parallelized while preserving a strict validation architecture.
That means:
If a workflow step does not materially improve quality, correctness, or trust, keep it lightweight or skip it. If a workflow step prevents real bugs from shipping, keep it even if it costs time.
Use this default escalation ladder:
Do not force every task through every layer if the extra layer adds cost but not quality. Do not force high-risk work through the full ladder.
High-risk work includes:
Lower-risk work can use a lighter path if evidence is strong:
.claude/session/ if it does not exist..claude/session/swarm-mode.md with the exact content below.Write this exact file:
# Swarm Mode Contract
Swarm mode is enabled for this session.
## Core principles
- Quality is the only success metric.
- There is no time pressure.
- There is no reward for finishing in fewer passes.
- Large tasks require more disciplined verification, not less.
- Use parallel subagents whenever scopes are disjoint and doing so does not reduce quality.
- Keep breadth, validation, and final challenge in separate contexts when possible.
## Role model
- Explorer role: fast, broad, cheap, suspicious mapper and candidate generator
- Reviewer role: independent validator of candidate findings, hyper-critical and skeptical
- Critic role: final challenger of reviewer-confirmed findings, hyper-suspicious and willing to overturn weak claims
- Main thread: architect/orchestrator that assigns scopes, persists state, and synthesizes only validated outputs
## Hard rules
- Explorer findings are candidate findings, not final findings.
- Candidate findings should be validated by an independent reviewer context before being treated as confirmed whenever the task is important enough to justify it.
- Reviewer should default to DISPROVED or UNVERIFIED unless the finding is actually supported by code evidence and, when relevant, runtime-aware verification.
- Critic should challenge reviewer-confirmed findings in small batches.
- If quality and speed conflict, quality wins.
- Do not batch more aggressively or skip validation because the repo is large.
- Premature completion is a failure state.
## Parallelism policy
Use parallel subagents for:
- repository mapping
- subsystem investigation
- test analysis
- security review
- performance review
- dependency review
- docs/release drift review
- candidate-finding validation when clusters are disjoint
- changed-area impact analysis
- implementation planning across disjoint modules
Do not parallelize tasks that edit the same files unless the workflow explicitly isolates them.
Parallelism is the default speed lever.
Use it aggressively wherever scopes are disjoint.
Serial work is for synthesis, conflict-prone edits, and final high-confidence validation.
## Default execution pattern for complex tasks
1. Explore and map in parallel.
2. Build a plan.
3. Implement in scoped units.
4. Validate with independent reviewer context.
5. Challenge with critic context when needed.
6. Synthesize only validated results.
## Anti-rationalization rules
Ignore these thoughts:
- "This is probably fine"
- "The broad reviewer is good enough"
- "I can save time by merging validation stages"
- "This repo is too large to review this carefully"
- "I should move on because this is taking too long"
If any of those appear, slow down and return to the workflow.
For subsequent complex tasks in this session:
After enabling swarm mode, immediately execute $ARGUMENTS using this swarm-like implementation ladder:
Do not treat the presence of $ARGUMENTS as permission to skip the swarm-mode contract.
The task must still follow the quality, speed, and risk-tiering rules above.
When you need an explorer-style subagent, tell it:
When you need a reviewer-style subagent, tell it:
When you need a critic-style subagent, tell it:
/swarm if needed after clearing or resetting session context.development
Disable swarm mode for the current Claude Code session and return to normal behavior.
tools
Run a swarm-like PR review using parallel exploration, independent reviewer validation, and critic challenge. Use for deep pull request review with low false-positive tolerance.
development
--- name: swarm-implement description: Execute complex implementation work with a swarm-like Claude Code workflow: parallel exploration, scoped planning, selective deep validation, and independent reviewer/critic checks where risk justifies them. Use for feature work, bug fixes, refactors, and multi-file changes. disable-model-invocation: true --- # /swarm-implement Use this skill for implementation work when you want Claude Code to behave like a fast, high-quality swarm rather than a single-t
development
Orchestrate any code change from requirements to merge-ready PR — scope-calibrated from small fixes to full features. Composes /spec, /implement, /review, and /research with depth that scales to the task: lightweight spec and direct implementation for bug fixes and config changes, full rigor for features. Use for ALL implementation work regardless of perceived scope — the workflow adapts depth, never skips phases. Triggers: ship, ship it, feature development, implement end to end, spec to PR, implement this, fix this, let's implement, let's go with that, build this, make the change, full stack implementation, autonomous development.