What problem does it solve?
This skill codifies FastAPI backend development patterns into a repeatable architecture, reducing boilerplate and enabling scalable, consistent code across routers, services, repositories, and models.
Core Features & Use Cases
- Enforces a Router β Service β Repository β Model layering, delivering clear ownership and testability.
- Mandates CamelModel inheritance for all Pydantic schemas, ensuring camelCase JSON and smooth ORM conversion.
- Promotes async data access and strictly uses domain exceptions (NotFoundError, ConflictError, ValidationError) over HTTP exceptions in services.
- Provides a rapid blueprint for CRUD endpoints, authentication/authorization scaffolds, and robust error handling.
- Use case: Spin up a new feature like /items with clean separation, validation, and consistent error responses.
Quick Start
Install dependencies, scaffold the feature by adding router_{feature}.py, {feature}service.py, repository{feature}.py, and corresponding models/schemas under the api/, services/, repositories/, and db/ directories, then run uvicorn app:app --reload --host 0.0.0.0 --port 8000