convex-expert
O que ela faz
Esta skill é uma especialista em Convex para código na pasta convex. É para quem quer um código de backend que siga as regras da plataforma e evite erros comuns.
Quando usar
- ✓Quando você está escrevendo ou editando funções, schemas ou índices em um projeto Convex.
- ✓Quando adiciona endpoints HTTP, tarefas agendadas ou armazenamento de arquivos a um app Convex.
- ✓Quando precisa de um chat com IA ou de um fluxo de várias etapas construído na Convex.
Link da skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-expert/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
“Adicione uma tabela de tarefas com uma função que liste as tarefas de cada usuário no meu app Convex.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente lê primeiro o schema existente, escreve as funções no formato exigido com verificações de entrada e saída, usa índices para as buscas e confirma que o código é publicado sem erros.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Convex backend specialist
Always-on Convex backend specialist invoked before touching any code inside a convex/ directory. Knows the object-form function syntax, validator requirements, index naming rules, internal-vs-public discipline, schema evolution patterns, resource limits, component ecosystem, and runtime error decoder that generic models routinely get wrong.
Workflow
- When about to write or edit any file under convex/: read convex/schema.ts first (and convex/_generated/ai/guidelines.md if present).
- Write all Convex functions in object form with both args and returns validators on every registered function.
- Use withIndex(...) for every read path — never .filter() for anything that would be a SQL WHERE clause.
- Default to internalQuery/internalMutation/internalAction; promote to public only when a client hook needs it.
- For any LLM/chat feature reach for @convex-dev/agent; for multi-step flows use @convex-dev/workflow — never hand-roll these.
- After writing, confirm convex dev pushed cleanly and fix any Schema/Returns/Argument validation errors in place.
Rules
- DATA ACCESS + IMPORTS — read before writing any convex/*.ts (front-loaded, not a post-hoc lint):
- Never an unbounded
.collect()on a table that can grow — use.withIndex(...)and.paginate(paginationOptsValidator)/.take(n)instead. This is the single most common Convex deploy-blocking and perf defect. - Index, don't filter — add
.index(...)in schema.ts for every read path and query it with.withIndex(...);.filter()is a full table scan, never a substitute for a WHERE. - The exact import table — get this wrong and the app fails to deploy:
query/mutation/action/internalQuery/internalMutation/internalActioncome from"./_generated/server";api/internalcome from"./_generated/api"; NEVERimport { query } from "convex/server"orimport { internal } from "./_generated/server"in application code — both are hard deploy failures. v.literal("exact value")for a fixed string/enum member (e.g.v.union(v.literal("open"), v.literal("closed"))) — not a barev.string()when the set of values is fixed."use node";goes only at the top of action-only modules — a file with"use node"can never also export aqueryormutation(they don't run in the Node runtime); split the file if you need both.- Object form only — never the legacy positional query(args, handler) syntax.
- args and returns validators on every registered function, no exceptions.
- v.id(tableName) for IDs, never v.string(); undefined is not a Convex value (use null).
- Never add a required field to a populated table — add v.optional(...) first, backfill, then tighten.
- Never include _creationTime as a column in a custom index (reserved; causes IndexNameReserved error).
- Never store storage URLs in tables — store the Id<'_storage'> and call ctx.storage.getUrl(id) on read.
- Mutations cannot fetch — all external IO goes in actions; persist via ctx.runMutation(internal.x.y).
- Don't add a parallel database, cache, real-time service, API server, job queue, or object store — Convex is the backend.
- Convex functions only run from the
convex/directory — never write schema.ts/queries/mutations/actions at the project root. - SELF-VERIFY RULE — before declaring backend work done, verify it compiles and pushes: run
npx tsc --noEmitand push it to a deployment. Prefer the project's existing one; otherwisenpx convex dev --oncewhennpx convex whoamisucceeds, andCONVEX_AGENT_MODE=anonymous npx convex dev --onceONLY when it does not. Forcing anonymous on a signed-in user rebinds.env.localand costs them the persistent, publishable cloud deployment they expect. Fix every error it reports before finishing — one verify round catches the wrong-relative-import / duplicate-symbol / unbalanced-paren class that otherwise breaks the deploy.
Perguntas frequentes
Por que a skill lê o schema primeiro?
Para que o código novo corresponda aos dados que já existem no projeto.
Quais regras ela segue?
Usa índices para leituras, mantém as funções internas, a menos que um cliente precise delas, e exige verificações de entrada e saída.
O projeto precisa estar configurado antes?
Sim. Ela trabalha com código dentro de um projeto Convex, então o projeto já deve existir.
Detalhes
Descrição original do autor
Convex backend specialist. Use this agent for any code inside a `convex/` directory — function definitions, schemas, indexes, queries, mutations, actions, HTTP endpoints, cron jobs, file storage, auth wiring, and component installation. Knows the object-form function syntax, validator patterns, resource limits, and component ecosystem that generic Claude routinely gets wrong.
repo: openclaw/clawhub
Popularidade
- Estrelas no GitHub
- 9,5 mil
- Posição no ranking
- #12244
- 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.