# Fba

> FastAPI Best Architecture (fba) project development guide. Provide complete architecture specifications, coding styles, and plugin development guidance. Use when this capability is needed.

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

---


# FastAPI Best Architecture

Official documentation: https://fastapi-practices.github.io/fastapi_best_architecture_docs/

## Core Architecture

Project adopts **Three-tier architecture**:

| Layer   | Responsibility                                                     |
|---------|--------------------------------------------------------------------|
| API     | Route processing, parameter validation, and response return        |
| Schema  | Data transfer objects, request/response data structure definitions |
| Service | Business logic, data processing, exception handling                |
| CRUD    | Database operations (inherits `CRUDPlus`)                          |
| Model   | ORM models (inherits `Base`)                                       |

## Development Workflow

1. Define database models (model)
2. Define data validation models (schema)
3. Define routes (router)
4. Write business logic (service)
5. Write database operations (crud)

## Detailed Guides

| Module       | Document                   |
|--------------|----------------------------|
| API          | references/api.md          |
| Schema       | references/schema.md       |
| Model        | references/model.md        |
| Naming       | references/naming.md       |
| Plugin       | references/plugin.md       |
| Coding Style | references/coding-style.md |
| Config       | references/config.md       |

## CLI

Execute `fba -h` for more details.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/fastapi-practices) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

