writing-plans
Skill18 starsChanged 5 months agoMITView on GitHub
Write structured implementation plans from specs or requirements before touching code. Use when given a spec, requirements doc, or feature description, when user says "plan this out", "write a plan for", "how should we implement", or before starting any multi-step coding task.
189 other projects use a version of this, 140 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 · 140
- obra/superpowers★ 314k11% same
- openai/plugins★ 7.3k30% same
- microsoft/FluidFramework★ 4.9k16% same
- coco-research/coco★ 43742% same
- Ibrahim-3d/orchestrator-supaconductor★ 38062% same
- jd-opensource/JoySafeter★ 31287% same
- theexperiencecompany/gaia★ 30687% same
- graniet/kheish★ 22114% same
- totvs/engpro-advpl-tlpp-skills★ 13888% same
- CommandCodeAI/agent-skills★ 13187% same
130 more not listed
Wrote their own version · 49
- jnMetaCode/superpowers-zh★ 8.3ksame name
- GanyuanRan/Aegis★ 1.3ksame 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
- Wenaixi/dsh-superpower★ 19same name
- gkastanis/drupal-workflow★ 18same name
39 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 repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- agent-engineeringSkill
- app-marketing-copySkill
- ascii-pixel-artSkill
- autopredictSkill
- autoresearchSkill
- babysit-prSkill
- bird-fastSkill
- blockchain-auditorSkill
- brainstormingSkill
- ceo-reviewSkill
- ck-reviewSkill
- cloudflare-managerSkill
- codex-advisorSkill
- content-trend-researcherSkill
- continuous-learningSkill
- coreml-optimizerSkill
- cto-reviewSkill
- direct-mail-strategistSkill
- evangelion-designSkill
- executing-plansSkill
- freshdesk-apiSkill
- gemini-image-generatorSkill
- gemini-visualSkill
- github-actions-templatesSkill
- googleSkill
- gsplat-optimizerSkill
- hyperagentSkill
- idea-mdSkill
- imagegenSkill
- ios-app-testerSkill
- llm-advisorSkill
- llm-evaluationSkill
- macos-appsSkill
- markdown-fetchSkill
- mcp-builderSkill
- mcp-testerSkill
- nano-bananaSkill
- opensea-apiSkill
- paperclipSkill
- playdate-devSkill
- poke-assistantSkill
- poplar-direct-mailSkill
- practical-typographySkill
- prompt-factorySkill
- qmdSkill
- scientific-critical-thinkingSkill
- security-best-practicesSkill
- security-threat-modelSkill
- seo-optimizerSkill
- shadertoySkill
- skill-finderSkill
- skimmableSkill
- subway-infoSkill
- systematic-debuggingSkill
- tui-designerSkill
- ui-designSkill
- video-editorSkill
The file
We split this skill into the rules it gives an agent
10 rules. 1 is common, 7 are distinctive, and 2 are very specific to this project.
1
Common
Most of the 174 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 106
No way to verify the plan is complete until someone starts implementing
- Very specific: line 109
Always include exact file paths: src/handlers/user.ts not update the handler
- Very specific: line 110
Always include exact commands: pytest tests/handlers/test_user.py -v not run tests
- Distinctive: line 111
Always include complete code in fenced blocks, not pseudocode
- Distinctive: line 135
Use this litmus test: "Can I understand and verify this single commit in isolation?"
- Distinctive: line 164
Every step that changes behavior must include a verification command
- Distinctive: line 202
Use consistent command syntax and structure across similar steps
- Distinctive: line 204
If a pattern is truly repeated, ask: can these tasks be combined or is there a shared utility that would eliminate the duplication?
- Distinctive: line 238
If a pattern is specific to this codebase, explain it briefly instead of assuming knowledge
- Common: line 263
After saving the plan, offer execution choice:
“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 comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
Announce at start: "I'm using the writing-plans skill to create the implementation plan."
Context: This should be run in a dedicated worktree (created by brainstorming skill).
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md
Bite-Sized Task Granularity
Each step is one action (2-5 minutes):
- "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:
# [Feature Name] Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: Use the executing-plans skill to implement this plan task-by-task.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
---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`
**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"
```Remember
- Exact file paths always
- Complete code in plan (not "add validation")
- Exact commands with expected output
- Reference relevant skills with @ syntax
- DRY, YAGNI, TDD, frequent commits
Common Pitfalls
1. Plans Too Abstract (No Concrete Paths or Commands)
Symptom: Plan reads smoothly but lacks actionable details. Steps like "Add validation" or "Update the API handler" leave the engineer guessing which file, which function, or what commands to run.
Why it fails:
- Engineer wastes time hunting for the right file or inferring code structure
- Different engineers interpret abstract steps differently, leading to rework
- No way to verify the plan is complete until someone starts implementing
How to fix:
- Always include exact file paths:
src/handlers/user.tsnotupdate the handler - Always include exact commands:
pytest tests/handlers/test_user.py -vnotrun tests - Always include complete code in fenced blocks, not pseudocode
- Provide line numbers when modifying existing files:
Modify: src/handlers/user.ts:45-62
Example (bad vs good):
❌ BAD: "Update the validation logic to handle email addresses"
✅ GOOD: "Modify: src/validators/email.py:12-18. Replace the regex pattern with: re.compile(r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$')"2. Task Granularity Wrong (Steps Too Large or Too Small)
Symptom: Steps are either vague epics ("Build the authentication system") or so granular they create friction ("Import the module", "Define the function signature", "Write the function body").
Why it fails:
- Large steps: engineer lacks guardrails; easy to implement wrong thing
- Small steps: excessive context switching; commits become noise; hard to trace intent
- Either way, progress becomes hard to measure and verify
How to fix:
- Target 2-5 minute steps: small enough to verify and commit independently, large enough to be meaningful
- Group related micro-steps under a single task heading, then break them into numbered steps
- Each step should produce a git-committable change
- Use this litmus test: "Can I understand and verify this single commit in isolation?"
Example (bad vs good):
❌ BAD:
Step 1: Import json
Step 2: Define function
Step 3: Write body
Step 4: Run test
✅ GOOD:
Step 1: Write failing test for json parsing
Step 2: Implement minimal function that passes test
Step 3: Run test and verify PASS
Step 4: Commit3. Missing Verification Steps (No Way to Confirm Task Success)
Symptom: Plan describes what to do but never says how to verify it's done correctly. Engineer finishes a step and isn't sure if it actually worked.
Why it fails:
- Silent failures: code runs but produces wrong result; engineer doesn't catch it
- Wasted debugging time: engineer has to invent their own verification method
- Plan can't be reused reliably because success criteria are ambiguous
How to fix:
- Every step that changes behavior must include a verification command
- Verification command must include expected output or success indicator
- For tests:
Expected: PASS. For commands:Expected output: [actual output] - Include negative cases: "Run:
pytest tests/... -v. Expected: Should fail with 'ValidationError'"
Example (bad vs good):
❌ BAD:
Step 3: Implement the validation function
✅ GOOD:
Step 3: Implement the validation function
```python
def validate_email(email):
pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
return bool(re.match(pattern, email))
```
Step 4: Run test to verify it passes
Run: `pytest tests/validators/test_email.py::test_valid_email -v`
Expected: `PASSED test_valid_email`4. DRY Violations (Repeated Instructions Across Tasks)
Symptom: Plan repeats the same instruction in multiple tasks ("Run the full test suite", "Import X module", "Follow the naming convention"). Same boilerplate appears in steps across different tasks.
Why it fails:
- Maintainability: updating the pattern requires editing multiple places
- Cognitive load: engineer has to understand the intent is the same across tasks
- Error-prone: same instruction might be subtly different in different places, causing confusion
How to fix:
- Capture repeated patterns in a "Setup" or "Prerequisites" section at the top of the plan
- Use consistent command syntax and structure across similar steps
- Link to shared instructions: "As per 'Testing' section above, run:
pytest ..." - If a pattern is truly repeated, ask: can these tasks be combined or is there a shared utility that would eliminate the duplication?
Example (bad vs good):
❌ BAD:
Task 1: Write test, run `pytest tests/handlers/test_a.py -v`, commit
Task 2: Write test, run `pytest tests/handlers/test_b.py -v`, commit
Task 3: Write test, run `pytest tests/handlers/test_c.py -v`, commit
✅ GOOD:
# Testing Pattern
After each implementation, verify with: `pytest tests/handlers/test_<name>.py -v`
Expected: All tests PASS
Task 1: [test_a implementation]
Task 2: [test_b implementation]
Task 3: [test_c implementation]5. Assumes Context Agent Won't Have (Framework Specifics, Conventions)
Symptom: Plan references "the standard pattern", "as we do it", or "use the company convention" without explaining what that actually means. Assumes engineer knows framework shortcuts, naming conventions, or project structure.
Why it fails:
- Fresh engineer or external contributor has no reference for "the pattern"
- Different projects have different conventions; agent may mix them up
- Engineer spends time reverse-engineering conventions instead of following a plan
How to fix:
- Explicitly state conventions in a "Context" or "Setup" section at the plan start
- Name the convention if it's framework-specific: "Django model naming:
class MyModel(models.Model)" - Provide an example: "All API handlers follow this pattern: [example file + code snippet]"
- If a pattern is specific to this codebase, explain it briefly instead of assuming knowledge
Example (bad vs good):
❌ BAD:
Step 1: Create a handler using the standard pattern
Step 2: Follow our naming convention for tests
✅ GOOD:
Context: This project uses Flask. All handlers live in src/handlers/ and follow the pattern:
```python
@app.route('/endpoint', methods=['POST'])
def handle_endpoint():
# Handler logic
return jsonify({...})
```
Step 1: Create handler in src/handlers/my_handler.py following the pattern above
Step 2: Create test in tests/handlers/test_my_handler.py. Naming: test_<function_name>_<scenario>Execution Handoff
After saving the plan, offer execution choice:
"Plan complete and saved to docs/plans/<filename>.md. Two execution options:
1. Subagent-Driven (this session) - I dispatch fresh subagent per task, review between tasks, fast iteration
2. Parallel Session (separate) - Open new session with executing-plans, batch execution with checkpoints
Which approach?"
If Subagent-Driven chosen:
- Spawn a subagent per task, review results between tasks, fast iteration
- Stay in this session and orchestrate
If Parallel Session chosen:
- Guide them to open new session in the git worktree
- REQUIRED SUB-SKILL: New session uses the executing-plans skill
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.

