Fastapi Best Practices

FastAPI project initialization, development guidance, and code review based on personal architectural conventions (uv+fastapi+sqlalchemy+alembic+loguru+ruff). Use when: (1) Creating/initializing a new FastAPI project, (2) Adding new endpoints, services, modules, or models to an existing FastAPI project, (3) Reviewing FastAPI project structure and code organization, (4) Setting up database migrations (Alembic), logging (Loguru), or config management, (5) Configuring linting/formatting toolchain (ruff). Supports two project scales: simple (single-package) and complex (UV workspace multi-package). Default API conventions: GET+POST only, Result.ok()/Result.fail() response format, MVC layering. Frontend pairing: Designed to work with react-best-practices skill.

garveyhu 693f27d 4 files · 56.7 KB Updated

File contents

garveyhu/awesome-skills/tree/main/stack/fastapi-best-practices commit 693f27dcbd

Frequently asked questions

npx skillmds@latest add garveyhu/fastapi-best-practices