From milky-kit
Database operations — create migrations, modify schema, check migration status, and manage PostgreSQL tables (SeaORM). Use when adding/changing tables, fields, indexes, constraints, or working with migrations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/milky-kit:database-seaorm <action> (e.g. "add a tasks table", "add field to agent", "create migration for reminders", "status")<action> (e.g. "add a tasks table", "add field to agent", "create migration for reminders", "status")The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Perform database schema and migration operations for **$ARGUMENTS**.
Perform database schema and migration operations for $ARGUMENTS.
DATABASE_URLapps/db/src/migrator/ implementing MigrationTraitcd apps/db
sea-orm-cli migrate generate <name>
Register the migration in src/migrator/mod.rs.
cargo run -p db -- migrate
sea-orm-cli generate entity \
--database-url "$DATABASE_URL" \
--output-dir packages/infrastructure/src/db/entities \
--with-serde both \
--date-time-crate chrono
packages/domain/src/models/packages/domain/src/repositories/packages/infrastructure/src/db/repositories/ using SeaORMcargo check -p infrastructure
cargo nextest run -p infrastructure
Never edit an existing migration file. Create a new migration that alters the table.
IF NOT EXISTS for idempotencycreated_at and updated_atCHECK constraints for enum-like fieldssea-orm-cli migrate generatemod.rscargo check passesnpx claudepluginhub milkyskies/milky-kit --plugin milky-kitCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.