npx skills add ...
npx skills add c0x12c/ai-toolkit --skill database-table-creator
Creates database table with full Kotlin synchronization (SQL migration → Table → Entity → Repository → Tests). Use when adding new database tables or entities.
npx skills add c0x12c/ai-toolkit --skill database-table-creator
Creates complete database table implementation with SQL migration, Kotlin code, and comprehensive tests.
Generates:
SQL Requirements:
WHERE deleted_at IS NULLWHERE deleted_at IS NOT NULLKotlin Requirements:
UUIDTable (NOT Table)Entity<Instant>deletedAt.isNull()!! operators (forbidden by pre-commit hooks)Location: database-migration/sql/{number}-{description}.sql
Critical:
Verify success before proceeding.
See
kotlin-templates.mdfor all Kotlin code templates (Table, Entity, Repository, Factory Bean, Tests).
Follow this order:
UUIDTable, use text() not varchar())Entity<Instant>)db.primary for writes, db.replica for reads, ALWAYS filter deletedAt.isNull())./gradlew testSee
examples.mdfor common mistakes and anti-patterns.
✅ SQL migration runs successfully ✅ Uses TEXT (not VARCHAR) ✅ NO foreign key constraints ✅ All indexes have WHERE clause ✅ Kotlin Table extends UUIDTable ✅ Entity implements Entity ✅ All queries filter deletedAt.isNull() ✅ No !! operators ✅ Soft delete only (no hard delete) ✅ Factory bean registered ✅ All 7+ tests pass
./gradlew :app:module-repository:flywayMigrate