$npx skillfedfor your agent

fastapi-templates

fastapi-templates provides structured blueprints for launching FastAPI applications with async/await patterns, built-in dependency injection, and organized layouts for routes, models, and business logic. Start new projects with proper separation of concerns and testing infrastructure already in place.

fastapi-templates sets up new FastAPI projects with production-ready structure, async patterns, and dependency injection.

AI-generated summary based on this skill's SKILL.md

38,308 4,097 MITupdated by wshobson

Decision gist · record as of 2026-07-22

fastapi-templates sets up new FastAPI projects with production-ready structure, async patterns, and dependency injection. fastapi-templates provides structured blueprints for launching FastAPI applications with async/await patterns, built-in dependency injection, and organized layouts for routes, models, and business logic. Start new projects with proper separation of concerns and testing infrastructure already in place.

manual: git clone https://github.com/wshobson/agents → cp -r agents/plugins/api-scaffolding/skills/fastapi-templates ~/.claude/skills/fastapi-templates
plugins/api-scaffolding/skills/fastapi-templates/SKILL.md · version 7029069e

Use it when

  • fastapi-templates demonstrates async/await patterns throughout its blueprints, including async database queries, async middleware.
  • Yes.

Verify before relying

Read SKILL.md below before installing (2 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

wshobson/agents/fastapi-templates · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I structure a FastAPI app using fastapi-templates?

fastapi-templates provides organized project layouts that separate routes, models, and business logic into distinct modules. The templates include proper directory structures with configuration management, database connections, and middleware setup, so you can start building with best practices already in place rather than organizing from scratch.

What async patterns does fastapi-templates support?

fastapi-templates demonstrates async/await patterns throughout its blueprints, including async database queries, async middleware, and proper event loop handling. The templates show how to leverage FastAPI's native async support for high-performance operations and include examples of async dependency injection for managing resources efficiently.

Can fastapi-templates help me build microservices?

Yes. fastapi-templates includes setup patterns for microservices and high-performance web services, with examples of API versioning, service-to-service communication, and modular architecture. The templates support building scalable services that can be deployed independently while maintaining clean separation of concerns.

Is fastapi-templates production-ready out of the box?

fastapi-templates provides production-ready structure with error handling, testing infrastructure using pytest, middleware configuration, and proper logging setup. While you'll customize business logic for your use case, the template gives you a solid foundation for deployment with security and reliability patterns already configured.

How does fastapi-templates implement dependency injection?

fastapi-templates demonstrates FastAPI's built-in dependency injection system through practical examples in its templates. You'll find patterns for managing database sessions, authentication, configuration, and other dependencies, showing how to inject them cleanly into route handlers and business logic without tight coupling.

What database support does fastapi-templates include?

fastapi-templates includes templates for async database integration, with examples for PostgreSQL and other databases using async drivers. The templates show repository patterns and async ORM setup, allowing you to build data layers that work efficiently with FastAPI's async capabilities.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

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:

``` app/ ├── api/ # API routes │ ├── v1/ │ │ ├── endpoints/ │ │ │ ├── users.py │ │ │ ├── auth.py │ │ │ └── items.py │ │ └── router.py │ └── dependencies.py # Shared dependencies ├── core/ # Core configuration │ ├── config.py │ ├── security.py │ └── database.py ├── models/ # Database models │ ├── user.py │ └──

(truncated - see the full file via the links below)

File tree — 2 files
plugins/api-scaffolding/skills/fastapi-templates/SKILL.md
plugins/api-scaffolding/skills/fastapi-templates/references/details.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Set up a new FastAPI project with production-ready structure”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

fastapi-templates
by HermeticOrmus · HermeticOrmus/LibreUIUX-Claude-Code

This skill provides structured project templates for FastAPI applications, covering directory organization, configuration management, and async database integration. It includes patterns for dependency injection, CRUD repositories, and service layers to establish a scalable foundation for backend API development.

MITupdated May 2026
★ 86repo stars
supabase-python
by alinaqi · alinaqi/maggy

This skill teaches FastAPI development using Supabase for authentication and storage, paired with SQLAlchemy or SQLModel for database operations. It covers project structure, async session management, JWT validation, and API routes for signup and signin workflows.

MITupdated Jul 2026
★ 703repo stars
fastapi-patterns
by affaan-m · affaan-m/ECC

Master production-grade FastAPI development through organized project layouts, Pydantic v2 validation, dependency injection patterns, and async request handling. This skill covers authentication, authorization, transactional service layers, and testing strategies to build scalable applications.

MITupdated Jul 2026
★ 234,207repo stars
Fastapi Coder
by majesticlabs-dev · majesticlabs-dev/majestic-marketplace

FastAPI Coder generates production-grade API endpoints using async/await, type-safe Pydantic models, and dependency injection. It structures projects with clear separation between routes, services, and repositories, plus patterns for authentication, testing, and database integration.

no license declared → metadata onlyupdated May 2026
★ 44repo stars
Fastapi Expert
by martinholovsky · martinholovsky/claude-skills-generator

FastAPI Expert provides deep guidance on building production-grade Python web APIs with async/await, type-safe validation, and security best practices. Get help implementing authentication systems, optimizing database operations, and defending against OWASP vulnerabilities.

Unlicenseupdated Dec 2025
★ 45repo stars
Pytest Patterns
by hieutrtr · hieutrtr/ai1-skills

Pytest Patterns teaches structured testing for Python backends using pytest, httpx, and factory_boy. Learn to organize tests across unit and integration layers, build reusable fixtures with proper scoping, seed test data with factories, and test async FastAPI endpoints. Covers mocking, parametrization, and conftest hierarchy—but skips frontend and E2E testing.

no license declared → metadata onlyupdated Feb 2026
★ 8repo stars

More skills Fastapi (unlicensed) · python-fastapi (MIT) · sqlalchemy (MIT) · Pytest Async Testing (unlicensed)

Tags
api-scaffoldingasync-frameworkbackend-starterlayered-architecturepython-web-dev