# Fastapi App Architecture Review

> Use when reviewing FastAPI application architecture, route design, dependency injection, Pydantic schemas, async boundaries, and background tasks.

- Skill: `tomevault-io/fastapi-app-architecture-review` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/fastapi-app-architecture-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/fastapi-app-architecture-review/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/fastapi-app-architecture-review

---


# FastAPI App Architecture Review

## When To Use

- The main decision is about FastAPI project structure, route organization, dependency injection, or async I/O boundaries.
- Reviewing Pydantic schema design, background task management, or startup/shutdown lifecycle.

## Workflow

1. Identify route organization — are routers grouped by domain or by CRUD?
2. Review dependency injection usage — are dependencies scoped correctly (request, session, global)?
3. Check Pydantic schema boundaries — are schemas used as API contracts or leaking into domain layers?
4. Review async boundaries — are blocking I/O calls wrapped in proper thread pools?
5. Check startup/shutdown lifecycle for clients, connection pools, and background tasks.
6. Review error handling and validation at API boundaries.
7. Recommend the smallest change that improves separation of concerns.

## Output Format

```markdown
FastAPI architecture review:
- Route organization:
- Dependency injection:
- Pydantic schema boundaries:
- Async I/O boundaries:
- Lifecycle management:
- Error handling:
- Recommended change:
- Verification:
```

---
> Source: [WangYao-GoGoGo/architecture-agent-skills](https://github.com/WangYao-GoGoGo/architecture-agent-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-15 -->

