What problem does it solve? Building FastAPI services that survive production requires correct handling of async execution, dependency lifecycles, Pydantic validation, security boundaries, and deployment topology—mistakes in any of these cause subtle bugs, leaks, or outages. This Skill encodes version-aware, production-grade guidance so those decisions are made correctly the first time. ## Core Features & Use Cases - Lifecycle and dependency correctness: Enforces proper use of lifespan-managed process resources, request-scoped yield dependencies, and per-request database sessions with deterministic teardown. - Async and blocking discipline: Prevents blocking work on the event loop, governs thread-pool offloading, streaming, WebSockets, and background task durability boundaries. - Contract and security rigor: Covers Pydantic v2 validation patterns, response model filtering, stable error envelopes, OIDC/JWT verification, CORS, proxy trust, and OpenAPI contract testing. - Use Case: When adding a streaming endpoint with authentication to an existing FastAPI service, the Skill ensures resources survive the stream, headers are sent only after validation, and the OpenAPI contract stays accurate. ## Quick Start Ask the assistant to review or implement a FastAPI endpoint, router, or deployment configuration using the fastapi skill for production-correct patterns.