home / skills / sickn33 / antigravity-awesome-skills / fastapi-templates
This skill helps you kickstart production-ready FastAPI projects with async patterns, dependency injection, and robust error handling.
npx playbooks add skill sickn33/antigravity-awesome-skills --skill fastapi-templatesReview the files below or copy the command above to add this skill to your agents.
---
name: fastapi-templates
description: 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.
---
# 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.
This skill generates production-ready FastAPI project templates focused on async patterns, dependency injection, and robust error handling. It provides a sane project layout, common middleware, and sensible defaults so you can start building scalable APIs quickly. Templates are optimized for high performance and easy testing.
The skill scaffolds a FastAPI project structure with async endpoints, dependency-injected components, middleware hooks, and centralized error handlers. It includes configurations for database clients, background tasks, and common integrations, plus sample tests and CI-friendly layouts. You receive clear instructions for wiring dependencies, running the app, and validating behavior in development and production.
Does the template include database integrations?
Yes—common patterns and configuration examples are provided for Postgres and MongoDB with async drivers and connection pooling.
Will this work with background tasks and long-running jobs?
Yes—templates include patterns for FastAPI BackgroundTasks and integrations for safely delegating long-running work outside request lifecycles.