fastapi

Review·Scanned 2/17/2026

Provides production-ready FastAPI templates with JWT auth, Pydantic v2 schemas, and async SQLAlchemy. Includes instructions to run shell commands like uv run uvicorn src.main:app --host 0.0.0.0 --port 8000 and uses environment secrets such as SECRET_KEY via .env.

by jezweb·v10a1f16·42.1 KB·154 installs
Scanned from main at 10a1f16 · Transparency log ↗
$ vett add jezweb/claude-skills/fastapiReview findings below

FastAPI Skill

Status: Production Ready Last Updated: December 2025

Auto-Trigger Keywords

Primary

  • FastAPI
  • Python API
  • Pydantic
  • uvicorn

Secondary

  • async Python
  • SQLAlchemy async
  • Python REST API
  • JWT Python
  • python-jose
  • ASGI
  • Starlette

Error-Based

  • "422 Unprocessable Entity"
  • "CORS policy"
  • "Field required"
  • "validation error"
  • "async blocking"

What This Skill Does

Provides production-tested patterns for building Python APIs with FastAPI:

  • Project Setup: uv-based project initialization
  • Structure: Domain-based organization for maintainability
  • Validation: Pydantic v2 schemas with proper constraints
  • Database: SQLAlchemy 2.0 async with proper session handling
  • Authentication: JWT with OAuth2PasswordBearer
  • Testing: pytest with async client
  • Deployment: Uvicorn/Gunicorn patterns

Known Issues Prevented

IssueSymptomPrevention
Blocking asyncAll requests hangUse asyncio.sleep() not time.sleep()
422 errorsValidation failuresProper Pydantic schema matching
CORS blockedBrowser errorsCORSMiddleware configuration
Optional fields required"Field required" errorUse str | None = None pattern
Circular importsImport errorsDomain-based structure

When to Use

  • Creating new Python APIs
  • Setting up FastAPI projects from scratch
  • Implementing JWT authentication
  • Configuring async SQLAlchemy
  • Debugging validation or CORS errors

When NOT to Use

  • Simple scripts (overkill)
  • Flask projects (use flask skill instead)
  • Synchronous-only requirements
  • Django projects

Version Info

PackageVersion
FastAPI0.123.2
Pydantic2.11.7
SQLAlchemy2.0.30
Uvicorn0.35.0
python-jose3.3.0

Quick Start

uv init my-api && cd my-api
uv add fastapi[standard] sqlalchemy[asyncio] aiosqlite
uv run fastapi dev src/main.py

Resources

  • SKILL.md - Full documentation
  • templates/ - Ready-to-use project files