Planetscale Readonly Inventory
PlanetScaleOfficialPublished by PlanetScale
- Skill
- Research and analysis
- Cloud and DevOps
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured methodology for gathering evidence-backed inventory data from a PlanetScale environment. It focuses on non-destructive inspection of databases, branches, webhooks, schema recommendations, and traffic controls. By leveraging the official CLI and API, it ensures that all findings are grounded in verified documentation while strictly prohibiting any mutations or credential exposure. The output is a detailed report containing an inventory table, identified risk flags, and recommendations for further investigation.
What it does
- Inventories organizations, databases, branches, and infrastructure configurations.
- Audits observability settings including Query Insights, anomalies, and query patterns.
- Evaluates security posture, including IP restrictions, role permissions, and connection metadata.
- Reviews schema recommendations and deployment workflows for both Vitess and Postgres.
- Documents webhook configurations and traffic control budgets.
- Generates a structured report with evidence sources and risk assessments.
When to use it
- During initial environment discovery or onboarding.
- When performing a security or configuration audit of a PlanetScale database.
- Before planning schema migrations or infrastructure changes.
- When troubleshooting performance issues or investigating anomalous query patterns.
Advantages
- Ensures zero-impact discovery by strictly forbidding all mutation operations.
- Provides standardized, evidence-based reporting for consistent audits.
- Reduces manual effort by automating the collection of complex API and CLI data.
- Maintains high accuracy by grounding all actions in official PlanetScale documentation.
Usage examples
- “Perform a full inventory of my production PlanetScale database.”
- The agent will execute a series of read-only commands to map the database structure, branch status, and current security configuration, returning a comprehensive inventory report.
- “Audit the observability and traffic control settings for our Postgres branch.”
- The agent will inspect Query Insights, traffic budgets, and connection metadata to identify potential performance bottlenecks or misconfigured traffic rules.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/planetscale/planetscale-readonly-inventory/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip planetscale-readonly-inventory.zip -d .agents/skills
Documentation by PlanetScale
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
.mdto its URLAPI 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 asorganizations/{org}/databases/{db}/branches/{branch}— there is nogetsubcommand and no/v1/prefix. Pass query parameters with-Q key=valueflags; 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; supportsfrom/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, andinsights/{fingerprint}/traffic/budgets. Thequery-patternspath returns generated report metadata, not live patterns.Traffic budgets:
.../branches/{branch}/traffic/budgets. The CLI has nopscale 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). Requestingpage=2currently returns 404 even when the response reportsnext_page; use the database object'sopen_schema_recommendations_countas 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 listand 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 ../planetscale-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.”
Files
- ATTRIBUTION.mdAdded by AutoGineer888 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md8.4 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "planetscale-readonly-inventory", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 999045cfbad79222f38a99599eb96bc736feabee
Published by: PlanetScale (https://github.com/planetscale)
Publisher: PlanetScale (https://github.com/planetscale)
Licence: MIT License (https://github.com/planetscale/skills/blob/999045cfbad79222f38a99599eb96bc736feabee/LICENSE)
Licence evidence: repository licence LICENSE
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- PlanetScale
- Publisher
- PlanetScale (Official)
- Source
- planetscale/skills · planetscale-readonly-inventory · commit 999045c
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by PlanetScale.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download planetscale-readonly-inventory.zip