New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Fetch current third-party API docs through the chub CLI before writing code against external services.

skills.sh installs
1.4K
GitHub stars
14K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the workflow of searching with chub search, fetching with chub get <id> --lang, and saving gotchas with chub annotate
  • Includes guidance for installing chub via npm, checking chub --help first, and sending doc feedback with chub feedback
  • Enforces use of fetched documentation over pre-trained knowledge, and forbids secrets, source code, or private architecture in feedback
  • Designed for coding tasks that call external SDKs or APIs such as OpenAI, Stripe, Anthropic, or Pinecone

Install

$ npx -y skills add andrewyng/context-hub --skill get-api-docs -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

Details

Repository
github.com/andrewyng/context-hub
Categories
Agent Workflow & Planning, Technical Documentation
First seen
May 16, 2026

Similar to Get Api Docs

More Agent Workflow & Planning