agentsclimarketplace

Get api docs

Skill ComeOnOliver/skillshub/skills/mxyhi/ok-skills/get-api-docs

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill get-api-docs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.4 KB, as published. Nobody here has run it

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 β€” Find the right doc ID

chub search "<library name>" --json

Pick the best-matching id from the results (e.g. openai/chat, anthropic/sdk, stripe/api). If nothing matches, try a broader term.

Step 2 β€” Fetch the docs

chub get <id> --lang py    # or --lang js, --lang ts

Omit --lang if the doc has only one language variant β€” it will be auto-selected.

Step 3 β€” Use the docs

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.

Step 4 β€” Annotate what you learned

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.

Step 5 β€” Give feedback

Rate the doc so authors can improve it. Ask the user before sending.

chub feedback <id> up                        # doc worked well
chub feedback <id> down --label outdated     # doc needs updating

Available labels: outdated, inaccurate, incomplete, wrong-examples, wrong-version, poorly-structured, accurate, well-structured, helpful, good-examples.

Quick reference

GoalCommand
List everythingchub search
Find a docchub search "stripe"
Exact id detailchub search stripe/api
Fetch Python docschub get stripe/api --lang py
Fetch JS docschub get openai/chat --lang js
Save to filechub get anthropic/sdk --lang py -o docs.md
Fetch multiplechub get openai/chat stripe/api --lang py
Save a notechub annotate stripe/api "needs raw body"
List noteschub annotate --list
Rate a docchub feedback stripe/api up

Notes

  • chub search with no query lists everything available
  • IDs are <author>/<name> β€” confirm the ID from search before fetching
  • If multiple languages exist and you don't pass --lang, chub will tell you which are available

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.