Agent skill · software engineering · aiskillstore

fastapi-router-py

Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.

Why this skill is useful

Provides a structured template for creating FastAPI routers with specific patterns for authentication and response models that the AI wouldn't reliably generate on its own.

What it needs

About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

FastAPI Router Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes. Quick Start Copy the template from assets/template.py and replace placeholders: {{ResourceName}} → PascalCase name (e.g., Project) {{resourcename}} → snakecase name (e.g., project) {{resourceplural}} → plural form (e.g., projects) Authentication Patterns Response Models HTTP Status Codes Integration Steps 1. Create router in src/backend/app/routers/ 2. Mount in src/backend/app/main.py 3. Create corresponding Pydantic models 4. Create service layer if needed 5. Add frontend API functions When to Use This skill is applicable to execute the workflow or actions described in the overview. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment-specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/fastapi-router-py

View the source on GitHub

Browse the @skills marketplace