
FastAPI Project Templates
Scaffold production-style FastAPI backend projects with async patterns and tests
- Repository
- wshobson/agents
- Stars
- 42,095
- Licence
- MIT
- Files
- 2 files
What it does
When installed, the agent knows a recommended folder layout and coding patterns for building FastAPI web APIs in Python, including async database access, dependency injection, authentication setup, and pytest-based tests. Asked to start a new backend, it can generate a project structure and example code that follows these conventions instead of improvising one. The skill itself is a set of instructions and examples; it does not create files by running code on its own.
Great for
- Python developers starting a new FastAPI backend or REST API
- Teams wanting a consistent project layout with services, repositories and schemas separated
- Developers who want a starting point for async PostgreSQL or SQLite-backed APIs with tests
Skip it if
- Non-programmers, since the output is Python backend code that needs a developer to run and maintain it
- Projects not using FastAPI or Python, where the patterns will not apply
- Production deployments without review: the templates are examples and security-sensitive parts such as authentication need careful human review
Try asking
- “Set up a new FastAPI project with users, auth and items endpoints using async SQLAlchemy”
- “Create a FastAPI project structure with a services and repositories layer for my PostgreSQL app”
- “Write pytest tests for my FastAPI endpoints using httpx and an in-memory SQLite database”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 2 original files, the MIT licence and an attribution note.
fastapi-templates.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip fastapi-templates.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip fastapi-templates.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Ask the agent to adapt the layout to your existing project rather than creating a new one from scratch.
- Review generated authentication and password handling code carefully before using it with real users.
- Pin package versions and run the generated tests to confirm the examples work with your library versions.
What's inside
- references/details.md
- SKILL.md
Redistributed unmodified from wshobson/agents under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.