ocbunknown/fastapi-claude-template

Agent-first FastAPI template built to pair with Claude Code - opinionated architecture kept on the rails by custom skills, hooks and review agents.

This repository also configures its own agents. See what fastapi-claude-template tells them →

32Stars on the repository
10Mods indexed here, across every type
6mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

api-client

01

ocbunknown/fastapi-claude-template

Skill Claude Code

Use when integrating an external HTTP API (Stripe, GitHub, Twilio, a payment provider, etc.) into the project. Enforces the Client + Service split — Client lives in infrastructure and returns raw vendor-shaped Pydantic responses, Service lives in application and maps raw responses to application Result types. Covers…

not rated 32 6mo ago A 102 tokens original MIT

endpoint

02

ocbunknown/fastapi-claude-template

Skill Claude Code

Use when creating or editing a FastAPI endpoint under src/presentation/http/v1/endpoints/ /. Enforces audience-first organization (public/user/admin/internal), the exact parameter-naming convention (data for bodies, query for GET filters), the five-parameter list shape, correct Require + Authorization wiring, and…

not rated 32 6mo ago A 73 tokens original MIT

migration

03

ocbunknown/fastapi-claude-template

Skill Claude Code

Use when the user asks to create a database migration, change a SQLAlchemy model, add a column, add an index, or otherwise modify the schema. Enforces the rule that migrations are generated via make generate NAME="..." (the project's Makefile target that runs Alembic autogenerate) — never hand-written — and never edit…

not rated 32 6mo ago A 80 tokens original MIT

repository

04

ocbunknown/fastapi-claude-template

Skill Claude Code

Use when creating or extending a repository under src/database/psql/repositories/. Enforces the project's fixed repository vocabulary (create, select, selectmany, update, delete, exists, count, upsert) — no invented methods. Shows exactly how to wrap CRUDRepository, use @onintegrity, build loads-aware selects, and…

not rated 32 6mo ago A 73 tokens original MIT

usecase

05

ocbunknown/fastapi-claude-template

Skill Claude Code

Use when creating or editing a use case under src/application/v1/usecases/. Enforces the RequestBus + UseCase pattern (Request + UseCase in one file, @dataclass(slots=True), returns Result type) and the DBGateway transaction rules — never open two sessions in one use case, never touch self.database outside a context…

not rated 32 6mo ago A 81 tokens original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: