Tooluck logoTooluck
SKILL.md

fastapi-templates

Agent skill fromwshobson/agents

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.

How to install fastapi-templates

install fastapi-templates
# install the agents pack with the skills CLI
npx skills add wshobson/agents

# or add only this skill to Claude Code: copy the folder

plugins/api-scaffolding/skills/fastapi-templates/

# into

~/.claude/skills/fastapi-templates/ (all projects)

.claude/skills/fastapi-templates/ (one project)

plugins/api-scaffolding/skills/fastapi-templates/SKILL.md

MITFull file
1# FastAPI Project Templates
2
3Production-ready FastAPI project structures with async patterns, dependency injection, middleware, and best practices for building high-performance APIs.
4
5## When to Use This Skill
6
7- Starting new FastAPI projects from scratch
8- Implementing async REST APIs with Python
9- Building high-performance web services and microservices
10- Creating async applications with PostgreSQL, MongoDB
11- Setting up API projects with proper structure and testing
12
13## Core Concepts
14
15### 1. Project Structure
16
17**Recommended Layout:**
18
19```
20app/
21├── api/ # API routes
22│ ├── v1/
23│ │ ├── endpoints/
24│ │ │ ├── users.py
25│ │ │ ├── auth.py
26│ │ │ └── items.py
27│ │ └── router.py
28│ └── dependencies.py # Shared dependencies
29├── core/ # Core configuration
30│ ├── config.py
31│ ├── security.py
32│ └── database.py
33├── models/ # Database models
34│ ├── user.py
35│ └── item.py
36├── schemas/ # Pydantic schemas
37│ ├── user.py
38│ └── item.py
39├── services/ # Business logic
40│ ├── user_service.py
41│ └── auth_service.py
42├── repositories/ # Data access
43│ ├── user_repository.py
44│ └── item_repository.py
45└── main.py # Application entry
46```
47
48### 2. Dependency Injection
49
50FastAPI's built-in DI system using `Depends`:
51
52- Database session management
53- Authentication/authorization
54- Shared business logic
55- Configuration injection
56
57### 3. Async Patterns
58…

Excerpt shown under the repository's MIT license.

More skills in agents

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates