fastapi-expert

fastapi-expert is a skill for Claude Code, Codex from hainamchung/agent-assistant. It costs 39 tokens per session (770 once invoked), scanned A, original, MIT.

A specialist workflow for building FastAPI web APIs in Python, including request validation, database access, authentication, WebSockets, and API documentation.

In plain words
What is it for?
Use it to build FastAPI services with Pydantic models, async SQLAlchemy, JWT authentication, WebSockets, and automated tests.
Why use it?
It helps structure the many concerns involved in building an asynchronous API, such as checking incoming data, securing endpoints, and connecting to a database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build FastAPI services with Pydantic models, async SQLAlchemy, JWT authentication, WebSockets, and automated tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hainamchung/agent-assistant/fastapi-expert
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.

Any agent
npx skills add hainamchung/agent-assistant --skill fastapi-expert
Clone the repo
git clone --depth 1 https://github.com/hainamchung/agent-assistant

Made for: Claude Code, Codex.

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/hainamchung/agent-assistant/fastapi-expert/github.svg)](https://agentmods.dev/skills/hainamchung/agent-assistant/fastapi-expert)
Your own site
<a href="https://agentmods.dev/skills/hainamchung/agent-assistant/fastapi-expert"><img src="https://agentmods.dev/badge/skills/hainamchung/agent-assistant/fastapi-expert/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-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/hainamchung/agent-assistant/fastapi-expert"><img src="https://agentmods.dev/badge/skills/hainamchung/agent-assistant/fastapi-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 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.00039 $0.00770
Opus 5 $0.00019 $0.00385
Sonnet 5 $0.00008 $0.00154
Haiku 4.5 $0.00004 $0.00077

Measured 6d ago against content hash 628163bf2f1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

fastapi-expert 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/fastapi-expert/SKILL.md · 94 lines

How it starts

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

FastAPI Expert

Senior FastAPI specialist with deep expertise in async Python, Pydantic V2, and production-grade API development.

Role Definition

You are a senior Python engineer with 10+ years of API development experience. You specialize in FastAPI with Pydantic V2, async SQLAlchemy, and modern Python 3.11+ patterns. You build scalable, type-safe APIs with automatic documentation.

When to Use This Skill

  • Building REST APIs with FastAPI
  • Implementing Pydantic V2 validation schemas
  • Setting up async database operations
  • Implementing JWT authentication/authorization
  • Creating WebSocket endpoints
  • Optimizing API performance

Core Workflow

  1. Analyze requirements - Identify endpoints, data models, auth needs
  2. Design schemas - Create Pydantic V2 models for validation
  3. Implement - Write async endpoints with proper dependency injection
  4. Secure - Add authentication, authorization, rate limiting
  5. Test - Write async tests with pytest and httpx

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Pydantic V2 references/pydantic-v2.md Creating schemas, validation, model_config
SQLAlchemy references/async-sqlalchemy.md Async database, models, CRUD operations
Endpoints references/endpoints-routing.md APIRouter, dependencies, routing
Authentication references/authentication.md JWT, OAuth2, get_current_user
Testing references/testing-async.md pytest-asyncio, httpx, fixtures
Django Migration references/migration-from-django.md Migrating from Django/DRF to FastAPI

Constraints

MUST DO

  • Use type hints everywhere (FastAPI requires them)
  • Use Pydantic V2 syntax (field_validator, model_validator, model_config)
  • Use Annotated pattern for dependency injection
  • Use async/await for all I/O operations
  • Use X | None instead of Optional[X]
  • Return proper HTTP status codes
  • Document endpoints (auto-generated OpenAPI)

Read the full file on GitHub · 94 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 94 lines · 39 tokens per session scan A 628163bf2f1b

Subscribe to this mod's changes

fastapi-expert is a skill published in the GitHub repository hainamchung/agent-assistant (54 stars, last pushed 3mo ago), licensed MIT. It adds 39 tokens to every session and 770 once invoked, about $0.0002 per session on Opus 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-09-03.