convex avatar

Convex Monitor

Rather than sitting in a polling loop, convex-monitor blocks on the next thing worth reacting to in a Convex app. One call to `wait_for_event` races three sources: local dev error logs, deployment subscriptions, and Sentinel rows for production errors. Whichever fires first comes back as a typed event (convex_error, prod_error, feature_request, or a quiet heartbeat), so the agent knows exactly what to fix or build next. It's most useful when you want an agent to babysit a dev session or triage live errors without you watching the dashboard. The honest catch: prod events only work if your app is deployed to Convex cloud and you've wired up Sentinel, so it's a poor fit for purely local projects. On harnesses without blocking MCP support, like Copilot cloud, it falls back to a poll loop with the same event contract.

skills.sh installs
41K
GitHub stars
69
last updated
Oct 26, 2026

Install

$ npx -y skills add convex/agent-skills --skill convex-monitor --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/convex/agent-skills
Categories
Frontend Development, DevOps & CI/CD, AI & Agent Building, Debugging, Databases
First seen
Oct 26, 2026

More from convex/agent-skills

All 30
1convex avatarconvex-suggestconvex/agent-skillsSuggest the matching Convex component when the user hand-rolls a pattern it already solves (crons, sharded-counter, rate-limiter, storage, search, presence, wor41Kskills.sh installs
2samber avatargolang-spf13-cobrasamber/cc-skills-golangGolang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, cust38.6Kskills.sh installs
3jakubkrehel avatarbetter-colorsjakubkrehel/skillsOKLCH color space and color usage for web projects. Convert hex/rgb/hsl to oklch, generate palettes, check contrast, handle gamut boundaries, theme with Tailwin38.4Kskills.sh installs
4samber avatargolang-uber-fxsamber/cc-skills-golangGolang application framework using uber-go/fx — fx.New, fx.Provide, fx.Invoke, fx.Module, fx.Lifecycle hooks, fx.Annotate (name/group/As), fx.Decorate, fx.Suppl38.1Kskills.sh installs
5clerk avatarclerk-cliclerk/skillsOperate the Clerk CLI (`clerk` binary) for authentication, user/org/session management, impersonation, local webhook testing, deploy verification, instance conf35.8Kskills.sh installs
6jimliu avatarbaoyu-post-to-wechatjimliu/baoyu-skillsPosts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text p34.8Kskills.sh installs