Codex skills for PostgreSQL

These skills make Codex read the plan before it touches Postgres: EXPLAIN and pg_stat_statements drive index and query changes, migrations get lock_timeout guards and expand-and-contract steps, and backups count only after a timed restore drill. They also cover JSONB, partitioning, row-level security, pgvector and poolers in front of Neon or Supabase.

29 more PostgreSQL skills

Every PostgreSQL skill in one command

Installs these 32 into ~/.agents/skills/. Add --project after -- to install into the current repository instead.

The installer is a 104-line POSIX shell script. It fetches the skills you name from codexskills.dev and unpacks each into its own folder in your skills directory. No sudo, no telemetry, and every skill page shows the full SKILL.md first. Read install.sh

curl -fsSL codexskills.dev/install.sh | sh -s -- postgres-indexing postgres-query-tuning postgres-schema-design postgres-row-level-security postgres-partitioning postgres-jsonb postgres-backup-restore serverless-postgres supabase-backend testcontainers zero-downtime-migrations prisma-orm data-backfills multi-tenancy full-text-search sql-window-functions database-transactions drizzle-orm kysely-query-builder connection-pooling timescaledb database-observability cdc-debezium pgvector-search docker-compose-dev aws-rds-aurora paas-deploys event-sourcing-cqrs idempotency-keys django-orm-performance database-performance-triage outbox-pattern

PostgreSQL FAQ

Is there a Codex skill for zero-downtime Postgres migrations?

Yes. Zero-Downtime Migrations classifies each statement by the lock it takes, sets lock_timeout, adds foreign keys and CHECK constraints as NOT VALID before validating them, and splits risky changes into expand, migrate and contract deploys. It has notes for Rails, Django, Alembic and Prisma or Drizzle migrations, and drops a table only after renaming it and waiting a release, with your approval.

Will Codex add Postgres indexes without locking writes?

Postgres Indexing builds every index with CREATE INDEX CONCURRENTLY and explains how to do that from Rails, Django and Alembic migrations, since it cannot run inside a transaction block. Before proposing a drop it checks stats_reset and every read replica, because an index unused on the primary may serve reporting queries elsewhere.

Do these skills work with Supabase and Neon?

Serverless Postgres sets up two connection strings, a pooled transaction-mode URL for the app and a direct URL for migrations, and turns off prepared statements in drivers such as postgres.js and asyncpg where the pooler cannot handle them. Supabase Backend enables RLS on every exposed table and keeps secret keys out of client code, while Postgres Row-Level Security handles the deeper policy design and its per-row cost.

How do I install all 32 PostgreSQL skills at once?

Pass every name to the installer in one command: curl -fsSL https://codexskills.dev/install.sh | sh -s -- postgres-indexing postgres-query-tuning postgres-schema-design postgres-row-level-security postgres-partitioning postgres-jsonb postgres-backup-restore serverless-postgres supabase-backend testcontainers zero-downtime-migrations prisma-orm data-backfills multi-tenancy full-text-search sql-window-functions database-transactions drizzle-orm kysely-query-builder connection-pooling timescaledb database-observability cdc-debezium pgvector-search docker-compose-dev aws-rds-aurora paas-deploys event-sourcing-cqrs idempotency-keys django-orm-performance database-performance-triage outbox-pattern. Add --project right after -- to put them in the current repository's .agents/skills/ so your team gets them too.

Which PostgreSQL skill should I try first?

Postgres Indexing is the closest fit for most PostgreSQL work. Mention it with $postgres-indexing in a prompt to load it on purpose; after that, Codex picks it up on its own whenever a task matches.

esc