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-endpointSKILL.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
- Read the project to understand conventions: database setup (sync/async SQLAlchemy), existing schemas, router structure, auth pattern.
- Generate these components:
Pydantic schemas (in schemas/):
Createmodel (request body for POST)Updatemodel (request body for PATCH, all fields optional)Responsemodel (withmodel_config = ConfigDict(from_attributes=True))- Use
Annotated[type, Field(...)]for constraints (notconstr/conint) - Use
@field_validator(not@validator) - Explicit field list (never auto-generate from ORM)
Router (in routers/):
- Use
APIRouterwithprefixandtags response_modelon every endpointstatus_code=201on POST- Async endpoints with
awaitfor all DB operations selectinload/joinedloadfor eager loading relationships- HTTPException for error cases
- Dependency injection with
Annotated[type, Depends()]
Include router in main app
- All database access must use the async session dependency pattern.
- All endpoints must have
response_modelset. - Use
@field_validatorand@model_validator(Pydantic v2), never@validatoror@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
- SKILL.md in the repositoryCheckingskills/fastapi-endpoint/SKILL.md
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
[](https://verified-skill.com/skills/roninforge/roninforge-fastapi/fastapi-endpoint)