backend-api-routes
CommunityStandardize FastAPI routes with DI and validation
Authorayesha-aziz123
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill guides teams to implement FastAPI routes with consistent structure, DI, validation, and security, reducing ad-hoc patterns and confusion.
Core Features & Use Cases
- Standard Route Structure: all API routes live under the /api prefix and use APIRouter with proper tags.
- Dependency Injection for DB: routes inject a database session via Depends(get_db).
- JWT Protection: protected endpoints use verify_jwt_token to ensure user authentication.
- Validation with Pydantic: request and response schemas enforce strict data contracts.
- Service Layer Delegation: routes delegate business logic to services for maintainability.
- Error Handling & Status Codes: consistent HTTP status codes and exception handling.
Quick Start
Use the backend-api-routes skill to standardize a new /api/users/{user_id}/profiles endpoint with DI, JWT protection, and request/response validation.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: backend-api-routes Download link: https://github.com/ayesha-aziz123/Hackathon_II/archive/main.zip#backend-api-routes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.