FastAPI + Pydantic v2 backend workflow: implement/modify API endpoints with thin handlers + service layer, add pytest tests, manage idempotent Alembic migrations, and implement streaming ETL/parsers with invalid-row CSV logging. Use this skill when working on Python backend APIs, schema changes, or ingestion/parsing pipelines.
Use this skill when the task involves:
Definition of “thin handler”:
Depends for DI and request-scoped dependencies.logging.When implementing ingestion/parsing:
timestamp, file, line, error, original_roworiginal_row as close to raw input as possible (avoid “fixing” it before logging)A change is “done” only if:
curl or httpie calls + expected responsescurl included in PR/plan notes