360 Secure SkillHub
360 安全技能中心

convex-monitor

在 Convex 应用中调用 wait_for_event 阻塞等待下一个类型化事件(开发错误、生产错误、功能请求或静默心跳),并按事件类型修复错误或构建功能;缺少阻塞 MCP 的环境改用相同事件契约的轮询循环,生产错误事件需要已部署云应用与 Sentinel。

convex
热度 0.00
最近更新 2026-10-18 16:51:32
分类:开发依赖:MCP 服务 / 第三方 API / 读写文件应用场景:调试排错 / DevOps / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add convex/agent-skills/convex-monitor
Metadata
name
convex-monitor
description
Watch for the next dev/prod error or request in a Convex app and react to it.

Watch for the next thing to react to

Block on the next typed event instead of polling. Races local error logs, deployment subscriptions, and Sentinel prod-error rows; returns the first to fire (or a quiet heartbeat).

Workflow

  1. Call wait_for_event with {project_dir, event_kinds, timeout_ms}.
  2. On kind=convex_error/next_error: decode and fix it. On kind=prod_error: triage (see sentinel) and fix. On kind=feature_request: build it. On kind=quiet: loop.
  3. Where a harness has no blocking MCP (e.g. Copilot cloud), the pack runs a poll loop with the SAME event contract — same behavior, different mechanism.

Rules

  • Prefer the blocking tool; fall back to a poll loop only where blocking MCP is weak.
  • The event schema is fixed and versioned — the same trigger yields the same typed event.
  • Prod events (kind=prod_error) require a deployed cloud app plus Sentinel.