Agent skill · software engineering · aiskillstore

python-fastapi-patterns

FastAPI web framework patterns. Triggers on: fastapi, api endpoint, dependency injection, pydantic model, openapi, swagger, starlette, async api, rest api, uvicorn.

Why this skill is useful

Provides specific FastAPI patterns and practices that enhance API development beyond generic knowledge.

What it needs

Requires uvicorn installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

FastAPI Patterns Modern async API development with FastAPI. Basic Application Request/Response Models Path and Query Parameters Dependency Injection Exception Handling Router Organization Quick Reference Feature Usage --------- ------- Path param @app.get("/items/{id}") Query param def f(q: str = None) Body def f(item: ItemCreate) Dependency Depends(getdb) Auth Depends(getcurrentuser) Response model responsemodel=ItemResponse Status code statuscode=201 Additional Resources ./references/dependency-injection.md - Advanced DI patterns, scopes, caching ./references/middleware-patterns.md - Middleware chains, CORS, error handling ./references/validation-serialization.md - Pydantic v2 patterns, custom validators ./references/background-tasks.md - Background tasks, async workers, scheduling Scripts ./scripts/scaffold-api.sh - Generate API endpoint boilerplate Assets ./assets/fastapi-template.py - Production-ready FastAPI app skeleton --- See Also Prerequisites: python-typing-patterns - Pydantic models and type hints python-async-patterns - Async endpoint patterns Related Skills: python-database-patterns - SQLAlchemy integration python-observability-patterns - Logging, metrics, tracing middleware python-pytest-patterns - API testing with TestClient

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/python-fastapi-patterns

View the source on GitHub

Browse the @skills marketplace