/planetscale:planetscale-autonomous-execution-modefrom planetscale
Executes approved PlanetScale schema changes end-to-end after explicit risk acknowledgment, with scoped autonomy levels, continuous status reporting, halt conditions, and rollback discipline.
Ships in planetscale. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Let an operator who has explicitly accepted the risk hand the whole job to the agent: plan, execute, verify, and report — with live status the entire way — instead of approving each change one by one. This mode removes the per-step approval friction. It does not remove any verification, ordering, rollback, or halt discipline. Autonomy changes who clicks "go", never how carefully the work is done.
Autonomous mode activates only when the operator's message contains all three:
auto-safe (Class D excluded).Record the acknowledgment verbatim in the run log before executing anything.
| Level | Unlocks | Requires |
|---|---|---|
auto-safe | Class B + Class C within scope | Risk acknowledgment + scope |
auto-production | Adds Class D within scope | Risk acknowledgment + scope + explicit production statement |
| — | Class E | Never available. No phrasing unlocks it. |
Class E operations (dropping production databases/tables, disabling all safety mechanisms simultaneously, exposing secrets, removing private-only network posture) are refused in every mode. If a requested change set contains a Class E item, execute the rest and report the exclusion — do not silently skip and do not ask the operator to "confirm harder".
Interactive acknowledgment is single-run. Scheduled agents (cron, Cursor
Automations, webhook-triggered runs) instead operate under a standing
authorization: a written artifact, committed where the agent reads its
instructions (an AGENTS.md section or a dedicated authorization file),
containing:
Per-run rules for standing authorization:
Before the first mutation, produce and show an execution plan:
BLOCKED — state drift, and continue with independent changes.The operator handed over control; visibility is what they get in return. Emit status at every stage:
[step 3/7] STARTING VIT-3a — deploy request: add idx_orders_on_user_id to storefront-demo/main (Class D, revert window available)[step 3/7] DONE — deploy request #4 deployed, index visible in schema read-back (took 2m 10s)BLOCKED — state drift, EXCLUDED — Class E, SKIPPED — prerequisite failed), never silently.Status lines must be specific enough that an operator reading only the status stream could reconstruct the run: name the change ID, the target, and the mechanism every time.
Status is plain text, emitted in the agent's normal output stream as each step happens. It must not depend on any host-specific rendering surface (canvas, HTML, TUI widgets) — those may supplement the stream, never replace it. The plain-text stream and the run log are the record of the run in every agent.
Stop-the-line rules. When any of these fires, finish or safely abort the current atomic step, execute the pre-staged rollback if the step half-applied, and report:
After a halt: report state of every step (done / rolled back / blocked / not started), current database state, and what re-acknowledgment would be needed to resume. Never resume a halted run on the original acknowledgment.
Maintain an append-only run log for the whole session: timestamp, step ID, command, result, read-back evidence. Include it (or its path) in the run summary. The log is the audit trail that makes "the agent did it autonomously" reviewable.
../11-change-gates-and-approval-contract/SKILL.md — the class definitions and pre/post-execution checklists still apply verbatim; a valid risk acknowledgment substitutes for per-change approval within scope. Class E rules are unchanged.../00-safe-orchestrator/SKILL.md — when a valid acknowledgment accompanies the assessment request ("run the audit and fix what you find, I accept the risk"), run the full assessment first, present the report and execution plan, then proceed directly into execution under this skill without stopping for approval.../07-schema-recommendations-agent-loop/SKILL.md — in autonomous mode the loop may carry recommendations all the way through branch, deploy request, and deploy, using gated deployments where cutover timing matters.If the operator asks for full autonomy without the acknowledgment elements, do not negotiate ambiguity. Reply:
"Autonomous mode needs an explicit risk acknowledgment, a named scope, and whether production changes are included. For example: 'I accept the risk — apply all report recommendations to storefront-demo, production included.'"
Then wait.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/planetscale-safe-orchestratorMaster 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./planetscale-readonly-inventoryCollect read-only evidence about PlanetScale org, database, branches, webhooks, backups, roles, Insights, recommendations, and traffic configuration./planetscale-vitess-safety-reviewReview a PlanetScale Vitess database for safe migrations, deploy requests, schema recommendations, Insights, webhooks, and operational safety./planetscale-postgres-safety-reviewReview PlanetScale Postgres for Traffic Control, query tags, roles, pg_strict, backups/PITR, private connectivity, webhooks, branches, and safe agent operation./planetscale-query-insights-and-tagsUse PlanetScale Insights and SQLCommenter-style query tags to attribute database load, identify risky queries, and prepare safe Traffic Control or schema recommendations./planetscale-traffic-control-recommendationsBuild a safe recommendation plan for PlanetScale Postgres Database Traffic Control budgets and rules without applying them.claude plugin install planetscale@claude-plugins-officialOther plugins' skills for the same job