roninforge/roninforge-fastapi/fastapi-model
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 SQLAlchemy model with matching Pydantic v2 schemas for FastAPI. Includes relationships, indexes, and the correct from_attributes configuration.
Install
npx vskill@latest install roninforge/roninforge-fastapi/fastapi-modelSKILL.md
The same SKILL.md was published earlier as roninforge/roninforge-fastapi/fastapi-model.
Generate SQLAlchemy Model + Pydantic Schemas
When to Use
Use this skill when creating a new database model with its Pydantic schemas for a FastAPI project.
Instructions
- Read existing models for conventions (Base class, naming, mixins).
- Generate the SQLAlchemy model:
- Use appropriate column types
- Add indexes on frequently queried columns
- Set
nullable=Falsewhere data is required - Add relationship definitions with
back_populates - Add
__repr__for debugging
- Generate Pydantic schemas:
Baseschema with shared fieldsCreateschema for POST requestsResponseschema withmodel_config = ConfigDict(from_attributes=True)Updateschema with all fields optional (field: type | None = None)- Use
Annotated[type, Field(...)]for validation - Use
@field_validator(v2 syntax)
- Generate the Alembic migration command:
``bash alembic revision --autogenerate -m "add <model_name> table" alembic upgrade head ``
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-model/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-model)