원클릭으로
migration-gen
Generates a database migration file for schema changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generates a database migration file for schema changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyzes the current session's token usage, pinpoints where tokens were wasted, and produces concrete optimization actions
Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
Adds caching to expensive operations - Redis, in-memory, HTTP cache headers
Staged değişiklikleri analiz edip Conventional Commits formatında commit mesajı oluşturur
Reports cyclomatic complexity hotspots and refactoring suggestions
Finds unused functions, variables, exports, and dependencies across the codebase
| name | migration-gen |
| description | Generates a database migration file for schema changes |
| argument-hint | <description-of-change> |
| user-invocable | true |
| allowed-tools | Read Glob Bash Edit |
| effort | low |
Change: $ARGUMENTS
cat package.json | grep -E '"prisma"|"drizzle"|"typeorm"|"knex"|"sequelize"|"migrate"'
ls prisma/ migrations/ db/migrations/ 2>/dev/null | head -10
cat prisma/schema.prisma 2>/dev/null || ls migrations/ 2>/dev/null | tail -3 | xargs -I{} cat migrations/{}
Generate the migration based on the requested change:
For Prisma: generate migration name and schema change, then ask to run:
npx prisma migrate dev --name $ARGUMENTS
For raw SQL: generate up/down migration files.
Always generate a down migration (rollback).
Flag any changes that require a deployment strategy (e.g., add-then-backfill, not rename directly).