# Plan Slices

> Break an outcome into thin vertical slices with acceptance criteria and blocking edges, group them into waves, and create one tracker item and one issue per sli

- Skill: `ilexpwh/plan-slices` (Agent Skill)
- Install (CLI): `npx get-skill add ilexpwh/plan-slices`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ilexpwh/plan-slices/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Ilexpwh (https://skillmd.com/u/ilexpwh)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/ilexpwh/plan-slices

---

---
name: plan-slices
description: Break an outcome into thin vertical slices with acceptance criteria and blocking edges, group them into waves, and create one tracker item and one issue per slice, named by wave and slot (W1-api). Use when the user says "break this down", "split into tasks", "slices", "tickets", "create issues", "work breakdown", "what order", "dependencies" or "waves", or when a charter is ready and the work needs more than one change. Not for setting the goal and Definition of Done (charter) or dispatching parallel workers (fan-out).
metadata:
  phase: plan
---

# Plan slices

A set of thin, end-to-end slices, each one issue and one pull request, with acceptance criteria, blocking edges and a wave, recorded in the ledger tracker.

## When to use
- A charter exists and the outcome needs more than one change.
- The user asks to break work down, create tickets, or decide what can run in parallel.
- The goal was revised and the affected slices need re-planning.

**Not for:** writing the goal (`charter`), designing the contracts (`architect` first when slices share one), or starting workers (`fan-out`).

## Steps
1. **Read the contract.** Load the goal's acceptance criteria, the brief, the design note, `GLOSSARY.md` and `DECISIONS.md`. Explore the code each criterion touches and note prefactors that would make the change easy. *Done when:* each AC is mapped to the modules it touches.
2. **Draft vertical slices.** Each slice cuts one narrow path through every layer it needs (data, API, UI, tests), can be verified on its own, and fits one fresh worker: about five files, at most three criteria, no "and" in the title. Prefactors come first as their own slices. Tests live inside each slice, never in a closing "testing" slice. A wide mechanical change (a rename across the codebase) becomes expand, then migrate in batches, then contract. *Done when:* every goal AC is covered by at least one slice and every slice traces to an AC.
3. **Draw edges and waves.** Add a blocked-by edge only for a real gate: a contract, a migration, a shared file. Slices that touch the same file get one owner or an edge. A wave is every slice whose blockers sit in earlier waves; shared contracts go in wave 1. Name each slice `W<wave>-<slot>` (`W1-api`, `W2-ui`; at most 32 characters). *Done when:* the graph has no cycle and every slice has an ID.
4. **Write each issue body as a file.** Fill [references/issue-template.md](references/issue-template.md) once per slice and save it as `run/issues/<ID>.md` in the ledger task folder (`<workspace>/.context-ledger/tasks/<task>/`). Use glossary words; leave out file paths and code except a contract the design note fixed. Every slice's criteria include a check on the real target, not only tests (`seen-working`). *Done when:* there is one file per slice and none has a placeholder left.
5. **Show the breakdown when someone will look.** At T1, or when the user is present, show the table from Reply and ask once: right size, right edges, anything to merge or split? At T2 and above with the user away, continue and include the table in the report. *Done when:* the breakdown is accepted, or the reply records that you continued without a check.
6. **Create the issues and tracker rows.** In the owning repo, create issues in wave order, filling each body's Blocked by links from the issues already created: `gh issue create --title '<ID>: <title>' --body-file <task folder>/run/issues/<ID>.md`. Use the tracker's native blocked-by or sub-issue links where it has them; never close or rewrite a parent issue. At T1, skip remote issues and keep the files. Then add one ledger row per slice: `python3 -I "$LEDGER" --root <workspace> track --task <task> --id <ID> --title '<title>' --owner <ID> --issue <url or file> --blocked-by <IDs, comma-separated, or omit>`. `$LEDGER` is `../ledger/scripts/ledger.py` from this folder (Claude Code: `${CLAUDE_SKILL_DIR}/../ledger/scripts/ledger.py`). *Done when:* `summary` shows one tracker row per slice, each with an issue link or file.
7. **Hand on.** Give wave 1 to `fan-out`, or build it in order if it holds a single slice. *Done when:* the next skill is named with the wave it starts.

## Red flags
| If you're thinking | Do this instead |
|---|---|
| "All the schema first, then all the API, then the UI." | Slice vertically. Each slice works end to end and can be verified alone. |
| "One big issue is easier to track." | One issue, one pull request, one reason to change (`smallest-change`). |
| "`gh issue create --body \"...\"` is quicker." | Write the body to a file and pass `--body-file`. Inline text gets mangled by the shell (`clean-shared-hosts`). |
| "Mark everything as blocking to be safe." | Extra edges serialise the run. Keep only real gates. |
| "Two parallel slices both edit the router; git will cope." | One owner or an edge between them (`parallel-and-visible`). |
| "A final slice for tests and docs." | Each slice carries its own tests and docs. |
| "The slice is done when its pull request merges." | Its criteria end with a check on the running target. |
| "The user added scope; I'll add a slice." | Revise the goal through `charter` first, then re-plan. |
| "I'll tidy the parent issue to match the plan." | Leave it. Link the children to it. |

## Verify
- [ ] Every goal AC maps to at least one slice, and every slice maps to an AC.
- [ ] Every slice has criteria including a live check, a verify command and its blocked-by list.
- [ ] The graph has no cycle; waves follow the edges; no two slices in a wave share a file.
- [ ] One body file per slice exists; issues were created with `--body-file`.
- [ ] The ledger tracker has one row per slice, named `W<n>-<slot>`.

## Reply
```
**Slices:** <n> in <k> waves (<checked with you | continued without a check>)
| ID | Slice | ACs | Blocked by | Issue |
|---|---|---|---|---|
| W1-api | <title> | AC1 | none | <link> |
**Waves:** W1 (<n> parallel) → W2 (<n>) → ...
**Coverage:** AC1 → W1-api, W2-ui; AC2 → ...
**Bodies:** run/issues/
**Next:** fan-out wave 1
```

## Credits
Vertical slices, task sizing and dependency-ordered checkpoints follow `planning-and-task-breakdown` in addyosmani/agent-skills. Tracer-bullet tickets with explicit blocking edges, working the frontier, and expand–migrate–contract for wide refactors adapt Matt Pocock's `to-tickets` skill (mattpocock/skills). One change per pull request with a live check in every section follows pstack's multi-phase plan playbook by Lauren Tan.

