Get API Docs
sudomakes/backroad
A skill your agent uses when you need documentation for a third-party library, SDK, or API before writing code that uses it — for example, "use the OpenAI API", "call the Stripe API", "use the…
Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.
$ npx skills add andrewyng/context-hub --skill get-api-docs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install andrewyng/context-hub get-api-docs --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/andrewyng/context-hub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli/skills/get-api-docs .claude/skills/get-api-docs && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "get-api-docs" agent skill from https://github.com/andrewyng/context-hub/tree/main/cli/skills/get-api-docs into .claude/skills/get-api-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "get-api-docs", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/andrewyng/context-hub/tree/main/cli/skills/get-api-docsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add andrewyng/context-hub --skill get-api-docs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install andrewyng/context-hub get-api-docs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/andrewyng/context-hub.git skills-src && mkdir -p .agents/skills && cp -r skills-src/cli/skills/get-api-docs .agents/skills/get-api-docs && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "get-api-docs" agent skill from https://github.com/andrewyng/context-hub/tree/main/cli/skills/get-api-docs into .agents/skills/get-api-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "get-api-docs", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add andrewyng/context-hub --skill get-api-docs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install andrewyng/context-hub get-api-docs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/andrewyng/context-hub.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/cli/skills/get-api-docs .cursor/skills/get-api-docs && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "get-api-docs" agent skill from https://github.com/andrewyng/context-hub/tree/main/cli/skills/get-api-docs into .cursor/skills/get-api-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "get-api-docs", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/andrewyng/context-hub.git --path cli/skills/get-api-docs--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add andrewyng/context-hub --skill get-api-docs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install andrewyng/context-hub get-api-docs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/andrewyng/context-hub.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/cli/skills/get-api-docs .gemini/skills/get-api-docs && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "get-api-docs" agent skill from https://github.com/andrewyng/context-hub/tree/main/cli/skills/get-api-docs into .gemini/skills/get-api-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "get-api-docs", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install andrewyng/context-hub get-api-docsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add andrewyng/context-hub --skill get-api-docs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/andrewyng/context-hub.git skills-src && mkdir -p .github/skills && cp -r skills-src/cli/skills/get-api-docs .github/skills/get-api-docs && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "get-api-docs" agent skill from https://github.com/andrewyng/context-hub/tree/main/cli/skills/get-api-docs into .github/skills/get-api-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "get-api-docs", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add andrewyng/context-hub --skill get-api-docs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install andrewyng/context-hub get-api-docs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/andrewyng/context-hub.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/cli/skills/get-api-docs .opencode/skills/get-api-docs && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "get-api-docs" agent skill from https://github.com/andrewyng/context-hub/tree/main/cli/skills/get-api-docs into .opencode/skills/get-api-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "get-api-docs", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
get-api-docsFetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.
Before writing code against a third-party API, SDK or library, the agent fetches current documentation with the `chub` CLI (Context Hub) instead of relying on training data, which may predate API changes. It runs `chub --help` first, installs the tool globally through npm when it is missing and the environment allows it, and treats the help output as the latest guidance whenever that conflicts with the skill.
The flow is to search with `chub search` and a keyword query to get document ids such as openai/chat, anthropic/sdk or stripe/api, then fetch one with `chub get`, always passing a language flag (py, js or ts). After finishing, the agent can save a gotcha or version quirk with `chub annotate`; annotations are local, persist across sessions and appear on later fetches. It can also send feedback on the documentation with `chub feedback`, and must keep secrets, source code and private architecture details out of that feedback.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 67dcbeb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Get API Docs with chub loads about 775 tokens when it runs. Until then it costs about 217 tokens; SKILL.md has 301 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from andrewyng/context-hub at commit 67dcbeb, republished under its MIT licence (© andrewyng). 301 words, ~775 tokens.
.claude/skills/get-api-docs/SKILL.md (or your agent's skills folder).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.
Run
chub --helpIf 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/chubIf 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>" --jsonPick the best-matching id from the results (e.g. openai/chat, anthropic/sdk,
stripe/api). If nothing matches, try some broader terms.
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 tsRemember to include the --lang parameter.
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.
© andrewyng, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in cli/skills/get-api-docs of andrewyng/context-hub.
Open the folder on GitHubat commit 67dcbeb
We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in andrewyng/context-hub, which our catalogue first saw on October 7, 2026.
Get API Docs with chub next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Get API Docs with chub this skillandrewyng/context-hub | 14k | 2 repos | ~775 | Automated safety check: Pass | MIT | |
| Get API Docssudomakes/backroad | 162 | — | ~1k | Automated safety check: Pass | MIT | |
| Quota Provider Adapter Noteskunchenguid/quota-axi | 144 | — | ~4.1k | Automated safety check: Pass | MIT | |
| Readme Updateralirezarezvani/claude-code-tresor | 777 | — | ~1.5k | Automated safety check: Pass | MIT | |
| DeepChat Provider IntegrationThinkInAIXYZ/deepchat | 6.4k | 1 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Create SkillHyk260/PureChat | 546 | 1 repos | ~823 | Automated safety check: Pass | MIT |
sudomakes/backroad
A skill your agent uses when you need documentation for a third-party library, SDK, or API before writing code that uses it — for example, "use the OpenAI API", "call the Stripe API", "use the…
kunchenguid/quota-axi
Reference of credential sources, quota windows, endpoint shapes, error recovery and quirks for each provider supported by the quota-axi tool.
alirezarezvani/claude-code-tresor
Keep README files current with project changes. An agent skill from alirezarezvani/claude-code-tresor.
ThinkInAIXYZ/deepchat
Guides adding an LLM provider to DeepChat through explicit source changes: collect the provider details, pick a transport path and add registry entries and tests.
Hyk260/PureChat
Create a new skill in the current repository. An agent skill from Hyk260/PureChat.
qualcomm/qai-appbuilder
GenieAPIService technical documentation retrieval. An agent skill from qualcomm/qai-appbuilder.
andrewyng/context-hub
Guides building Tavily integrations for web search, URL extraction, site crawling and AI-assisted research in Python or JavaScript agent and RAG projects.
andrewyng/context-hub
Helps choose between Bloc and Cubit in Flutter and sets defaults for packages, lifecycle, widget binding and tests.
andrewyng/context-hub
Sequences parts-mcp tool calls for finding, pricing and checking availability of electronic components, including BOM processing and datasheet navigation.
andrewyng/context-hub
Adds Olakai monitoring to an existing LLM application with minimal code changes, then configures custom KPIs so the dashboard tracks business outcomes instead of just token counts.
andrewyng/context-hub
Collects reusable Playwright patterns for logging in during end-to-end tests: password forms, OAuth redirects, saved browser state and TOTP two-factor codes.
andrewyng/context-hub
Builds a new AI agent with Olakai monitoring from the start: CLI login, SDK integration, per-agent KPI configuration and an end-to-end check that data flows.
Works with
Categories
Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes. Before writing code against a third-party API, SDK or library, the agent fetches current documentation with the `chub` CLI (Context Hub) instead of relying on training data, which may predate API changes. It runs `chub --help` first, installs the tool globally through npm when it is missing and the environment allows it, and treats the help output as the latest guidance whenever that conflicts with the skill.
Get API Docs with chub fits situations like: writing code against the OpenAI, Stripe or Anthropic APIs and needing current reference; looking up the latest behavior of a third-party SDK; saving a project-specific API gotcha for future sessions.
Run `npx skills add andrewyng/context-hub --skill get-api-docs -a claude-code`. Or copy the skill folder (cli/skills/get-api-docs in andrewyng/context-hub) into .claude/skills/get-api-docs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add andrewyng/context-hub --skill get-api-docs -a codex`. Or copy the skill folder (cli/skills/get-api-docs in andrewyng/context-hub) into .agents/skills/get-api-docs in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add andrewyng/context-hub --skill get-api-docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/get-api-docs, .gemini/skills/get-api-docs, .github/skills/get-api-docs and .opencode/skills/get-api-docs in your project.
Going by SKILL.md and its folder, Get API Docs with chub needs the command-line tools its instructions call (npm). Our summary lists: The chub CLI (npm install -g @aisuite/chub), which needs Node.js, npm and network access.
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Get API Docs with chub is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 775 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Get API Docs with chub: Get API Docs (sudomakes/backroad, 162 stars), Quota Provider Adapter Notes (kunchenguid/quota-axi, 144 stars), Readme Updater (alirezarezvani/claude-code-tresor, 777 stars) and DeepChat Provider Integration (ThinkInAIXYZ/deepchat, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
andrewyng (a GitHub user) maintains it in andrewyng/context-hub, which has 13,976 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on May 31, 2026.
Source: andrewyng/context-hub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.