fastapi-pro — Claude Code skill: what it does, how to install
Guides Claude Code in building async APIs with FastAPI and Pydantic V2. Useful when architecting microservices and structuring database layers.
npx claude-code-templates@latest --skill development/fastapi-proWhat fastapi-pro does
This skill instructs Claude Code to apply modern Python conventions when building backend services. It prioritizes FastAPI 0.100+ paired with Pydantic V2 and async SQLAlchemy 2.0. The agent structures route parameters with Annotated types and configures connection pools to avoid N+1 query bottlenecks.
Beyond basic REST routes, the skill supports real-time communication via WebSockets. It configures Redis caching alongside background workers like Celery. Production workflows rely on multi-stage Dockerfiles. For monitoring, the setup combines Prometheus metrics with structlog.
Because the skill assumes Pydantic V2 and SQLAlchemy 2.0 async paradigms, applying it to older codebases causes immediate syntax incompatibilities. Detailed architectural patterns also depend on the presence of resources/implementation-playbook.md.
What it helps with
- architect an async FastAPI service backed by SQLAlchemy 2.0
- implement JWT authentication with role-based access checks
- generate multi-stage Dockerfiles and Helm charts for Kubernetes
- write async integration tests using pytest-asyncio
Example prompts for the agent
- Build an async FastAPI service with Redis caching and SQLAlchemy 2.0.
- Implement JWT authentication with refresh token handling.
- Create a multi-stage Dockerfile and Helm chart for Kubernetes deployment.
How to install fastapi-pro
1claude-code-templates
npx claude-code-templates@latest --skill development/fastapi-pro2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill fastapi-pro -a claude-code3Manually: put the files in place
~/.claude/skills/fastapi-pro/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/fastapi-pro/
Manually: put the files in place
.agents/skills/fastapi-pro/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/fastapi-pro/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates fastapi-pro2Manually: put the files in place
.github/skills/fastapi-pro/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/fastapi-proManually: put the files in place
.devin/skills/fastapi-pro/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about fastapi-pro
How to install fastapi-pro in Claude Code?
Run npx claude-code-templates@latest --skill development/fastapi-pro in your terminal. This command downloads and enables the skill for Claude Code.
What does the fastapi-pro skill do?
It directs Claude Code to produce async-first FastAPI services, enforcing Pydantic V2 data contracts, SQLAlchemy 2.0 session handling, and pytest-asyncio test suites.
Can fastapi-pro be used with Pydantic V1?
The skill specifically targets Pydantic V2 and FastAPI 0.100+. Using it on legacy Pydantic V1 projects will introduce syntax mismatches and schema errors.