06-webhook-automation-recommendations
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "06-webhook-automation-recommendations" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a276fbbbc4b983792e55461b399c4d35affe0cec1b256856c1f020d81d2666d7. Verify the upstream source and version against https://github.com/planetscale/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Recommend applicable Webhook subscriptions and secure automation patterns for PlanetScale alerts, anomalies, schema suggestions, deployment requests, and agent workflows to support responses and integrations.
Introduction source: third_party · planetscale · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Recommend webhook subscriptions and safe automation patterns for PlanetScale alerts, anomalies, schema recommendations, deploy requests, and agent workflows.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- 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.”
- Software, accounts and paid services
- 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.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: planetscale-webhook-automation-recommendations
description: Recommend webhook subscriptions and safe automation patterns for PlanetScale alerts, anomalies, schema recommendations, deploy requests, and agent workflows.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 ../13-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
(
../13-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.”
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 PlanetScale 生产环境中 webhook 自动化的完整推荐方案
- 覆盖告警、异常、模式建议、部署请求等关键运维场景
- 强调安全边界,防止未经授权的生产变更
Highlights
- 触发描述清晰完整,覆盖多种 PlanetScale 事件类型
- 边界明确,不易与其他自动化工具混淆
Highlights
- 结构清晰,分阶段描述多个自动化流程
- 包含端到端示例和具体实现步骤
- frontmatter 完整,文档长度适中
Areas to improve
-
引用文件缺失 Reported severity: Major
Skill 中引用了 '../13-autonomous-execution-mode/SKILL.md' 文件,但该文件未传入
Recommendation: 请确保所有被引用的文件都包含在 Skill 包中,或移除对外部文件的依赖
Highlights
- 覆盖主要异常处理机制(签名验证、重试、死信队列)
- 对不可逆操作有明确的人工审批要求
- 提供反模式清单以避免常见错误
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 90, 165
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
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.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.