swarm-planner
am-will/codex-skills
Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
What is swarm-planner?
Generates structured implementation plans with explicit task dependencies designed for parallel agent execution. Use this skill when you need to break down complex projects into independently executable tasks that can run concurrently across multiple agents.
- Investigates codebase architecture, patterns, and existing implementations
- Retrieves current documentation for external libraries and frameworks via Context7
- Structures tasks with explicit dependency declarations enabling maximum parallelization
- Identifies root tasks (no dependencies) that can execute immediately in parallel
- Generates visual dependency graphs and parallel execution wave groupings
- Spawns subagent review to catch missing dependencies, ordering issues, and gaps
How to install swarm-planner
npx skills add https://github.com/am-will/codex-skills --skill swarm-planner- Context7 skill (recommended for fetching external library documentation)
- Web search capability (fallback if Context7 unavailable)
- Access to project codebase for architecture investigation
How to use swarm-planner
- 1.Invoke the skill with explicit invocation only
- 2.Provide project context and implementation goal
- 3.Allow the skill to investigate your codebase architecture and patterns
- 4.Answer any clarification questions about scope, constraints, or priorities
- 5.Review the generated plan file (saved as <topic>-plan.md)
- 6.Execute tasks according to the dependency graph, running parallel tasks concurrently
Use cases
- Planning a multi-service backend refactor where database schema, API endpoints, and service layers can be built in parallel
- Breaking down a large feature implementation into independent tasks for a team of coding agents
- Identifying which components can be developed concurrently in a microservices architecture
- Creating a structured roadmap for complex integrations with multiple external APIs
- Planning database migrations and related code changes with clear dependency ordering
- Engineering leads coordinating multi-agent development
- Teams using parallel agent execution frameworks
- Developers planning large refactors or feature implementations
- Architects designing modular, parallelizable systems
swarm-planner FAQ
Yes. Tasks with empty depends_on arrays are root tasks and can execute immediately in parallel. The skill generates a Parallel Execution Groups table showing which waves of tasks can run together.
The skill stops and asks clarifying questions before proceeding. It will not make assumptions about scope, constraints, or priorities and always offers recommendations for what to clarify.
No. The skill only creates the plan structure. You or your agents execute the tasks according to the dependency graph. Each task is designed to be independently executable by a single agent.
It uses Context7 to fetch current documentation for any external libraries, frameworks, or APIs before finalizing tasks. This ensures version-accurate APIs and current best practices.
The subagent reviews for missing dependencies between tasks, ordering issues that would cause failures, missing error handling or edge cases, and other gaps or gotchas in the plan.
Full instructions (SKILL.md)
Source of truth, from am-will/codex-skills.
name: swarm-planner description: > [EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution. metadata: invocation: explicit-only
Swarm-Ready Planner
Create implementation plans with explicit task dependencies optimized for parallel agent execution. This skill can be ran inside or outside of Plan Mode.
Core Principles
- Explore Codebase: Investigate architecture, patterns, existing implementations, dependencies, and frameworks in use.
- Fresh Documentation First: Use Context7 for ANY external library, framework, or API before planning tasks
- Ask Questions: Clarify ambiguities and seek clarification on scope, constraints, or priorities throughout the planning process. At any time.
- Explicit Dependencies: Every task declares what it depends on, enabling maximum parallelization
- Atomic Tasks: Each task is independently executable by a single agent
- Review Before Yield: A subagent reviews the plan for gaps before finalizing
Process
1. Research
Codebase investigation:
- Architecture, patterns, existing implementations
- Dependencies and frameworks in use
1a. Optional: Stop to Clarification Questions
- If the architecture is unclear or missing STOP AND YIELD to the user, and request user input (AskUserQuestions) before moving on. Always offer recommendations for clarification questions.
- If architecture is present, skip 1a and move onto next step.
2. Documentation
Documentation retrieval (REQUIRED for external dependencies):
Use Context7 skill or MCP to fetch current docs for any libraries/frameworks or APIs that are or will be used in project. If Context7 is not available, use web search.
This ensures version-accurate APIs, correct parameters, and current best practices.
3. STOP and Request User Input
When anything is unclear or could reasonably be done multiple ways:
- Stop and ask clarifying questions immediately
- Do not make assumptions about scope, constraints, or priorities
- Questions should reduce risk and eliminate ambiguity
- Always offer recommendations for clarification questions.
- Use request_user_input or AskUserQuestion tool if available.
4. Create Dependency-Aware Plan
Structure the plan with explicit task dependencies using this format:
Task Dependency Format
Each task MUST include:
- id: Unique identifier (e.g.,
T1,T2.1) - depends_on: Array of task IDs that must complete first (empty
[]for root tasks) - description: What the task accomplishes
- location: File paths involved
- validation: acceptance criteria
Example:
T1: [depends_on: []] Create database schema migration
T2: [depends_on: []] Install required packages
T3: [depends_on: [T1]] Create repository layer
T4: [depends_on: [T1]] Create service interfaces
T5: [depends_on: [T3, T4]] Implement business logic
T6: [depends_on: [T2, T5]] Add API endpoints
T7: [depends_on: [T6]] Write integration tests
Tasks with empty/satisfied dependencies can run in parallel (T1, T2 above).
4. Save Plan
Save to <topic>-plan.md in the CWD.
5. Subagent Review
After saving, spawn a subagent to review the plan:
Review this implementation plan for:
1. Missing dependencies between tasks
2. Ordering issues that would cause failures
3. Missing error handling or edge cases
4. Gaps, holes, gotchas.
Provide specific, actionable feedback. Do not ask questions.
Plan location: [file path]
Context: [brief context about the task]
If the subagent provides actionable feedback, revise the plan before yielding.
Plan Template
# Plan: [Task Name]
**Generated**: [Date]
## Overview
[Summary of task and approach]
## Prerequisites
- [Tools, libraries, access needed]
## Dependency Graph
[Visual representation of task dependencies] T1 ──┬── T3 ──┐ │ ├── T5 ── T6 ── T7 T2 ──┴── T4 ──┘
## Tasks
### T1: [Name]
- **depends_on**: []
- **location**: [file paths]
- **description**: [what to do]
- **validation**: [how to verify]
- **status**: Not Completed
- **log**: [leave empty, to be filled out later]
- **files edited/created**: [leave empty, to be filled out later]
### T2: [Name]
- **depends_on**: []
- **location**: [file paths]
- **description**: [what to do]
- **validation**: [how to verify]
- **status**: Not Completed
- **log**: [leave empty, to be filled out later]
- **files edited/created**: [leave empty, to be filled out later]
### T3: [Name]
- **depends_on**: [T1]
- **location**: [file paths]
- **description**: [what to do]
- **validation**: [how to verify]
- **status**: Not Completed
- **log**: [leave empty, to be filled out later]
- **files edited/created**: [leave empty, to be filled out later]
[... continue for all tasks ...]
## Parallel Execution Groups
| Wave | Tasks | Can Start When |
|------|-------|----------------|
| 1 | T1, T2 | Immediately |
| 2 | T3, T4 | Wave 1 complete |
| 3 | T5 | T3, T4 complete |
| ... | ... | ... |
## Testing Strategy
- [How to test]
- [What to verify]
## Risks & Mitigations
- [What could go wrong + how to handle]
Important
- Every task must have explicit
depends_onfield - Root tasks (no dependencies) can be executed in parallel immediately
- Do NOT implement - only create the plan
- Always use Context7 for external dependencies before finalizing tasks
- Always ask questions where ambiguity exists
Related skills
More from am-will/codex-skills and the wider catalog.

tdd-test-writer
Writes failing tests first for test-driven development and hands off a strict implementation contract that requires agents to make those tests pass without weakening the tests. Use when users ask for test-first workflows, RED/GREEN cycles, or behavior-gating tasks with automated tests.

Agent Browser
Fast Rust-based headless browser automation for AI agents to navigate, click, type, and extract data from web pages.

context7
Fetch current library documentation via Context7 API to avoid outdated knowledge.

Frontend Responsive Design Standards
Build responsive, mobile-first layouts with fluid containers, flexible units, and touch-friendly design across all screen sizes.

vega-multi-tv-migration
Migrate Fire TV apps to multi-platform React Native monorepos supporting Android TV, Apple TV, and Vega OS.

agy-delegate
Delegate coding tasks to Google Antigravity CLI and review the diff before landing it.