writing-plans
Skill18 starsChanged 7 months agoMITView on GitHub
Use when you need to turn a clear spec, approved design, or stable requirement into an executable multi-step implementation plan before coding, including Chinese requests such as “写实现计划”“拆任务”“先规划再写代码”. It is especially suitable for handing off a brainstorming result into file-level tasks, tests, and validation steps. Do not use when requirements are still unclear, the change is small enough to implement directly, or you are already executing an existing plan.
189 other projects use a version of this, 122 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-dshtheir own version, first seen Oct 3, 2026
Used with
Projects with it also use diagnosing-superpowers, marketing-mode and 9 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
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
braxtonROSE4Skillfind-nearby
Find nearby places (restaurants, cafes, bars, pharmacies, etc.) using OpenStreetMap. Works with coordinates, addresses, cities, zip codes, or Telegram location pins. No API keys needed.
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 · 122
- openai/plugins★ 7.3k21% same
- coco-research/coco★ 43715% same
- Ibrahim-3d/orchestrator-supaconductor★ 38014% same
- jd-opensource/JoySafeter★ 31216% same
- theexperiencecompany/gaia★ 30616% same
- totvs/engpro-advpl-tlpp-skills★ 13816% same
- CommandCodeAI/agent-skills★ 13116% same
- aaddrick/claude-pipeline★ 12917% same
- Houseofmvps/ultraship★ 12313% same
- itseffi/agentic-os★ 11519% same
112 more not listed
Wrote their own version · 67
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.3ksame name
- microsoft/FluidFramework★ 4.9ksame name
- GanyuanRan/Aegis★ 1.3ksame name
- graniet/kheish★ 221same name
- LayneChai/superpowers-dsh★ 102same name
- withzombies/hyperpowers★ 80same name
- AlekseiUL/sprut-agent-kit★ 65same name
- joshuadavidthomas/agent-skills★ 54same name
- itallstartedwithaidea/agent-skills★ 39same name
57 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 repository37 other files it gives its agents.
- a11y-debuggingSkill
- agent-blueprint-architectSkill
- brainstormingSkill
- chart-visualizationSkill
- chinese-copywritingSkill
- chinese-git-workflowSkill
- chrome-devtoolsSkill
- creating-trae-rulesSkill
- debug-optimize-lcpSkill
- discovering-subagent-capabilitiesSkill
- dispatching-parallel-agentsSkill
- everything-searchSkill
- executing-plansSkill
- find-docsSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- gh-cliSkill
- git-commitSkill
- image-manipulation-python-magickSkill
- memory-kernelSkill
- memory-leak-debuggingSkill
- mineru-to-mdSkill
- model-config-lookupSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- self-improvementSkill
- skill-creatorSkill
- skill-language-policySkill
- skill-stability-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- troubleshootingSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- visual-brainstormingSkill
- workflow-runnerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. 0 are common, 16 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Requirements still exploratory: Do not generate a plan; switch to brainstorming.
- Very specific: line 43
Missing paths/modules/context but planning is possible: Write "code area to be read/confirmed" in the plan, but do not use placeholders for …
- Distinctive: line 55
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming.
- Distinctive: line 68
If any step is blocked, explicitly state the block reason in the final reply.
- Distinctive: line 72
Before defining tasks, list the files to be created or modified and the responsibility of each.
- Distinctive: line 77
Follow existing patterns in the codebase.
- Distinctive: line 85
If a step requires modifying multiple loosely coupled files simultaneously, split it into multiple steps or tasks.
- Distinctive: line 86
If a step depends on the output of a previous step to clarify its content, write that dependency into the step description.
- Distinctive: line 87
When a task is complete, it should yield a verifiable, staged result.
- Distinctive: line 157
Default to exact file paths.
- Distinctive: line 158
Only use code blocks for: new test cases, interface contracts, complex implementation snippets, easily misunderstood data structures, key …
- Distinctive: line 160
Every task must explicitly state completion signals so the executor knows when it is done.
- Distinctive: line 164
Every step must contain the actual content an engineer needs.
- Distinctive: line 175
Always use exact file paths.
- Distinctive: line 182
After writing the complete plan, review the spec with fresh eyes and check the plan against it.
- Distinctive: line 186
2. Placeholder Scan: Search the plan for red flags—any pattern from the "No Placeholders" section above.
- Very specific: line 188
3. Type Consistency: Do the types, method signatures, and property names used in later tasks match those defined in earlier tasks?
- Distinctive: line 190
If you find issues, fix them inline directly.
- Very specific: line 217
If the plan is incomplete, do not use the phrasing "计划已完成并保存到 <plan-path>。".
- Very specific: line 234
If the environment supports implementation subagents and tasks are mostly independent: Default to recommending subagent-driven-development.
- Distinctive: line 236
Do not invent capability names or leave the routing decision entirely up to the user as a default handoff.
- Very specific: line 237
If recommending subagent-driven-development, the reason must explicitly mention "environment supports implementation subagents" and "tasks …
- Very specific: line 238
If recommending executing-plans, the reason must explicitly mention "requires sequential progression" or "environment lacks implementation …
- Very specific: line 242
Requirements still vague: Do not output an implementation plan.
“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
Write execution-oriented implementation plans, assuming by default that the downstream executor has near-zero prior knowledge of the current codebase and domain context. The plan must explicitly state file scopes, implementation boundaries, testing paths, validation commands, expected results, and necessary handoff information. Break the work into independently executable, small-step tasks, minimizing guesswork during execution. Follow DRY, YAGNI, TDD, and frequent commits.
Assume the executor has general development skills but does not know repository conventions, local architecture, or testing habits. Therefore, key constraints, interface names, testing entry points, and validation criteria should be written explicitly in the plan, rather than relying on the executor to deduce them.
Use This Skill
- A relatively stable spec, design conclusion, or clear requirement exists, and needs to be translated into an executable multi-step plan.
- The task is complex enough to warrant defining file structures, phase boundaries, validation methods, and commit rhythms upfront.
- You anticipate handing the plan off to
executing-plansorsubagent-driven-developmentand want it complete beforehand. - The user requests "write an implementation plan", "break down tasks", "give me executable steps", or "plan first before coding".
Do Not Use
- Requirements are still vague or solutions undecided; use
brainstormingfirst to clarify. - The task is a simple single-point change, copy adjustment, config fix, or small bugfix; implement it directly.
- The current step is already executing an existing plan, not generating a new one; use
executing-plansorsubagent-driven-development. - The user only wants a high-level summary, milestone list, or casual advice, rather than an execution plan with file/test/command details.
Input Contract
Required Inputs:
- A relatively stable spec, design conclusion, or clear requirement.
- The target scope the plan should cover (not just a vague direction).
Optional but highly recommended inputs:
- Relevant code paths, module names, existing entry points.
- Completed
brainstormingconclusions. - Technical constraints, non-functional requirements, compatibility requirements.
- User-preferred plan save location.
Missing input handling:
- Requirements still exploratory: Do not generate a plan; switch to
brainstorming. - Only partial requirements stable: Explicitly list missing items first, then generate a plan only for the confirmed scope.
- Missing paths/modules/context but planning is possible: Write "code area to be read/confirmed" in the plan, but do not use placeholders for core implementation decisions.
Plan Save Location: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md
- (User preference overrides this default)
Validation Assets:
- evals:
evals/evals.json - examples:
examples/input.md,examples/output.md - review template:
plan-document-reviewer-prompt.md
Scope Check
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If not, recommend splitting them into separate plans—one per subsystem. Each plan should independently yield working, testable software.
Execution Protocol
Generate the plan in the following order; do not skip steps:
- Confirm whether a plan is genuinely needed, rather than direct implementation or further clarification.
- Extract goals, boundaries, constraints, existing code entry points, and validation requirements.
- List the file structure and responsibilities before breaking down tasks.
- Output prerequisites, completion signals, steps, tests, and validations per task.
- Self-check for spec coverage, placeholders, and type consistency.
- Save the plan and provide execution recommendations.
If any step is blocked, explicitly state the block reason in the final reply. Do not pretend the plan is complete.
File Structure
Before defining tasks, list the files to be created or modified and the responsibility of each.
- Units with clear design boundaries and well-defined interfaces. Each file should have one clear responsibility.
- You reason best about code that fits in context at once; the more focused the file, the more reliable your edits. Prefer small, focused files over large, monolithic ones.
- Files that change together should be grouped together. Split by responsibility, not technical layers.
- Follow existing patterns in the codebase. If it uses large files, do not unilaterally refactor—but if the file you are modifying has become unmanageable, including a split in the plan is reasonable.
This structure determines the task breakdown. Each task should produce independent, meaningful changes, allowing downstream skills to advance directly along file boundaries.
Granularity of Tasks
Default granularity rules:
- One step does one type of action: write tests, run validation, modify implementation, update docs, commit changes.
- If a step requires modifying multiple loosely coupled files simultaneously, split it into multiple steps or tasks.
- If a step depends on the output of a previous step to clarify its content, write that dependency into the step description.
- When a task is complete, it should yield a verifiable, staged result.
Plan Document Header
Every plan must start with this header:
# [特性名称] 实现计划
> **For AI Agent Workers:** Prioritize using `subagent-driven-development` (when the environment supports implementation subagents and tasks are mostly independent) or `executing-plans` (when sequential execution in the current session is needed or implementation subagents are unsupported) to implement this plan task by task. Use checkbox (`- [ ]`) syntax to track progress.
**目标:** [用一句话描述要构建的内容]
**架构:** [用 2-3 句话描述技术方案或结构]
**技术栈:** [列出关键技术/库]
---Task Structure
### 任务 N: [组件或模块名称]
**文件:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py` (必要时补充符号/函数/模块锚点)
- Test: `tests/exact/path/to/test.py`
**前置条件:**
- [如果没有,请写 "无"]
**完成标准:**
- [描述任务完成时的可观测结果]
- [ ] **Step 1: Write failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test and verify failure**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL, error "function not defined"
- [ ] **Step 3: Write minimal implementation code**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test and verify success**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
```powershell
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```Task Writing Rules:
- Default to exact file paths; supplement with stable anchors (symbols, classes, functions, routes, config keys) when necessary. Do not rely on fragile line numbers.
- Only use code blocks for: new test cases, interface contracts, complex implementation snippets, easily misunderstood data structures, key config content.
- For simple mechanical changes, use "modification point + constraint + validation command" instead of full code blocks to avoid drowning the plan in low-value boilerplate.
- Every task must explicitly state completion signals so the executor knows when it is done.
No Placeholders
Every step must contain the actual content an engineer needs. The following are plan defects—never write them:
- "TBD", "TODO", "Implement later", "Add details"
- "Add appropriate error handling" / "Add validation" / "Handle edge cases"
- "Write tests for the above code" (without actual test code)
- "Similar to Task N" (repeated code—engineers may not read tasks in order)
- Steps that describe what to do without showing how (code steps must have code blocks)
- Referencing types, functions, or methods not defined in any task
Exception — Intentional Pending: When an interface, dependency, or API contract genuinely cannot be finalized until a later task completes, you may mark it as **Pending**: determined by Task N output. This is not a TODO gap — it is an explicit dependency declaration. The downstream task must resolve the pending item before its own completion.
Notes
- Always use exact file paths.
- Prioritize exact paths, stable anchors, validation commands, and expected results; include key code snippets only when necessary.
- Exact commands and expected outputs.
- DRY, YAGNI, TDD, frequent commits.
Self-Check
After writing the complete plan, review the spec with fresh eyes and check the plan against it. This is a checklist you execute yourself—not a subagent dispatch.
1. Spec Coverage: Skim every section/requirement in the spec. Can you point to the task that implements it? List any omissions.
2. Placeholder Scan: Search the plan for red flags—any pattern from the "No Placeholders" section above. Fix them.
3. Type Consistency: Do the types, method signatures, and property names used in later tasks match those defined in earlier tasks? Calling it clearLayers() in Task 3 but clearFullLayers() in Task 7 is a bug.
If you find issues, fix them inline directly. No need to re-review—fix and continue. If you find requirements in the spec without a corresponding task, add the task.
Output Contract
The final output must include at least:
- Plan file save path
- Goals, architecture, and tech stack within the plan
- File structure and responsibility boundaries
- Task list, each task containing files, prerequisites, completion signals, steps, and validation
- Explicit execution recommendations
The final reply must use this skeleton by default:
计划已完成并保存到 `<plan-path>`。
**计划摘要:**
- 目标: [一句话描述]
- 任务数: [N]
- 关键文件: [2-5 个最重要的路径]
**推荐执行方式:** `subagent-driven-development` | `executing-plans`
**原因:** [基于环境能力和任务耦合度的 1-2 句话说明]
**替代方案:** `subagent-driven-development` | `executing-plans`
**下一步:** [直接说明接下来应调用哪个技能]If the plan is incomplete, do not use the phrasing "计划已完成并保存到 <plan-path>。"; explicitly state the reasons for incompletion and missing conditions.
Context Payload (for downstream handoff)
When handing off to the next skill (e.g.,
executing-plans,subagent-driven-development), append this context block to the output. It preserves architectural assumptions so downstream executors do not lose design context:**[Context Payload]** **Architecture:** [Key architectural decisions and rationale] **Key Interfaces:** [Public APIs, data contracts, interfaces the executor must respect] **Conventions:** [Naming, testing patterns, commit style assumed by this plan] **Constraints:** [Time, environment, dependency, or performance constraints] **Uncertainties:** [What is still unconfirmed and may need adjustment during execution] **Handoff Files:** [Paths to the plan document, relevant specs, or design docs]
Execution Recommendation Rules:
- If the environment supports implementation subagents and tasks are mostly independent: Default to recommending
subagent-driven-development. - Otherwise: Default to recommending
executing-plans. - Do not invent capability names or leave the routing decision entirely up to the user as a default handoff.
- If recommending
subagent-driven-development, the reason must explicitly mention "environment supports implementation subagents" and "tasks are mostly independent". - If recommending
executing-plans, the reason must explicitly mention "requires sequential progression" or "environment lacks implementation subagents".
Failure Handling
- Requirements still vague: Do not output an implementation plan; explain why
brainstormingshould be used first. - Scope too large and unsplit: Suggest splitting into multiple plans first, then decide whether to output only a portion.
- Missing key technical constraints: Point out missing info first, then explain what can and cannot be planned.
- Unable to read key context files: Can generate a restricted plan, but explicitly mark risk points and pending areas.
- Environment lacks implementation subagents: Plan can still be completed, but handoff must default to recommending
executing-plans. - Issues found during review phase: Reference the structured output of
plan-document-reviewer-prompt.md; do not replace review conclusions with loose comments.
Integration
brainstorming: Upstream — brainstorming clarifies requirements and explores alternatives; writing-plans only starts after design is stable.executing-plans: Downstream — the plan is executed sequentially in the current session.subagent-driven-development: Downstream — the plan is executed by assigning mostly independent tasks to implementation subagents.workflow-runner: Adjacent — workflow-runner handles multi-role YAML orchestration, not development plans; these two do not share the same downstream path.
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.

