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.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
“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
Comentários
- …
Mais skills deste repositório
bloc-cubit
14 milEnsina seu agente a gerenciar o estado de um app Flutter com Bloc ou Cubit, incluindo quando escolher cada um e padrões seguros para testes.
riverpod
14 milEnsina seu agente a gerenciar o estado de um app Flutter com Riverpod, cobrindo providers, dados assíncronos e testes, com padrões sensatos para cada caso.
document-extraction
14 milAjuda seu agente a ler PDFs, imagens e planilhas, transformá-los em texto limpo e extrair campos como totais de notas fiscais, usando o serviço ADE da LandingAI.
document-workflows
14 milAjuda seu agente a criar pipelines repetíveis que processam muitos documentos de uma vez, preparam-nos para ferramentas de busca e carregam os resultados em um banco de dados.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.