返回 Skills 目录
get-convex/agent-skills已通过检查

SKILL DETAIL

convex-sentinel

get-convex/agent-skills/convex-sentinel

安装 @convex-dev/sentinel 组件,将生产错误(服务器函数失败、客户端 JS/React 崩溃、OCC 和扩展信号)捕获到用户自己的部署中的表中,并在写入时进行编辑,然后对新错误做出反应。数据永远不会离开用户的部署。 工作流程包括:在 convex/convex.config.ts 中安装组件,连接客户端 SDK(React 错误边界、window.onerror/unhandledrejection 和面包屑),默认启用写入时编辑(对密钥名称和值模式默认拒绝),使用 Convex CLI 读取最近错误,并通过监控器的 prod_error 事件对新错误做出反应。可选地启用自愈 cron,该 cron 对每个错误进行分类,并将重复的非暂时性错误交给 ai-runner 以打开修复 PR。

安装量 · 444查看来源

Installation

npx skills add https://github.com/get-convex/agent-skills --skill convex-sentinel

技能文件

SKILL.md

最近同步 · 2026年10月15日

SKILL.md›
---
name: convex-sentinel
description: "Set up Sentinel production error capture in your own Convex deployment."
---

<!-- 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.