fastapi-dev

Standardizes Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB Elink-ESB.

Updated Jan 17, 2026
One-click install
npx skills add https://github.com/linsomniac/smtphotel --skill fastapi-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fastapi-dev
Source: https://github.com/linsomniac/smtphotel/tree/main/.claude/skills/fastapi-dev
Command: npx skills add https://github.com/linsomniac/smtphotel --skill fastapi-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Speeds up building robust FastAPI endpoints by codifying consistent patterns for models, validation, error handling, authentication, and documentation.

Core Features & Use Cases

  • Pydantic Models: Always define request/response schemas in app/schemas/
  • Error Handling: Use error codes from esig-design.md Error Code Catalog
  • Authentication: Use get_current_user dependency for protected routes
  • Validation: Implement constraints from esig-design.md (e.g., name 1-255 chars)
  • Idempotency: Create endpoints accept Idempotency-Key header
  • Tests: Write success, validation error, and auth error test cases

Quick Start

Follow the checklist to implement or update an endpoint, then run tests to validate Pydantic models, error handling, and authentication patterns.

Frequently Asked Questions about fastapi-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize FastAPI endpoint development for consistent models and error handling?

To standardize FastAPI endpoint development, define Pydantic schemas in app/schemas/, use error codes from the design catalog, and apply the get_current_user dependency for protected routes.

Where should Pydantic models be placed in a FastAPI project for consistent API schemas?

Pydantic models for FastAPI API schemas should always be defined in the app/schemas/ directory to maintain consistent request and response validation structures across all endpoints.

How do I handle authentication and idempotency headers in FastAPI routes?

Handle FastAPI authentication using the get_current_user dependency for protected routes, and implement idempotency by accepting an Idempotency-Key header for create endpoints to prevent duplicate operations.

What is the best way to write tests for FastAPI validation and auth errors?

The best way to test FastAPI endpoints is to write success, validation error, and auth error test cases to verify Pydantic models, error handling, and authentication patterns work correctly.

Does FastAPI work with Pydantic for API request validation and error codes?

Yes, FastAPI works with Pydantic to implement validation constraints, and you can use designated error codes from the design catalog for consistent error handling across API routes.