sqlmodel-expert
CommunityMaster SQLModel patterns & Alembic migrations.
Authormuhammadwaheedairi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables building robust SQLModel data models and managing production-grade migrations with Alembic, smoothing the path from prototype to stable schemas.
Core Features & Use Cases
- Advanced modeling patterns: one-to-many, many-to-many, and self-referential relationships with validations and mixins.
- Comprehensive migrations and data migrations: using Alembic, zero-downtime strategies, and data backfills.
- Practical templates and references: sample models, migration scripts, and best practices to accelerate real-world projects.
Quick Start
Install required tooling and scaffold your project:
- Create a Python virtual environment and install: pip install sqlmodel alembic
- Initialize Alembic: alembic init alembic
- Create and apply migrations as you evolve your SQLModel models:
- Modify your models, then run ./scripts/migrate.sh create "description"
- Upgrade to head: alembic upgrade head
- Initialize the database with the included script: python scripts/init_db.py --url postgresql://user:pass@localhost/db
Dependency Matrix
Required Modules
sqlmodel
Components
scriptsreferencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sqlmodel-expert Download link: https://github.com/muhammadwaheedairi/the-evolution-of-todo/archive/main.zip#sqlmodel-expert Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.