FastAPI service rules
Rules and an endpoint skill for FastAPI with uv and Pydantic v2: Annotated dependencies, typed responses, async only when awaited, lifespan, tested routes.
- 1 1 Rules
- 1 1 Skills
- – 0 MCP
Two FastAPI loadouts. The first is the service baseline: uv, Pydantic v2 models, Annotated dependencies, typed response models, async only where something is awaited, lifespan for startup, and tests through the app. The second adds a database: async SQLAlchemy 2.1 sessions per request, Alembic migrations, eager loading chosen per endpoint, and tests that fail when a list endpoint starts issuing one query per row.
Every one installs for Claude Code, Codex CLI, Cursor, Gemini CLI, Antigravity CLI and GitHub Copilot unless its card says otherwise.
Rules and an endpoint skill for FastAPI with uv and Pydantic v2: Annotated dependencies, typed responses, async only when awaited, lifespan, tested routes.
FastAPI on async SQLAlchemy 2.1: per-request AsyncSession, lazy="raise" with eager loads, async Alembic with alembic check, and tests that count queries.
Looking for something narrower? Search within FastAPI or filter everything.