Agent skill · software engineering · wshobson

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.

Why this skill is useful

Provides a structured template for building FastAPI applications with async patterns and dependency injection that the AI wouldn't reliably generate on its own.

What it needs

Requires fastapi, httpx, pytest, sqlalchemy, uvicorn installed locally. About 2k tokens when loaded. Last updated 2026-08-05. 38,570 stars on the source repository.

What this skill does

FastAPI Project Templates Production-ready FastAPI project structures with async patterns, dependency injection, middleware, and best practices for building high-performance APIs. When to Use This Skill Starting new FastAPI projects from scratch Implementing async REST APIs with Python Building high-performance web services and microservices Creating async applications with PostgreSQL, MongoDB Setting up API projects with proper structure and testing Core Concepts 1. Project Structure Recommended Layout: 2. Dependency Injection FastAPI's built-in DI system using Depends: Database session management Authentication/authorization Shared business logic Configuration injection 3. Async Patterns Proper async/await usage: Async route handlers Async database operations Async background tasks Async middleware Detailed worked examples and patterns Detailed sections (starting with ## Implementation Patterns) live in references/details.md. Read that file when the navigation summary above is insufficient. Testing

How to use it

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

@skills wshobson/fastapi-templates

View the source on GitHub

Browse the @skills marketplace