roninforge/roninforge-fastapi/fastapi-endpoint

Claude Code and agent skill by roninforge/roninforge-fastapi

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate a complete FastAPI CRUD endpoint with Pydantic v2 schemas, async SQLAlchemy queries, dependency injection, response models, and error handling.

Install

npx vskill@latest install roninforge/roninforge-fastapi/fastapi-endpoint

SKILL.md

The same SKILL.md was published earlier as roninforge/roninforge-fastapi/fastapi-endpoint.

Generate FastAPI Endpoint

When to Use

Use this skill when creating a new API endpoint or resource with full CRUD operations.

Instructions

  1. Read the project to understand conventions: database setup (sync/async SQLAlchemy), existing schemas, router structure, auth pattern.
  1. Generate these components:

Pydantic schemas (in schemas/):

  • Create model (request body for POST)
  • Update model (request body for PATCH, all fields optional)
  • Response model (with model_config = ConfigDict(from_attributes=True))
  • Use Annotated[type, Field(...)] for constraints (not constr/conint)
  • Use @field_validator (not @validator)
  • Explicit field list (never auto-generate from ORM)

Router (in routers/):

  • Use APIRouter with prefix and tags
  • response_model on every endpoint
  • status_code=201 on POST
  • Async endpoints with await for all DB operations
  • selectinload/joinedload for eager loading relationships
  • HTTPException for error cases
  • Dependency injection with Annotated[type, Depends()]

Include router in main app

  1. All database access must use the async session dependency pattern.
  2. All endpoints must have response_model set.
  3. Use @field_validator and @model_validator (Pydantic v2), never @validator or @root_validator.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/roninforge/roninforge-fastapi/fastapi-endpoint/badge)](https://verified-skill.com/skills/roninforge/roninforge-fastapi/fastapi-endpoint)

Something wrong with this skill or its page? Tell us.