agentleFS
adeiltonpessiniadeiltonpessini/kit-memoria-ia/.claude/skills/docs-context7/SKILL.md

docs-context7

Skill0 starsChanged 5 days agoApache-2.0View on GitHub

Use antes de codar com lib externa (pgx, Flutter, React, Vite, Playwright...) ou ao depurar erro de API: puxa doc ATUALIZADA via context7 (MCP) e evita API alucinada. Prefira delegar ao subagente docs-researcher.

The file

Files
SKILL.md

docs-context7 — documentação atual sob demanda (sem alucinar API)

context7 é um MCP HTTP remoto (.mcp.json do projeto). Dá docs version-specific direto da fonte. Resolve o problema nº1 de escrever código de lib: API desatualizada/inventada.

Quando usar

  • Antes de escrever/alterar código que usa uma lib externa cuja API você não tem 100% na cabeça.
  • Ao depurar undefined: X/assinatura errada/parâmetro que "sumiu" entre versões.
  • Ao gerar uma skill que embrulha uma lib (a skill nasce com a API certa — ver skill-smith).

Como (2 ferramentas MCP)

Carregue os schemas: ToolSearch → select:resolve-library-id,query-docs. Depois:

  1. resolve-library-id — libraryName + query (pergunta completa) → escolha o match oficial/score alto.
  2. query-docs — libraryId (ex.: /jackc/pgx, ou versionado /vercel/next.js/v14.3.0) + query específica.

Economia de token (o ponto)

  • Delegue ao subagente docs-researcher (Agent tool) sempre que a busca puder ser volumosa: o dump de docs fica no contexto DELE; você recebe só a conclusão citada. Padrão do projeto.
  • Pergunte o tópico específico, nunca "toda a doc". Cite o libraryId/versão usados.

Verificação (memória é PISTA)

  • O que vier do context7 é a doc da lib — confirme contra a versão instalada no projeto (go.mod, pubspec.yaml, package.json) e contra como já usamos a lib aqui (rg).

Relacionado: subagente docs-researcher, skills skill-smith e busca-eficiente.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.