| name | get-api-docs |
| description | Fetch curated, versioned API documentation through the `chub` CLI before writing code against an external API or SDK, so calls are checked against real docs instead of recalled from memory. Use before implementing anything that calls an external API, when unsure of the correct parameters, methods, or patterns, when a model name or endpoint needs verifying, or when the user asks how to use a specific service's API. |
| argument-hint | get <id> [--lang py|js] [--full] [--file FILENAME] |
Skill: Get API Documentation via Context Hub
Use the chub CLI to fetch curated, versioned API documentation before writing code against external APIs. This prevents hallucinated API calls and ensures correct SDK usage.
When to Use
- Before implementing code that calls an external API or SDK
- When unsure about correct API parameters, methods, or patterns
- When the user asks about how to use a specific service's API
Commands
chub search [query]
chub get <id> --lang py
chub get <id> --lang js
chub get <id>
chub get <id> --lang py --full
chub get <id> --file <filename>
chub annotate <id> "note about what you learned"
chub annotate --list
chub feedback <id> up
chub feedback <id> down
Workflow
- Search for the relevant API:
chub search "stripe"
- Fetch language-specific docs:
chub get stripe/api --lang js
- Read the output and use it as the source of truth for API calls
- Annotate if you discover gaps:
chub annotate stripe/api "webhook needs raw body"
- Rate after use:
chub feedback stripe/api up
Available Docs (as of 2026-03-07)
20 entries including: airtable, amplitude, anthropic/claude-api, asana, assemblyai, atlassian/confluence, auth0, aws/s3, binance, braintree, chromadb, clerk, cloudflare/workers, cockroachdb, cohere, datadog, deepgram, deepl, deepseek, directus.
Run chub search to get the current full list.
Important
- Always fetch docs BEFORE writing API integration code, not after
- Use
--lang py or --lang js to get language-specific examples
- Use
--full sparingly — it returns all reference files and uses more tokens
- Annotations persist locally across sessions — use them to build knowledge