kshern
by @kshern
Use the Context Hub chub CLI to fetch current third-party SDK, API, and cloud-service documentation before writing, modifying, or reviewing integration code....
clawhub install use-chub-cliπ About This Skill
name: use-chub-cli description: Use the Context Hub chub CLI to fetch current third-party SDK, API, and cloud-service documentation before writing, modifying, or reviewing integration code. Trigger this skill when the task involves external platforms such as OpenAI, Anthropic, Stripe, Slack, Twilio, databases, or vector stores, and when the user asks for official SDK usage, current endpoints, parameter shapes, model names, version-specific behavior, or integration troubleshooting.
Use chub CLI
Use chub to fetch current third-party documentation before writing code or answering API questions. Do not start chub-mcp unless the user explicitly asks for MCP.
Choose the command
chub --help
chub is not on PATH, use a repository-local entrypoint when one exists. In this repository: node ./cli/bin/chub --help
Workflow
1. Search for the right entry
Search by vendor first, then by capability. Use --json when the output needs to be consumed reliably.
chub search "openai"
chub search "stripe webhook" --json
chub search "pinecone vector db" --json
Follow these rules:
chub search to confirm details.2. Fetch the minimum necessary content
Fetch the entry point first. Pull additional files only when deeper detail is required.
chub get openai/chat --lang py
chub get stripe/api --lang js
chub get tavily/sdk --lang ts
Follow these rules:
--lang only when the entry has a single language variant.--file after the CLI shows Additional files available.--full only when multiple reference files are genuinely needed.3. Drill down selectively
chub get openai/chat --lang py --file references/streaming.md
chub get datahub/sdk --lang py --file references/search.md
chub get tavily/tavily-best-practices --full
Follow these rules:
--full for narrow questions.4. Implement from the fetched docs
Follow these rules:
chub get output as the source of truth instead of relying on memory.chub has no matching entry, say so explicitly before falling back to official docs or user-provided material.5. Capture local learning
If you discover a validated gotcha that the doc does not state clearly, save a local annotation:
chub annotate stripe/api "Webhook verification requires the raw request body before JSON parsing."
Capture only:
Do not capture:
6. Ask before sending feedback
If the docs are clearly outdated or poor, suggest feedback, but do not send it without user approval:
chub feedback openai/chat up
chub feedback stripe/api down --label outdated
Decision rules
search and then get.--lang.--file over --full.Failure handling
chub not installed globally: use a repository-local entrypoint when available.Quick examples
chub search "openai" --json, then chub get openai/chat --lang py.
chub search "stripe webhook" --json, then chub get stripe/api --lang js, and fetch reference files only if needed.
chub search "tavily" --json, then chub get tavily/tavily-best-practices.Attribution
This skill is adapted from Context Hub and its bundled get-api-docs skill:
https://github.com/andrewyng/context-hubcli/skills/get-api-docs/SKILL.mdThis version was modified for general-purpose publishing and reuse.