fastapi-architect

fastapi-architect is an agent for Claude Code from AratKruglik/claude-sdlc. It costs 103 tokens per session (1,916 once invoked), scanned A, original, MIT.

A coding agent for building the server side of FastAPI applications, a Python framework for web APIs. It handles routes, data validation, authentication, database model stubs, API documentation, and the contract that a frontend uses to call the API.

In plain words
What is it for?
Use it to implement FastAPI endpoints, request and response schemas, dependency injection, asynchronous handlers, OAuth2/JWT login, configuration, and OpenAPI documentation. It can also outline the API contract for a separate frontend agent.
Why use it?
It removes the need to repeatedly decide how common FastAPI backend pieces should be structured. It also helps keep the API and its frontend-facing data formats clearly defined.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the fastapi-plugin plugin — 2 skills, 2 agents shipped together

Good fit Use it to implement FastAPI endpoints, request and response schemas, dependency injection, asynchronous handlers, OAuth2/JWT login, configuration, and OpenAPI documentation. It can also outline the API contract for a separate frontend agent.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aratkruglik/claude-sdlc/fastapi-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/AratKruglik/claude-sdlc

Made for: Claude Code.

Or install fastapi-plugin, the plugin that ships this one along with the rest of its 2 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fastapi-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/fastapi-architect/github.svg)](https://agentmods.dev/agents/aratkruglik/claude-sdlc/fastapi-architect)
Your own site
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/fastapi-architect"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/fastapi-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fastapi-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/fastapi-architect"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/fastapi-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,916 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.01916
Opus 5.5 $0.00041 $0.00766
Sonnet 5.5 $0.00021 $0.00383
Haiku 4.5 $0.00010 $0.00192

Measured 15d ago against content hash 16bd64227994, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fastapi-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/fastapi-plugin/agents/fastapi-architect.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FastAPI Architect

FastAPI backend implementer. You build the server side of features: APIRouter endpoint groups, Pydantic v2 schemas, dependency injection chains, async handlers, OAuth2/JWT authentication, OpenAPI metadata, SQLAlchemy ORM model stubs, and pydantic-settings configuration. For SPA projects you design and document the API contract — the endpoint shape and Pydantic schema your endpoints expose — so the frontend architect (vue-architect / react-architect) can implement the UI.

sdlc:architect-conventions is preloaded into your context by this agent's skills: frontmatter. It defines the shared hard rules, code quality bar, workflow steps, and the report/compact-summary contract. Everything below is FastAPI-specific and applies on top.

Project context

The orchestrator's injection prompt (from fastapi-plugin/stack.md) supplies stack-specific guidance. Read and follow it. The summary:

Layer Convention
Routing APIRouter(prefix="/items", tags=["items"]) per feature; included in main app via app.include_router(router)
Schemas Pydantic v2 BaseModel with model_config = ConfigDict(from_attributes=True) for ORM mode
Request validation Pydantic models as request body; Query(), Path(), Header() for params; Annotated for field constraints
Response response_model= on each endpoint to filter output schema; JSONResponse only for custom status codes
Dependency injection Depends() for DB session, auth, pagination. Async AsyncSession yielded from get_db() dependency
SQLAlchemy models class User(Base): id: Mapped[int] = mapped_column(primary_key=True) — definition only, types finalized by alembic-specialist
Auth OAuth2PasswordBearer + JWT (pyjwt; keep python-jose/authlib where the project already uses them). get_current_user dependency checks token
Settings pydantic-settings class Settings(BaseSettings) reading from env/.env
Async All I/O-bound handlers async def. DB calls via AsyncSession. No sync blocking in async context

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed 16bd64227994
  2. 1mo ago Changed d3983c53c572
  3. 2mo ago Changed · +20 lines a149d48d01e3
  4. 3mo ago First seen · 97 lines · 103 tokens per session scan A 5dafa3659ba8

Subscribe to this mod's changes

fastapi-architect is an agent published in the GitHub repository AratKruglik/claude-sdlc (57 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 1,916 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

fastapi-architect compared with agents from other repositories

fastapi-architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fastapi-architectAratKruglik/claude-sdlcAgent57todayMITA103Claude Code
django-expert0xfurai/claude-code-subagentsAgent1.0k24d agoMITA43Claude Code
backend-engineerjpoley/flowspecAgent491mo agoApache-2.0A22Claude Code
error-handlers-integratorvoro6yov/spec-driven-developmentAgent51mo agoApache-2.0A33Claude Code
drf-apitoffyui/ccteamsAgent493mo agoMITA54Claude Code
python-engineernelson820125/iforgeaiAgent142mo agoMITA82Claude Code
fastapi-proNOMARJ/sigilAgent61mo agoApache-2.0A57Claude Code