ワンクリックで
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}