# fastapi-pro

Guides Claude Code in building async APIs with FastAPI and Pydantic V2. Useful when architecting microservices and structuring database layers.

- skill · `type=skill` · Claude Code · 201 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/fastapi-pro
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/fastapi-pro

## What it 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`.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/fastapi-pro
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill fastapi-pro -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/fastapi-pro/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/fastapi-pro/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/fastapi-pro/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/fastapi-pro/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates fastapi-pro
```

2. **Manually: put the files in place**
- File: `.github/skills/fastapi-pro/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/fastapi-pro
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/fastapi-pro/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/fastapi-pro

## When to use it
- 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
- 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.

## Similar
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [claude-api](https://affpapa.org/en/nevibecode/skills/claude-api.md) — skill · 74198 installs
- [lark-im](https://affpapa.org/en/nevibecode/skills/lark-im.md) — skill · 472900 installs
- [lark-event](https://affpapa.org/en/nevibecode/skills/lark-event.md) — skill · 466800 installs
- [caveman-discover](https://affpapa.org/en/nevibecode/skills/caveman-discover.md) — skill · 104400 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
