06-webhook-automation-recommendations
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "06-webhook-automation-recommendations":https://skillpi.com/zh/skills/deepskill-a276fbbbc4b983792e55461b399c4d35affe0cec1b256856c1f020d81d2666d7。安装前核对上游来源和版本:https://github.com/planetscale/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为 PlanetScale 的告警、异常、模式建议、部署请求和智能体工作流,推荐适用的 Webhook 订阅和安全的自动化模式以支持响应与集成。
介绍来源: third_party · planetscale · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
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.”
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 PlanetScale 生产环境中 webhook 自动化的完整推荐方案
- 覆盖告警、异常、模式建议、部署请求等关键运维场景
- 强调安全边界,防止未经授权的生产变更
亮点
- 触发描述清晰完整,覆盖多种 PlanetScale 事件类型
- 边界明确,不易与其他自动化工具混淆
亮点
- 结构清晰,分阶段描述多个自动化流程
- 包含端到端示例和具体实现步骤
- frontmatter 完整,文档长度适中
待提升项
-
引用文件缺失 原报告严重程度:重大
Skill 中引用了 '../13-autonomous-execution-mode/SKILL.md' 文件,但该文件未传入
改进建议:请确保所有被引用的文件都包含在 Skill 包中,或移除对外部文件的依赖
亮点
- 覆盖主要异常处理机制(签名验证、重试、死信队列)
- 对不可逆操作有明确的人工审批要求
- 提供反模式清单以避免常见错误
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 90, 165 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。