swarm-planner by am-will/codex-skills
npx skills add https://github.com/am-will/codex-skills --skill swarm-planner创建具有明确任务依赖关系的实施计划,优化并行代理执行。此技能可在计划模式内或外运行。
代码库调查:
文档检索(外部依赖项必需):
使用 Context7 技能或 MCP 为项目中正在使用或将要使用的任何库/框架或 API 获取最新文档。如果 Context7 不可用,则使用网络搜索。
这确保了版本准确的 API、正确的参数和当前的最佳实践。
当任何内容不明确或可能有多种合理做法时:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
使用以下格式构建具有明确任务依赖关系的计划:
每个任务必须包括:
T1、T2.1)[])示例:
T1: [depends_on: []] 创建数据库模式迁移
T2: [depends_on: []] 安装所需包
T3: [depends_on: [T1]] 创建存储库层
T4: [depends_on: [T1]] 创建服务接口
T5: [depends_on: [T3, T4]] 实现业务逻辑
T6: [depends_on: [T2, T5]] 添加 API 端点
T7: [depends_on: [T6]] 编写集成测试
具有空/已满足依赖关系的任务可以并行运行(如上例中的 T1、T2)。
保存到当前工作目录下的 <topic>-plan.md 文件中。
保存后,生成一个子代理来审查计划:
审查此实施计划,关注:
1. 任务间缺失的依赖关系
2. 可能导致失败的排序问题
3. 缺失的错误处理或边缘情况
4. 遗漏、漏洞、陷阱。
提供具体、可操作的反馈。不要提问。
计划位置:[文件路径]
上下文:[关于任务的简要说明]
如果子代理提供了可操作的反馈,请在让出控制权前修改计划。
# 计划:[任务名称]
**生成时间**:[日期]
## 概述
[任务和方法的摘要]
## 先决条件
- [所需的工具、库、访问权限]
## 依赖关系图
[任务依赖关系的可视化表示] T1 ──┬── T3 ──┐ │ ├── T5 ── T6 ── T7 T2 ──┴── T4 ──┘
## 任务
### T1:[名称]
- **depends_on**: []
- **location**: [文件路径]
- **description**: [要做什么]
- **validation**: [如何验证]
- **status**: 未完成
- **log**: [留空,稍后填写]
- **files edited/created**: [留空,稍后填写]
### T2:[名称]
- **depends_on**: []
- **location**: [文件路径]
- **description**: [要做什么]
- **validation**: [如何验证]
- **status**: 未完成
- **log**: [留空,稍后填写]
- **files edited/created**: [留空,稍后填写]
### T3:[名称]
- **depends_on**: [T1]
- **location**: [文件路径]
- **description**: [要做什么]
- **validation**: [如何验证]
- **status**: 未完成
- **log**: [留空,稍后填写]
- **files edited/created**: [留空,稍后填写]
[... 为所有任务继续 ...]
## 并行执行组
| 批次 | 任务 | 何时可以开始 |
|------|-------|----------------|
| 1 | T1, T2 | 立即 |
| 2 | T3, T4 | 批次 1 完成 |
| 3 | T5 | T3, T4 完成 |
| ... | ... | ... |
## 测试策略
- [如何测试]
- [验证什么]
## 风险与缓解措施
- [可能出现的问题 + 如何处理]
depends_on 字段每周安装量
11.6K
代码仓库
GitHub 星标数
491
首次出现
2026年1月29日
安全审计
安装于
codex11.6K
gemini-cli11.6K
opencode11.6K
github-copilot11.6K
amp11.6K
kimi-cli11.6K
Create implementation plans with explicit task dependencies optimized for parallel agent execution. This skill can be ran inside or outside of Plan Mode.
Codebase investigation:
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.
When anything is unclear or could reasonably be done multiple ways:
Structure the plan with explicit task dependencies using this format:
Each task MUST include:
T1, T2.1)[] for root tasks)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).
Save to <topic>-plan.md in the CWD.
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: [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]
depends_on fieldWeekly Installs
11.6K
Repository
GitHub Stars
491
First Seen
Jan 29, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex11.6K
gemini-cli11.6K
opencode11.6K
github-copilot11.6K
amp11.6K
kimi-cli11.6K
97,600 周安装