Agent Native

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 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 2,100 tokenswhen the skill loads
GitHub stars
5on planetscale/claude-plugin
Scripts
None found

What it does

“Collect read-only evidence about PlanetScale org, database, branches, webhooks, backups, roles, Insights, recommendations, and traffic configuration.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill collects read-only evidence about PlanetScale database organizations, branches, schemas, Query Insights, traffic rules, webhooks, and backups via CLI, API, and repository inspection. It builds an inventory of database configuration and operational state without making any changes to the platform.

When to use it

  • Auditing PlanetScale database setup and configuration state
  • Assessing schema recommendations and query performance patterns
  • Evaluating database safety, backup, and disaster recovery posture
  • Documenting traffic control rules and webhook automation before changes

When not to

  • When you need to create, modify, or delete database resources
  • When executing schema migrations or deploying database changes
  • When generating new credentials or connection strings

Install

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

skills CLI

npx skills add planetscale/claude-plugin --skill planetscale-readonly-inventory

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-readonly-inventory@95c80f9f391be9b1b6172bf82d4191e1ec11b637

Installs the commit we checked (95c80f9).

Copy by hand

Download the folder at 95c80f9 and put it in .claude/skills/planetscale-readonly-inventory for Claude Code and in .agents/skills/planetscale-readonly-inventory 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-readonly-inventory" by PlanetScale.

Source, pinned to commit 95c80f9f391be9b1b6172bf82d4191e1ec11b637:
https://github.com/planetscale/claude-plugin/tree/95c80f9f391be9b1b6172bf82d4191e1ec11b637/planetscale-skills/01-readonly-inventory

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-readonly-inventory/ for Claude Code and .agents/skills/planetscale-readonly-inventory/ 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-readonly-inventory

SKILL.md at the pin

---
name: planetscale-readonly-inventory
description: Collect read-only evidence about PlanetScale org, database, branches, webhooks, backups, roles, Insights, recommendations, and traffic configuration.
---

# Read-only inventory

## Purpose

Build an evidence-backed inventory of a PlanetScale database without making changes.

## Allowed actions

Allowed by default:

- List organizations, databases, branches, keyspaces, regions, and sizes.
- Read branch metadata.
- Read webhook configuration.
- Read schema recommendations.
- Read Query Insights, anomalies, and query patterns through MCP or API.
- Read traffic budgets and rules.
- Read Postgres roles and non-secret role metadata.
- Read backup schedules and restore metadata.
- Read branch schema.
- Inspect live connection/session metadata with the Connections CLI view.
- Inspect repository files for frameworks, ORMs, migrations, SQL tagging, and connection config.
- Inspect Terraform or other infrastructure-as-code definitions for
  PlanetScale roles, backups, backup policies, Postgres parameters, and
  supported extensions.

Not allowed without explicit approval:

- Any create, update, delete, enable, disable, reset, deploy, restore, promote, enforce, or apply operation.
- Any SQL mutation.
- Any command that emits new credentials unless the operator explicitly asked for credential work.

## Interfaces and documentation grounding

Ground every command and endpoint in the official documentation instead of
guessing. PlanetScale publishes agent-readable docs:

- Docs index: https://planetscale.com/docs/llms.txt
- Any docs page as markdown: append `.md` to its URL
- API reference: https://planetscale.com/docs/openapi.yaml (OpenAPI 3.0)

Verify an endpoint path in the API reference before calling it. A 404 from
an unverified path is a wrong path, not a finding; do not record it as
platform state and do not conclude "not configured" from it.

Verified interface notes (recheck against the docs when a command fails):

- `pscale database show <database> --org <org>` — the org is a flag, not a
  positional argument.
- `pscale api <path>` takes org-relative paths such as
  `organizations/{org}/databases/{db}/branches/{branch}` — there is no
  `get` subcommand and no `/v1/` prefix. Pass query parameters with
  `-Q key=value` flags; embedding `?`/`&` in the path breaks under shell
  globbing.
- `pscale webhook list <database> --org <org>` — the database is a
  positional argument. `pscale backup list <database> <branch>` requires
  the branch.
- `pscale branch connections top <database> <branch>` — live read-only
  session inventory works for Postgres and Vitess over a reserved
  administrative connection. Do not cancel queries or terminate connections
  unless the operator explicitly approves that operational action.
- Query Insights is public API. Live query telemetry:
  `.../branches/{branch}/insights` (per-pattern statistics; supports
  `from`/`to`/`period`, `q`, `sort`, `dir`, `tablet_type`, `type`,
  `fields`, and pagination). Related endpoints under the same branch path:
  `insights/errors`, `insights/anomalies`, `insights/tags`,
  `insights/tags/summaries`, `insights/{fingerprint}` (individual
  executions), `insights/{fingerprint}/summary`, and
  `insights/{fingerprint}/traffic/budgets`. The `query-patterns` path
  returns generated report metadata, not live patterns.
- Traffic budgets: `.../branches/{branch}/traffic/budgets`. The CLI has no
  `pscale traffic-control budget list`; use the API for inventory.
- Postgres roles: list via `.../branches/{branch}/roles`; fetch a single
  role by ID, not name (`pscale role get <db> <branch> <role-id>`).
