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 Change GatesSkill
Summary
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.
Features
- Classifies every PlanetScale, database, repo, credential and network operation into approval classes
- Class A read-only and Class B proposals proceed without stopping the agent
- Class C behaviour-changing operations always require an explicit named approval
- Explicitly rules that opening a PR or deploy request is a proposal, not a mutation
- Referenced by relative path from the other skills, so the boundary is defined once
- Covers Traffic Control, safe migrations, roles, backups, pooling and network posture
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
The hard problem with an agent that can reach your production database is not capability, it is knowing where the line is. This official PlanetScale skill draws that line as a classification scheme, so "may I do this?" has a lookup answer rather than a judgement call.
Five classes
Class A — read-only. Listing databases, branches, keyspaces, webhooks, backups, roles, traffic budgets, schema recommendations, deploy requests and Insights data; reading schema metadata and repository code; producing reports and proposed change sets. No approval.
Class B — state-creating proposals. Creating a query-pattern report through a POST, firing a webhook test event, creating development branches, applying DDL to a non-production development branch, opening a PR or a deploy request against a review-protected branch. Also allowed by default, and the reasoning is the interesting part: these are proposals inside an existing review system, so nothing reaches production until a human merges or deploys. The gate belongs on the merge, not on the proposal. The skill says outright that an agent stopping to ask permission to open a PR has misclassified the operation.
Class C — behaviour-changing. Always needs explicit approval: enabling or disabling safe migrations, changing deploy-request approval settings, creating or enforcing Traffic Control budgets, managing webhooks, enabling raw query collection, toggling settings that require a restart, creating or deleting roles, resetting passwords, changing pooling behaviour, changing IP restrictions or PrivateLink/PSC or public access, changing backup schedule or retention, creating restore branches and extra backups.
Classes D and E carry the operations above that — the ones where the blast radius is production data and availability.
Why it is a separate skill
Because the other skills in the pack reference it by relative path. The orchestrator, the CLI-automation skill and the autonomous-execution skill all defer to this file for the question of whether a given step needs a human, which keeps one definition of the boundary instead of three drifting copies. Loading it alone is also the cheapest way to see exactly what PlanetScale thinks an agent should and should not be trusted with.
Related Skills
Build crash-safe AI agents on AgentKit and step.ai — durable tool calls, human-in-the-loop approval, realtime progress, and when not to reach for an agent loop at all.
Inngest's durable-execution playbook as an agent skill — steps and memoisation, event and cron triggers, idempotency, cancellation, retries and non-retriable errors.
Temporal's official skill for building durable workflows — SDK patterns across seven languages, plus the determinism rules that decide whether a workflow survives a replay.