pgschema
Declarative Terraform-style schema migrations for PostgreSQL databases
All Skills in This Repository (6)
Pure Emerald Level IndicatorsValidate with Database
Validate PostgreSQL schema drift by comparing pg_dump with pgschema outputs.
Run Tests
Run unit, integration, and dump tests for pgschema changes against fixtures.
PostgreSQL Syntax Reference
Parse PostgreSQL SQL and generate valid DDL in pgschema.
pg_dump Reference
Query PostgreSQL system catalogs and extract schema information using pg_dump patterns.
review_comments
Triage and respond to GitHub PR review comments using the gh CLI.
fix_bug
Fixes GitHub issue bugs in pgschema using a TDD workflow with reproducing tests and PRs.
Frequently Asked Questions
FAQPage SchemaHow to install pgschema?โผ
Run `npx skills add pgplex/pgschema --all -g -y` in your terminal to install all skills in this suite globally.
How does pgschema differ from Flyway or Liquibase?โผ
Instead of writing numbered migration files, you declare the desired schema as plain SQL and pgschema generates the migration plan automatically, with no history table required.
Does pgschema need a shadow database?โผ
No. It spins up a temporary embedded PostgreSQL instance internally to validate plans and cleans up after itself, so no extra infrastructure is needed.
Which PostgreSQL versions and objects are supported?โผ
pgschema supports PostgreSQL 14 through 18 and covers tables, indexes, triggers, views, functions, row-level security policies, partitions, privileges, and more.
Can AI agents use pgschema for database changes?โผ
Yes. It ships agent-ready skills and llms.txt documentation so AI coding assistants can dump, plan, and apply schema changes safely on your behalf.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core