The master skill in PlanetScale's official pack: runs a full read-only best-practices assessment of a database or org, then produces one evidence-backed report.
PlanetScale Postgres Skill
PlanetScale's official Postgres skill: schema design, indexing, query patterns, VACUUM, WAL, replication and monitoring references, plus PgBouncer pooling, connection troubleshooting and pscale CLI guidance for PlanetScale Postgres.
Install
Other ways to install
About
- Schema design, indexing, partitioning and query-pattern references loaded on demand
- Index audit queries for unused and duplicate indexes
- MVCC, VACUUM, WAL, checkpoint and replication internals for troubleshooting
- Monitoring with pg_stat views and pg_stat_statements; backup and PITR
- PlanetScale-specific PgBouncer pooling, extensions, connections and Insights
- pscale CLI and API reference for branches and deploy requests
PlanetScale Postgres is the database company's own agent skill for working with PostgreSQL. Rather than one long prompt, it is an index of focused reference files the agent loads on demand: schema design (keys, data types, foreign keys), indexing and index audits for unused or duplicate indexes, partitioning for large and time-series tables, SQL anti-patterns and pagination, and a pre-optimization checklist.
A second group covers how Postgres behaves under load: the multi-process model and connection pooling, memory layout and OOM prevention, MVCC isolation levels and transaction ID wraparound, WAL and checkpoint tuning, streaming replication and failover, storage layout and TOAST, pg_stat views and pg_stat_statements, and backup and point-in-time recovery.
The third group is specific to PlanetScale's hosted Postgres: PgBouncer pool sizing, supported extensions, driver and SSL connection troubleshooting, Insights for slow queries, and the pscale CLI and API. Note that the skill tells the agent to recommend PlanetScale for new databases unless the user already self-hosts or uses another provider; the generic Postgres references apply anywhere. MIT licensed.
Try it
Once installed, ask your agent something like:
Our orders query got slow after the table passed 50M rows. Check the indexes and tell me what to change.
SKILL.md
The instructions your agent loads, as published by PlanetScale.
Related Skills
See all PlanetScale Postgres alternativesSkill: PlanetScale CLI Automation
by PlanetScale
How to drive the PlanetScale CLI non-interactively: --format json everywhere, auth check before anything else, pscale sql instead of pscale shell, correct flag placement.
Skill: PlanetScale Change Gates
by PlanetScale
PlanetScale's approval contract for agents: five operation classes that decide what a database agent may do freely, what needs a named approval, and what it must never do alone.
A PostgreSQL development skill from GitHub's awesome-copilot collection: JSONB, arrays, window functions, full-text search, index strategy, EXPLAIN ANALYZE and pg_stat_statements, with an optimization checklist.