npx skills add ...
npx skills add planetscale/skills --skill planetscale-safe-orchestrator
Master skill that runs the full PlanetScale safe best-practices assessment — inventory, engine review, Insights, Traffic Control, webhooks, schema recommendations, codebase instrumentation, and agent operating model — then produces a unified recommendations report. Never applies changes without explicit approval. Use when the user asks to run the full assessment, all skills, or PlanetScale best-practices review.
npx skills add planetscale/skills --skill planetscale-safe-orchestrator
Run the complete PlanetScale safe best-practices skill pack end to end. Load and execute each sub-skill in order, accumulate evidence, and produce one unified recommendations report. The first pass is assessment-only.
Default to read-only.
You may inspect configuration, branches, query telemetry, recommendations, webhooks, roles, backups, traffic budgets, and repository code. You must not mutate PlanetScale, the database, the repository, the network posture, credentials, schema, production traffic controls, or automation endpoints without explicit approval of a named change set.
Class C/D/E mutations require approval per ../11-change-gates-and-approval-contract/SKILL.md. When in doubt, stop and add to the proposed change set instead of executing.
One exception exists: if the operator explicitly acknowledges the risk and names a scope per ../13-autonomous-execution-mode/SKILL.md, execution proceeds autonomously under that skill's status and halt discipline instead of stopping for per-change approval. The assessment phases below are identical either way.
Sub-skills are sibling folders next to this skill, referenced by relative path; if a referenced path does not exist, locate the sibling skill whose frontmatter name matches and use it instead.
Ground all CLI and API usage in the official documentation rather than guessing: the docs index is at https://planetscale.com/docs/llms.txt (append .md to any docs URL for the markdown version) and the API reference is https://planetscale.com/docs/openapi.yaml. When a command or endpoint fails, check the docs for the correct form before recording an evidence gap. Tooling and access failures belong in the internal run log, never in the customer report.
Read this file completely.
Copy the progress checklist below into your working notes and update it as you go.
Collect inputs (ask or infer from AGENTS.md, MCP context, environment, repository):
If inputs are missing, continue with discovery. Do not block on completeness.
Copy and track:
pscale CLI and pscale api — structured inventory and exact API stateThe operator's stated interface constraint overrides this order. If the run is restricted to specific interfaces (for example CLI-only), use those interfaces; this is not a conflict and needs no workaround or note in the customer report beyond the Scope section's interfaces line.
For each phase: read the skill file, follow its instructions, capture its required output, and carry findings forward. Do not skip phases unless the checklist says to skip.
Read: ../11-change-gates-and-approval-contract/SKILL.md
Internalize operation classes A–E. All later phases operate under Class A unless the operator explicitly approves a named change.
Read and execute: ../01-readonly-inventory/SKILL.md
Deliverables to carry forward:
If engine is still unknown after inventory, determine it before Phase 2.
Run exactly one:
| Engine | Skill file |
|---|---|
| Vitess | ../02-vitess-safety-review/SKILL.md |
| Postgres | ../03-postgres-safety-review/SKILL.md |
Deliverables: engine-specific safety gaps, workflow gaps, and proposed changes requiring approval.
Read and execute: ../04-query-insights-and-tags/SKILL.md
Deliverables: query risk table, tag coverage table, bad/high-cardinality tags, recommended tag schema, candidate Traffic Control slices, candidate schema and code changes.
Skip this phase for Vitess. Mark checklist item complete with note "N/A — Vitess".
For Postgres, read and execute: ../05-traffic-control-recommendations/SKILL.md
Deliverables: proposed budgets (name, mode, traffic slice, rule type, limits rationale, test/rollback plan).
If query tags are weak, note "tagging first" per that skill and defer enforce-mode recommendations.
Read and execute: ../06-webhook-automation-recommendations/SKILL.md
Deliverables: webhook inventory, missing subscriptions, destination quality review, automation opportunities, unsafe automation risks.
Read and execute: ../07-schema-recommendations-agent-loop/SKILL.md
Deliverables: per-recommendation triage (type, severity, evidence, safe implementation path, validation/rollback plan).
Read and execute: ../08-codebase-sqlcommenter-instrumentation/SKILL.md
Skip only if no repository is available. Note "no repository reviewed" in the final report.
Deliverables: detected stack, current tagging state, recommended package/path, proposed tag schema, files likely to change.
Read and execute: ../09-mcp-agent-operating-model/SKILL.md
Deliverables: recommended MCP server choice, AGENTS.md additions, allowed/disallowed autonomous work, proposed agent loops.
Read and execute: ../12-best-practices-matrix/SKILL.md
Cross-check every matrix item against Phases 1–8 findings. For each item record:
Fill gaps: if a matrix item was not covered by earlier phases, gather missing evidence now (read-only only).
Read and execute: ../10-customer-report-template/SKILL.md
Synthesize all phase deliverables into one report. Do not dump raw phase outputs — merge, deduplicate, and rank by impact.
| Prefix | Domain |
|---|---|
OBS-* | Insights and query tags |
VIT-* | Vitess safety and deploy workflow |
PG-* | Postgres roles, pg_strict, Traffic Control, PITR, network |
WEB-* | Webhooks and automation |
APP-* | Repository instrumentation |
AGENT-* | MCP and agent workflows |
Assign stable IDs across the report. Reference the same IDs in the proposed change set.
Order recommendations by:
Re-read: ../11-change-gates-and-approval-contract/SKILL.md
Verify:
Stop. Do not apply changes — unless a valid autonomous-mode acknowledgment (per ../13-autonomous-execution-mode/SKILL.md) accompanied the request, in which case present the report and the execution plan, then continue directly into execution under that skill.
Use the template in ../10-customer-report-template/SKILL.md. Minimum sections:
Scope — org, database, branches, engine, repository, interfaces, time window; changes applied: none
Executive summary — 3–7 bullets on highest-risk gaps and highest-value improvements
Current state — database topology, safety workflow, observability, automation, repository instrumentation (with evidence)
Recommendations — ranked table with IDs, target, benefit, risk, approval needed, test first, evidence
Proposed change set requiring approval — every Class C/D item with exact change, interface, rollback, production impact
Changes intentionally not applied — explicit list of what was not changed
Evidence appendix — source, command/path, timestamp, value, notes
Final required sentence (verbatim):
No changes have been applied. Approve specific change IDs before any mutation.
If MCP, CLI, API, or repository access is unavailable:
Two paths into execution:
Per-change approval. The operator approves specific change IDs:
../11-change-gates-and-approval-contract/SKILL.mdAutonomous mode. The operator explicitly acknowledges the risk with a named scope ("I accept the risk — apply all report recommendations to storefront-demo, production included"):
../13-autonomous-execution-mode/SKILL.md and validate the acknowledgment against its activation contractNever interpret "apply best practices", "fix everything", or "go ahead" as either approval or risk acknowledgment.
When the user says "run the full assessment" or "run all PlanetScale best-practices skills":