Aller au contenu
Skillpedia
Programmation générale9.5k · #12242

convex-docs

Ce qu’il fait

Cette compétence garantit que l'agent utilise une documentation Convex correspondant à la version de votre projet. Elle s'adresse aux créateurs qui veulent un code exact, et non des suppositions tirées d'anciens exemples.

Quand l’utiliser

  • ✓Quand votre agent s'apprête à écrire du code Convex qui utilise une fonctionnalité qu'il connaît mal.
  • ✓Quand votre projet a été mis à jour récemment et que le code ne fonctionne plus comme prévu.
  • ✓Quand vous voulez que le code Convex corresponde exactement à la version utilisée par votre application.

Lien du skill

https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-docs/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-docs/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Consulte la documentation Convex actuelle pour ma version avant d'écrire ce code de requête.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent lit la version de Convex utilisée par votre projet, cherche la documentation correspondante et ne se tourne vers d'autres sources qu'en cas d'échec.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

<!-- GENERATED from convex-agents content/capabilities/convex-docs.json — do not edit by hand. -->

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/<path> 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/<x>/ (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.
Questions fréquentes

Pourquoi la version compte-t-elle ?

Les fonctionnalités de Convex changent d'une version à l'autre, et une documentation d'une autre version peut produire du code qui échoue.

Où la compétence cherche-t-elle la documentation ?

Elle utilise un outil de recherche documentaire s'il est disponible, puis récupère la page correspondante.

Quelle source essaie-t-elle en premier ?

Elle essaie d'abord une recherche documentaire adaptée à la version, puis la page correspondante, et seulement ensuite d'autres sources.

Détails

Description originale de l’auteur

Pull version-current Convex docs for the version this project uses — pin the installed version, fetch page-as-markdown or check node_modules types, freshness hierarchy — instead of writing a possibly-stale API from memory.

repo: openclaw/clawhub

Popularité

Étoiles GitHub
9.5k
Position au classement
#12242
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires