planetscale-webhook-automation-recommendations
Recommend webhook subscriptions and safe automation patterns for PlanetScale alerts, anomalies, schema recommendations, deploy requests, and agent workflows.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 8193f8a17a45f2ac… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
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
1- SKILL.md
794dfa07975.9 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from planetscale/skills8
Execute approved PlanetScale changes end-to-end without per-step approval when the operator has explicitly acknowledged the risk. Defines the risk-acknowledgment contract, scoped autonomy levels, sensible execution ordering, continuous status reporting, halt conditions, and rollback discipline. Extr
A concise feature matrix for deciding which PlanetScale safety, observability, and automation recommendations apply by engine.
Enforce explicit approval gates for any PlanetScale, database, repository, credential, network, or automation mutation.
Inspect an application repository connected to PlanetScale and recommend SQLCommenter-compatible query tagging packages and conventions.
Produce the final PlanetScale best-practices report after running the inventory and relevant review skills.
Configure safe agent behavior around PlanetScale MCP, Insights, schema recommendations, and repository work without autonomous production mutation.
Review PlanetScale Postgres for Traffic Control, query tags, roles, pg_strict, backups/PITR, private connectivity, webhooks, branches, and safe agent operation.
Use the PlanetScale CLI (pscale) from automated agents with --format json, auth check, pscale sql, and per-command --force. Run before other PlanetScale skills when driving pscale directly. Use when the user asks to automate pscale, run CLI commands headless, or verify pscale auth from an agent.
Related backend skillsscan passed
PostHog integration for Ruby on Rails applications
Build a new API connector or provider by matching the target repo's existing integration pattern exactly. Use when adding one more integration without inventing a second architecture.
Report browser/API/CLI/job/worker/webhook bugs. (gstack)
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides
Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs
Mount tRPC as a Fastify plugin with fastifyTRPCPlugin from @trpc/server/adapters/fastify. Configure prefix, trpcOptions (router, createContext, onError). Enable WebSocket subscriptions with useWSS and @fastify/websocket. Set routerOptions.maxParamLength for batch requests. Requires Fastify v5+. Fast