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.

31,392 stars
Complexity: medium

About this skill

This skill empowers AI agents to rapidly generate structured, production-ready FastAPI projects. It leverages best practices for asynchronous operations, integrates robust dependency injection, and includes comprehensive error handling mechanisms. Designed for building high-performance web services and microservices, it provides a solid foundation for new backend API projects, allowing for quick setup with predefined structures, including options for databases like PostgreSQL and MongoDB, and integrated testing configurations. It ensures the generated projects adhere to modern Python development standards.

Best use case

Scaffolding new FastAPI projects from scratch; building high-performance async REST APIs and microservices; setting up backend API projects with best practices.

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.

A new, well-structured FastAPI project directory with boilerplate code configured for production-readiness, including async patterns, dependency injection, error handling, and potentially database integrations (e.g., PostgreSQL, MongoDB), ready for further development.

Practical example

Example input

Create a FastAPI project for a user management API, including PostgreSQL integration and authentication boilerplate.

Example output

A directory named `user-management-api` containing a complete FastAPI project structure. This includes `main.py` with basic async routes, `database.py` configured for PostgreSQL, dependency injection setup, error handling middleware, an authentication module, and a `tests/` directory with initial test cases.

When to use this skill

  • When starting a new FastAPI project and requiring a pre-configured, production-ready structure. Ideal for developing async REST APIs, high-performance web services, or microservices with built-in patterns for dependency injection, middleware, error handling, and database integration (e.g., PostgreSQL, MongoDB). Use this skill to jumpstart development and ensure adherence to best practices.

When not to use this skill

  • The `SKILL.md` explicitly mentions a 'Do not use this skill when' section, which is truncated in the provided excerpt. However, generally, it would not be suitable when modifying an existing FastAPI project, when the project is not based on FastAPI, or when very specific, non-standard project structures are required that fall outside the provided templates.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/fastapi-templates/SKILL.md --create-dirs "https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/plugins/antigravity-awesome-skills-claude/skills/fastapi-templates/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/fastapi-templates/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How fastapi-templates Compares

Feature / Agentfastapi-templatesStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexitymediumN/A

Frequently Asked Questions

What does this skill do?

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.

Which AI agents support this skill?

This skill is designed for Claude.

How difficult is it to install?

The installation complexity is rated as medium. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# FastAPI Project Templates

Production-ready FastAPI project structures with async patterns, dependency injection, middleware, and best practices for building high-performance APIs.

## Use this skill when

- 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

## Do not use this skill when

- The task is unrelated to fastapi project templates
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.

## Resources

- `resources/implementation-playbook.md` for detailed patterns and examples.

Related Skills

fastapi-router-py

31392
from sickn33/antigravity-awesome-skills

Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.

Code GenerationClaude

new-rails-project

31392
from sickn33/antigravity-awesome-skills

Create a new Rails project

Code GenerationClaude

makepad-widgets

31392
from sickn33/antigravity-awesome-skills

Version: makepad-widgets (dev branch) | Last Updated: 2026-01-19 > > Check for updates: https://crates.io/crates/makepad-widgets

Code GenerationClaude

makepad-splash

31392
from sickn33/antigravity-awesome-skills

CRITICAL: Use for Makepad Splash scripting language. Triggers on: splash language, makepad script, makepad scripting, script!, cx.eval, makepad dynamic, makepad AI, splash 语言, makepad 脚本

Code GenerationClaude

makepad-dsl

31392
from sickn33/antigravity-awesome-skills

CRITICAL: Use for Makepad DSL syntax and inheritance. Triggers on: makepad dsl, live_design, makepad inheritance, makepad prototype, "<Widget>", "Foo = { }", makepad object, makepad property, makepad DSL 语法, makepad 继承, makepad 原型, 如何定义 makepad 组件

Code GenerationClaude

javascript-typescript-typescript-scaffold

31392
from sickn33/antigravity-awesome-skills

You are a TypeScript project architecture expert specializing in scaffolding production-ready Node.js and frontend applications. Generate complete project structures with modern tooling (pnpm, Vite, N

Code GenerationClaude

frontend-ui-dark-ts

31392
from sickn33/antigravity-awesome-skills

A modern dark-themed React UI system using Tailwind CSS and Framer Motion. Designed for dashboards, admin panels, and data-rich applications with glassmorphism effects and tasteful animations.

Code GenerationClaude

frontend-mobile-development-component-scaffold

31392
from sickn33/antigravity-awesome-skills

You are a React component architecture expert specializing in scaffolding production-ready, accessible, and performant components. Generate complete component implementations with TypeScript, tests, s

Code GenerationClaude

frontend-dev-guidelines

31392
from sickn33/antigravity-awesome-skills

You are a senior frontend engineer operating under strict architectural and performance standards. Use when creating components or pages, adding new features, or fetching or mutating data.

Code GenerationClaude

fp-backend

31392
from sickn33/antigravity-awesome-skills

Functional programming patterns for Node.js/Deno backend development using fp-ts, ReaderTaskEither, and functional dependency injection

Code GenerationClaudeChatGPTGemini

dotnet-backend

31392
from sickn33/antigravity-awesome-skills

Build ASP.NET Core 8+ backend services with EF Core, auth, background jobs, and production API patterns.

Code GenerationClaude

core-components

31392
from sickn33/antigravity-awesome-skills

Core component library and design system patterns. Use when building UI, using design tokens, or working with the component library.

Code GenerationClaude