pgschemapgschemaOfficialยท4 Agent Skills Included

pgschema

Declarative Terraform-style schema migrations for PostgreSQL databases

Generates PostgreSQL migration plans automatically by comparing your desired schema files against the live database. Eliminates hand-written migration files, manual sequencing, and shadow database setup. Dumps, plans, and applies schema changes safely with concurrent change detection and lock timeout control.
npx skills add pgschema/pgschema --all -g -y
Available:

Instructs the AI agent on pgschema's architecture, build and test commands, and when to route work to the bundled skills for testing, database validation, bug fixing, and PR review.

All Skills in This Repository (4)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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โ†’