with one click
database-migration-helper
Creates database migration files following project conventions for Prisma, Sequelize, Alembic, Knex, TypeORM, and other ORMs. Use when adding tables, modifying schemas, or when user mentions database changes.
Menu
Creates database migration files following project conventions for Prisma, Sequelize, Alembic, Knex, TypeORM, and other ORMs. Use when adding tables, modifying schemas, or when user mentions database changes.
| name | database-migration-helper |
| description | Creates database migration files following project conventions for Prisma, Sequelize, Alembic, Knex, TypeORM, and other ORMs. Use when adding tables, modifying schemas, or when user mentions database changes. |
| allowed-tools | Read, Grep, Glob, Write, Bash |
This skill helps you create database migration files that follow your project's ORM conventions and naming patterns.
First, identify which ORM or migration tool the project uses:
prisma/schema.prisma or @prisma/client in package.json.sequelizerc or sequelize-cli in package.jsonknexfile.js or knex in package.jsonormconfig.json or typeorm in package.jsonalembic.ini or alembic/ directorymanage.py and Django migrations in */migrations/db/migrate/ directoryflyway.conf or db/migration/liquibase.properties or changelog filesUse Glob to search for these indicator files.
Read existing migration files to understand:
Use Grep to find recent migrations: look in common directories like:
prisma/migrations/db/migrate/migrations/ or database/migrations/alembic/versions/Based on the detected ORM, create an appropriate migration file:
npx prisma migrate dev --name <description> ORprisma/migrations/<timestamp>_<name>/migration.sqlnpx sequelize-cli migration:generate --name <description>npx knex migrate:make <description>npm run typeorm migration:create src/migrations/<Name>alembic revision -m "<description>"python manage.py makemigrations<app>/migrations/rails generate migration <ClassName>Use consistent, descriptive names:
add_user_email_index, create_products_table, add_payment_status_to_ordersmigration1, update, fixFormat based on project patterns:
20231215120000_add_email_to_users001_create_users, 002_add_indexesAlways provide both directions when supported:
For ORMs that use reversible operations (Rails, some Sequelize), a single change method may be sufficient.
Creating Tables:
Altering Tables:
ADD COLUMN, DROP COLUMN, MODIFY COLUMNAdding Indexes:
idx_users_email, idx_orders_user_id_created_atData Migrations:
Before finalizing, check:
Suggest to the user:
Reference the templates in templates/ directory:
prisma-migration.sql - Prisma migration examplesequelize-migration.js - Sequelize migration exampleknex-migration.js - Knex migration exampletypeorm-migration.ts - TypeORM migration examplealembic-migration.py - Alembic migration examplerails-migration.rb - Rails migration exampletemplates/: Migration templates for various ORMsreference.md: Naming conventions and migration patternsProfessional frontend standards for building, scaffolding, extending, or reviewing any UI or frontend project — new or existing — even when standards aren't explicitly asked for. Keeps generated code consistent, reusable, secure, and production-quality. Framework-agnostic: React, Vue, Angular, Svelte, plain JS.
发布本地生成的 HTML、Markdown、TXT、PDF、Word 或 PPTX 到 ShareOne 平台,生成公网分享短链接;或者当用户提供 ShareOne 链接并要求下载文件、修改文件、拉取/处理评论时使用此技能。当用户要求“发布”、“分享”、“生成链接”、“上线”,或者“下载这个链接的文件”、“修改这个 ShareOne 链接的内容”、“拉取这个链接的评论”时,必须使用此技能。
Generate AI chat completions using GPT-4o through the verging.ai proxy API with streaming (SSE) and non-streaming response support.
Convert text to speech audio using OpenAI TTS-1-HD through the verging.ai proxy API. Supports multiple voices, playback speed control, and various audio output formats.
Generate AI images using DALL-E 3 or gpt-image-1 through the verging.ai proxy API. Supports standard and HD quality, multiple images per request, and returns CDN-hosted image URLs.
Analyze images using GPT-4o Vision through the verging.ai proxy API, supporting both image URL (JSON) and file upload (multipart) modes.