# Fastapi

> Use for FastAPI-specific endpoints, dependencies, Pydantic contracts, async behavior, middleware, or service design.

- Skill: `rhenter/fastapi` (Agent Skill)
- Install (CLI): `npx skillmds@latest add rhenter/fastapi`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rhenter/fastapi/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: rhenter (https://skillmd.com/u/rhenter)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/rhenter/fastapi

---


# Fastapi

- Use Pydantic models for request and response contracts.
- Use dependency injection for reusable dependencies.
- Keep endpoint handlers focused.
- Use async only when the dependency stack and workload benefit.
- Define explicit response models and error behavior.

