writing-plans 是什么?
writing-plans 把已经确定的需求整理成可执行的实现计划。它先梳理文件职责和接口,再拆解可以独立验证的任务,写清真实文件、操作、测试断言与验证命令,使后续执行者不必重新猜需求。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 需求或设计已确定,准备多步开发,希望另一位Agent也能按同一计划实施。
这些情况不适合
- 目标仍不清楚时用一份很长的计划替代需求讨论;计划也不能靠复制全部实现代码制造完整感。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
writing-plans,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 writing-plans
请在 Codex 的当前工作环境中安装并检查 writing-plans 这个 Skill。
项目身份:obra/superpowers / writing-plans
来源:https://github.com/obra/superpowers/blob/22f0b463e7a5e579904dd6211a520321035526f7/skills/writing-plans/SKILL.md
已定位的源文件:skills/writing-plans/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 writing-plans
请在 Claude Code 的当前工作环境中安装并检查 writing-plans 这个 Skill。
项目身份:obra/superpowers / writing-plans
来源:https://github.com/obra/superpowers/blob/22f0b463e7a5e579904dd6211a520321035526f7/skills/writing-plans/SKILL.md
已定位的源文件:skills/writing-plans/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 writing-plans
请在 Cursor Agent 的当前工作环境中安装并检查 writing-plans 这个 Skill。
项目身份:obra/superpowers / writing-plans
来源:https://github.com/obra/superpowers/blob/22f0b463e7a5e579904dd6211a520321035526f7/skills/writing-plans/SKILL.md
已定位的源文件:skills/writing-plans/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 writing-plans
请在 当前 Agent 的当前工作环境中安装并检查 writing-plans 这个 Skill。
项目身份:obra/superpowers / writing-plans
来源:https://github.com/obra/superpowers/blob/22f0b463e7a5e579904dd6211a520321035526f7/skills/writing-plans/SKILL.md
已定位的源文件:skills/writing-plans/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 提供已确定的需求或设计、当前工程及其真实测试命令;先阅读工程结构,确认修改范围和用户已有实现偏好。
会得到什么
- 默认位于
docs/superpowers/plans/YYYY-MM-DD-feature.md的实现计划;用户指定位置优先。计划包含具体任务与可验证的结果。
实际使用顺序
- 先映射相关文件职责、依赖和接口,检查计划会影响哪些输入输出;大任务按职责拆解,避免多个任务争改同一大文件。
- 计划头部交代目标、架构、技术栈、Spec与全局约束,并写出审查需特别关注的输入与失败模式。
- 每项任务写准确的新增或修改文件、接口和命名、具体测试断言、操作顺序与验证命令;“完善异常处理”这类空话应改成真实失败场景。
- 自查需求覆盖、类型与命名是否一致、步骤能否执行及篇幅是否合适。交用户审阅后,按其已确定偏好选择本会话执行或子Agent执行。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
使用 writing-plans 为已经确定的“订单列表导出CSV”需求写实现计划:导出当前筛选后的订单,固定订单号、日期、金额三列,空列表也保留表头。先读工程真实代码与测试命令,再指定实际文件、接口、空数据和字段顺序测试。写完自查,不直接实现,不捏造文件路径或提交记录。预期得到能交给执行者的真实工程计划,明确CSV行为和验证方法;本站未执行本例。
使用条件与边界
- 计划中的预期结果是将来的验收条件,不是测试已经通过的记录。
- 已有用户选择应保留,不能每次写计划都重新要求用户决定同一执行方式。
常见问题
计划越细,是否越应该贴完整代码?
不是。来源要求具体文件、接口、测试和步骤,同时避免让计划变成一整份实现副本;执行者需要知道改什么和如何证明。
没有读取工程,能先写准确文件路径吗?
不能。应先核对实际结构;未知路径或命令要作为待确认项,不能写成已经存在。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-17T19:31:50.806Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/writing-plans/SKILL.md · 抓取时间 2026-11-17T19:31:50.806Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Use when you have a spec or requirements for a multi-step task, before touching code
查看源文件章节 / Source sections
- 原文:Writing Plans
- 原文:Overview
- 原文:Scope Check
- 原文:File Structure
- 原文:Task Right-Sizing
- 原文:Step Granularity
- 原文:Plan Document Header
- 原文:Task Structure
- 原文:What a Step Contains
- 原文:Self-Review
- 原文:Execution Handoff
原文:Overview
Write implementation plans for an engineer who has not seen this codebase or this spec. Assume they write idiomatic code in the project's language once they know the exact interface and the exact test, and that they will make a reasonable choice wherever the plan leaves one open. What they cannot know is what you decided: which files, which names and signatures, which values from the spec, which tests prove each task. Document those. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits. **Announce at start:** "I'm using the writing-plans skill to create the implementation plan." **Context:** If working in an isolated worktree, it should have been created via the `superpowers:using-git-worktrees` skill at execution time. **Save plans to:** `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md` - (User preferences for plan location override this default)
原文:Scope Check
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
原文:File Structure
Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in. - Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility. - You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much. - Files that change together should live together. Split by responsibility, not by technical layer. - In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable. This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
原文:Task Right-Sizing
A task is the smallest unit that carries its own test cycle and is worth a fresh reviewer's gate. When drawing task boundaries: fold setup, configuration, scaffolding, and documentation steps into the task whose deliverable needs them; split only where a reviewer could meaningfully reject one task while approving its neighbor. Each task ends with an independently testable deliverable.
原文:Step Granularity
**Each step is one action with a checkable result:** - "Write the failing test" - step - "Run it to make sure it fails" - step - "Implement the minimal code to make the test pass" - step - "Run the tests and make sure they pass" - step - "Commit" - step
原文:Plan Document Header
**Every plan MUST start with this header:** ```markdown # [Feature Name] Implementation Plan > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. **Goal:** [One sentence describing what this builds] **Architecture:** [2-3 sentences about approach] **Tech Stack:** [Key technologies/libraries] **Spec:** [path to the spec/design doc this plan implements — the plan argues from the spec, so the spec travels with it; executors read both] ## Global Constraints [The spec's project-wide requirements — version floors, dependency limits, naming and copy rules, platform requirements — one line each, with exact values copied verbatim from the spec. Every task's requirements implicitly include this section.] ## Review Focus [The five input classes or failure modes the spec implies but no task's tests exercise that are most likely to bite a person using this software — one line each, naming the input or condition and the behavior a reasonable person would expect, most likely first. The spec is a vision document: it says what the software must do, not everything it will meet, and its silence on an input is not permission for that input to break the program. Write the list here, once, with the spec in front of you. Then, for each line, add the test that pins it to the task that owns the code, in that task's own step style.] --- ```
文件 SHA256:a6c67c1900064347c2a329990dd3c555657c51c3ec53b259a08aa01a2c26139a
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Use when you have a spec or requirements for a multi-step task, before touching code
历史收录数据
| Skill标识 | writing-plans |
|---|---|
| 来源仓库 | obra/superpowers |
| 榜单快照 | 2026-07-28 |
| 榜单口径 | Skills.sh累计安装量 |
| 快照名次 | 117 |
| 快照累计安装量 | 200603 |
历史资料说明
- 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。
此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。
