get-api-docs

Installation
SKILL.md

Get API Docs

Use chub to retrieve current, verified documentation before writing code that depends on external APIs or SDKs.

Instructions

  1. Identify the API, SDK, and language the user is working with. If the language is not stated, infer it from the repo or say which language you are assuming.
  2. Check whether chub is available with command -v chub. If it is missing, say so clearly and suggest installing it with npm install -g @context-hub/cli before relying on memory for unstable API details.
  3. If the local CLI usage is unclear, run chub help or chub --help first. Do not assume older command shapes or document IDs.
  4. Prefer discovery before retrieval:
    • Use chub search "<query>" when the exact doc ID is unknown.
    • Use chub list only when broad browsing is useful.
  5. Fetch the relevant documentation with chub get <doc-id>. Add --lang <language> when the user needs language-specific examples.
  6. Base your coding or explanation on the retrieved docs, not on memory. Mention the doc ID you used when summarizing results.
  7. If chub does not have the needed docs or the output is incomplete, fall back to the vendor's official documentation and say that you did so.

Quick Reference

| Task | Action |

Related skills
Installs
1
GitHub Stars
2
First Seen
Apr 12, 2026