Skills for AI agents working with databases
npx skills add https://github.com/planetscale/database-skills --skill vitessInstall this skill with the CLI and start using the SKILL.md workflow in your workspace.

Database-focused skills for AI coding assistants. Each skill lives in its own sub-directory under skills/ and covers a specific database technology.
npx skills add planetscale/database-skills
See skills.sh for more info.
In Cursor chat, add this repository as a plugin:
/add-plugin database-skills
Plan and review MySQL/InnoDB schema, indexing, query tuning, transactions, and operations. Use when creating or modifying MySQL tables, indexes, or queries; diagnosing slow or locking behavior; planning migrations; or troubleshooting replication and connection issues.
Overview and guidance for Neki, PlanetScale's sharded Postgres product. Use when working with Neki-related tasks or evaluating how to scale and shard Postgres.
PostgreSQL best practices, query optimization, connection troubleshooting, and performance insights for PlanetScale Postgres. Use when working with PlanetScale PostgreSQL databases — schema design, indexing, MVCC/VACUUM, WAL tuning, replication, monitoring, or PlanetScale-specific features like connection pooling and CLI insights.
Vitess best practices, query optimization, and connection troubleshooting for PlanetScale Vitess databases. Use when working with sharding, VSchema configuration, keyspace management, online DDL, VReplication, or MySQL-compatible scaling issues.
database-skills/
├── .cursor-plugin/
│ └── plugin.json
├── README.md
└── skills/
├── mysql/
│ ├── SKILL.md
│ └── references/
├── neki/
│ ├── SKILL.md
│ └── references/
├── postgres/
│ ├── SKILL.md
│ └── references/
└── vitess/
├── SKILL.md
└── references/
Each skill is a sub-directory under skills/ containing:
skills/SKILL.md and optional references/