Overview
The Writing Plans skill creates detailed implementation plans that assume the engineer has zero context for your codebase. Every step includes exact file paths, complete code, and expected output.Plans are written for skilled developers who know almost nothing about your toolset or problem domain.
When to Use
Use when you have a spec or requirements for a multi-step task, before touching code. Typical workflow:- Brainstorming creates the design
- Writing Plans creates the implementation plan
- Executing Plans or Subagent-Driven Development implements it
Key Principles
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
Complete Information
Every task includes:- Exact file paths (not “the config file”)
- Complete code (not “add error handling”)
- Exact commands with expected output
- References to relevant skills with @ syntax
Core Values
- DRY (Don’t Repeat Yourself)
- YAGNI (You Aren’t Gonna Need It)
- TDD (Test-Driven Development)
- Frequent commits
Plan Structure
Header (Required)
Every plan MUST start with this header:Example Header
Example Header
Task Structure
Each task follows this template:Complete Example
Full Task Example
Full Task Example
File Location
Save plans to:docs/plans/YYYY-MM-DD-<feature-name>.md
Execution Handoff
After saving the plan, offer execution choice:Option 1: Subagent-Driven (this session)
- Stay in current session
- Dispatch fresh subagent per task
- Review between tasks
- Fast iteration
Option 2: Parallel Session (separate)
- Open new session with executing-plans
- Batch execution with checkpoints
- No context switch back to this session
Best Practices
Always Include
Exact Paths
src/metrics/collector.pyNot: “the collector file”Complete Code
Full function implementationNot: “add error handling”
Exact Commands
pytest tests/metrics/test_collector.py::test_track -vNot: “run the tests”Expected Output
Expected: PASSNot: “make sure it works”
Reference Skills
Use @ syntax to reference relevant skills:Common Mistakes
Checklist
Before considering plan complete:- Header includes REQUIRED SUB-SKILL line
- Goal stated in one sentence
- Architecture approach described (2-3 sentences)
- Tech stack listed
- Each task has exact file paths
- Each step includes complete code (not “add X”)
- Each command is exact with expected output
- Steps are bite-sized (2-5 minutes each)
- TDD cycle followed (write test, run, implement, run, commit)
- References to relevant skills included
- Saved to
docs/plans/YYYY-MM-DD-<feature>.md
Related Skills
- Brainstorming: Creates the design that this skill turns into a plan
- Executing Plans: Executes the plan in a parallel session
- Subagent-Driven Development: Executes the plan in the current session