python-fastapi-development

python-fastapi-development is a skill for Claude Code, Codex from tmolavi/mcp-agent-skills-hub. It costs 28 tokens per session (1,268 once invoked), scanned A, original, MIT.

A workflow for building Python backends with FastAPI, a Python framework for creating web APIs, including asynchronous code, database access, validation, and authentication.

In plain words
What is it for?
Use it to create FastAPI REST APIs, asynchronous services, SQLAlchemy database integrations, authentication, and microservices.
Why use it?
It organizes the many setup and integration decisions involved in creating a production API. It helps keep the project structure, database layer, and API behavior consistent.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tmolavi/mcp-agent-skills-hub/python-fastapi-development
Any agent
npx skills add tmolavi/mcp-agent-skills-hub --skill python-fastapi-development
Clone the repo
git clone --depth 1 https://github.com/tmolavi/mcp-agent-skills-hub

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 python-fastapi-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/python-fastapi-development.svg)](https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/python-fastapi-development)
Your own site
<a href="https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/python-fastapi-development"><img src="https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/python-fastapi-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,268 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.01268
Opus 5 $0.00014 $0.00634
Sonnet 5 $0.00006 $0.00254
Haiku 4.5 $0.00003 $0.00127

Measured yesterday against content hash 2e5295400058, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-fastapi-development 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 yesterday.

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.

skills/python-fastapi-development/SKILL.md · 221 lines

How it starts

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

Python/FastAPI Development Workflow

Overview

Specialized workflow for building production-ready Python backends with FastAPI, featuring async patterns, SQLAlchemy ORM, Pydantic validation, and comprehensive API patterns.

When to Use This Workflow

Use this workflow when:

  • Building new REST APIs with FastAPI
  • Creating async Python backends
  • Implementing database integration with SQLAlchemy
  • Setting up API authentication
  • Developing microservices

Workflow Phases

Phase 1: Project Setup

Skills to Invoke
  • app-builder - Application scaffolding
  • python-development-python-scaffold - Python scaffolding
  • fastapi-templates - FastAPI templates
  • uv-package-manager - Package management
Actions
  1. Set up Python environment (uv/poetry)
  2. Create project structure
  3. Configure FastAPI app
  4. Set up logging
  5. Configure environment variables
Copy-Paste Prompts
Use @fastapi-templates to scaffold a new FastAPI project
Use @python-development-python-scaffold to set up Python project structure

Phase 2: Database Setup

Skills to Invoke
  • prisma-expert - Prisma ORM (alternative)
  • database-design - Schema design
  • postgresql - PostgreSQL setup
  • pydantic-models-py - Pydantic models
Actions
  1. Design database schema
  2. Set up SQLAlchemy models
  3. Create database connection
  4. Configure migrations (Alembic)
  5. Set up session management
Copy-Paste Prompts
Use @database-design to design PostgreSQL schema
Use @pydantic-models-py to create Pydantic models for API

Phase 3: API Routes

Skills to Invoke
  • fastapi-router-py - FastAPI routers
  • api-design-principles - API design
  • api-patterns - API patterns
Actions
  1. Design API endpoints
  2. Create API routers
  3. Implement CRUD operations
  4. Add request validation
  5. Configure response models
Copy-Paste Prompts
Use @fastapi-router-py to create API endpoints with CRUD operations
Use @api-design-principles to design RESTful API

Read the full file on GitHub · 221 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. yesterday First seen · 221 lines · 28 tokens per session scan A 2e5295400058

Subscribe to this mod's changes

python-fastapi-development is a skill published in the GitHub repository tmolavi/mcp-agent-skills-hub (8 stars, last pushed 9d ago), licensed MIT. It adds 28 tokens to every session and 1,268 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

pygame-core

Structure a pygame (pygame-ce) game in Python: the init/event/update/draw loop, delta-time movement, Surface/Rect blitting, keyboard/mouse input, and Sprite/Group management with collision. Use when building or debugging a pygame game — when the user mentions pygame, pygame-ce, the game loop, blit, Surface, Rect…

gamedev-skills/awesome-gamedev-agent-skills · 85 tokens

python-pro

🚀 Professional AI Agent orchestrator for generating tailored rules and AGENTS.md with deterministic JIT skill discovery. Optimized for Context Savings and Agent Alignment.

naravid19/ai-project-rules-generator · 0 tokens

jupyter-live-kernel

Iterative Python via live Jupyter kernel (hamelnb).

sairam0424/MindForge · 19 tokens

claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

hashgraph-online/awesome-codex-plugins · 53 tokens

godot-gdscript

Write idiomatic GDScript for Godot 4.7: static typing, the node lifecycle (ready/process/physicsprocess), @export/@onready/@tool annotations, signals, and await for asynchronous flow. Use when editing .gd scripts in a Godot project (project.godot), writing or debugging GDScript, or porting 3.x GDScript to 4.x…

gamedev-skills/awesome-gamedev-agent-skills · 101 tokens

fastapi-templates

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

rmyndharis/antigravity-skills · 37 tokens