convex-performance-audit
Audits and optimizes Convex application performance across hot-path reads, write contention, subscription cost, and function limits. Use this skill when a Convex feature is slow or expensive, npx convex insights shows high bytes or documents read, OCC conflict errors or mutation retries appear, subscriptions or UI updates are costly, functions hit execution or transaction limits, or the user mentions performance, latency, read amplification, or invalidation problems in a Convex app.
Security Assessment
Detected risks:
About convex-performance-audit
The `convex-performance-audit` skill is designed to diagnose and optimize performance issues in Convex applications. It systematically analyzes problem areas such as hot-path reads, write contention, subscription costs, and function execution limits. By using available deployment health signals, CLI insights, or runtime observations, this skill helps developers identify and address inefficiencies that can cause slow responses, high resource usage, or repeated errors in Convex apps. It focuses on actionable guidance rather than unnecessary refactoring, ensuring that optimizations are targeted and evidence-based.
Key features of this skill include identifying high byte or document reads, OCC conflict errors, excessive mutation retries, subscription inefficiencies, slow UI updates, and functions nearing execution or transaction limits. It provides structured references for each problem class, including best practices for analyzing and mitigating these issues. The skill enforces guardrails to avoid overly complex solutions unless there is a measurable signal, and it recommends escalation for invasive or migration-heavy fixes. It supports gathering signals from Convex CLI insights, existing doctor tools, or code audits, enabling a flexible approach to performance troubleshooting.
This skill is ideal for developers, engineers, and performance specialists working with Convex applications who need to improve application responsiveness, reduce resource consumption, and prevent latency or read amplification problems. It is particularly useful when users encounter OCC conflicts, high subscription costs, or function execution limits, or when deployment insights indicate performance bottlenecks. It is not intended for initial setup, pure schema migrations, or minor one-off optimizations without clear performance impact. By guiding users through problem identification, signal analysis, and structured reference materials, this skill helps maintain high-performing Convex apps at scale.
FAQ
When should I use the convex-performance-audit skill?
Use this skill when a Convex feature is slow or expensive, CLI insights report high bytes or documents read, OCC conflicts or mutation retries occur, subscriptions or UI updates are costly, or functions are hitting execution or transaction limits.
Can I use this skill for initial Convex setup or schema migrations?
No, this skill is not intended for initial setup, authentication configuration, component extraction, or schema migrations without a performance goal.
How does the skill gather performance signals?
It can gather signals from deployment health insights, Convex CLI insights via `npx convex insights --details`, or code audits. Existing `convex-doctor` findings can be used as hints but are not required.
Does this skill recommend structural changes by default?
No, it only recommends invasive or migration-heavy changes if there is a clear signal of unbounded paths or known hot reads/writes. Simple scans on small tables are often acceptable without structural changes.
Who is the target user for this skill?
Developers and performance engineers working with Convex applications who need to troubleshoot latency, read amplification, invalidation problems, or other performance bottlenecks.
Install convex-performance-audit
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
get-convex/agent-skills