Agent Native

planetscale-vitess-safety-review

This skill reviews a PlanetScale Vitess database for operational safety and best practices across migrations, deploy requests, schema changes, query…

by PlanetScaleOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (planetscale)

Agents
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
License
MIT (permissive)
Pin
95c80f9pinned Oct 9, 2026
Context cost
about 1,700 tokenswhen the skill loads
GitHub stars
5on planetscale/claude-plugin
Scripts
None found

What it does

“Review a PlanetScale Vitess database for safe migrations, deploy requests, schema recommendations, Insights, webhooks, and operational safety.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill reviews a PlanetScale Vitess database for operational safety and best practices across migrations, deploy requests, schema changes, query performance, and backups. It evaluates current safety posture, identifies gaps, and recommends workflow improvements and webhook subscriptions without making any changes to the database.

When to use it

  • Audit database safety before agent automation handles schema changes
  • Establish safe deployment workflows and approval processes
  • Review schema recommendations and anomaly detection setup
  • Plan webhook subscriptions for database events and alerting

When not to

  • When you need to apply schema changes directly to production
  • To perform actual database migrations or resharding operations
  • If your database is not PlanetScale Vitess

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add planetscale/claude-plugin --skill planetscale-vitess-safety-review

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install planetscale/claude-plugin planetscale-vitess-safety-review@95c80f9f391be9b1b6172bf82d4191e1ec11b637

Installs the commit we checked (95c80f9).

Copy by hand

Download the folder at 95c80f9 and put it in .claude/skills/planetscale-vitess-safety-review for Claude Code and in .agents/skills/planetscale-vitess-safety-review for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at 95c80f9

Claude Code plugin

/plugin install planetscale@claude-plugins-official

The publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "planetscale-vitess-safety-review" by PlanetScale.

Source, pinned to commit 95c80f9f391be9b1b6172bf82d4191e1ec11b637:
https://github.com/planetscale/claude-plugin/tree/95c80f9f391be9b1b6172bf82d4191e1ec11b637/planetscale-skills/02-vitess-safety-review

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/planetscale-vitess-safety-review/ for Claude Code and .agents/skills/planetscale-vitess-safety-review/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/planetscale/planetscale-vitess-safety-review

SKILL.md at the pin

---
name: planetscale-vitess-safety-review
description: Review a PlanetScale Vitess database for safe migrations, deploy requests, schema recommendations, Insights, webhooks, and operational safety.
---

# Vitess safety review

## Purpose

Recommend best practices for a PlanetScale Vitess database. Focus on production safety, deployability, observability, and agent-safe automation. Do not apply any changes.

## Primary safety features to evaluate

### Safe migrations

Check whether safe migrations are enabled on production and staging branches.

Recommend enabling safe migrations when:

- The branch receives production traffic.
- The team runs DDL outside deploy requests.
- There is no protected branch workflow.
- The application is expected to evolve schema frequently.

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.

### Deploy requests

Check:

- Whether deploy requests are used for schema changes.
- Whether administrator approval is required.
- Whether deploy requests are reviewed for data loss, conflicts, lint errors, foreign key problems, charset issues, and shard impact.
- Whether teams use gated deployments for cutover control.
- Whether “deploy instantly” is used and whether the team understands it removes the gated-deployment/revert shape.
- Whether cutover is regularly delayed by long-running transactions.
- Whether deploy request events are subscribed to via webhooks.

Recommend:

- Require deploy requests for production schema changes.
- Enable administrator approval for production deploy requests when there is more than one administrator.
- In a single-admin organization, administrator approval does not stop an agent that acts as that admin:
  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.
- Prefer normal safe deployments over instant deployments unless the migration is known to be instant-safe and the rollback story is acceptable.
- Use gated deployment when cutover timing matters.
- Treat “force cutover now” as an operator-controlled action for delayed
  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.

### Schema revert

Check whether the team knows the revert window and whether their incident runbook includes it.

Recommend documenting:

- How to identify a bad schema migration.
- How to revert within the supported window.
- Who is authorized to revert.
- Which application deploy should be rolled back together with the schema revert.

### Branch strategy

Recommend a branch topology:

- `main` or equivalent production branch with safe migrations enabled.
- `staging` branch based from production with safe migrations enabled.
- Short-lived development branches based from staging.
- Deploy requests from development to staging, then staging to production when appropriate.

Do not create branches without approval.

### Query Insights

Review Insights for:

- Slow queries.
- Queries reading too many rows.
- Erroring queries.
- Queries with poor index usage.
- For sharded databases, whether query patterns use relevant vindexes and how
  vindex usage changes after index or routing changes.
- Unusual query volume.
- Missing SQL comment tags.
- Tag breakdowns when built-in metadata or SQLCommenter tags are present:
  `tag:key:value` filtering in the dashboard, and the `insights/tags` and
  `insights/tags/summaries` API endpoints for programmatic breakdowns.
- Deploy correlation data.

Recommend enabling or improving application query tagging so Insights can attribute queries to app, route, controller, action, job, deployment SHA, and feature.

### Anomalies

Review active and recent anomalies.

Recommend:

- Subscribe `branch.anomaly` webhooks to the team’s alerting or automation system.
- Route anomaly payloads to a triage workflow that opens an issue or agent task.
- Correlate anomalies with deploy requests, application deploys, and query tags.
- Do not automatically apply schema or code changes from anomaly events; generate a proposal or PR only.

### Schema recommendations

Review open schema recommendations.

For each recommendation, capture:

