원클릭으로
new-migration
Scaffold a new PostgreSQL migration pair (up + down) with sequential numbering
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Scaffold a new PostgreSQL migration pair (up + down) with sequential numbering
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run local security checks (golangci-lint gosec, go vet) before pushing to catch issues before CI
Guided dependency upgrade workflow for Go or frontend packages with lockstep bumping and CI verification
Development discipline guardrails for Go and Angular work. Use when implementing features, fixing bugs, or writing validation code. Enforces validation-first development, research escalation after repeated failures, real data testing, and comprehensive failure reporting.
Run full pre-deployment validation for both frontend and backend
Scaffold a new Angular standalone component following project conventions
| name | new-migration |
| description | Scaffold a new PostgreSQL migration pair (up + down) with sequential numbering |
| disable-model-invocation | true |
Create a new PostgreSQL migration file pair following project conventions.
/new-migration <description>
Example: /new-migration add_user_preferences
Find the current highest migration number in internal/migrations/sql/:
ls internal/migrations/sql/*.up.sql | sort -t_ -k1 -n | tail -1
Calculate the next sequential number (current max + 1).
Convert the description argument to lowercase snake_case.
Create two files:
internal/migrations/sql/{N}_{description}.up.sqlinternal/migrations/sql/{N}_{description}.down.sqlPopulate the UP migration with a commented template:
-- Migration {N}: {description}
-- TODO: Add your UP migration SQL here
Populate the DOWN migration with a commented template:
-- Migration {N}: {description} (rollback)
-- TODO: Add your DOWN migration SQL here (must fully reverse the UP migration)
Report the created files and remind:
MCPServerLog, project_id)mise run migrate to apply, mise run purge to roll backhack/validate-migrations.sh to verify pairing and sequencing.up.sql and .down.sqlREFERENCES TableName(column_name)idx_{table}_{column} or fk_{table}_{column}