
Get Api Docs
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
What it does
- Covers the workflow of searching with
chub search, fetching withchub get <id> --lang, and saving gotchas withchub annotate - Includes guidance for installing chub via npm, checking
chub --helpfirst, and sending doc feedback withchub 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 -yInstalls 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
Context7MCP serverupstash65.3K starsCurrent, version-specific library docs and code examples fetched into an AI coding agent's context.
Docfork McpMCP serverdocfork483 starsDocumentation search and retrieval for AI agents, drawn from indexed official library docs.
ask-docsSkillcrewaiinc/skills8.9K installsQuery the official CrewAI docs for framework and AMP platform questions, matched to the user's installed version.
openai-docs-skillSkillam-will/codex-skills1.2K installsQuery OpenAI's official developer docs from the shell via the OpenAI Docs MCP server, instead of relying on memory.
find-docsSkillupstash/context710.5K installsRetrieves current library docs and code examples via the Context7 CLI, verifying answers against recent API changes.
stream-docsSkillgetstream/agent-skills851 installsPulls live documentation from GetStream's SDK reference across Chat, Video, Feeds, and Moderation for every framework they support. No local install needed for