
Get Api Docs
This pulls live API documentation straight into your Claude session using the chub CLI, so you're working with current docs instead of Claude's potentially outdated training data. When you ask Claude to use the Stripe API or Anthropic SDK, it can fetch the actual reference first rather than guessing. The workflow is straightforward: search for the docs you need, fetch them with language-specific flags, then optionally annotate gotchas for future sessions. It's honest about a real problem with LLM coding help, which is that API shapes change and pre-trained knowledge gets stale fast. Worth having installed if you regularly work with third-party APIs.
- skills.sh installs
- 1.3K
- GitHub stars
- 14K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add andrewyng/context-hub --skill get-api-docs --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/andrewyng/context-hub
- Categories
- Backend & APIs, Documentation, AI & Agent Building, Finance & Trading
- First seen
- May 16, 2026