plan-writing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePlan Writing
任务规划撰写
Source: obra/superpowers
来源:obra/superpowers
Overview
概述
This skill provides a framework for breaking down work into clear, actionable tasks with verification criteria.
本Skill提供一个框架,可将工作拆分为清晰、可执行的任务,并附带验证标准。
Task Breakdown Principles
任务拆分原则
1. Small, Focused Tasks
1. 小巧、聚焦的任务
- Each task should take 2-5 minutes
- One clear outcome per task
- Independently verifiable
- 每个任务耗时应在2-5分钟之间
- 每个任务对应一个明确的成果
- 可独立验证
2. Clear Verification
2. 明确的验证标准
- How do you know it's done?
- What can you check/test?
- What's the expected output?
- 如何判断任务已完成?
- 可以检查/测试哪些内容?
- 预期输出是什么?
3. Logical Ordering
3. 合理的排序逻辑
- Dependencies identified
- Parallel work where possible
- Critical path highlighted
- Phase X: Verification is always LAST
- 识别依赖关系
- 尽可能并行处理工作
- 突出关键路径
- 阶段X:验证环节永远放在最后
4. Dynamic Naming in Project Root
4. 项目根目录下的动态命名规则
- Plan files are saved as in the PROJECT ROOT
{task-slug}.md - Name derived from task (e.g., "add auth" → )
auth-feature.md - NEVER inside ,
.claude/, or temp foldersdocs/
- 规划文件以格式保存在项目根目录
{task-slug}.md - 文件名源自任务内容(例如:"add auth" → )
auth-feature.md - 绝对不要存放在、
.claude/或临时文件夹中docs/
Planning Principles (NOT Templates!)
规划原则(非模板!)
🔴 NO fixed templates. Each plan is UNIQUE to the task.
🔴 禁止使用固定模板。每个规划都应与任务需求匹配,具备唯一性。
Principle 1: Keep It SHORT
原则1:保持简洁
| ❌ Wrong | ✅ Right |
|---|---|
| 50 tasks with sub-sub-tasks | 5-10 clear tasks max |
| Every micro-step listed | Only actionable items |
| Verbose descriptions | One-line per task |
Rule: If plan is longer than 1 page, it's too long. Simplify.
| ❌ 错误做法 | ✅ 正确做法 |
|---|---|
| 包含50个带子子任务的条目 | 最多5-10个清晰任务 |
| 列出每个微步骤 | 仅包含可执行项 |
| 冗长的描述 | 每个任务一行说明 |
规则: 如果规划超过1页,说明过于冗长,需要简化。
Principle 2: Be SPECIFIC, Not Generic
原则2:具体明确,避免泛化
| ❌ Wrong | ✅ Right |
|---|---|
| "Set up project" | "Run |
| "Add authentication" | "Install next-auth, create |
| "Style the UI" | "Add Tailwind classes to |
Rule: Each task should have a clear, verifiable outcome.
| ❌ 错误做法 | ✅ 正确做法 |
|---|---|
| "搭建项目" | "运行 |
| "添加认证功能" | "安装next-auth,创建 |
| "设计UI样式" | "为 |
规则: 每个任务都应有清晰、可验证的成果。
Principle 3: Dynamic Content Based on Project Type
原则3:根据项目类型调整内容
For NEW PROJECT:
- What tech stack? (decide first)
- What's the MVP? (minimal features)
- What's the file structure?
For FEATURE ADDITION:
- Which files are affected?
- What dependencies needed?
- How to verify it works?
For BUG FIX:
- What's the root cause?
- What file/line to change?
- How to test the fix?
针对新项目:
- 采用什么技术栈?(先确定)
- 最小可行产品(MVP)包含哪些功能?
- 文件结构是什么样的?
针对功能新增:
- 会影响哪些文件?
- 需要哪些依赖?
- 如何验证功能正常运行?
针对Bug修复:
- 根本原因是什么?
- 需要修改哪个文件/哪一行代码?
- 如何测试修复效果?
Principle 4: Scripts Are Project-Specific
原则4:脚本需贴合项目类型
🔴 DO NOT copy-paste script commands. Choose based on project type.
| Project Type | Relevant Scripts |
|---|---|
| Frontend/React | |
| Backend/API | |
| Mobile | |
| Database | |
| Full-stack | Mix of above based on what you touched |
Wrong: Adding all scripts to every plan
Right: Only scripts relevant to THIS task
🔴 不要复制粘贴通用脚本命令。应根据项目类型选择合适的脚本。
| 项目类型 | 相关脚本 |
|---|---|
| 前端/React | |
| 后端/API | |
| 移动端 | |
| 数据库 | |
| 全栈 | 根据涉及模块混合使用上述脚本 |
错误做法: 为每个规划添加所有脚本
正确做法: 仅添加与当前任务相关的脚本
Principle 5: Verification is Simple
原则5:验证标准应简单可执行
| ❌ Wrong | ✅ Right |
|---|---|
| "Verify the component works correctly" | "Run |
| "Test the API" | "curl localhost:3000/api/users returns 200" |
| "Check styles" | "Open browser, verify dark mode toggle works" |
| ❌ 错误做法 | ✅ 正确做法 |
|---|---|
| "验证组件正常工作" | "运行 |
| "测试API" | "执行 |
| "检查样式" | "打开浏览器,验证暗黑模式切换功能正常" |
Plan Structure (Flexible, Not Fixed!)
规划结构(灵活可变,非固定格式!)
undefinedundefined[Task Name]
[任务名称]
Goal
目标
One sentence: What are we building/fixing?
一句话说明:我们要构建/修复什么?
Tasks
任务列表
- Task 1: [Specific action] → Verify: [How to check]
- Task 2: [Specific action] → Verify: [How to check]
- Task 3: [Specific action] → Verify: [How to check]
- 任务1:[具体操作] → 验证方式:[检查方法]
- 任务2:[具体操作] → 验证方式:[检查方法]
- 任务3:[具体操作] → 验证方式:[检查方法]
Done When
完成标准
- [Main success criteria]
> **That's it.** No phases, no sub-sections unless truly needed.
> Keep it minimal. Add complexity only when required.- [核心成功指标]
> **就这么简单。** 除非确实需要,否则不要添加阶段划分或子章节。
> 保持极简风格,仅在必要时增加复杂度。Notes
注意事项
[Any important considerations]
---[任何重要的考虑因素]
---Best Practices (Quick Reference)
最佳实践(快速参考)
- Start with goal - What are we building/fixing?
- Max 10 tasks - If more, break into multiple plans
- Each task verifiable - Clear "done" criteria
- Project-specific - No copy-paste templates
- Update as you go - Mark when complete
[x]
- 从目标出发 - 我们要构建/修复什么?
- 最多10个任务 - 如果任务过多,拆分为多个规划
- 每个任务可验证 - 明确的"完成"标准
- 贴合项目需求 - 不要复制粘贴通用模板
- 实时更新 - 完成任务后标记
[x]
When to Use
适用场景
- New project from scratch
- Adding a feature
- Fixing a bug (if complex)
- Refactoring multiple files
- 从零开始搭建新项目
- 新增功能
- 修复复杂Bug
- 重构多个文件