From ai-agents
将设计规格转化为细粒度实现计划(plan.md)。每个任务 2 到 5 分钟,遵循 DRY/YAGNI 原则。支持注释循环。触发短语:"编写计划"、"写计划"、"制定方案"。
npx claudepluginhub stringke/ai-agents --plugin ai-agentsThis skill is limited to using the following tools:
将设计规格文档(spec.md)转化为可逐步执行的实现计划。plan.md 是后续所有实现工作的唯一真相来源。
Generates detailed implementation plans from approved spec.md files, iterates with human annotations, and outputs structured plan.json with phases, tasks, and steps. Use after spec approval to break into engineer-ready work.
Creates TDD implementation plans for multi-step features from specs: lists files, breaks into tiny tasks with test code, commands, commits; includes self-checks and execution options.
Generates detailed implementation plans from specs for multi-step tasks before coding, with file structure, bite-sized TDD steps, architecture, and tech stack.
Share bugs, ideas, or general feedback.
将设计规格文档(spec.md)转化为可逐步执行的实现计划。plan.md 是后续所有实现工作的唯一真相来源。
读取最近的 spec.md(在 docs/sdlc/ 下查找),确认设计意图和范围。
如果没有 spec.md,建议用户先执行 /brainstorming。
使用 Glob、Grep、Read 工具深入分析需要修改的文件:
在 docs/sdlc/YYYY-MM-DD/{slug}/plan.md 中写入实现计划:
# [任务标题]
## 方案说明
[基于 spec.md 的设计决策,描述实现策略]
## 改动文件
- `path/to/FileA`:修改 xxx,添加 yyy
- `path/to/FileB`:新增 zzz
## 代码片段
[关键改动的代码示例,展示核心逻辑]
## 考量与权衡
[为什么选这个方案,有哪些 trade-off]
## 影响的测试
[需要修改或新增的测试]
## Todo List
### Phase 1: [阶段名]
- [ ] 任务 1(2 到 5 分钟描述)
- [ ] 任务 2
### Phase 2: [阶段名]
- [ ] 任务 3
- [ ] 任务 4
任务粒度指南:
使用 Agent 工具派遣子代理审查 plan.md。子代理的 prompt 使用 references/plan-reviewer-prompt.md 的内容。
将审查结果呈现给用户,根据反馈修改 plan.md。
告知用户:"实现计划已写入 docs/sdlc/YYYY-MM-DD/{slug}/plan.md,请审阅并添加注释。"
当用户发送"我加了注释"或类似指令时:
循环直到用户满意。用户确认后,建议执行 /executing-plans 或 /subagent-driven-development。