Pular para o conteúdo
Skillpedia
Código em geral14 mil · #11268

get-api-docs

O que ela faz

Esta skill busca documentação atualizada de bibliotecas de software e serviços online usando a ferramenta chub. Ela é para quem pede à sua IA que escreva código que usa uma API ou um SDK.

Quando usar

  • ✓Quando você pedir à sua IA que use uma API, como a da OpenAI ou da Stripe.
  • ✓Quando pedir um código que use um SDK ou uma biblioteca específica.
  • ✓Quando quiser que o seu agente consulte a documentação atual, em vez de fazer uma pesquisa na web.

Link da skill

https://github.com/andrewyng/context-hub/blob/main/cli/skills/get-api-docs/SKILL.md

Copie 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

Use esta skill para me ajudar: https://github.com/andrewyng/context-hub/blob/main/cli/skills/get-api-docs/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Quero usar a API da Stripe para escrever um código que crie um link de pagamento, com a documentação mais recente.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente instala ou executa a ferramenta chub, pesquisa a documentação correspondente e a lê antes de escrever o código. Ele também pode deixar um feedback sobre a documentação que usou.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Get API Docs via chub

When you need documentation for a library or API, fetch it with the chub CLI rather than guessing from training data. This gives you the current, correct API.

Step 1 - Ensure chub exists and get the latest instructions for using it

Run

chub --help

If this results in an error showing that chub does not exist, then install it first, and run it again. If the environment has node, npm, network access, and package-manager permission, install it as follows:

npm install -g @aisuite/chub

Step 2 — Find the right documents

If there is a conflict, follow the instructions from the output of chub --help since that will be the latest guidance. However, a key command for searching for the right documentation is chub search:

chub search "<keywords>" --json

Pick the best-matching id from the results (e.g. openai/chat, anthropic/sdk, stripe/api). If nothing matches, try some broader terms.

Step 3 — Fetch the docs

Again, follow the latest instructions from chub --help instead of this if there is a conflict. But a key command for fetching the relevant docs is:

chub get <id> --lang py    # or --lang js, --lang ts

Remember to include the --lang parameter.

Step 4 — Use the docs and leave feedback

Read the fetched content and use it to write accurate code or answer the question. Do not rely on memorized API shapes — use what the docs say.

Finally, after completing the task, if you discovered something not in the doc — a gotcha, workaround, version quirk, or project-specific detail — save it so future sessions start smarter:

chub annotate <id> "Webhook verification requires raw body — do not parse before verifying"

Annotations are local, persist across sessions, and appear automatically on future chub get calls. Keep notes concise and actionable. Don't repeat what's already in the doc.

Additionally, to help all developers, give feedback on the documentation using chub feedback, following the instructions in chub --help . Do not include secrets, source code, private architecture details, or other sensitive information in feedback comments.

Perguntas frequentes

Preciso instalar alguma coisa?

O agente verifica a ferramenta chub e a instala se ela estiver faltando e a configuração permitir.

É melhor do que uma pesquisa na web?

A skill diz que ela encontra documentação mais precisa e atual do que uma pesquisa geral na web.

Para quais linguagens ela pode buscar documentação?

A documentação pode ser buscada para Python, JavaScript ou TypeScript, dependendo da linguagem que você escolher.

Detalhes

Descrição original do autor

Use this skill to get documentation for third-party APIs, SDKs or libraries before writing code that uses them to ensure you have the latest, most accurate documentation. This is a better way to find documentation than doing web search. This includes when a user asks for tasks like "use the OpenAI API", "call the Stripe API", "use the Anthropic SDK", "query Pinecone", or any other time the user asks you to write code against an external service and you need current API reference. Fetch the docs with chub before answering, rather than relying on your pre-trained knowledge, which may be outdated

repo: andrewyng/context-hub

Popularidade

Estrelas no GitHub
14 mil
Posição no ranking
#11268
Licença
MIT
Atualizada em
31/05/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas