Skip to main content
skill CX Codex

database-table-creator — Claude Code skill for database tables

This skill guides an end-to-end table addition, from a SQL migration to Kotlin repository tests. Use it when a project needs a new table or entity.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add c0x12c/ai-toolkit --skill database-table-creator -a claude-code
Open on GitHub

What database-table-creator does

The workflow covers a SQL migration, an Exposed table object, a Kotlin entity, a repository interface and implementation, factory bean registration, and tests. It has you run the migration with ./gradlew :app:module-repository:flywayMigrate, then test with ./gradlew test.

Schema rules call for TEXT rather than VARCHAR, forbid foreign key constraints, and require queries to exclude soft-deleted records. Tables need timestamp fields, partial indexes, and an updated_at trigger; Kotlin table objects extend UUIDTable, while entities implement Entity<Instant>. Repository writes go through db.primary and reads through db.replica.

Deletion is soft-only: records are marked through deletedAt, so a hard-delete implementation would conflict with the skill's rules. Kotlin templates and examples are referenced in kotlin-templates.md and examples.md.

What it helps with

  • create a SQL migration for a new table
  • map an Exposed table to a Kotlin entity
  • add a repository that supports soft deletion
  • register a factory bean
  • test repository behavior

Example prompts for the agent

  • Add an orders table and build its migration, Kotlin code, and tests.
  • Create a Customer entity with a repository that follows the project's soft-delete rules.
  • Set up the Exposed table, factory bean, and repository tests for a new table.

How to install database-table-creator

1Skills CLI (Vercel)

npx skills add c0x12c/ai-toolkit --skill database-table-creator -a claude-code

2Manually: put the files in place

~/.claude/skills/database-table-creator/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/database-table-creator/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about database-table-creator

How do I install database-table-creator in Claude Code?

Run npx skills add c0x12c/ai-toolkit --skill database-table-creator -a claude-code. The skill file is located at ~/.claude/skills/database-table-creator/SKILL.md.

What does database-table-creator do?

It guides creation of a SQL migration and matching Kotlin code: an Exposed table, entity, repository, dependency registration, and tests.

How does the skill handle deleted records?

It requires soft deletion: mark records through deletedAt and filter them out of queries. Hard deletion conflicts with its rules.

Similar skills

All skills for Data and databases →

From the same set24

investor-outreach Draft investor emails, introduction requests, follow-ups, and updates with help from this skill. Use it when reaching out to an angel, VC, or accelerator. CX Codex +1 ★ 109repo stars investor-materials A skill for producing investor-facing documents: a pitch deck, one-pager, memo and financial model. Useful when the numbers and the story have to line up across every file. CX Codex +1 ★ 109repo stars design-workflow This skill guides UI prototyping and design reviews around a project’s existing design system. Use it when building components, screens, or responsive layouts. CX Codex +1 ★ 109repo stars design-intelligence Bootstraps a design system from scratch: palette, type scale, spacing, radii and a component inventory in three formats. CX Codex +1 ★ 109repo stars database-patterns Hands your agent a fixed set of database rules: column types, UUID keys, soft deletes and migration templates. Useful when it writes tables or repositories. CX Codex +1 ★ 109repo stars content-engine Turns an article, demo, or raw thought into tailored posts for X, LinkedIn, YouTube, and newsletters. Enforces platform rules and sharp hooks. CX Codex +1 ★ 109repo stars competitive-teardown Research a named competitor or compare several products, businesses, and user complaints. Use the skill before building or preparing a competition slide. CX Codex +1 ★ 109repo stars ci-cd-patterns A skill with GitHub Actions templates, PR checks and deployment steps. Handy when CI breaks or you are wiring it up from scratch. CX Codex +1 ★ 109repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor