Decompose a piece of work into a 3-tier Feature > Story > Task plan tree, written to disk as self-contained markdown files. Use when the user asks to plan a feature, break down work, write an implementation plan, or create a task tree for a larger effort.
Decompose work into a 3-tier hierarchy written to disk. Each file is self-contained and independently actionable.
This skill mirrors the slash command /plan-feature-story-task. Use it when a model does not auto-load slash commands or the user invokes the skill explicitly.
The user provides a description of work to be done. It may be vague or detailed. Understand it deeply before decomposing.
Format: <suggested_name>-<date>-<session_id>
<suggested_name> — short kebab-case slug (max 4 words) derived from the work (e.g., auth-middleware-rewrite, api-rate-limiting)<date> — today's date in YYYYMMDD (e.g., )20260416<session_id> — short UUID v4 prefix, 8 hex chars (e.g., a1b2c3d4)Example: auth-middleware-rewrite-20260416-a1b2c3d4
Place under the project root at ./plans/<suggested_name>-<date>-<session_id>/. All references below to <plan-dir>/ point here. If the user specifies a different location, use that instead.
Three levels:
Feature — a distinct, deliverable capability. "What does the user/system gain when this is done?"
Story — a behavior slice within a feature. "What specific behavior changes when this story is complete?"
Task — an atomic implementation step within a story. "What exact code change do I make, and how do I verify it worked?"
Create this tree under ./plans/<plan-dir>/:
<plan-dir>/
├── README.md
├── features/
│ ├── 01-<feature-name>.md
│ └── 02-<feature-name>.md
├── stories/
│ ├── 01/
│ │ ├── 01-<story-name>.md
│ │ └── 02-<story-name>.md
│ └── 02/
│ └── 01-<story-name>.md
└── tasks/
├── 01/
│ ├── 01/
│ │ ├── 01-<task-name>.md
│ │ └── 02-<task-name>.md
│ └── 02/
│ └── 01-<task-name>.md
└── 02/
└── 01/
└── 01-<task-name>.md
Naming: <NN>-<kebab-case-name>.md. Numeric prefix preserves ordering. Stories and tasks are grouped by their parent's feature number.
<plan-dir>/README.md# Plan: <Plan Title>
## Goal
<What this plan achieves — 2-3 sentences>
## Scope
<In scope and explicitly out of scope>
## Features
| # | Feature | Stories | Description |
| --- | ------------------------------------------- | ------- | ---------------- |
| 01 | [Feature Name](features/01-feature-name.md) | N | One-line summary |
## Execution Order
<Recommended order, noting dependencies>
<plan-dir>/features/NN-feature-name.md# Feature: <Feature Title>
## Goal
<Capability this feature delivers — 1-2 sentences>
## Acceptance Criteria
- [ ] <Observable outcome 1>
- [ ] <Observable outcome 2>
## Stories
| # | Story | Tasks | Description |
| --- | -------------------------------------------- | ----- | ---------------- |
| 01 | [Story Name](../stories/NN/01-story-name.md) | N | One-line summary |
## Notes
<Architectural decisions, constraints, context specific to this feature>
<plan-dir>/stories/NN/NN-story-name.md# Story: <Story Title>
**Feature:** [<Parent Feature Name>](../../features/NN-feature-name.md)
## Context
<Why this story exists and what behavior it changes — enough to understand without reading the parent>
## Acceptance Criteria
- [ ] <Testable behavior 1>
## Dependencies
- <Other stories this depends on, with paths, or "None">
## Tasks
| # | Task | Description |
| --- | ---------------------------------------------- | ---------------- |
| 01 | [Task Name](../../tasks/NN/NN/01-task-name.md) | One-line summary |
<plan-dir>/tasks/NN/NN/NN-task-name.md# Task: <Task Title>
**Story:** [<Parent Story Name>](../../../stories/NN/NN-story-name.md)
## Context
<What this task accomplishes and why — enough to execute without reading parent files>
## Target Files
- `<path/to/file.ext>` — <what changes>
## Changes
<Specific code changes. Concrete: function names, data structures, logic flow.>
## Verification
- [ ] <Command to run, test to check, behavior to observe>
rateLimitPool field to src/config/schema.mjs with Zod enum validation" is a task.Summarize to the user:
Source command: .claude/commands/plan-feature-story-task.md.