Planetscale Safe Orchestrator
PlanetScaleOfficialPublished by PlanetScale
- Skill
- Workflow
- Cloud and DevOps
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The PlanetScale safe orchestrator acts as a master skill to execute a full, multi-phase audit of a PlanetScale environment. It systematically gathers data across inventory, engine configuration, query insights, traffic control, webhooks, schema health, and codebase instrumentation. The skill follows a strict safety-first protocol, ensuring all operations remain read-only unless explicit, granular approval is granted by the operator. It synthesizes findings into a unified, ranked report with clear recommendations and a structured change set for future implementation.
What it does
- Performs a multi-phase audit of PlanetScale database environments and application integration.
- Evaluates engine-specific safety (Vitess or Postgres) and query observability.
- Analyzes webhook automation, schema health, and codebase SQLCommenter instrumentation.
- Generates a unified, ranked report of findings and improvement recommendations.
- Maintains a strict read-only posture by default to prevent unauthorized mutations.
- Provides a structured framework for obtaining operator approval before applying any changes.
When to use it
- When a user requests a full assessment of their PlanetScale environment.
- When performing a comprehensive best-practices review of database and application configurations.
- When identifying gaps in observability, automation, or schema management.
- When preparing a prioritized list of improvements for production database environments.
Advantages
- Ensures consistent, repeatable assessment across all critical database domains.
- Prioritizes production safety by defaulting to read-only operations.
- Provides clear, evidence-based recommendations with associated risk and impact analysis.
- Standardizes reporting and change management through a unified ID scheme.
Usage examples
- “Run the full PlanetScale best-practices assessment.”
- The agent initiates the 11-phase assessment, gathering inventory and configuration data to produce a comprehensive report of findings and recommendations.
- “Perform a complete audit of our production database and application setup.”
- The agent executes the master orchestrator, covering everything from query insights to codebase instrumentation, and presents a ranked list of improvements.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/planetscale/planetscale-safe-orchestrator/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip planetscale-safe-orchestrator.zip -d .agents/skills
Documentation by PlanetScale
PlanetScale safe orchestrator (master skill)
Purpose
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.
Non-negotiable safety contract
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 ../planetscale-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 ../planetscale-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.
Before you start
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):Organization slug
Database name
Branch name
Engine: PlanetScale Vitess or PlanetScale Postgres
Production branch or branches
Connected application repository path, if available
Application language, framework, ORM, query builder, connection pooling
Operator tolerance: report-only, PR-generation, branch-only migrations, or supervised production apply
If inputs are missing, continue with discovery. Do not block on completeness.
Progress checklist
Copy and track:
Master assessment progress:
- [ ] Phase 0: Safety contract loaded
- [ ] Phase 1: Read-only inventory
- [ ] Phase 2: Engine safety review (Vitess OR Postgres)
- [ ] Phase 3: Query Insights and tags
- [ ] Phase 4: Traffic Control (Postgres only — skip for Vitess)
- [ ] Phase 5: Webhook automation
- [ ] Phase 6: Schema recommendations agent loop
- [ ] Phase 7: Codebase SQLCommenter instrumentation
- [ ] Phase 8: MCP agent operating model
- [ ] Phase 9: Best-practices matrix coverage check
- [ ] Phase 10: Unified customer report
- [ ] Phase 11: Change gates verified — stop, no mutationsInterface preference order
PlanetScale MCP insights-only server — autonomous analysis without query execution
Full PlanetScale MCP with read-only scope — schema or limited read queries
pscaleCLI andpscale api— structured inventory and exact API stateRepository inspection — codebase analysis and instrumentation recommendations
Direct SQL — read-only introspection only when operator grants database read access
The 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.
Execution plan
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.
Phase 0 — Safety contract
Read: ../planetscale-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.
Phase 1 — Read-only inventory
Read and execute: ../planetscale-readonly-inventory/SKILL.md
Deliverables to carry forward:
Inventory table with evidence (source, path/command, timestamp, confidence)
Missing evidence table
Risk flags
Confirmed engine (Vitess or Postgres)
Branch topology and production branch
If engine is still unknown after inventory, determine it before Phase 2.
Phase 2 — Engine safety review
Run exactly one:
| Engine | Skill file |
|---|---|
| Vitess | ../planetscale-vitess-safety-review/SKILL.md |
| Postgres | ../planetscale-postgres-safety-review/SKILL.md |
Deliverables: engine-specific safety gaps, workflow gaps, and proposed changes requiring approval.
Phase 3 — Query Insights and tags
Read and execute: ../planetscale-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.
Phase 4 — Traffic Control (Postgres only)
Skip this phase for Vitess. Mark checklist item complete with note "N/A — Vitess".
For Postgres, read and execute: ../planetscale-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.
Phase 5 — Webhook automation
Read and execute: ../planetscale-webhook-automation-recommendations/SKILL.md
Deliverables: webhook inventory, missing subscriptions, destination quality review, automation opportunities, unsafe automation risks.
Phase 6 — Schema recommendations agent loop
Read and execute: ../planetscale-schema-recommendations-agent-loop/SKILL.md
Deliverables: per-recommendation triage (type, severity, evidence, safe implementation path, validation/rollback plan).
Phase 7 — Codebase SQLCommenter instrumentation
Read and execute: ../planetscale-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.
Phase 8 — MCP agent operating model
Read and execute: ../planetscale-mcp-agent-operating-model/SKILL.md
Deliverables: recommended MCP server choice, AGENTS.md additions, allowed/disallowed autonomous work, proposed agent loops.
Phase 9 — Best-practices matrix coverage check
Read and execute: ../planetscale-best-practices-matrix/SKILL.md
Cross-check every matrix item against Phases 1–8 findings. For each item record:
Applies: yes / no / unknown
Current state
Gap
Recommendation ID (see ID scheme below)
Approval requirement
Fill gaps: if a matrix item was not covered by earlier phases, gather missing evidence now (read-only only).
Phase 10 — Unified customer report
Read and execute: ../planetscale-customer-report-template/SKILL.md
Synthesize all phase deliverables into one report. Do not dump raw phase outputs — merge, deduplicate, and rank by impact.
Recommendation ID scheme
| 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.
Ranking guidance
Order recommendations by:
Production safety and availability risk (highest first)
Observability gaps blocking diagnosis or Traffic Control
Automation that reduces mean time to detect/respond
Performance and schema improvements with clear evidence
Phase 11 — Stop gate
Re-read: ../planetscale-change-gates-and-approval-contract/SKILL.md
Verify:
No Class C/D/E actions were taken
Every proposed mutation has an ID, target, interface, effect, risk, rollback, and test plan
Report ends with the required final sentence
Stop. Do not apply changes — unless a valid autonomous-mode acknowledgment (per ../planetscale-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.
Required final report structure
Use the template in ../planetscale-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.
Handling partial runs
If MCP, CLI, API, or repository access is unavailable:
Continue with available interfaces
Record missing evidence in the report
Lower confidence on affected recommendations
Do not invent state — mark unknown
After the report
Two paths into execution:
Per-change approval. The operator approves specific change IDs:
Re-read
../planetscale-change-gates-and-approval-contract/SKILL.mdExecute only the named IDs
Produce the post-execution report defined in that skill
Autonomous mode. The operator explicitly acknowledges the risk with a named scope ("I accept the risk — apply all report recommendations to storefront-demo, production included"):
Read
../planetscale-autonomous-execution-mode/SKILL.mdand validate the acknowledgment against its activation contractPresent the dependency-ordered execution plan, then execute end to end with continuous status, per-step verification, and the halt rules from that skill
Produce the run summary and run log
Never interpret "apply best practices", "fix everything", or "go ahead" as either approval or risk acknowledgment.
Quick invocation
When the user says "run the full assessment" or "run all PlanetScale best-practices skills":
Load this skill
Run Phases 0–11 in order
Return the unified report
Stop
Files
- ATTRIBUTION.mdAdded by AutoGineer886 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md11.4 KiB
- agents/openai.yaml166 B
agents/openai.yaml
interface: display_name: "PlanetScale safe assessment" short_description: "Full PlanetScale best-practices assessment" policy: allow_implicit_invocation: false
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.
Needs: Needs an MCP server
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-safe-orchestrator · 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 or PlanetScale.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download planetscale-safe-orchestrator.zip