Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.
96
93%
Does it follow best practices?
Impact
100%
1.81xAverage score across 3 eval scenarios
Passed
No known issues
Authentication patterns and HTTP status codes
Optional auth on list
12%
100%
Optional auth on get
12%
100%
Required auth on create
12%
100%
Required auth on update
12%
100%
Required auth on delete
12%
100%
POST returns 201
100%
100%
DELETE returns 204
100%
100%
PATCH for update
0%
100%
404 on missing resource
100%
100%
Auth imports from correct module
0%
100%
response_model on GET endpoints
0%
100%
Router file structure and project integration
Router in correct directory
100%
100%
Router prefix /api
100%
100%
Plural resource tag
100%
100%
Three Pydantic model variants
100%
100%
Models in correct module path
100%
100%
Service class created
100%
100%
Service injected via Depends
100%
100%
Service imported from correct path
100%
100%
Router mounted in main.py
100%
100%
Auth from app.auth.jwt
100%
100%
User from app.models.user
100%
100%
List endpoint pagination and response models
limit default 50
0%
100%
limit ge=1
0%
100%
limit le=100
0%
100%
offset default 0
0%
100%
offset ge=0
0%
100%
List response_model list type
0%
100%
Single item response_model
100%
100%
Optional auth on list
50%
100%
Optional auth on get
50%
100%
Query import used
100%
100%
Pagination documented
20%
100%
f698f69
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.