convex-sentinel
它能做什么
这个技能会记录线上 Convex 应用的错误,包括服务器故障和浏览器崩溃。适合希望了解真实用户遇到什么问题、并将数据保存在自己项目中的应用负责人。
适用场景
- ✓当你的 Convex 应用已上线,并且你想知道真实用户遇到的错误时。
- ✓当你希望错误记录保存在自己的 Convex 部署中,而不是交给第三方时。
- ✓当你希望新的生产错误触发后续操作时。
技能链接
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-sentinel/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的线上 Convex 应用设置错误跟踪,让我看到真实用户遇到了什么问题。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把 Sentinel 组件添加到项目中,连接浏览器端代码以报告崩溃,并在任何内容保存之前删除敏感值,例如密钥。保存的错误可以用 Convex 命令行工具读取。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- Install the component:
app.use(sentinel)inconvex/convex.config.ts. - Wire the client SDK: a React error boundary plus
window.onerror/unhandledrejectionand breadcrumbs. - Redaction runs at write time and is on by default (default-deny on secret key names and value patterns).
- Read recent errors with the Convex CLI (
convex data,run-once-query); react to new ones via the monitor'sprod_errorevent. - Optionally enable the self-healing cron:
triageclassifies 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
评论
- …
同一仓库的更多技能
axiom-alerting
9.5k帮你的智能体通过 Axiom API 创建和管理监控器与通知路由,并检查告警是否按预期运行。
axiom-sre
9.5k帮你的智能体逐步调查生产事故和缺陷,在得出结论之前,用 Axiom 日志验证每一个猜测。
building-dashboards
9.5k帮你的智能体从仪表盘必须支持的决策出发,设计配有合适图表、查询和筛选器的 Axiom 仪表盘。
controlling-costs
9.5k帮你的智能体在 Axiom 中找出未被使用的数据,并构建用于追踪和削减日志成本的仪表盘与监控器。