fastapi
Installation
SKILL.md
FastAPI
Official docs
| Topic | URL |
|---|---|
| FastAPI | https://fastapi.tiangolo.com |
| Pydantic v2 | https://docs.pydantic.dev/latest/ |
| Deployment | https://fastapi.tiangolo.com/deployment/ |
Agent rules
- Pydantic v2 —
model_validate,Field, typed responses; match existing schema style. - Async when I/O bound —
async deffor DB/HTTP; don't block event loop with sync CPU work. - Dependency injection — reuse
Depends()patterns from repo for auth and DB sessions. - OpenAPI — route response models explicit; don't break
/docscontract silently. - Context7 — verify FastAPI/Pydantic syntax; training data drifts on v2 migration.