convex-advisor

Diagnose Convex deployment performance issues from 72-hour insights events and root-cause them in code.

Updated May 26, 2026
One-click install
npx skills add https://github.com/Albo-Club/albo-os --skill convex-advisor-albo-club
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-advisor
Source: https://github.com/Albo-Club/albo-os/tree/main/.agents/skills/convex-advisor
Command: npx skills add https://github.com/Albo-Club/albo-os --skill convex-advisor-albo-club

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Convex deployments accumulate hidden performance and cost problems — read limit hits, OCC write contention, and repeated function failures — that are hard to spot without digging through logs. This Skill reads the deployment's own 72-hour insights events and traces each one back to the exact line of code causing it, turning runtime symptoms into evidence-backed, fixable findings. ## Core Features & Use Cases - Live insights analysis: Reads typed 72h health events (documentsRead/bytesRead limits and thresholds, OCC retries and permanent failures) via the official Convex MCP tools. - Code-level root-causing: Opens the flagged function's source to identify unindexed queries, missing pagination, .collect() scans, or read-modify-write hotspots, citing file and line. - Structured findings with fixes: Emits severity-ranked findings (perf/cost/correctness) with concrete repairs such as adding an index with .withIndex, .paginate, sharded counters, or aggregate components. - Use Case: Your Convex app's messages:list query is slowing down and costs are rising. Run the advisor to discover it read 4.2MB from the messages table 31 times yesterday due to a missing index, and get the exact fix applied on confirmation. ## Quick Start Ask the assistant to check my Convex deployment's health insights and root-cause any performance or contention issues in my functions.

Frequently Asked Questions about convex-advisor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose Convex query performance problems?

Use the Convex MCP insights tool to read 72-hour health events like documentsReadLimit and bytesReadThreshold, then read the flagged function's code to find unindexed filters, .collect() scans, or missing pagination. The fix is typically an index with .withIndex, .take(n), or .paginate.

How to fix OCC contention and failed mutations in Convex?

OCC retries and permanent failures come from read-modify-write hotspots on a shared document, such as counters or status toggles. Fixes include @convex-dev/sharded-counter, narrowing the read set, or moving the contended work to a workpool.

Does the Convex insights tool work on all deployments?

The insights tool is only available on cloud dev and production deployments when logged in as a user, not on preview deployments or deploy-key-scoped contexts. It also needs roughly 72 hours of traffic; if unavailable, fall back to a static code review instead.

Can a Convex advisor run safely against production?

Yes, reading insights, logs, tables, and function specs on production is read-only and safe. An advisory pass should never enable mutating production access and should only apply code fixes after explicit confirmation.

What kinds of Convex issues does insights analysis not cover?

Insights analysis covers performance, cost, and health events only. Authorization gaps, code idiom and style issues, and general error triage are separate concerns that should be routed to dedicated authz, review, or error-triage passes.