get-api-docs
Skill2 starsChanged 3 days agoMITView on GitHub
Fetch current API documentation for external libraries before coding against them. Prevents hallucinated parameters and stale interfaces. Triggers when about to write code against an unfamiliar or version-sensitive external API/library; NOT for the stdlib or well-known stable APIs.
- Installs packages
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Read and follow framework/work-principle.md before taking up work.
- Distinctive: line 31
Before the first API call against an external library in a task.
- Distinctive: line 34
When a reviewer reports an "API currency" finding.
- Very specific: line 89
Default: always run chub get before the first API call against a new library inside a task.
- Distinctive: line 116
When in doubt: chub first (cheap), then WebFetch if the chub answer is generic.
- Very specific: line 125
No research workflow → research/WORKFLOW.md (get_api_docs is only API lookup, not domain research).
- Very specific: line 127
No code generation — MCA writes the code.
- Distinctive: line 129
No library comparison — research workflow on alternatives evaluation.
- Very specific: line 134
NOT: write code against a library without chub get when the library is new.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Read and follow framework/work-principle.md before taking up work.
Resolve this reference against the framework root; retain the consumer CWD.
Skill: get-api-docs
Purpose
Fetch current, curated API documentation for external libraries before coding against them. Prevents hallucinated parameters and stale interfaces.
When to call
- Before the first API call against an external library in a task.
- On uncertainty whether a parameter / method is still current.
- When a reviewer reports an "API currency" finding.
Prerequisite
chub --version 2>/dev/null || echo "MISSING: npm install -g @aisuite/chub"Workflow
1. Search
chub search "<library-name>"Returns available doc IDs (format: author/entry-name).
2. Fetch the docs
chub get <id> # default (Python)
chub get <id> --lang js # JavaScript variant
chub get <id> --version 2.0.0 # specific version
chub get <id> --full # main + every reference
chub get <id> --file advanced # specific reference fileMarkdown is printed directly. Read it, then code.
3. Annotate (on discoveries)
chub annotate <id> "<precise note>"Annotations show up on the next chub get automatically.
Cross-session persistent.
Common doc IDs
chub search "fastapi"
chub search "nats"
chub search "pydantic"
chub search "postgres asyncpg"
chub search "litellm"
chub search "ollama"
chub search "apscheduler"
chub search "pgvector"
chub search "neo4j"Behaviour rule
Default: always run chub get before the first API call against
a new library inside a task. Exception: the library is trivial
(stdlib, well-known APIs like os.path, json).
Existing annotations are appended automatically — watch for
[ANNOTATION] blocks.
WebFetch fallback (edge-case behavior questions)
chub returns curated SDK overviews — good for "what is the API surface" questions: which methods, which parameters, which shapes.
For specific behavior questions chub typically does NOT have the answer:
- Header emission (does
GET /v1/modelsreturn rate-limit headers?) - Parameter shapes at edge cases (what does
stream_options=emit on the final chunk vs intermediate chunks?) - Per-endpoint version-specific changes
- Per-mediator pass-through behavior (does the proxy forward
upstream's
x-ratelimit-*headers?)
For these, fall back to WebFetch on canonical first-party docs
(console.<vendor>.com/docs/..., docs.<lib>.ai/...). chub is a
layer above first-party docs — it trades depth for curation, and
the depth is where edge-case answers live.
When in doubt: chub first (cheap), then WebFetch if the chub answer is generic. Concrete recurrence shape: chub returns a generalized SDK overview; specific behavior questions (per-endpoint rate-limit-header emission, streaming-cost-header trailing behavior, mediator-side pass-through) only resolve from canonical first-party docs via WebFetch.
Boundary
- No research workflow → research/WORKFLOW.md (
get_api_docsis only API lookup, not domain research). - No code generation — MCA writes the code;
get_api_docsonly delivers the docs. - No library comparison — research workflow on alternatives evaluation.
Anti-patterns
- NOT write code against a library without
chub getwhen the library is new. INSTEAD always lookup before the first API call in a new lib. Because: API assumptions from memory are often stale. - NOT ignore ANNOTATION blocks. INSTEAD read them; they contain consumer-specific conventions. Because: annotations are the gap between lib defaults and the consumer's stack.
- NOT drop the docs on a "well-known" lib when the last check is >6 months old. INSTEAD lookup when uncertain. Because: APIs change.
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- mxyhi/ok-skills★ 509same name
- Eskyee/agentbot-opensource★ 16same name
- m2ai-mcp-servers/claude-skills★ 0same name
- zizhenchen47-oss/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository85 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adversary-test-planSkill
- api-and-interface-designSkill
- architecture-coherence-reviewSkill
- bedrock-drillSkill
- cavemanSkill
- code-review-boardSkill
- consistency-checkSkill
- councilSkill
- cross-spec-consistency-checkSkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- frameSkill
- frontend-design-ttySkill
- frontend-ui-engineeringSkill
- get-api-docsSkill
- impl-plan-reviewSkill
- improve-codebase-architectureSkill
- knowledge-captureSkill
- knowledge-processorSkill
- pre-build-spec-auditSkill
- retroactive-spec-updateSkill
- root-cause-fixSkill
- scopingSkill
- sectional-deep-reviewSkill
- security-and-hardeningSkill
- session-diagnosisSkill
- shipping-and-launchSkill
- show-open-tasksSkill
- source-spec-reduceSkill
- spec-authoringSkill
- spec-boardSkill
- task-creationSkill
- task-status-updateSkill
- testingSkill
- transparency-headerSkill
- ux-authoringSkill
- workflow-routerSkill
- youtube-subtitlesSkill
- adversary-test-planSkill
- api-and-interface-designSkill
- architecture-coherence-reviewSkill
- bedrock-drillSkill
- cavemanSkill
- close-retroSkill
- code-review-boardSkill
- consistency-checkSkill
- convergence-loopSkill
- councilSkill
- cross-spec-consistency-checkSkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- frameSkill
- frontend-design-ttySkill
- frontend-ui-engineeringSkill
- impl-plan-reviewSkill
- improve-codebase-architectureSkill
- knowledge-captureSkill
- knowledge-processorSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

