onewave-ai/claude-skills/agent-army
Claude Code and agent skill by onewave-ai/claude-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Deploy a 2-layer parallel agent hierarchy for large, parallelizable work — big refactors, multi-file migrations, codebase-wide audits, bulk generation. A top-tier commander (Fable or Opus) orchestrates the swarms; the user picks a power level (Max Power / Heavy / Balanced / Economy) that sets the Opus/Sonnet/Haiku model mix per layer. Layer 1 is 3-50+ specialist agents, each with its own full context window; Layer 2 is 2+ sub-agents per member. Includes git safety, tiered sizing, a pre-deploy gate, phantom-completion checks, and multi-wave follow-up.
Install
npx vskill@latest install onewave-ai/claude-skills/agent-armySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as onewave-ai/claude-skills/agent-army.
Agent Army
A 2-layer parallel execution framework. The Commander is the top-tier model — Fable by default, or Opus if that's the session model — and does the thinking: recon, composition, briefing, verification. It orchestrates swarms of subordinate models whose tiers the user picks at deploy time (see Power Level). Each Layer 1 agent has its own full context window (not a slice). Each spawns Layer 2 sub-agents under it. The result is many independent brains running at once — not one brain divided.
Swarm vs. army: A swarm splits one context window across sub-agents — one brain, divided. An army gives each Layer 1 member its own window. That difference is the whole point of this skill.
When to use
- Large refactors spanning many files
- Multi-file color / style / naming / API migrations
- Broad codebase audits (security, a11y, performance, dead code)
- Bulk content generation or transformation
- Any task with 6+ independent units of work that can run simultaneously
When NOT to use
- Fewer than 6 independent units of work — just do it directly
- Heavy sequential dependencies where each step needs the last one's output
- Single-file changes
- Tasks needing one coherent authorial voice across all output (parallel agents drift)
If the task doesn't clearly fit, say so and propose doing it inline instead of spinning up an army.
<mandatory-rules>
MANDATORY RULES
- EVERY Layer 1 agent MUST spawn 2+ sub-agents. No exceptions. If you're about to deploy an L1 agent with no sub-agents, STOP and restructure.
- NEVER silently shrink the army. Match the user's chosen tier. If you must deviate, say so out loud and why.
2b. NEVER silently downgrade models. Pass model: explicitly on every Agent call at the user's chosen power level. Omitting it inherits the session model — that's a silent Max Power bill.
- Sub-agent deployment instructions go INSIDE the Layer 1 brief. If they're missing, the sub-agents will never be created.
- Report as agents complete:
[Agent N/M complete] name: X files modified, Y flags. - Show the army plan and pass the Deployment Gate before deploying (Full Mode). Quick Mode composes the plan internally but still passes the Gate.
- After every wave: run the build AND the phantom-completion check (see Verify). A green report from an agent is a claim, not proof.
- "Keep going" / "don't stop" = continuous mode: launch a new agent the moment one completes. Don't wait, don't re-ask.
</mandatory-rules>
Army Size
Confirm a tier before starting. Present this table:
Default to Standard on "just do it." After recon (Step 3), recommend a specific number based on what you found — e.g. "35 files across 6 domains → Aggressive: 8 L1 agents, 2-3 sub-agents each (~22 total, ~2M tokens). Adjust?" Token estimates are rough and scale with task complexity.
Power Level
Size sets how many agents; power sets which models. Ask for both in one question (AskUserQuestion works well — size and power as two questions in one call). Skip asking if the user already named a power level or explicit models.
Rules:
- The Commander is always the session model — Fable or Opus, the user's choice — and is never delegated. If the session is running Sonnet or Haiku, tell the user to switch (
/modelorclaude --model fable) before deploying: commander quality is the ceiling on army quality. - Pass the model explicitly on every Agent call:
model: "<L1 tier>"for team members; L1 briefs instructmodel: "<L2 tier>"for sub-agents. - Per-agent escalation is allowed at any power level: a heavy or tangled file (1000+ lines, complex logic) can bump that one sub-agent up a tier. Note escalations in the army plan.
- Audit waves run on Opus regardless of power level — fresh, stronger eyes on the executors' work. Notify waves can drop to Haiku.
Protocol
Mode: If scope is already concrete (file paths, exact changes, tier), skip to Step 3 (Quick Mode). Otherwise start at Step 1 (Full Mode).
Step 1: Intake (Full Mode)
Confirm in one line if the user already gave context: "Goal: [X]. Scope: [Y]. Tier: [Z]. Power: [P]. Starting." Otherwise ask for: goal (one sentence), scope (files/dirs/"everything"), constraints (don't touch X, match Y), tier, and power level.
Step 2: Git Checkpoint
git status— warn on uncommitted changes, offer to stash/commit first.git checkout -b agent-army/checkpoint-{timestamp}then switch back. This is the rollback point.- No git repo? Warn that there's no safety net and get explicit confirmation.
Step 3: Recon
- Grep / Glob / Read to find every affected file.
- Count the units of work.
wc -leach file. Flag 500+ line files as heavy → assign solo.- Classify into domains (by directory, import graph, file type, naming pattern).
- Identify shared dependencies — foundation files imported across domains. Handle these first (Step 5).
- Identify the build command (package.json, Makefile, etc.).
Output: Files: N | Heavy: [list] | Domains: [list] | Shared deps: [list] | Build cmd: [cmd]
Step 4: Compose
- Foundation Agent for shared deps — runs before the parallel wave so dependents don't conflict.
- Layer 1: one agent per domain; split large domains across multiple agents.
- Layer 2: 2+ sub-agents per L1 agent, assigned by weighted file load, not file count:
- Small (<200 lines): 2-3 per sub-agent
- Medium (200-500): 1-2 per sub-agent
- Heavy (500+): 1 per sub-agent, solo
- Name every agent. Assign every file to exactly one sub-agent — no overlaps, no gaps.
Output the army plan. Full Mode: pause for "Proceed?" Quick Mode: one-line summary, then deploy.
Deployment Gate
Output this checklist in your response before deploying. Don't check it mentally — write it out.
All must PASS. Any FAIL → fix the plan before deploying.
Step 5: Deploy
- Foundation Agent first (if any), at the L1 tier. Wait for completion.
- Launch ALL Layer 1 agents in parallel —
run_in_background: trueandmodel: "<L1 tier>"on every call, in a single message. - Each L1 agent spawns its L2 sub-agents in parallel (per its brief).
- Report each completion:
[Agent N/M complete] name: results.
Step 6: Verify
- Re-scan — rerun the Step 3 searches for remaining violations.
- Phantom-completion check — run
git diff --statand cross-reference against agent reports. Any agent that reported "COMPLETE, N files modified" with no matching diff lied or no-op'd — re-dispatch it. Trust the diff, not the report. - Build — run the build command. Record PASS/FAIL.
- Resolve cross-team flags from the reports.
- Output the army report:
Waves
Each wave is a new, smaller, differently-specialized army. Pause for user approval before each. Max 4 waves.
| Wave | Name | Trigger | Purpose | |
|---|---|---|---|---|
| 1 | Execute | always | make the changes | |
| 2 | Audit | build fails, remaining violations, 20+ files, or flags > 0 | fresh agents review Wave 1 for correctness/edge cases | |
| 3 | Propagate | changes touch APIs/types/interfaces; tests or docs reference old patterns | update tests, docs, configs, downstream callers | |
| 4 | Notify | user opts in | draft PR description, changelog, Slack summary |
Each wave's report is the next wave's recon. After each, rerun Verify; stop when re-scan is clean and build passes, or at 4 waves.
Resume / scratchpad
For multi-wave or interruptible runs, write .army-state.md after Wave 1: files modified (diff-confirmed), open flags, unresolved issues, decisions. If a run is killed, the next invocation reads this file and resumes from the last clean wave instead of restarting. Skip for single-wave tasks.
Layer 1 Prompt Template
This is what spawned agents actually see — the most important section in the skill.
Layer 2 Prompt Template
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent-army/SKILL.md
Popularity
- Repository stars
- 256
- Repository forks
- 42
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/onewave-ai/claude-skills/agent-army)