with one click
writing-plans
// Use when you have a spec or requirements for a multi-step task, before touching code
// Use when you have a spec or requirements for a multi-step task, before touching code
| name | writing-plans |
| description | Use when you have a spec or requirements for a multi-step task, before touching code |
Write comprehensive implementation plans assuming the engineer has zero context for our codebase. Document everything they need to know: which files to touch for each task, code, testing, docs to check, and how to verify. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD.
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.
Save plans to: .agents/workflow/runs/<YYYY-MM-DD>_<slug>_plan.md
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.
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.
This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
Each step is one action (2-5 minutes):
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
---
### 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
After writing the complete plan:
Review loop guidance:
After saving the plan, offer execution choice:
"Plan complete and saved to .agents/workflow/runs/<YYYY-MM-DD>_<slug>_plan.md. Two execution options:
1. Agent-driven (Recommended) - Dispatch one agent per task with checkpoints and tight scope boundaries
2. Inline Execution - Execute tasks in this session with checkpoints (see checklist below)
Which approach?"
If Agent-driven chosen:
dispatching-parallel-agents to split independent tasksIf Inline Execution chosen:
executing-plans)When executing a written plan in this session:
systematic-debugging)code-review-checklistverify to produce an evidence summary[HINT] Download the complete skill directory including SKILL.md and all related files