Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

planetscale

Skill by ericrisco

Guides work on PlanetScale, the serverless MySQL service built on Vitess. It covers branches, the pscale CLI, deploy requests with Online DDL, schema design without foreign keys, and the edge HTTP driver. Built for developers who run schema changes on PlanetScale.

  • Score 71
  • 695 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install planetscale

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ericrisco/rsc-harness /tmp/rsc-harness && mkdir -p ~/.claude/skills && cp -r /tmp/rsc-harness/skills/planetscale ~/.claude/skills/planetscale

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install planetscale in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an AI assistant the workflow for operating PlanetScale, a MySQL-compatible database service built on Vitess. It explains how schema changes move through isolated branches and deploy requests instead of running ALTER TABLE on production. It also covers Online DDL, the roughly 30-minute revert window, and the pscale CLI commands for each step.

The skill also covers designing tables without foreign keys, choosing between the direct MySQL connection and the @planetscale/database HTTP driver, and wiring deploy requests into CI. It routes MySQL engine questions and generic migration theory to other skills. It is aimed at developers and teams who use PlanetScale for their application database.

Written from the project's SKILL.md and checked against it.

What it can do

  • Branches and pscale CLICovers creating databases and dev branches and running DDL on a branch with the pscale CLI.
  • Deploy request workflowWalks through opening, diffing, reviewing, deploying and applying a deploy request to production.
  • Online DDLExplains the shadow table, VReplication and non-blocking cutover used to apply schema changes.
  • Revert windowDescribes the roughly 30-minute window to revert a deploy and its carve-outs.
  • Design without foreign keysRecommends app-level referential integrity and indexing relation columns instead of database foreign keys.
  • Connection pathsChooses between a direct mysql:// connection and the @planetscale/database HTTP driver by runtime.
  • CI/CD integrationShows a GitHub Actions job that creates and diffs deploy requests on pull requests.

What you need

  • PlanetScale account
  • pscale CLI installed and authenticated
  • @planetscale/database package for HTTP connections

Try asking

  • Open a deploy request for my add-orders-table branch with auto-apply disabled
  • Explain how to revert a PlanetScale deploy request within the window
  • Show how to design an orders table without foreign keys on PlanetScale

Good to know

  • Schema revert works for about 30 minutes after deploy.
  • Dropped tables, dropped columns and FK constraint changes cannot be cleanly reverted.
  • Foreign keys are an opt-in feature that works only on unsharded tables.
  • Does not cover MySQL engine work such as EXPLAIN or index choice.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/planetscale/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to planetscale

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

planetscale: common questions

Can I run ALTER TABLE directly on PlanetScale production?

The skill advises against it. Schema changes should go to a branch and reach production through a deploy request.

Does PlanetScale support foreign keys?

According to the source, PlanetScale historically disallowed foreign keys. They are now an opt-in feature that works only on unsharded tables.

Which driver should I use on Vercel Edge or Cloudflare Workers?

The source says to use the @planetscale/database HTTP driver, because raw TCP MySQL connections are blocked on edge runtimes.

How do I install planetscale?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is planetscale free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is planetscale safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to planetscale?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

planetscale Install

Add to stack

Loading.