Skill / SKILL.md

Pg Migration

johnqtcg/awesome-skills

PostgreSQL schema migration safety reviewer and DDL generator. ALWAYS use when writing, reviewing, or planning PostgreSQL schema changes — ALTER TABLE, CREATE/DROP INDEX, column type changes, constraint additions, RLS policy changes, or any DDL touching production tables. Covers lock-level analysis, CREATE INDEX CONCURRENTLY, NOT VALID constraint patterns, transactional DDL rollback, expand-contract for table rewrites, pg_repack for online reorganisation, phased rollout design, and backward compatibility. Use even for "simple" ADD COLUMN — PostgreSQL DDL lock behavior varies by operation and version, and AccessExclusiveLock on a hot table causes immediate outage.
2 views 31 repository stars 0 commentsUpdated Nov 27, 2026
Overview

PostgreSQL schema migration safety reviewer and DDL generator. ALWAYS use when writing, reviewing, or planning PostgreSQL schema changes — ALTER TABLE, CREATE/DROP INDEX, column type changes, constraint additions, RLS policy changes, or any DDL touching production tables. Covers lock-level analysis, CREATE INDEX CONCURRENTLY, NOT VALID constraint patterns, transactional DDL rollback, expand-contract for table rewrites, pg_repack for online reorganisation, phased rollout design, and backward compatibility. Use even for "simple" ADD COLUMN — PostgreSQL DDL lock behavior varies by operation and version, and AccessExclusiveLock on a hot table causes immediate outage.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/johnqtcg/awesome-skills' skill-source

Use the complete skill-source/skills/pg-migration directory with your client’s skill installer.

Source directory skills/pg-migration

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
37 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
ab58c4cb93d5f6db4c41d340b79c892d9d3ca0f8066b84e304ab32260640114c
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills