Planning and Task Breakdown
Skill files2 files

references/shared/

SKILL.md260 lines
1
---
2
name: planning-and-task-breakdown
3
description: Breaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.
4
---
5
6
# Planning and Task Breakdown
7
8
## Overview
9
10
Decompose work into small, verifiable tasks with explicit acceptance criteria. Good task breakdown is the difference between an agent that completes work reliably and one that produces a tangled mess. Every task should be small enough to implement, test, and verify in a single focused session.
11
12
## When to Use
13
14
- You have a spec and need to break it into implementable units
15
- A task feels too large or vague to start
16
- Work needs to be parallelized across multiple agents or sessions
17
- You need to communicate scope to a human
18
- The implementation order isn't obvious
19
20
**When NOT to use:** Single-file changes with obvious scope, or when the spec already contains well-defined tasks.
21
22
## The Planning Process
23
24
### Step 1: Enter Plan Mode
25
26
Before writing any code, operate in read-only mode:
27
28
- Read the spec and relevant codebase sections
29
- Identify existing patterns and conventions
30
- Map dependencies between components
31
- Note risks and unknowns
32
33
**Do NOT write code during planning.** The output is a plan document saved to `tasks/plan.md` and a task list recorded in the task list target (see Output Files; default `tasks/todo.md`), not implementation.
34
35
### Step 2: Identify the Dependency Graph
36
37
Map what depends on what:
38
39
```
40
Database schema
41
│
42
├── API models/types
43
│ │
44
│ ├── API endpoints
45
│ │ │
46
│ │ └── Frontend API client
47
│ │ │
48
│ │ └── UI components
49
│ │
50
│ └── Validation logic
51
│
52
└── Seed data / migrations
53
```
54
55
Implementation order follows the dependency graph bottom-up: build foundations first.
56
57
### Step 3: Slice Vertically
58
59
Instead of building all the database, then all the API, then all the UI — build one complete feature path at a time:
60
61
**Bad (horizontal slicing):**
62
```
63
Task 1: Build entire database schema
64
Task 2: Build all API endpoints
65
Task 3: Build all UI components
66
Task 4: Connect everything
67
```
68
69
**Good (vertical slicing):**
70
```
71
Task 1: User can create an account (schema + API + UI for registration)
72
Task 2: User can log in (auth schema + API + UI for login)
73
Task 3: User can create a task (task schema + API + UI for creation)
74
Task 4: User can view task list (query + API + UI for list view)
75
```
76
77
Each vertical slice delivers working, testable functionality.
78
79
### Step 4: Write Tasks
80
81
Each task follows this structure, whether it lands in the markdown task list or as an item in an external tracker (see Output Files):
82
83
```markdown
84
## Task [N]: [Short descriptive title]
85
86
**Description:** One paragraph explaining what this task accomplishes.
87
88
**Acceptance criteria:**
89
- [ ] [Specific, testable condition]
90
- [ ] [Specific, testable condition]
91
92
**Verification:**
93
- [ ] Tests pass: [the repository's focused-test command]
94
- [ ] Build succeeds: [the repository's build command]
95
- [ ] Manual check: [description of what to verify]
96
97
**Dependencies:** [Task numbers this depends on, or "None"]
98
99
**Files likely touched:**
100
- `src/path/to/file.ts`
101
- `tests/path/to/test.ts`
102
103
**Estimated scope:** [Small: 1-2 files | Medium: 3-5 files | Large: 5+ files]
104
```
105
106
### Step 5: Order and Checkpoint
107
108
Arrange tasks so that:
109
110
1. Dependencies are satisfied (build foundation first)
111
2. Each task leaves the system in a working state
112
3. Verification checkpoints occur after every 2-3 tasks
113
4. High-risk tasks are early (fail fast)
114
115
Add explicit checkpoints to the task list target:
116
117
```markdown
118
## Checkpoint: After Tasks 1-3
119
- [ ] All tests pass
120
- [ ] Application builds without errors
121
- [ ] Core user flow works end-to-end
122
- [ ] Review with human before proceeding
123
```
124
125
## Task Sizing Guidelines
126
127
| Size | Files | Scope | Example |
128
|------|-------|-------|---------|
129
| **XS** | 1 | Single function or config change | Add a validation rule |
130
| **S** | 1-2 | One component or endpoint | Add a new API endpoint |
131
| **M** | 3-5 | One feature slice | User registration flow |
132
| **L** | 5-8 | Multi-component feature | Search with filtering and pagination |
133
| **XL** | 8+ | **Too large — break it down further** | — |
134
135
If a task is L or larger, it should be broken into smaller tasks. An agent performs best on S and M tasks.
136
137
**When to break a task down further:**
138
- It would take more than one focused session (roughly 2+ hours of agent work)
139
- You cannot describe the acceptance criteria in 3 or fewer bullet points
140
- It touches two or more independent subsystems (e.g., auth and billing)
141
- You find yourself writing "and" in the task title (a sign it is two tasks)
142
143
## Output Files
144
145
- **Plan document:** Save the implementation plan to `tasks/plan.md`. This is always a markdown file — design decisions, risks, and open questions don't map cleanly onto individual tracker issues.
146
- **Task list:** Record each task in the **task list target** (defined below).
147
148
Create the `tasks/` directory if it does not exist.
149
150
**Never overwrite an incomplete plan.** Before writing `tasks/plan.md` or `tasks/todo.md`, check whether they already exist and still contain unchecked tasks:
151
152
- Same work being replanned (the user asked to revise or extend this plan) → update the existing files in place.
153
- Different work → **stop and ask.** The unchecked tasks may be mid-build in another session. Do not delete, overwrite, or rename the existing files on your own; present the conflict and let the user decide (finish the old plan first, explicitly discard it, or tell you where the new plan should go).
154
155
The same rule applies to an external task list target: never bulk-close or delete another plan's open tracker items to make room for new ones.
156
157
### Task List Target
158
159
The task list target is where tasks and checkpoints are recorded. It is defined once, here; every other reference in this skill defers to it.
160
161
- **Default: a checklist-style markdown file at `tasks/todo.md`.** This is the convention the `/build` command and other downstream tooling expect. Use it unless the project says otherwise.
162
- **External tracker:** if the project's agent rules (`CLAUDE.md`, `AGENTS.md`, etc.) or the user designate an issue tracker (e.g. GitHub Issues, Jira, Linear, `bd`/beads), create one tracker item per task instead of writing `tasks/todo.md`. Map the Step 4 structure onto the tracker's fields: acceptance criteria and verification steps in the item body, dependencies via the tracker's linking mechanism (`bd dep add`, "blocked by", etc.). Record Step 5 checkpoints as tracker items too, or as a checklist in the plan document if the tracker has no natural equivalent.
163
164
When using an external tracker, note it in `tasks/plan.md` (e.g. "Tasks tracked in Linear project FOO") so downstream steps and future sessions know where to look, and keep the plan document's Task List section as an ordered index of tracker item IDs or links rather than a duplicate checklist.
165
166
## Plan Document Template
167
168
```markdown
169
# Implementation Plan: [Feature/Project Name]
170
171
Source spec: [path to the spec this plan was generated from, e.g. SPEC.md or SPEC-<change>.md; omit if no spec]
172
173
## Overview
174
[One paragraph summary of what we're building]
175
176
## Architecture Decisions
177
- [Key decision 1 and rationale]
178
- [Key decision 2 and rationale]
179
180
## Task List
181
182
### Phase 1: Foundation
183
- [ ] Task 1: ...
184
- [ ] Task 2: ...
185
186
### Checkpoint: Foundation
187
- [ ] Tests pass, builds clean
188
189
### Phase 2: Core Features
190
- [ ] Task 3: ...
191
- [ ] Task 4: ...
192
193
### Checkpoint: Core Features
194
- [ ] End-to-end flow works
195
196
### Phase 3: Polish
197
- [ ] Task 5: ...
198
- [ ] Task 6: ...
199
200
### Checkpoint: Complete
201
- [ ] All acceptance criteria met
202
- [ ] Ready for review
203
204
## Risks and Mitigations
205
| Risk | Impact | Mitigation |
206
|------|--------|------------|
207
| [Risk] | [High/Med/Low] | [Strategy] |
208
209
## Open Questions
210
- [Question needing human input]
211
```
212
213
When tasks live in an external tracker, keep the Task List section above as an ordered index of tracker item IDs or links instead of a duplicate checklist.
214
215
## Parallelization Opportunities
216
217
When multiple agents or sessions are available:
218
219
- **Safe to parallelize:** Independent feature slices, tests for already-implemented features, documentation
220
- **Must be sequential:** Database migrations, shared state changes, dependency chains
221
- **Needs coordination:** Features that share an API contract (define the contract first, then parallelize)
222
223
## Common Rationalizations
224
225
| Rationalization | Reality |
226
|---|---|
227
| "I'll figure it out as I go" | That's how you end up with a tangled mess and rework. 10 minutes of planning saves hours. |
228
| "The tasks are obvious" | Write them down anyway. Explicit tasks surface hidden dependencies and forgotten edge cases. |
229
| "Planning is overhead" | Planning is the task. Implementation without a plan is just typing. |
230
| "I can hold it all in my head" | Context windows are finite. Written plans survive session boundaries and compaction. |
231
| "The old `tasks/plan.md` is stale, I'll just replace it" | Unchecked tasks may be mid-build in another session. Overwriting them destroys work state that exists nowhere else. Stop and ask. |
232
233
## Red Flags
234
235
- Starting implementation without a written task list
236
- Overwriting a `tasks/plan.md` or `tasks/todo.md` that still has unchecked tasks for different work, without asking
237
- Writing `tasks/todo.md` when the project has designated an external tracker (or scattering tasks across both)
238
- Tasks that say "implement the feature" without acceptance criteria
239
- No verification steps in the plan
240
- All tasks are XL-sized
241
- No checkpoints between tasks
242
- Dependency order isn't considered
243
244
## Verification
245
246
Before starting implementation, confirm:
247
248
- [ ] Every task has acceptance criteria
249
- [ ] Every task has a verification step
250
- [ ] Task dependencies are identified and ordered correctly
251
- [ ] Tasks are recorded in the task list target (default `tasks/todo.md`)
252
- [ ] No pre-existing incomplete plan was overwritten without explicit user confirmation
253
- [ ] No task touches more than ~5 files
254
- [ ] Checkpoints exist between major phases
255
- [ ] The human has reviewed and approved the plan
256
257
## See Also
258
259
Acceptance criteria are per-task and answer "did we build the right thing?". They sit on top of the project-wide Definition of Done, the standing bar every task clears before it counts as done. See `references/shared/definition-of-done.md`.
260

