SKILL

fastapi-endpoint

Plan and build production-ready FastAPI endpoints with async SQLAlchemy, Pydantic v2 models, dependency injection for auth, and pytest tests. Uses interview-driven planning to clarify data models, authentication method, pagination strategy, and caching before writing any code.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • FastAPI Endpoint Builder
  • When to use
  • Phase 1: Explore (Plan Mode)
  • Project structure
  • Existing patterns
  • Test patterns
  • Phase 2: Interview (AskUserQuestion)
  • Round 1: Core endpoint

Use this skill when you need to: Add new API endpoints to an existing FastAPI project Build CRUD operations with proper validation and error handling Set up authenticated endpoints with dependency injection Create async database queries with SQLAlchemy 2.0 Generate complete test coverage for API routes Enter plan mode. Before writing any code, explore the existing project to understand: Find the FastAPI app entry point (main.py, app.py, or app/init.py) Identify the router organization pattern (single file vs routers/ directory) Check for existing models/, schemas/, crud/, or services/ directories Look at pyproject.toml or requirements.txt for installed dependencies How are existing endpoints structured? (function-based vs class-based) What ORM is used? (SQLAlchemy 2.0 async, Tortoise, raw SQL, none) How is the database session managed? (Depends(getdb), middleware, other) What auth pattern exists? (OAuth2PasswordBearer, API key header, custom) Are there existing Pydantic base models or shared schemas? What response format is standard? (direct model, wrapped {"data": ..., "meta": ...}) Where do tests live? (tests/, test.py, test.py) What test client is used? (httpx AsyncClient, TestC

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
davila7/claude-code-templates
Source file
cli-tool/components/skills/web-development/fastapi-endpoint/SKILL.md
Fixed revision
21be197f100a12b8d0dd9a211cc244c8179f84d3
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:40.826Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.