# Convex Docs > Obtén docs de Convex ajustadas a la versión que usa tu proyecto: fija la versión instalada, trae la página como markdown o revisa los tipos en node_modules, en vez de escribir una API posiblemente obsoleta de memoria. Fuente: https://skillsagentes.com/skills/get-convex/agent-skills/convex-docs Markdown: https://skillsagentes.com/skills/get-convex/agent-skills/convex-docs.md Repositorio: https://github.com/get-convex/agent-skills Autor: get-convex Licencia: Apache-2.0 Actualizado: el mes pasado Coste de contexto: 57 tok instalada, 844 tok al activarse, 844 tok con todos los archivos del bundle Bundle: 1 archivo, 3 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add get-convex/agent-skills --skill convex-docs --agent claude-code # Cursor npx -y skills add get-convex/agent-skills --skill convex-docs --agent cursor # Codex npx -y skills add get-convex/agent-skills --skill convex-docs --agent codex # Gemini CLI npx -y skills add get-convex/agent-skills --skill convex-docs --agent gemini # Windsurf npx -y skills add get-convex/agent-skills --skill convex-docs --agent windsurf # Cline npx -y skills add get-convex/agent-skills --skill convex-docs --agent cline ``` ## Qué hace - Pin la versión instalada de convex y de cualquier componente @convex-dev/* antes de consultar nada - Sigue una jerarquía de frescura: herramienta de docs/MCP → página como markdown → búsqueda web general sin verificar - Verifica exports y .d.ts en node_modules como fuente de verdad para esa versión concreta - Trata un error de build por export/flag inexistente como un problema de versión, no de ortografía - Entrega el dato fresco a convex-expert para que escriba el código de forma idiomática ## Cuándo usarla - Vas a usar una API o export de Convex o de un componente @convex-dev/* del que no estás seguro que exista en la versión instalada - Aparece un error de build por un export o flag que 'debería' existir pero no aparece - Necesitas el signature o flag actual de una función y la actualidad está en duda ## Qué la activa - "¿Existe este export en la versión instalada de @convex-dev/agent?" - "Este flag de la CLI de convex ya no funciona, ¿cambió en esta versión?" - "Necesito el signature actual de esta función de Convex, no me fíes de la memoria" ## Antes de instalar - Necesita acceso al proyecto (node_modules/package.json) y, opcionalmente, a una herramienta de docs/MCP como search_convex_docs. ## Archivos - SKILL.md — 3 KB ## SKILL.md Reproducido tal cual desde get-convex/agent-skills bajo Apache-2.0. Esta sección es el documento original y está en inglés. # Pull version-current Convex docs convex-expert carries baked, plugin-versioned knowledge — excellent for stable idioms, but it goes stale exactly where it hurts: a component that gained a new export, a CLI flag that changed, an API renamed between versions. This capability is the freshness discipline layered on top: pin to the project's real version, fetch the live page cheaply as markdown, and never write an unfamiliar API from memory when the current source is one fetch away. ## Workflow 1. PIN the version: read the installed `convex` version (`node -p "require('./node_modules/convex/package.json').version"` or `package.json`), and the versions of any `@convex-dev/*` components in play. The docs you trust must match THESE versions — version skew is the single largest source of wrong Convex code. 2. FRESHNESS HIERARCHY (cheapest-correct first, the Supabase-taught order): (a) if a served docs tool / MCP `search_convex_docs` is available, use it (it returns version-scoped, reranked answers sized to the context window); (b) else fetch the specific docs page as MARKDOWN — request `docs.convex.dev/` and prefer a `.md`/markdown form when the site serves one (far fewer tokens than HTML), or the component's README at the pinned version; (c) only then fall back to a general web search, and treat its version as unverified. Do NOT skip to writing the API from memory when currentness is in doubt. 3. VERIFY against the installed package when it matters: for a component export you're unsure exists, check `node_modules/@convex-dev//` (its `package.json` `exports`, its `.d.ts`) — the installed types are the ground truth for THIS version, more authoritative than any doc. 4. USE the fetched fact narrowly: apply the current signature/flag, cite where it came from (page + version), and hand the actual code back to convex-expert to write idiomatically. convex-docs supplies the fresh fact; convex-expert supplies the idiom. 5. On a version-mismatch build error (an export/flag that 'should' exist but doesn't): treat it as a currentness question — pin the version, fetch the current API, and correct — rather than guessing a different spelling. ## Rules - Never write an unfamiliar or possibly-renamed Convex/component API from model memory when currentness is in doubt — pin the version and fetch the current source first. - The installed package's own `exports`/`.d.ts` in node_modules is the ground truth for this version — more authoritative than any doc page. - Follow the freshness hierarchy: served docs tool → page-as-markdown / pinned README → general web (unverified) — cheapest-correct first, fewest tokens. - Prefer markdown over HTML doc pages — far fewer tokens for the same content. - Supply the fresh FACT; hand idiomatic code back to convex-expert. This is a freshness layer, not a replacement for the baked knowledge. - A version-mismatch build error is a currentness question, not a spelling guess — re-pin and re-fetch. ## Dónde encaja - Categoría: [Documentos](https://skillsagentes.com/categorias/documentos.md) — Lee, escribe y transforma archivos PDF, DOCX, XLSX y PPTX. - Creador: [get-convex](https://skillsagentes.com/creators/get-convex.md) — 33 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)