Skip to main content
skill

fastapi-endpoint — Claude Code skill: what it does, how to install

Guides you through planning and coding async FastAPI endpoints with Pydantic v2 schemas, SQLAlchemy 2.0, auth checks, and pytest suites. Gathers requirements before writing code.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill web-development/fastapi-endpoint
Open on GitHub

What fastapi-endpoint does

This skill splits endpoint creation into four distinct phases. It begins by scanning your codebase to map existing routers, app entry files, and database session handling. The assistant only asks for new requirements once it understands your project structure.

Requirements are gathered through focused interview rounds. The skill clarifies your data fields, cursor or offset pagination, caching strategy, and authentication approach. After you approve the resulting plan, Claude Code generates Pydantic v2 validation schemas, database models, and route handlers.

The generated code strictly targets modern async stacks with SQLAlchemy 2.0 and Pydantic v2. In projects relying on legacy Pydantic v1 or synchronous database drivers, the output will break without manual refactoring.

What it helps with

  • plan REST endpoints through guided interview questions
  • generate Pydantic v2 schemas for CRUD operations and paginated responses
  • write async database queries using SQLAlchemy 2.0
  • wire authentication dependencies for JWT tokens or API keys
  • scaffold async route tests using pytest

Example prompts for the agent

  • Add a new CRUD endpoint for user orders to our FastAPI service
  • Build a paginated products endpoint with cursor navigation and JWT auth
  • Create a public analytics route with Cache-Control headers

How to install fastapi-endpoint

1claude-code-templates

npx claude-code-templates@latest --skill web-development/fastapi-endpoint

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill fastapi-endpoint -a claude-code

3Manually: put the files in place

~/.claude/skills/fastapi-endpoint/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/fastapi-endpoint/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about fastapi-endpoint

How to install fastapi-endpoint in Claude Code?

Run npx claude-code-templates@latest --skill web-development/fastapi-endpoint in your terminal. You can also run npx skills add davila7/claude-code-templates --skill fastapi-endpoint -a claude-code.

What does fastapi-endpoint do?

It interviews you about endpoint requirements, builds an implementation plan, and writes async FastAPI route handlers, Pydantic schemas, database queries, and pytest suites.

What dependencies does this skill expect?

The generated templates assume an async Python stack powered by FastAPI, Pydantic v2, SQLAlchemy 2.0, and pytest.

Similar skills

All skills for Backend and APIs →

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor