Use after brainstorming/design phase to create detailed implementation plans. Creates step-by-step plans clear enough for execution by any developer.
Write plans clear enough for an enthusiastic junior engineer with poor taste, no judgement, no project context, and an aversion to testing to follow.
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md
# [Feature Name] Implementation Plan
> **For Claude:** Use executing-plans skill to implement this plan task-by-task.
## Overview
Brief description of what we're building and why.
## Prerequisites
- [ ] Dependency 1 installed
- [ ] Service 2 running
- [ ] Access to X configured
## Tasks
### Task 1: [Descriptive Name]
**File:** `path/to/file.ts`
**Test:** `path/to/file.test.ts`
#### Test First (RED)
```typescript
// Exact test code to write
describe('FeatureName', () => {
it('should do specific thing', () => {
// Arrange
// Act
// Assert
});
});
// Exact implementation code
export function featureName() {
// Implementation
}
npm test -- --grep "FeatureName"
# Expected: 1 passing
...
After all tasks complete:
# Commands to run
npm run test:integration
Steps to manually verify the feature works:
If something goes wrong:
git revert HEAD
## Plan Quality Checklist
### Every Task Must Have:
- [ ] Exact file paths
- [ ] Complete code (not "add validation")
- [ ] Test written BEFORE implementation
- [ ] Verification command with expected output
- [ ] Clear success criteria
### Plan Must Include:
- [ ] Prerequisites listed
- [ ] Tasks in dependency order
- [ ] Integration test at end
- [ ] Rollback instructions
## Writing Guidelines
### Be Explicit
❌ "Add error handling"
✅ "Wrap the API call in try/catch, log errors with context, return null on failure"
### Be Complete
❌ "Update the config"
✅ ```json
{
"setting": "value",
"newSetting": "newValue"
}
Tasks should be executable in sequence:
After saving the plan, offer execution choice:
"Plan complete and saved. Two execution options:
1. Subagent-Driven (this session)
2. Parallel Session (separate)
Which approach?"
Include at top of every plan:
## Remember
- Exact file paths always
- Complete code in plan (not "add validation")
- Exact commands with expected output
- DRY, YAGNI, TDD, frequent commits
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer