FastAPI Architecture Patterns
Architects scalable, production-grade FastAPI applications using standardized directory layouts, singleton services, and modular routing conventions.
FastAPI Architecture Patterns establishes a clear structural blueprint and naming standard for production FastAPI codebases. It guides Claude to organize logic across dedicated concerns—separating pure ORM schemas in db/, business logic singletons in services/, modular endpoint definitions in routes/, multi-inheritance Pydantic settings in configs/, and explicit synchronous and asynchronous lifespan handlers in startops/. Ideal for scaffolding new backends or refactoring sprawling API services, this skill guarantees consistent dependency injection, error handling, SSE streaming patterns, and clean startup/shutdown sequencing.