跳到正文
Skillpedia
部署与云(DevOps)9.5k · #12257

convex-sentinel

它能做什么

这个技能会记录线上 Convex 应用的错误,包括服务器故障和浏览器崩溃。适合希望了解真实用户遇到什么问题、并将数据保存在自己项目中的应用负责人。

适用场景

  • ✓当你的 Convex 应用已上线,并且你想知道真实用户遇到的错误时。
  • ✓当你希望错误记录保存在自己的 Convex 部署中,而不是交给第三方时。
  • ✓当你希望新的生产错误触发后续操作时。

技能链接

https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-sentinel/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-sentinel/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的线上 Convex 应用设置错误跟踪,让我看到真实用户遇到了什么问题。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会把 Sentinel 组件添加到项目中,连接浏览器端代码以报告崩溃,并在任何内容保存之前删除敏感值,例如密钥。保存的错误可以用 Convex 命令行工具读取。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- GENERATED from convex-agents content/capabilities/sentinel.json — do not edit by hand. -->

Capture production errors in your own deployment

Install @convex-dev/sentinel to capture production errors (server function failures, client JS/React crashes, OCC and scale signals) into a table in the user's OWN deployment, redacted at write time, then react to new ones. Data never leaves the user's deployment.

Workflow

  1. Install the component: app.use(sentinel) in convex/convex.config.ts.
  2. Wire the client SDK: a React error boundary plus window.onerror/unhandledrejection and breadcrumbs.
  3. Redaction runs at write time and is on by default (default-deny on secret key names and value patterns).
  4. Read recent errors with the Convex CLI (convex data, run-once-query); react to new ones via the monitor's prod_error event.
  5. Optionally enable the self-healing cron: triage classifies each error and, for recurring non-transient ones, hands it to ai-runner to open a fix PR.

Rules

  • Redaction is mandatory and on by default — never store raw secrets; the agent's reads reach the model provider.
  • Data stays in the user's deployment; never send it to a third party.
  • Sample and cap to control volume and cost.
  • Capturing PROD errors needs a deployed cloud app; install works anonymously.
常见问题

错误记录中会保存密钥吗?

不会。数据写入时会进行脱敏处理,且默认开启,会屏蔽密钥名称和值的模式。

没有线上应用也能安装吗?

可以,安装可以匿名完成,但捕获生产环境错误需要已部署的云端应用。

它能自动修复错误吗?

一个可选的自我修复步骤可以对错误进行分类,并将反复出现的错误交给修复流程。开启它是可选的。

详情

作者的原始描述

Set up Sentinel production error capture in your own Convex deployment.

repo: openclaw/clawhub

热度

GitHub 星标
9.5k
排名
#12257
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能