plan-writing by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill plan-writing来源:obra/superpowers
此技能提供了一个框架,用于将工作分解为清晰、可执行且带有验证标准的任务。
{task-slug}.md 格式保存在项目根目录auth-feature.md).claude/、docs/ 或临时文件夹内广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
🔴 没有固定模板。每个计划都是针对任务独一无二的。
| ❌ 错误 | ✅ 正确 |
|---|---|
| 包含子子任务的 50 个任务 | 最多 5-10 个清晰的任务 |
| 列出每个微步骤 | 仅包含可执行项 |
| 冗长的描述 | 每个任务一行 |
规则: 如果计划超过 1 页,那就太长了。请简化。
| ❌ 错误 | ✅ 正确 |
|---|---|
| "设置项目" | "运行 npx create-next-app" |
| "添加身份验证" | "安装 next-auth,创建 /api/auth/[...nextauth].ts" |
| "设计 UI 样式" | "向 Header.tsx 添加 Tailwind 类" |
规则: 每个任务都应有一个清晰、可验证的结果。
对于新项目:
对于功能添加:
对于错误修复:
🔴 不要复制粘贴脚本命令。根据项目类型选择。
| 项目类型 | 相关脚本 |
|---|---|
| 前端/React | ux_audit.py, accessibility_checker.py |
| 后端/API | api_validator.py, security_scan.py |
| 移动端 | mobile_audit.py |
| 数据库 | schema_validator.py |
| 全栈 | 根据你接触的内容混合使用上述脚本 |
错误: 将所有脚本添加到每个计划中 正确: 仅添加与此任务相关的脚本
| ❌ 错误 | ✅ 正确 |
|---|---|
| "验证组件正常工作" | "运行 npm run dev,点击按钮,看到提示" |
| "测试 API" | "curl localhost:3000/api/users 返回 200" |
| "检查样式" | "打开浏览器,验证深色模式切换有效" |
# [任务名称]
## 目标
一句话:我们要构建/修复什么?
## 任务
- [ ] 任务 1: [具体操作] → 验证: [如何检查]
- [ ] 任务 2: [具体操作] → 验证: [如何检查]
- [ ] 任务 3: [具体操作] → 验证: [如何检查]
## 完成标准
- [ ] [主要成功标准]
就这样。 没有阶段,没有子章节,除非真正需要。保持极简。仅在需要时增加复杂性。
[任何重要的注意事项]
---
## 最佳实践(快速参考)
1. **从目标开始** - 我们要构建/修复什么?
2. **最多 10 个任务** - 如果更多,请分解为多个计划
3. **每个任务可验证** - 清晰的"完成"标准
4. **项目特定** - 没有复制粘贴的模板
5. **边做边更新** - 完成时标记 `[x]`
---
## 使用时机
- 从零开始的新项目
- 添加功能
- 修复错误(如果复杂)
- 重构多个文件
每周安装量
150
代码仓库
GitHub 星标数
22.6K
首次出现
2026年1月25日
安全审计
安装于
opencode128
gemini-cli118
codex116
claude-code111
github-copilot110
cursor106
Source: obra/superpowers
This skill provides a framework for breaking down work into clear, actionable tasks with verification criteria.
{task-slug}.md in the PROJECT ROOTauth-feature.md).claude/, docs/, or temp folders🔴 NO fixed templates. Each plan is UNIQUE to the task.
| ❌ 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.
| ❌ Wrong | ✅ Right |
|---|---|
| "Set up project" | "Run npx create-next-app" |
| "Add authentication" | "Install next-auth, create /api/auth/[...nextauth].ts" |
| "Style the UI" | "Add Tailwind classes to Header.tsx" |
Rule: Each task should have a clear, verifiable outcome.
For NEW PROJECT:
For FEATURE ADDITION:
For BUG FIX:
🔴 DO NOT copy-paste script commands. Choose based on project type.
| Project Type | Relevant Scripts |
|---|---|
| Frontend/React | ux_audit.py, accessibility_checker.py |
| Backend/API | api_validator.py, security_scan.py |
| Mobile | mobile_audit.py |
| Database | schema_validator.py |
| Full-stack | Mix of above based on what you touched |
Wrong: Adding all scripts to every plan Right: Only scripts relevant to THIS task
| ❌ Wrong | ✅ Right |
|---|---|
| "Verify the component works correctly" | "Run npm run dev, click button, see toast" |
| "Test the API" | "curl localhost:3000/api/users returns 200" |
| "Check styles" | "Open browser, verify dark mode toggle works" |
# [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]
## Done When
- [ ] [Main success criteria]
That's it. No phases, no sub-sections unless truly needed. Keep it minimal. Add complexity only when required.
[Any important considerations]
---
## Best Practices (Quick Reference)
1. **Start with goal** - What are we building/fixing?
2. **Max 10 tasks** - If more, break into multiple plans
3. **Each task verifiable** - Clear "done" criteria
4. **Project-specific** - No copy-paste templates
5. **Update as you go** - Mark `[x]` when complete
---
## When to Use
- New project from scratch
- Adding a feature
- Fixing a bug (if complex)
- Refactoring multiple files
Weekly Installs
150
Repository
GitHub Stars
22.6K
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode128
gemini-cli118
codex116
claude-code111
github-copilot110
cursor106
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装