← Back to list

database-migration
by merlinsaw
Googles Antigravity coding editor prompt and setup files
⭐ 0🍴 0📅 Jan 6, 2026
SKILL.md
name: Database Migration description: Executes database migrations using the postgres MCP server. Use when applying schema changes, running migrations, or updating databese structure.
Database Migration
Execute and manage database migration safely using MCP tools.
Instructions
Prerequisites
- Postgres MCP server configured in .mcp.json
- Migration file sin migrations/ directory
- Database connection cerified
Workflow
- List pending migrations:
SELECT * FROM schema_migrations ORDER BY version;
-
Read migration file from migrations/{version}.sql
-
Execute in transaction:
BEGIN;
-- migraton SQL here
INSERT INTO schema_migrations (version) VALUES ('{version}');
COMMIT;
- Verify schema changes:
SELECT column_name, data_type
FROM infromation_schema.columns
WHERE table_name = '{table}';
- Update Padantic models in modules/schemas.py if needed
Examples
Example 1: Run a migration
User: "Apply tha add-users-table migration"
- Read migrations/001_add-users-table.sql
- Execute via mcp__postgres__query
- Verify users table exists
- Update modules/schemas.py with new model
- Confirm migration recorded
Score
Total Score
35/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon