Plan backend work by splitting a big goal into phases and stages with scope, contracts, acceptance checks, ordering and rollback. Use whenever the user has a large or vague goal ("I want a feed / notifications / AI / grading system"), asks for a plan, roadmap, phases, stages, breakdown, "where do I start", wants to restructure a project step by step, or when a task is too big to build in one go - even if they only say "plan" or "organize this".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Fastapi Phase Planning?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/amralhorimy-fastapi-phase-planning)
---
name: fastapi-phase-planning
description: Plan backend work by splitting a big goal into phases and stages with scope, contracts, acceptance checks, ordering and rollback. Use whenever the user has a large or vague goal ("I want a feed / notifications / AI / grading system"), asks for a plan, roadmap, phases, stages, breakdown, "where do I start", wants to restructure a project step by step, or when a task is too big to build in one go - even if they only say "plan" or "organize this".
---
# Phase Planning
A plan is good when each stage is **small enough to finish and verify in one sitting** and leaves the
project **runnable**. Planning is cheap; rebuilding a wrong stage is not.
## Procedure
1. **Understand the goal** - one paragraph: who uses it, what changes for them, what "success" is.
Ask at most 3 questions, only those that change the plan (e.g. scale, auth, who writes the code).
2. **Inventory what exists** - modules, infra, data, constraints (device resources, team size, deadline).
3. **Find the seams** - split along these axes, in this priority:
1. *Data/contract first* (schemas, events, status machine) before behaviour
2. *Walking skeleton* (thinnest end-to-end path with fakes) before depth
3. *Sync before async* (works in a request, then moves to a worker)
4. *Heuristic before learned* (rules baseline before ML; the baseline is also your evaluation yardstick)
5. *Collect data before using it* (log signals early; training/ranking comes later)
6. *Safety rails before rollout* (flags, shadow mode, gates, rollback)
4. **Write phases** (milestones that deliver user value) and **stages** (steps inside a phase) with the
template in `references/phase-plan-template.md`.
5. **Order by dependency and risk** - risky/unknown things early, behind a fake if needed.
6. **Define acceptance per stage** - a command or scenario that proves it (not "looks good").
7. **Record decisions** - every non-obvious choice becomes a one-paragraph ADR (`docs/decisions/`).
8. **Get agreement** on phase 1 only; re-plan after each phase with what was learned.
## Sizing rules
- A stage touches **one module or one concern**. If it touches three, split it.
- A stage has **one new idea**. Two new infra technologies in one stage is a smell.
- A phase = 3-8 stages. More than 8 -> split the phase.
- Every stage ends with: tests green + one verification scenario + docs line.
- Name what is *deferred* explicitly. Deferred items are part of the plan, not forgotten work.
## Standard stage ladder for a new module
`contracts -> models/repo (with fake) -> service -> router -> tests -> worker (if async) -> observability -> docs`
## Standard stage ladder for an ML/AI-assisted feature
`0 interface + fake adapter -> 1 real adapter, offline -> 2 worker + status machine -> 3 streaming/SSE ->
4 evaluation lab (offline metrics) -> 5 shadow mode -> 6 gated rollout -> 7 monitoring + fallback`
## How our real plans looked (copy the cadence)
- Periods/phases with named stages, e.g. social API: *1 interactions + signals; 2 feed v2; 3 embeddings; 4 learned ranker; 10 admin + audit + monitoring*;
HTR grading backend: *0 foundation, 1 question bank, 2 bank/rubric generation, 3 submissions, 4 pipeline with fakes, 5 real model adapters,
6 evaluation lab, 7 live status + review*.
- Each stage ships as: code (overlay or zip) + `docs/modules/<phase>.md` + tests + a Postman collection or lab + an honest verified/not-verified list.
- A stage may need a **user decision first** (e.g. student identity: decided "none; submission id is the credential") - ask it before building, record it as an ADR.
- Learning projects use **guided steps** (user writes code, compares with reference); delivery projects use full packages. State which, per stage.
## Output format
Present: goal, assumptions, phase table (phase | outcome | stages | risk), stage details for phase 1 only,
deferred list, open decisions. Keep it under one screen per phase.