Planetscale Webhook Automation Recommendations
PlanetScaleOfficialPublished by PlanetScale
- Skill
- Guidelines
- 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 framework for evaluating and implementing PlanetScale webhook subscriptions. It emphasizes a security-first approach where automation is used to generate insights, reports, and pull requests rather than executing direct changes to production databases. It outlines specific event routing strategies for human alerting versus agent intake, defines requirements for robust webhook receivers, and provides patterns for safe automation flows such as anomaly-to-PR and schema recommendation handling.
What it does
- Categorizes PlanetScale events for human alerting versus automated agent intake.
- Defines security requirements for webhook receivers, including signature verification and idempotency.
- Provides architectural patterns for safe, review-gated database automation.
- Identifies anti-patterns to avoid, such as direct production DDL execution.
- Offers a structured output format for auditing existing webhook configurations.
- Recommends workflows for handling anomalies and schema recommendations.
When to use it
- When setting up new webhook integrations for PlanetScale.
- When auditing existing database automation to ensure it follows safety best practices.
- When designing agent-based workflows to handle database anomalies or schema suggestions.
- When establishing routing rules for operational alerts and deployment notifications.
Advantages
- Promotes a secure, review-gated approach to database operations.
- Reduces the risk of accidental production changes through automated guardrails.
- Standardizes the handling of database lifecycle events across engineering teams.
- Ensures webhook receivers are resilient and auditable.
Usage examples
- “Review my current PlanetScale webhook setup and suggest improvements for handling schema recommendations.”
- The agent will analyze your current subscriptions, identify missing events, and propose a workflow that routes recommendations to a development branch with a corresponding pull request.
- “How should I route branch.anomaly events to ensure my team is alerted without creating unsafe automation?”
- The agent will recommend routing these events to an operations channel for human visibility while simultaneously queuing them for an agent to generate a diagnostic report.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/planetscale/planetscale-webhook-automation-recommendations/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip planetscale-webhook-automation-recommendations.zip -d .agents/skills
Documentation by PlanetScale
Webhook automation recommendations
Purpose
Review and recommend PlanetScale webhooks that notify humans and trigger safe automation. Do not create or update webhooks without approval.
Webhook design principle
Webhooks may trigger automation, but automation must produce recommendations, issues, branches, or pull requests by default. It must not directly mutate production databases or production application behavior without explicit human approval.
Events to evaluate
General and Postgres
branch.anomaly: new Insights anomaly.branch.out_of_memory: Postgres out-of-memory event.branch.primary_promoted: primary failover/promotion.branch.ready: branch created and ready.branch.sleeping: branch sleeping.branch.start_maintenance: maintenance starting.cluster.storage: storage threshold or growth event.database.access_request: access request.branch.schema_recommendation: schema recommendation event when available.webhook.test: test event.
Vitess deploy lifecycle
deploy_request.openeddeploy_request.queueddeploy_request.in_progressdeploy_request.pending_cutoverdeploy_request.schema_applieddeploy_request.erroreddeploy_request.reverteddeploy_request.closedkeyspace.storage
Recommended routing
Human alerting
Send these to incident or operations channels:
branch.anomalybranch.out_of_memorybranch.primary_promotedbranch.start_maintenancecluster.storagekeyspace.storagedeploy_request.erroreddeploy_request.reverted
Engineering notification
Send these to Slack, Linear/Jira, or deployment channels:
deploy_request.openeddeploy_request.queueddeploy_request.in_progressdeploy_request.pending_cutoverdeploy_request.schema_applieddeploy_request.closedbranch.schema_recommendation
Agent intake queue
Send these to an agent-safe workflow:
branch.anomalybranch.schema_recommendationdeploy_request.erroredcluster.storagekeyspace.storage
Agent output may include, without approval:
Triage summary, probable cause, linked Insights/query patterns.
Recommended schema, code, Traffic Control, or operational change.
Pull request against application code.
Development branch with DDL or migration applied.
Open deploy request into a review-protected branch.
Issue or ticket.
Agent output must not cross the review gate on its own: no production
deploys, PR merges, Traffic Control enforcement, credential rotation, or
network changes — those require human action or a standing authorization
per ../planetscale-autonomous-execution-mode/SKILL.md.
Webhook receiver requirements
Recommend only receivers that meet these requirements:
HTTPS endpoint.
Fast 2xx response; expensive work is queued asynchronously.
No dependency on following redirects.
Signature verification using PlanetScale webhook signature header and the webhook secret.
Idempotency by event ID or timestamp/resource tuple.
Dead-letter queue or retry-safe logging.
Human-readable audit trail.
Clear owner and escalation path.
Secret rotation procedure.
Recommended automation flows
Anomaly to PR flow
Receive
branch.anomaly.Verify signature.
Queue job.
Fetch anomaly details and relevant Insights query patterns.
Locate code path by SQLCommenter tags and repository search.
Classify as schema, code, Traffic Control, or unknown.
Generate report and optional PR.
Ask human to approve database-affecting work.
Schema recommendation to branch/deploy flow
For Vitess:
Receive
branch.schema_recommendation.Fetch recommendation details.
Apply the DDL to a development branch.
Open a pull request with fingerprint, metrics, and expected effect.
Open the deploy request — the DR and PR together are the reviewable unit; opening them requires no approval.
Deploy on human approval, or autonomously under a standing authorization that allowlists this deploy class (
../planetscale-autonomous-execution-mode/SKILL.md).
For Postgres:
Receive
branch.schema_recommendation.Fetch recommendation details.
Convert DDL to application migration.
Test on a non-production branch and record the result in the PR.
Open PR.
Apply to production on merge via the deployment pipeline, or on explicit approval where no pipeline exists.
Deploy request lifecycle flow for Vitess
Notify when opened.
Validate owner and linked application PR.
Alert when queued or in progress.
Alert strongly when errored or reverted.
Notify pending cutover and require owner acknowledgement for gated deployments.
Record schema applied and correlate with application deploy.
Anti-patterns to block
Do not recommend:
Webhook directly runs production DDL, bypassing the PR/deploy-request workflow. (Driving the DDL through a branch, PR, and deploy request is the supported pattern, not an anti-pattern.)
Webhook applies schema recommendations straight to production with no reviewable artifact.
Webhook directly enforces Traffic Control.
Webhook directly changes IP restrictions.
Webhook directly rotates credentials.
Webhook posts secrets or raw SQL with literals into public Slack channels.
Webhook receiver ignores signature verification.
Webhook receiver does long-running work before returning 2xx.
Output
Return:
Existing webhook inventory.
Missing recommended subscriptions.
Destination quality review.
Signature verification status.
Automation opportunities.
Unsafe automation risks.
Proposed webhook changes requiring approval.
End with:
“No webhooks or automation endpoints have been created, updated, or deleted.”
Files
- ATTRIBUTION.mdAdded by AutoGineer920 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md5.9 KiB
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-webhook-automation-recommendations · 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-webhook-automation-recommendations.zip