Migration safety

From saifoelloh/golang-best-practices-skill · View interactive version

Migration safety is an AI agent skill from the GitHub repository saifoelloh/golang-best-practices-skill. Database migration safety review for GORM + PostgreSQL. Use when writing or reviewing schema changes, AutoMigrate usage, ALTER TABLE statements, or index creation. Covers zero-downtime patterns, NOT NULL backfill, CONCURRENTLY indexes, idempotency, and rollback files.

How to use this skill

Skill file

Migration Safety

Expert-level review of database migration safety for production PostgreSQL deployments. Ensures zero-downtime schema changes, correct rollback capability, and idempotent migrations.

When to Apply

Use this skill when:

Zero-Downtime Migration Checklist

Before any production migration:

Rule Categories

| Priority | Count | Focus |

|---|---|---|

| Critical | 3 | AutoMigrate in production, NOT NULL backfill, missing rollback |

| High | 2 | CONCURRENTLY indexes, idempotent migrations |

| Medium | 1 | DROP COLUMN deprecation period |

Rules Covered (6 total)

Critical Issues (3)

High-Impact Patterns (2)

Medium Improvements (1)

Trigger Phrases

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.