pgschema
Declarative Terraform-style schema migrations for PostgreSQL databases
All Skills in This Repository (4)
Pure Emerald Level IndicatorsValidate with Database
Validate live PostgreSQL schemas by comparing pg_dump and pgschema outputs.
Run Tests
Run Go test suites for diff, plan, and dump workflows.
PostgreSQL Syntax Reference
Map PostgreSQL grammar rules to DDL generation and SQL parsing.
pg_dump Reference
Guide developers in querying PostgreSQL system catalogs for schema extraction.
Frequently Asked Questions
FAQPage SchemaHow to install pgschema?โผ
Run `npx skills add pgschema/pgschema --all -g -y` in your terminal to install all skills in this suite globally.
How does pgschema handle database migrations?โผ
You declare the desired schema in plain SQL files, and pgschema diffs them against the live database to generate and apply the migration plan automatically, like Terraform for PostgreSQL.
Does pgschema need a shadow database?โผ
No. It uses an embedded PostgreSQL instance internally to validate plans and cleans up after itself, so no extra infrastructure is required.
Which PostgreSQL versions does pgschema support?โผ
pgschema supports PostgreSQL versions 14 through 18, including Postgres-specific objects like row-level security, partitioning, and constraint triggers.
Can AI agents use pgschema skills?โผ
Yes. The bundled skills follow the standard SKILL.md format and guide agents through testing, database validation, and bug fixing in Claude Code and compatible tools.
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