convex-performance-audit
O que ela faz
Esta skill diagnostica partes lentas ou caras de um app Convex e as corrige, um problema por vez. É para quem constrói um app que parece lento ou cujos relatórios de uso mostram leituras de dados pesadas.
Quando usar
- ✓Quando uma página ou recurso do seu app Convex parece lento.
- ✓Quando relatórios de uso mostram uma função lendo muito mais dados do que o esperado.
- ✓Quando seu app mostra erros de conflito de escrita por causa de muitas atualizações ao mesmo tempo.
Link da skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-performance-audit/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“A página do meu painel na Convex carrega devagar. Descubra por que e corrija a parte lenta.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente reúne dados de desempenho do deployment ou do código, identifica o sinal mais forte e aplica a correção mais simples que se encaixa no problema. Evita grandes reestruturações, a menos que os dados mostrem uma necessidade real.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Convex Performance Audit
Diagnose and fix performance problems in Convex applications, one problem class at a time.
When to Use
- A Convex page or feature feels slow or expensive
npx convex insights --detailsreports high bytes read, documents read, or OCC conflicts- Low-freshness read paths are using reactivity where point-in-time reads would do
- OCC conflict errors or excessive mutation retries
- High subscription count or slow UI updates
- Functions approaching execution or transaction limits
- The same performance pattern needs fixing across sibling functions
When Not to Use
- Initial Convex setup, auth setup, or component extraction
- Pure schema migrations with no performance goal
- One-off micro-optimizations without a user-visible or deployment-visible problem
Guardrails
- Prefer simpler code when scale is small, traffic is modest, or the available signals are weak
- Do not recommend digest tables, document splitting, fetch-strategy changes, or migration-heavy rollouts unless there is a measured signal, a clearly unbounded path, or a known hot read/write path
- In Convex, a simple scan on a small table is often acceptable. Do not invent structural work just because a pattern is not ideal at large scale
First Step: Gather Signals
Start with the strongest signal available:
- If deployment Health insights are already available from the user or the current context, treat them as a first-class source of performance signals.
- If CLI insights are available, run
npx convex insights --details. Use--prod,--preview-name, or--deployment-namewhen needed.- If the local repo's Convex CLI is too old to support
insights, trynpx -y convex@latest insights --detailsbefore giving up.
- If the local repo's Convex CLI is too old to support
- If the repo already uses
convex-doctor, you may treat its findings as hints. Do not require it, and do not treat it as the source of truth. - If runtime signals are unavailable, audit from code anyway, but keep the guardrails above in mind. Lack of insights is not proof of health, but it is also not proof that a large refactor is warranted.
Signal Routing
After gathering signals, identify the problem class and read the matching reference file.
| Signal | Reference |
|---|---|
| High bytes or documents read, JS filtering, unnecessary joins | references/hot-path-rules.md |
| OCC conflict errors, write contention, mutation retries | references/occ-conflicts.md |
| High subscription count, slow UI updates, excessive re-renders | references/subscription-cost.md |
| Function timeouts, transaction size errors, large payloads | references/function-budget.md |
| General "it's slow" with no specific signal | Start with references/hot-path-rules.md |
Multiple problem classes can overlap. Read the most relevant reference first, then check the others if symptoms remain.
Escalate Larger Fixes
If the likely fix is invasive, cross-cutting, or migration-heavy, stop and present options before editing.
Examples:
- introducing digest or summary tables across multiple flows
- splitting documents to isolate frequently-updated fields
- reworking pagination or fetch strategy across several screens
- switching to a new index or denormalized field that needs migration-safe rollout
When correctness depends on handling old and new states during a rollout,
consult the convex-migration-helper skill for the migration workflow.
Workflow
1. Scope the problem
Pick one concrete user flow from the actual project. Look at the codebase, client pages, and API surface to find the flow that matches the symptom.
Write down:
- entrypoint functions
- client callsites using
useQuery,usePaginatedQuery, oruseMutation - tables read
- tables written
- whether the path is high-read, high-write, or both
2. Trace the full read and write set
For each function in the path:
- Trace every
ctx.db.get()andctx.db.query() - Trace every
ctx.db.patch(),ctx.db.replace(), andctx.db.insert() - Note foreign-key lookups, JS-side filtering, and full-document reads
- Identify all sibling functions touching the same tables
- Identify reactive stats, aggregates, or widgets rendered on the same pag
Perguntas frequentes
Ela vai reconstruir toda a minha estrutura de dados?
Não. Evita grandes mudanças estruturais, a menos que haja evidência medida ou um caminho de leitura sem limite.
Quais sinais ela usa?
Começa pelo sinal mais forte disponível, como os insights de saúde do deployment, antes de mexer no código.
Uma varredura pequena em uma tabela sempre é problema?
Não necessariamente. Em tabelas pequenas, uma varredura simples costuma ser aceitável, e a skill não cria trabalho desnecessário para ela.
Detalhes
Descrição original do autor
Audits Convex performance for reads, subscriptions, write contention, and function limits. Use for slow features, insights findings, OCC conflicts, or read amplification.
repo: openclaw/clawhub
Popularidade
- Estrelas no GitHub
- 9,5 mil
- Posição no ranking
- #12253
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
axiom-alerting
9,5 milAjuda seu agente a criar e gerenciar monitores e rotas de notificação do Axiom pela API do Axiom, e a verificar se os alertas se comportam como esperado.
axiom-sre
9,5 milAjuda seu agente a investigar incidentes e bugs de produção passo a passo, testando cada hipótese contra os logs do Axiom antes de tirar uma conclusão.
building-dashboards
9,5 milAjuda seu agente a desenhar dashboards do Axiom com gráficos, consultas e filtros adequados, partindo das decisões que o dashboard precisa apoiar.
controlling-costs
9,5 milAjuda seu agente a encontrar dados não usados no Axiom e a criar dashboards e monitores que acompanham e reduzem os custos de logs.
Skills parecidas
api-connector-builder
280 milFaz seu agente construir novas conexões com APIs seguindo o padrão já existente. Use quando precisar adicionar mais uma integração sem criar um novo jeito de fazer.
api-design
280 milAjuda seu agente a projetar APIs REST seguindo as melhores práticas. É útil para definir como as APIs se comunicam, como os erros são mostrados e como organizar os dados.
backend-patterns
280 milAjuda seu agente com padrões de arquitetura do lado do servidor e otimização de banco de dados. É útil para construir ou revisar o código que roda no servidor.