skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / API & Integrations / Fastapi Templates Skill by @wshobson
The skill is the plugins/api-scaffolding/skills/fastapi-templates folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Starter patterns for production FastAPI projects: layout, dependency injection, async code and error handling.
Gives a folder structure, shows dependency injection, async usage and separate requirements files for runtime and development. A practical scaffold for teams who want consistent conventions from day one.
The original SKILL.md is organised into these sections:
Written and maintained by @wshobson. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# 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 │ └── item.py …
Excerpt only, quoted from the author's repository. Open the repository for the complete file.