fastapi-local-dev

fastapi-local-dev is a skill for Claude Code from bobmatnyc/claude-mpm-skills. It costs 21 tokens per session (230 once invoked), scanned A, original, MIT.

A runbook for running FastAPI applications during development and in production. FastAPI is a Python framework for building web APIs, while Uvicorn and Gunicorn are servers used to run them.

In plain words
What is it for?
It covers local auto-reloading, running commands from the correct project directory, WSL file watching, and production worker setup.
Why use it?
It helps avoid common startup and reload mistakes, such as missed file changes or using development settings in production.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It covers local auto-reloading, running commands from the correct project directory, WSL file watching, and production worker setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bobmatnyc/claude-mpm-skills/fastapi-local-dev
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 bobmatnyc/claude-mpm-skills --skill fastapi-local-dev
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/claude-mpm-skills

Made for: Claude Code.

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-local-dev

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/fastapi-local-dev"><img src="https://agentmods.dev/badge/skills/bobmatnyc/claude-mpm-skills/fastapi-local-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 230 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.00021 $0.00230
Opus 5 $0.00010 $0.00115
Sonnet 5 $0.00004 $0.00046
Haiku 4.5 $0.00002 $0.00023

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

Security

Grade A, and why

fastapi-local-dev 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.

toolchains/python/frameworks/fastapi-local-dev/SKILL.md · 28 lines

What it actually says

FastAPI Local Dev

  • Dev: uvicorn app.main:app --reload
  • Imports: run from repo root; use python -m uvicorn ... or PYTHONPATH=.
  • WSL: WATCHFILES_FORCE_POLLING=true if reload misses changes
  • Prod: gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w <n> --bind :8000

Anti-patterns:

  • --reload --workers > 1
  • PM2 watch: true for Python

References: references/.

Files

What ships with it

7 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 · 28 lines · 21 tokens per session scan A 6ec81541d8ba

Subscribe to this mod's changes

fastapi-local-dev is a skill published in the GitHub repository bobmatnyc/claude-mpm-skills (74 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 230 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

python-backend

Production Python async patterns including asyncio TaskGroup, FastAPI dependency injection and middleware, SQLAlchemy 2.0 async sessions, and database connection pool tuning. Python 3.11+ runtime concerns such as ExceptionGroup, cancellation semantics, and session rollback. Use when building async services, wiring…

yonatangross/orchestkit · 82 tokens

fastapi-expert

Expert-level FastAPI development for high-performance Python APIs with async support. Use when the user mentions Python, API, async, REST, OpenAPI, or Pydantic, or when the task involves FastAPI Features.

personamanagmentlayer/pcl · 49 tokens

fastapi-routes

Create or modify FastAPI routes. Use when: adding new API endpoints, creating Pydantic request/response models, registering routers, designing REST APIs, or following route conventions for this project.

tedivm/robs_awesome_python_template · 44 tokens

typer-cli

Add or modify CLI commands using Typer. Use when: adding new CLI subcommands, wrapping async functions for CLI use, understanding the CLI entrypoint structure, or following the @syncify pattern for async commands.

tedivm/robs_awesome_python_template · 47 tokens

fastapi

Operational skill for FastAPI: Pydantic models, dependency injection, async routes, OpenAPI, authentication hooks, and TestClient-based testing.

alivirgo/Major-AI-Skills · 32 tokens

python

Use when building FastAPI applications, implementing async endpoints, setting up Pydantic schemas, working with SQLAlchemy, or writing pytest tests for Python backend services.

MadAppGang/claude-code · 34 tokens