Skills for AI agents working with databases https://database-skills.preview.planetscale.com
Find a file
Sarokhan f6ed002d03
Merge pull request #26 from planetscale/neki-skill-buildout
neki: expand skill to 28 references grounded in the Neki docs
History 2026-10-07 13:09:14 -05:00
skills Name which INSERT returns codes 10 and 117. 2026-10-06 10:29:12 -05:00
website Merge pull request #19 from planetscale/fix-ascii-spacing 2026-06-08 15:22:53 -04:00
.gitignore Merge pull request #21 from planetscale/cursor/add-cloudflare-workers-2d1b 2026-07-17 16:46:34 +02:00
LICENSE Initial commit 2026-02-18 08:48:23 -07:00
package-lock.json Merge pull request #21 from planetscale/cursor/add-cloudflare-workers-2d1b 2026-07-17 16:46:34 +02:00
package.json Merge pull request #21 from planetscale/cursor/add-cloudflare-workers-2d1b 2026-07-17 16:46:34 +02:00
planetscale-database-skills.png database skills 2026-02-18 08:54:03 -07:00
README.md neki: expand skill to 28 references grounded in the Neki docs 2026-09-25 14:00:02 -04:00
wrangler.jsonc Merge pull request #21 from planetscale/cursor/add-cloudflare-workers-2d1b 2026-07-17 16:46:34 +02:00

Database Skills

Database Skills

Database-focused skills for AI coding assistants. Each skill lives in its own sub-directory under skills/ and covers a specific database technology.

Installation

skills.sh

npx skills add planetscale/database-skills

See skills.sh for more info.

Cursor plugin

In Cursor chat, add this repository as a plugin:

/add-plugin database-skills

Available Skills

mysql

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.

neki

Guidance for Neki, PlanetScale's distributed (sharded) Postgres. Use when working with a Neki database — connecting, data topology and shard keys, query routing and fanout, cross-shard transactions, schema changes, resharding and migration, NK013 errors — or when scaling and sharding Postgres.

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

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.

Repo Structure

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:

  • SKILL.md — Required. Instructions, triggers, and workflow for the skill.
  • references/ — Optional. Supporting documents loaded into context as needed.

Contributing

  1. Fork this repo
  2. Create a new skill directory under skills/
  3. Add a SKILL.md and optional references/
  4. Submit a PR