360 Secure SkillHub
360 安全技能中心

convex-sentinel

该 Skill 指导在用户自己的 Convex 部署中注册 @convex-dev/sentinel,接入 React 错误边界与全局错误监听,默认在写入时脱敏,并通过 Convex CLI 读取错误;可选启用自愈流程生成修复 PR。材料同时提示代理读取错误会到达模型提供商,需注意数据边界。

convex
热度 0.00
最近更新 2026-10-18 16:51:33
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:调试排错 / DevOps / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add convex/agent-skills/convex-sentinel
Metadata
name
convex-sentinel
description
Set up Sentinel production error capture in your own Convex deployment.

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.