Skip to content
Back to skills

Fastapi Phase Planning

ASecurity

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".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
developmentgofastapirailsapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add amralhorimy/fastapi-pro-skills --skill fastapi-phase-planning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fastapi Phase Planning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fastapi Phase Planning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/amralhorimy-fastapi-phase-planning/badge)](https://www.skillsdirectory.com/skills/amralhorimy-fastapi-phase-planning)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md3.9 KB
  • references/phase-plan-template.md603 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.