Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
andrewyng avatar

Get Api Docs

  • 1.1k installs
  • 13.9k repo stars
  • Updated May 31, 2026
  • andrewyng/context-hub

get-api-docs is an agent skill that fetches current third-party API and SDK documentation via the chub Context Hub CLI.

About

The get-api-docs skill retrieves up-to-date third-party API, SDK, and library documentation using the chub CLI from Context Hub instead of relying on stale training data. Agents verify chub is installed with chub --help, install it when missing, then fetch the latest reference for services such as OpenAI, Stripe, Anthropic, or Pinecone before writing integration code. It is preferred over generic web search when users ask for latest API behavior or explicitly mention chub or Context Hub. Workflow ensures commands and schemas match current provider docs, reducing hallucinated endpoints or deprecated parameters during implementation tasks.

  • Uses chub CLI to fetch current API and SDK documentation.
  • Preferred over web search for latest provider reference accuracy.
  • Installs or verifies chub via chub --help before fetching docs.
  • Targets OpenAI, Stripe, Anthropic, Pinecone, and similar integrations.
  • Avoids outdated training-data assumptions about external APIs.

Get Api Docs by the numbers

  • 1,149 all-time installs (skills.sh)
  • +18 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #939 of 16,556 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
From the docs

What get-api-docs says it does

Fetch the docs with chub before answering, rather than relying on your pre-trained knowledge
SKILL.md
npx skills add https://github.com/andrewyng/context-hub --skill get-api-docs

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.1k
repo stars13.9k
Security audit2 / 3 scanners passed
Last updatedMay 31, 2026
Repositoryandrewyng/context-hub

What is the current correct API reference for this external SDK before I write integration code?

Fetch current third-party API and SDK documentation via the chub CLI before writing integration code.

Who is it for?

Agents implementing external APIs who need the latest docs instead of stale model knowledge.

Skip if: Skip for internal repository documentation that is not a third-party API reference.

When should I use this skill?

User writes code against an external API or asks for latest docs via chub or Context Hub.

What you get

Up-to-date documentation fetched through chub for accurate endpoints, parameters, and examples.

  • current API reference excerpts
  • integration-ready endpoint details
  • accurate SDK usage notes

Files

SKILL.mdMarkdownGitHub ↗

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.

Related skills

Forks & variants (1)

Get Api Docs has 1 known copy in the catalog totaling 109 installs. They canonicalize to this original listing.

How it compares

Prefer get-api-docs over raw web search when context-hub chub provides authoritative, version-current API references for integration coding.

FAQ

Why use chub instead of web search?

It fetches current API docs directly rather than relying on potentially outdated training data.

What if chub is not installed?

Install it first, then run chub --help and follow the CLI instructions to fetch docs.

When must this skill be used?

When users request latest API behavior or mention chub, Context Hub, or specific external SDKs.

Is Get Api Docs safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.