writing-plans
Skill9 starsChanged 6 months agoMITView on GitHub
当拿到多步骤任务的规格说明或需求、准备动手写代码前,必须使用本技能制定完整实现计划
189 other projects use a version of this, 127 of them edited.
Adopted by
Most recently taken up by
- andreymudri/fleetmatestheir own version, first seen Oct 5, 2026
- invergent-ai/surogatesedited, first seen Oct 5, 2026
- blas1n/claude-skillsedited, first seen Oct 4, 2026
- ryanportfolio/Harness-Firmwaretheir own version, first seen Oct 3, 2026
- ryanportfolio/Corewise.Academytheir own version, first seen Oct 3, 2026
- LayneChai/superpowers-dshedited, first seen Oct 3, 2026
Used with
Projects with it also use diagnosing-superpowers, chinese-git-workflow and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 6 projects that use this
MorningStar0709Skillchinese-git-workflow
Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".
Also in 4 projects that use this
SuperInstanceSkillmarketing-mode
Marketing Mode combines 23 comprehensive marketing skills covering strategy, psychology, content, SEO, conversion optimization, and paid growth. Use when users need marketing strategy, copywriting, SEO help, conversion optimization, paid advertising, or any marketing tactic.
Also in 4 projects that use this
itallstartedwithaideaSkilllong-horizon-workflows
Long-Horizon Workflows enable AI agents to execute multi-hour, multi-phase autonomous pipelines that far exceed the scope of a single conversation turn.
Also in 4 projects that use this
shibit-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
- +1 more from shibit-net
Other versions189 projects use a version of this.
Word for word · 0
None found.
Edited · 127
- obra/superpowers★ 314k15% same
- openai/plugins★ 7.3k33% same
- coco-research/coco★ 43721% same
- Ibrahim-3d/orchestrator-supaconductor★ 38027% same
- jd-opensource/JoySafeter★ 31237% same
- theexperiencecompany/gaia★ 30637% same
- totvs/engpro-advpl-tlpp-skills★ 13835% same
- CommandCodeAI/agent-skills★ 13137% same
- aaddrick/claude-pipeline★ 12932% same
- Houseofmvps/ultraship★ 12323% same
117 more not listed
Wrote their own version · 62
- jnMetaCode/superpowers-zh★ 8.3ksame name
- microsoft/FluidFramework★ 4.9ksame name
- GanyuanRan/Aegis★ 1.3ksame name
- graniet/kheish★ 221same name
- withzombies/hyperpowers★ 80same name
- AlekseiUL/sprut-agent-kit★ 65same name
- joshuadavidthomas/agent-skills★ 54same name
- itallstartedwithaidea/agent-skills★ 39same name
- megamott/vibe-skills★ 28same name
- yimwoo/hotl-plugin★ 27same name
52 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 164
REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development
- Distinctive: line 168
REQUIRED SUB-SKILL: Use superpowers:executing-plans
“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Writing Plans(编写实现计划)
Overview(概述)
撰写详尽的实现计划,并假设执行工程师对我们的代码库一无所知,且品味堪忧。需要记录他们所需的一切信息:每个任务要改动哪些文件、代码、测试、需要查阅的文档,以及如何进行测试。把整个计划拆成一口一个的小任务。遵循 DRY、YAGNI、TDD,频繁提交。
假设执行者是一位熟练的开发者,但几乎不了解我们的工具链或问题域,也不太擅长设计良好的测试。
开始时声明:"我正在使用 writing-plans 技能来创建实现计划。"
上下文: 如果在隔离 worktree 中工作,该 worktree 应在使用时通过 superpowers:using-git-worktrees 技能创建。
计划保存路径: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md
- (用户对计划位置的偏好会覆盖此默认路径)
Scope Check(范围检查)
如果规格说明涉及多个相互独立的子系统,它本应在头脑风暴阶段被拆分为子项目规格。如果尚未拆分,建议将其拆分为独立的计划——每个子系统一份。每份计划都应能独立产出可运行、可测试的软件。
File Structure(文件结构)
在定义任务之前,先梳理将要创建或修改哪些文件,以及每个文件的职责。这里是分解决策被确定下来的地方。
- 设计边界清晰、接口明确的单元。每个文件应有单一且清晰的职责。
- 你能同时保持在上下文中的代码才最容易推理,文件越聚焦,编辑也越可靠。优先选择小而聚焦的文件,而非承担过多职责的大文件。
- 一起变化的文件应该放在一起。按职责拆分,而不是按技术层级拆分。
- 在已有代码库中,遵循已有模式。如果代码库本身使用大文件,不要单方面重构——但如果你要修改的文件已经臃肿,在计划中加入拆分是合理的。
这一结构会指导任务分解。每个任务都应产出独立自洽、可独立理解的变更。
Task Right-Sizing(任务大小划分)
任务应是最小可独立测试循环单元,并且值得一次新的评审关口。划分任务边界时:把搭建、配置、脚手架和文档步骤合并到真正需要它们的交付任务中;只在评审者可能拒绝任务 A 同时批准相邻任务 B 的地方进行拆分。每个任务都以一个可独立测试的交付物结束。
Bite-Sized Task Granularity(一口大小的任务粒度)
每一步都是单个动作(2-5 分钟):
- "Write the failing test" — 一步
- "Run it to make sure it fails" — 一步
- "Implement the minimal code to make the test pass" — 一步
- "Run the tests and make sure they pass" — 一步
- "Commit" — 一步
Plan Document Header(计划文档头部)
每份计划必须以该头部开头:
# [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]
## 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.]
---Task Structure(任务结构)
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
**Interfaces:**
- Consumes: [what this task uses from earlier tasks — exact signatures]
- Produces: [what later tasks rely on — exact function names, parameter
and return types. A task's implementer sees only their own task; this
block is how they learn the names and types neighboring tasks use.]
- [ ] **Step 1: Write the failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test to verify it fails**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"
- [ ] **Step 3: Write minimal implementation**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test to verify it passes**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```No Placeholders(禁止占位符)
每一步都必须包含工程师实际需要的具体内容。以下内容是计划失败项——绝对不要写:
- "TBD"、"TODO"、"implement later"、"fill in details"
- "Add appropriate error handling" / "add validation" / "handle edge cases"
- "Write tests for the above"(没有给出实际测试代码)
- "Similar to Task N"(重复代码——工程师可能会乱序阅读任务)
- 只描述做什么、不展示怎么做的步骤(代码步骤必须附带代码块)
- 引用任何任务中未定义的类型、函数或方法
Remember(谨记)
- 始终使用精确文件路径
- 每一步都给出完整代码——如果某一步修改代码,就展示代码
- 精确命令及其预期输出
- DRY、YAGNI、TDD、频繁提交
Self-Review(自我审阅)
完成整个计划后,用全新的眼光对照规格说明检查计划。这是你自己运行的检查清单——不是派发给子代理的。
1. Spec coverage(规格覆盖): 浏览规格说明的每个章节/需求。你能否指出实现它的任务?列出任何缺口。
2. Placeholder scan(占位符扫描): 在计划中搜索危险信号——即上面"No Placeholders"部分列出的任何模式。修复它们。
3. Type consistency(类型一致性): 你在后续任务中使用的类型、方法签名和属性名是否与前面任务定义的一致?Task 3 中叫 clearLayers(),Task 7 中却叫 clearFullLayers(),这就是 bug。
如果发现问题,直接就地修复。无需重新审阅——直接修复并继续。如果发现某个规格需求没有对应任务,就补上该任务。
Execution Handoff(执行交接)
保存计划后,提供执行选项:
"Plan complete and saved to docs/superpowers/plans/<filename>.md. Two execution options:
1. Subagent-Driven (recommended) - I dispatch a fresh subagent per task, review between tasks, fast iteration
2. Inline Execution - Execute tasks in this session using executing-plans, batch execution with checkpoints
Which approach?"
If Subagent-Driven chosen:
- REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development
- Fresh subagent per task + two-stage review
If Inline Execution chosen:
- REQUIRED SUB-SKILL: Use superpowers:executing-plans
- Batch execution with checkpoints for review
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

