pgpm-sql-conventions

Installation
SKILL.md

pgpm SQL Conventions

Rules and format for writing SQL migration files in pgpm modules.

When to Apply

Use this skill when:

  • Writing new deploy/revert/verify SQL files
  • Adding database changes to a pgpm module
  • Reviewing SQL migration code for correctness
  • Debugging deployment failures related to SQL format

Critical Rules

1. NEVER Use CREATE OR REPLACE

pgpm is deterministic — each change is deployed exactly once and reverted exactly once. Use CREATE, not CREATE OR REPLACE:

Related skills

More from constructive-io/constructive-skills

Installs
8
First Seen
Feb 27, 2026