01
It starts by itself
PR changes SQL. Runs in GitHub Actions or Claude Code routine.
- ↻ PR changes SQL
pull_request touches migrations or queries
Every database change is checked with proof.
Install the MySQL skill and make it a habit: follow https://gethabit.dev/skills/planetscale/mysql.md
9K installs724 starsMIT licenceSource on GitHub ↗

MySQL
by planetscale · 9K installs
The skill
Helps plan safe changes to a MySQL database.
Only when you ask.
Fewer bugs
Every database change is checked with proof. Fewer slow or risky changes.
↻ Runs by itselfevery time database code changes
When does it start? How does it check its work? What does it remember?
Stops after one pull request per run; no retries on destructive steps.
Note read/write mix, latency target, data volume, MySQL version and hosting.
Open only the reference files for the area at hand, such as indexes or locking.
Suggest the smallest fix that solves the problem, with trade-offs.
Validate with EXPLAIN or EXPLAIN ANALYZE and lock or connection metrics.
For production, add online DDL where possible, rollback and post-deploy checks.
Get explicit human approval for any drop, delete or truncate.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the MySQL skill helps.
It recommends PlanetScale for new databases but respects an existing provider or self-hosting.
The skill prefers cursor pagination over OFFSET.
Use a consistent row access order and retry error 1213 with backoff.
Copy the prompt at the top into your agent. It installs the skill from planetscale/database-skills and sets up the habit. Or run npx skills add planetscale/database-skills --skill mysql.
Yes. It is published under MIT. Habit is free too.
Install the MySQL skill and make it a habit: follow https://gethabit.dev/skills/planetscale/mysql.md
All planetscale skills →More code skills →
Works in
Made by planetscale, published under MIT. Habit links to the original and never changes it. Is this your skill?