Agent skill

writing-plans

Create detailed implementation plans with granular, actionable tasks (2-5 min each). Use for multi-step development tasks requiring clear guidance. Based on obra/superpowers.

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/development/planning/writing-plans

SKILL.md

Writing Plans

Overview

This skill guides creating detailed implementation plans for multi-step development tasks. Plans are designed for engineers with limited codebase familiarity, with granular steps (2-5 minutes each) and complete code snippets.

Quick Start

  1. Announce - "I'm using the writing-plans skill to create the implementation plan."
  2. Write header - Feature name, goal, architecture, tech stack
  3. Create tasks - Break into 2-5 minute actionable steps
  4. Include code - Complete snippets, not abstractions
  5. Offer execution - Subagent-driven or parallel session

When to Use

  • Multi-step feature implementations
  • Complex bug fixes requiring multiple changes
  • Refactoring across multiple files
  • Any task requiring more than 30 minutes
  • When context needs to be preserved across sessions

Core Principles

DRY. YAGNI. TDD. Frequent Commits.

  • DRY - Don't Repeat Yourself: identify common patterns
  • YAGNI - You Aren't Gonna Need It: only what's needed now
  • TDD - Test-Driven Development: tests before code
  • Frequent Commits - Checkpoint progress regularly

Assumptions

  • Developer is skilled but unfamiliar with specific toolset
  • Breaking work into granular steps prevents confusion
  • Complete code snippets are better than abstractions
  • Commands should include expected outputs

Plan Structure

Header Format

markdown
# Implementation Plan: [Feature Name]

## Goal

[One sentence describing the outcome]

## Architecture

[Brief description of how this fits into the system]

## Tech Stack

- Language: [language]
- Framework: [framework]
- Testing: [test framework]
- Dependencies: [key dependencies]

## Tasks

Task Format

Each task specifies:

  1. Exact file paths (create/modify/test)
  2. Five sequential steps:
    • Write failing test
    • Verify test failure
    • Implement minimal code
    • Verify test passes
    • Commit changes

Task Template

markdown
### Task 1: [Descriptive Name]

**Files:**
- Create: `path/to/new/file.ts`
- Modify: `path/to/existing/file.ts`
- Test: `path/to/test/file.test.ts`

**Step 1: Write failing test**
\`\`\`typescript
// path/to/test/file.test.ts
describe('FeatureName', () => {
  it('should do expected behavior', () => {

*See sub-skills for full details.*

## Task Granularity

### Target: 2-5 Minutes Per Task

| Too Big | Just Right | Too Small |
|---------|------------|-----------|
| "Implement authentication" | "Add password validation function" | "Add semicolon" |
| "Build API endpoints" | "Create POST /users endpoint" | "Import express" |
| "Write tests" | "Test user creation happy path" | "Add describe block" |
### Splitting Large Tasks

If a task takes longer than 5 minutes:
1. Identify sub-components
2. Create separate tasks for each
3. Add dependencies between tasks
4. Keep tests focused on one behavior

## Code Snippet Requirements

### Do Include

- Complete, copy-pasteable code
- All imports and dependencies
- Type definitions (if TypeScript)
- Error handling
- Comments for non-obvious logic
### Don't Include

- Placeholder comments (`// TODO: implement`)
- Abstract descriptions ("add the necessary code")
- Partial implementations
- Untested code

## Execution Handoff

After completing the plan, offer two approaches:
### Option 1: Subagent-Driven

Fresh subagent per task in current session.
- Best for: Independent tasks, staying in context
- Uses: subagent-driven skill
### Option 2: Parallel Session

Separate session using executing-plans skill.
- Best for: Tightly coupled tasks, long plans
- Uses: executing-plans skill in new terminal

## Plan Review Checklist

Before presenting plan:
- [ ] Header complete (goal, architecture, tech stack)
- [ ] Tasks are 2-5 minutes each
- [ ] File paths are exact
- [ ] Code snippets are complete
- [ ] Test commands include expected output
- [ ] Commits are atomic and descriptive
- [ ] Dependencies between tasks are clear

## Related Skills

- [tdd-obra](../tdd-obra/SKILL.md) - Test-first methodology
- [brainstorming](../../workflows/brainstorming/SKILL.md) - Design refinement
- [subagent-driven](../subagent-driven/SKILL.md) - Plan execution
- [parallel-dispatch](../../agents/parallel-dispatch/SKILL.md) - Parallel execution

---

## Version History

- **1.0.0** (2026-01-19): Initial release adapted from obra/superpowers

## Sub-Skills

- [Best Practices](best-practices/SKILL.md)
- [Error Handling](error-handling/SKILL.md)
- [Metrics](metrics/SKILL.md)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results