get-api-docs

Fetches current third-party API and library documentation using the chub CLI.

25|4|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/thangchung/agent-engineering-experiment --skill get-api-docs-thangchung
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: get-api-docs
Source: https://github.com/thangchung/agent-engineering-experiment/tree/main/DotNetClaw/.github/skills/get-api-docs
Command: npx skills add https://github.com/thangchung/agent-engineering-experiment --skill get-api-docs-thangchung

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When writing code against external services like OpenAI, Stripe, or Anthropic, relying on memorized API knowledge leads to outdated model names, deprecated endpoints, and incorrect code patterns. This Skill fetches the current, correct API reference before you write any code. ## Core Features & Use Cases - Doc Discovery: Search available documentation by library name with chub search and pick the best-matching doc ID (e.g., openai/chat, stripe/api). - Language-Specific Fetching: Retrieve docs for Python, JavaScript, or TypeScript with chub get <id> --lang py|js|ts. - Persistent Annotations: Save gotchas, workarounds, and version quirks with chub annotate so future sessions start smarter. - Quality Feedback Loop: Rate docs up or down with labels like outdated or accurate to help authors fix incorrect content. - Use Case: Before writing code that calls the Stripe API, run chub search stripe, fetch stripe/api docs, and implement against the current reference instead of training data. ## Quick Start Ask the assistant to fetch the latest documentation for the library you want to use, for example: get the current OpenAI API docs with chub before writing the integration code.

Frequently Asked Questions about get-api-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch API documentation with chub?▼

Run `chub search "<library name>" --json` to find the matching doc ID, then run `chub get <id> --lang py` (or js/ts) to fetch the docs. Omit `--lang` if the doc has only one language variant.

How do I find the right doc ID for a library?▼

Use `chub search "stripe"` to list matching docs and pick the best-matching ID, which follows the `<author>/<name>` format like `stripe/api`. If nothing matches, try a broader search term.

Does chub support multiple programming languages?▼

Yes, chub supports Python, JavaScript, and TypeScript via the `--lang py`, `--lang js`, and `--lang ts` flags. If multiple languages exist and you omit the flag, chub tells you which variants are available.

How do I save notes about an API doc for future sessions?▼

Use `chub annotate <id> "your note"` to save gotchas, workarounds, or version quirks locally. Annotations persist across sessions and appear automatically on future `chub get` calls for that doc.

What should I do if the fetched API doc is outdated?▼

Leave a downvote with `chub feedback <id> down --label outdated "details"` explaining what is wrong, such as deprecated model names or incorrect code patterns. Specific feedback helps authors fix the doc.