python-backend-fastapi
Installation
SKILL.md
Python backend (FastAPI + Pydantic v2 + Alembic)
Activation cues
Use this skill when the task involves:
- new or modified FastAPI endpoints, routers, dependencies, middleware
- request/response validation, schema design, OpenAPI correctness (Pydantic v2)
- database schema changes (Alembic revisions)
- backend logging and request tracing
- ETL / parsers / import pipelines with memory constraints and “bad rows” reporting
Operating principles (agent workflow)
- Start with a short plan before editing code. Prefer file-path-specific steps and repository-aligned patterns.
- Ask up to 1–3 clarifying questions only if truly blocking.
- Prefer verifiable goals: tests, migrations, reproducible API calls, and deterministic outputs.
- For complex/high-risk changes, run an internal Chain-of-Verification (CoVe): draft → 3–5 verification questions → answer independently → revise; surface only final result + (optional) UNCERTAIN items and how to verify them.