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.
71
56%
Does it follow best practices?
Impact
100%
1.21xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./tests/ext_conformance/artifacts/agents-wshobson/api-scaffolding/skills/fastapi-templates/SKILL.mdProject structure and core initialization
api/v1/endpoints dir
100%
100%
core/ directory
100%
100%
schemas/ directory
100%
100%
services/ directory
100%
100%
repositories/ directory
0%
100%
Lifespan pattern
100%
100%
pydantic_settings import
100%
100%
.env config
100%
100%
lru_cache on settings
100%
100%
Async engine
100%
100%
expire_on_commit=False
100%
100%
get_db commit/rollback
100%
100%
CORS middleware
100%
100%
Async repository pattern and service layer
Generic BaseRepository
50%
100%
select() for queries
100%
100%
flush and refresh on write
100%
100%
exclude_unset on update
0%
100%
Async session in get_db
100%
100%
expire_on_commit=False
100%
100%
Service class with repository
100%
100%
Business logic in service
100%
100%
Routes use service not DB
100%
100%
Async route handlers
100%
100%
Async test infrastructure and JWT auth
httpx AsyncClient
100%
100%
In-memory SQLite URL
100%
100%
dependency_overrides
100%
100%
pytest.mark.asyncio
100%
100%
jose for JWT
100%
100%
bcrypt via passlib
100%
100%
Registration success test
100%
100%
Duplicate registration test
100%
100%
Login failure test
100%
100%
Auth protected endpoint test
100%
100%
47823e3
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.