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-model

SKILL.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

  1. Read existing models for conventions (Base class, naming, mixins).
  1. Generate the SQLAlchemy model:
  • Use appropriate column types
  • Add indexes on frequently queried columns
  • Set nullable=False where data is required
  • Add relationship definitions with back_populates
  • Add __repr__ for debugging
  1. Generate Pydantic schemas:
  • Base schema with shared fields
  • Create schema for POST requests
  • Response schema with model_config = ConfigDict(from_attributes=True)
  • Update schema with all fields optional (field: type | None = None)
  • Use Annotated[type, Field(...)] for validation
  • Use @field_validator (v2 syntax)
  1. 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

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-model/badge)](https://verified-skill.com/skills/roninforge/roninforge-fastapi/fastapi-model)

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