Agent skill

migrate-new

Create a new database migration for all supported engines

Stars 286
Forks 13

Install this agent skill to your Project

npx add-skill https://github.com/kalbasit/ncps/tree/main/.agent/skills/migrate-new

SKILL.md

Create New Migration

  1. Determine the migration name (e.g., add_users_table).

  2. Run the creation command for each supported engine. DO NOT use the --url flag:

bash
dbmate --migrations-dir db/migrations/sqlite new "your_migration_name_here"
dbmate --migrations-dir db/migrations/postgres new "your_migration_name_here"
dbmate --migrations-dir db/migrations/mysql new "your_migration_name_here"
  1. Edit the newly created files in db/migrations/<engine>/.

  2. Follow the dbmate skill (.agent/skills/dbmate/SKILL.md) for rules on writing migrations (transaction handling, idempotent SQL, etc.).

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results