planetscale/planetscale-vitess-safety-review
Review a PlanetScale Vitess database for safe migrations, deploy requests, schema recommendations, Insights, webhooks, and operational safety.
npx skills add https://github.com/planetscale/skills --skill planetscale-vitess-safety-review
Recommend best practices for a PlanetScale Vitess database. Focus on production safety, deployability, observability, and agent-safe automation. Do not apply any changes.
Check whether safe migrations are enabled on production and staging branches.
Recommend enabling safe migrations when:
Explain the tradeoff: safe migrations reject direct DDL on protected branches and force schema changes through deploy requests. That is a feature, but it can break teams relying on direct production DDL. Treat enablement as a behavior-changing change requiring approval.
Check:
Recommend:
the admin who opens a deploy request can also approve it. If the goal is to keep agents from
self-approving, give the agent a separate user, or a service token without deploy request
approval permission.
cutovers: it aggressively stops running transactions to complete schema
cutover. Recommend reviewing the blocking workload and incident context
before use, and only recommend the database-level aggressive cutover default
when frequent cutover blocking is understood and accepted.
Check whether the team knows the revert window and whether their incident runbook includes it.
Recommend documenting:
Recommend a branch topology:
main or equivalent production branch with safe migrations enabled.staging branch based from production with safe migrations enabled.Do not create branches without approval.
Review Insights for:
vindex usage changes after index or routing changes.
tag:key:value filtering in the dashboard, and the insights/tags and
insights/tags/summaries API endpoints for programmatic breakdowns.
Recommend enabling or improving application query tagging so Insights can attribute queries to app, route, controller, action, job, deployment SHA, and feature.
Review active and recent anomalies.
Recommend:
branch.anomaly webhooks to the team’s alerting or automation system.Review open schema recommendations.
For each recommendation, capture:
Recommend implementation path:
Do not apply recommendations directly.
Check backup posture and restore runbooks.
Recommend:
If the database is sharded, review:
Recommend an agent-safe sharding review only as a proposal. Never reshard, change vschema, or alter routing automatically.
Evaluate and recommend webhooks for:
branch.anomalybranch.primary_promotedbranch.readybranch.sleepingcluster.storagekeyspace.storagedeploy_request.openeddeploy_request.queueddeploy_request.in_progressdeploy_request.pending_cutoverdeploy_request.schema_applieddeploy_request.erroreddeploy_request.reverteddeploy_request.closedbranch.schema_recommendation if available in the webhook API for the customer’s databaseRecommended destinations:
Return:
End with:
“No Vitess changes have been applied.”
Take planetscale/planetscale-vitess-safety-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.