What problem does it solve? FastAPI codebases often drift into outdated or discouraged patterns such as ellipsis defaults, RootModel wrappers, mixed HTTP operations, and blocking code inside async handlers. This Skill provides current best practices and conventions so generated FastAPI code stays clean, typed, and performant. ## Core Features & Use Cases - Modern API Patterns: Enforces Annotated-based parameters and dependencies, router-level prefixes and tags, one HTTP operation per function, and return-type-driven response serialization. - Streaming Support: Covers Server-Sent Events with EventSourceResponse and ServerSentEvent, JSON Lines streaming, and byte streaming via StreamingResponse subclasses. - Frontend Serving & Tooling: Uses app.frontend() and router.frontend() to serve built SPA assets, and recommends uv, Ruff, ty, Asyncer, SQLModel, and HTTPX for the surrounding toolchain. - Use Case: When building a new FastAPI endpoint that streams progress events to a React frontend, the Skill directs you to yield ServerSentEvent objects from an endpoint declared with response_class=EventSourceResponse. ## Quick Start Ask the AI to create a FastAPI endpoint with Pydantic validation and dependency injection following current best practices.