- IP restrictions: database-level
  `organizations/{org}/databases/{db}/cidrs`. Branch-level IP-restriction
  paths are not valid.
- Schema recommendations: database-level
  `.../databases/{db}/schema-recommendations` (the branch-level path is
  not valid). Requesting `page=2` currently returns 404 even when the
  response reports `next_page`; use the database object's
  `open_schema_recommendations_count` as the authoritative total, treat
  the returned page as a sample, and state in the report when the itemized
  list covers only part of the total.
- PITR state and branch-level backup policies have no verified read path;
  record backup posture from `pscale backup list` and the database-level
  backup policy, and mark PITR "not assessed in this run" rather than
  probing paths.
- List endpoints paginate; follow the pagination parameters until
  exhausted before reporting counts (except the schema-recommendations
  case above).

Record access failures (403s, missing token scopes, timeouts) in the
internal run log for the operator. They are not findings and do not enter
the customer report (see `../10-customer-report-template/SKILL.md`).

## Inventory checklist

### Database identity

Record:

- Organization.
- Database.
- Branch.
- Engine: Vitess or Postgres.
- Region and cloud provider.
- Production/development branch status.
- Branch protection and safe workflow state.
- Size and cluster shape.

### Branches and schema workflow

For Vitess, record:

- Production branch.
- Whether safe migrations are enabled for production and staging branches.
- Open deploy requests.
- Deploy request approval setting.
- Pending schema changes.
- Whether branch strategy has a staging branch with safe migrations enabled.

For Postgres, record:

- Branch list.
- Whether branches were created from backup or empty.
- Whether schema changes are managed manually, through migrations, or through an ORM.
- Whether a separate branch is used for migration testing.
- Whether the team expects Vitess-style deploy requests; if yes, flag that Postgres branches do not use deploy requests in the same way.

### Observability

Record:

- Insights availability.
- Whether query tags are present.
- Which tags appear.
- Whether high-cardinality tags are present.
- Whether complete/raw query collection is enabled.
- Active anomalies.
- Query patterns with high latency, high rows read, high error rate, or high execution count.
- Postgres CPU-heavy query patterns and Vitess vindex-usage data when exposed
  by the Insights interface in use.
- Whether application deploy identifiers are visible in comments or tags.

### Recommendations

Record:

- Open schema recommendations.
- Recommendation type.
- Affected table/query.
- Proposed DDL or action.
- Whether a branch/deploy workflow exists to evaluate it safely.
- Whether the recommendation can be implemented as application code, ORM migration, or database DDL.

### Webhooks and automation

Record:

- Configured webhooks.
- Subscribed events.
- Enabled state.
- Last delivery success or failure.
- Destination category: Slack, PagerDuty, internal automation, CI, agent queue, unknown.
- Whether webhook signature verification is documented or implemented.
- Whether webhook handling is idempotent and asynchronous.

### Postgres Traffic Control

For Postgres only, record:

- Existing budgets and rules.
- Budget modes: off, warn, enforce.
- Limits: rate, capacity, burst, concurrency, warning threshold.
- Rules by fingerprint, keyspace, query kind, or tags.
- Whether rules are tied to meaningful SQLCommenter tags.
- Whether any production budget is in enforce mode.

### Postgres safety

For Postgres only, record:

- Application role usage.
- Whether apps use the default role.
- Whether app roles are least-privilege.
- Whether pg_strict is enabled for application roles.
- Whether PgBouncer is used for appropriate workloads.
- Whether live connections show blockers, idle-in-transaction sessions, or
  connection saturation during an active incident.
- Whether private connectivity and IP restrictions are configured.
- Whether backup retention and PITR meet the customer’s recovery expectations.

### Vitess safety

For Vitess only, record:

- Safe migrations state.
- Deploy request workflow.
- Admin approval requirement.
- Gated deployment usage.
- Schema revert availability.
- Branch and keyspace topology.
- Sharding/vschema status.
- Whether sharded query patterns use relevant vindexes.
- Backups and restore posture.

## Evidence format

For every finding, include evidence:

- Source: MCP, CLI, API, dashboard-observed, SQL read-only, repository file.
- Path or command used.
- Timestamp.
- Raw value or concise excerpt.
- Confidence: high, medium, low.

## Output

Return:

- Inventory table.
- Missing evidence table.
- Risk flags.
- Recommended next skills to run.

End with:

“No 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, 8.6 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-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-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

  • planetscale-schema-recommendations-agent-loop

    This skill helps agents analyze PlanetScale schema recommendations and convert them into safe implementation plans without directly applying production changes.

    by PlanetScaleOfficial publisher

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

  • planetscale-traffic-control-recommendations

    This skill recommends PlanetScale Postgres Traffic Control budgets and rules to protect critical database traffic from runaway queries and resource-consuming…

    by PlanetScaleOfficial publisher

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

  • postgres

    This skill equips agents to diagnose and optimize PostgreSQL databases with reference documentation on schema design, indexing, query patterns, and…

    by PlanetScaleOfficial publisher

    Claude Code, Codex, Cursor +4 · about 1.7K 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