© Addy Osmani · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 11,987 prompts

More by @OpenSourceBuffGuy

See all
Dataverse Python File Operations prompt image

Dataverse Python File Operations

Guides an AI coding assistant on uploading small and large files to Dataverse with the Python SDK, including chunking, validation and practical examples.

rule-file, best-practices, code-generation, python, api, database, data-engineering, for-developers, code, long-form, backend, dataverse, power-platform

Compliance Audit Expert prompt image

Compliance Audit Expert

Plans compliance audits against SOC 2, GDPR, HIPAA, PCI-DSS or ISO 27001, with control mapping, gap analysis, remediation roadmap and monitoring.

system-prompt, audit, compliance, gap-analysis, expert-advice, risk-management, data-privacy, gdpr, cybersecurity, for-security-professionals, for-consultants, xml-tags, structured-output, roadmap, report, guardrails, security-review, policy-document, advanced, soc-2

Peeling Object With a Hidden Inner World prompt image

Peeling Object With a Hidden Inner World

Draws a single object frozen mid-peel in space, its curling skin revealing a detailed inner world, with slots for the object and what lives inside.

image-prompt, nano-banana, placeholders, 3d-render, surreal, still-life, macro, exploded-view, dramatic-lighting, soft-lighting, muted-colors, creativity, illustration, whimsical, concept-art, poster, negative-space

Reviews

Loading reviews…

Discussion

Loading comments…