- Type: add index, remove redundant index, primary key exhaustion, unused table, legacy charset/collation, or other.
- Affected table and keyspace.
- Supporting query telemetry.
- DDL.
- Expected benefit.
- Risk.
- Test plan.

Recommend implementation path:

- Convert the recommendation into an application migration or PlanetScale branch schema change.
- Open a deploy request.
- Review generated DDL and shard impact.
- Benchmark or validate on a branch.
- Deploy with safe migrations.
- Monitor Insights and anomaly state after deployment.

Do not apply recommendations directly.

### Backups and restore

Check backup posture and restore runbooks.

Recommend:

- Verify automated backups exist.
- Run a non-production restore drill periodically.
- Document restore target, RPO/RTO expectation, and application cutover plan.
- For sharded databases, document shard-aware restore expectations.

### Sharding and keyspace safety

If the database is sharded, review:

- Keyspaces and shards.
- Vschema.
- Cross-shard query patterns.
- Whether schema deploy requests show per-shard impact.
- Whether queries use shard-friendly access paths.

Recommend an agent-safe sharding review only as a proposal. Never reshard, change vschema, or alter routing automatically.

## Webhook recommendations for Vitess

Evaluate and recommend webhooks for:

- `branch.anomaly`
- `branch.primary_promoted`
- `branch.ready`
- `branch.sleeping`
- `cluster.storage`
- `keyspace.storage`
- `deploy_request.opened`
- `deploy_request.queued`
- `deploy_request.in_progress`
- `deploy_request.pending_cutover`
- `deploy_request.schema_applied`
- `deploy_request.errored`
- `deploy_request.reverted`
- `deploy_request.closed`
- `branch.schema_recommendation` if available in the webhook API for the customer’s database

Recommended destinations:

- Alerting for anomaly, primary promotion, storage, and deploy errors.
- Slack or internal notifications for deploy request lifecycle.
- Agent intake queue for schema recommendations and anomalies, with PR-only output by default.

## Output

Return:

- Current Vitess safety posture.
- Missing safety features.
- Recommended workflow.
- Recommended webhook subscriptions.
- Schema recommendation triage table.
- Deploy safety gaps.
- Proposed changes requiring approval.

End with:

“No Vitess changes have been applied.”

From planetscale/claude-plugin at 95c80f9, shown as plain text under its license: MIT (permissive). The license text is in planetscale-skills/LICENSE.

View SKILL.md on GitHub at 95c80f9

Files

1 file, 7.0 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at 95c80f9
All 22 skills from PlanetScale

More from PlanetScale

  • neki

    This skill guides agents on Neki, PlanetScale's distributed sharded Postgres system.

    Claude Code, Codex, Cursor +4 · about 2K tokens · pinned 6 days ago

  • postgres

    This skill provides PostgreSQL best practices, optimization guidance, and operational knowledge across schema design, indexing, query patterns, and…

    Claude Code, Codex, Cursor +4 · about 1.7K tokens · pinned 6 days ago

  • planetscale-safe-orchestrator

    This master skill orchestrates a comprehensive PlanetScale best-practices assessment across inventory, engine configuration, query performance, traffic…

    Claude Code, Codex, Cursor +4 · about 2.8K tokens · pinned 6 days ago

  • mysql

    This skill guides the agent through MySQL and InnoDB schema design, indexing strategies, query optimization, transaction handling, and operational tasks.

    Claude Code, Codex, Cursor +4 · about 1.3K tokens · pinned 6 days ago

  • neki

    This skill provides guidance on Neki, PlanetScale's sharded Postgres product designed for horizontal scaling.

    Claude Code, Codex, Cursor +4 · about 420 tokens · pinned 6 days ago

  • planetscale-autonomous-execution-mode

    This skill enables an agent to execute PlanetScale database changes end-to-end without per-step approval when the operator provides explicit risk…

    Claude Code, Codex, Cursor +4 · about 2.5K tokens · pinned 6 days ago

  • planetscale-best-practices-matrix

    This skill provides a structured matrix for mapping PlanetScale database assessment findings to safety, observability, and automation features across Vitess…

    by PlanetScaleOfficial publisher

    Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 6 days ago

  • planetscale-customer-report-template

    This skill produces a technical assessment report of PlanetScale database configurations, covering safety workflows, observability, and automation gaps.

    by PlanetScaleOfficial publisher

    Claude Code, Codex, Cursor +4 · about 1.8K tokens · pinned 6 days ago

  • planetscale-postgres-safety-review

    This skill reviews PlanetScale Postgres configurations for safety best practices across branching, roles, query insights, traffic control, backups…

    by PlanetScaleOfficial publisher

    Claude Code, Codex, Cursor +4 · about 2.4K tokens · pinned 6 days ago

  • planetscale-pscale-cli-automation

    Enables agents to run PlanetScale CLI commands non-interactively with proper formatting and authentication.

    by PlanetScaleOfficial publisher

    Claude Code, Codex, Cursor +4 · about 780 tokens · pinned 6 days ago

  • planetscale-readonly-inventory

    This skill collects read-only evidence about PlanetScale database organizations, branches, schemas, Query Insights, traffic rules, webhooks, and backups via…

    by PlanetScaleOfficial publisher

    Claude Code, Codex, Cursor +4 · about 2.1K tokens · pinned 6 days ago

  • planetscale-safe-orchestrator

    Orchestrator skill that runs a complete PlanetScale database assessment across inventory, engine safety, query insights, traffic controls, webhooks, schema…

    by PlanetScaleOfficial publisher

    Claude Code · about 2.8K tokens · pinned 6 days ago

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use