Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add aegntic/cldcde --skill ctxhub-get-api-docsgit clone --depth 1 https://github.com/aegntic/cldcdeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aegntic/cldcde/ctxhub-get-api-docs)<a href="https://agentmods.dev/skills/aegntic/cldcde/ctxhub-get-api-docs"><img src="https://agentmods.dev/badge/skills/aegntic/cldcde/ctxhub-get-api-docs/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aegntic/cldcde/ctxhub-get-api-docs"><img src="https://agentmods.dev/badge/skills/aegntic/cldcde/ctxhub-get-api-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00119 | $0.00614 |
| Opus 5.5 | $0.00048 | $0.00246 |
| Sonnet 5.5 | $0.00024 | $0.00123 |
| Haiku 4.5 | $0.00012 | $0.00061 |
Grade A, and why
ctxhub-get-api-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Get API Docs via ctxhub
When you need documentation for a library or API, fetch it with the ctxhub CLI
rather than guessing from training data. This gives you the current, correct API.
ctxhub is the aegntic name for the Context Hub CLI (packaged as @aisuite/chub;
the underlying binary is chub — both commands are interchangeable here).
Step 1 — Ensure ctxhub exists and get the latest usage instructions
Run:
ctxhub --help
If it does not exist and the environment has node/npm and network access:
npm install -g @aisuite/chub
Then run ctxhub --help again and follow its guidance; it is the authoritative usage.
Step 2 — Find the right documents
ctxhub search "<keywords>" --json
Pick the best-matching id from the results (e.g. openai/chat, stripe/api,
zai/glm-coding). Results can come from the community CDN (upstream) and/or a
locally configured internal source. Try broader terms if nothing matches.
Step 3 — Fetch the docs
ctxhub get <id> --lang py # or js / ts / go as appropriate
Read the fetched content and write code against it. Use --full for all files
of an entry and -o <path> to save to disk.
Step 4 — Leave the trail (mandatory after use)
-
If you discovered a gap or gotcha, persist it so every future session benefits:
ctxhub annotate <id> "the note"Annotations persist across sessions locally; pass
--with-annotationsongetto include them. They are treated as untrusted input by default. -
Rate the doc after using it:
ctxhub feedback <id> up # or down --label outdated "why"
Rules
- Fetch before coding against any external API/SDK — never rely on memorized API shapes, which go stale.
- Annotate every non-obvious finding; rate every doc you use.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 17d ago First seen · 77 lines · 119 tokens per session scan A 188ac8506242
ctxhub-get-api-docs is a skill published in the GitHub repository aegntic/cldcde (12 stars, last pushed 3d ago), licensed MIT. It adds 119 tokens to every session and 614 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.
ctxhub-get-api-docs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ctxhub-get-api-docsaegntic/cldcde | Skill | 12 | 3d ago | MIT | A | 119 | Claude Code, Codex |
| hono-corebobmatnyc/claude-mpm-skills | Skill | 79 | 4mo ago | MIT | A | 26 | Claude Code |
| hono-edge-apifindscripter/everything-skills | Skill | 12 | yesterday | none | A | 110 | Claude Code |
| tauri-django-reactFirstp1ck/pi-coding-agent-forge | Skill | 96 | today | MIT | A | 63 | Claude Code, Codex |
| rewrite-in-rustFirstp1ck/pi-coding-agent-forge | Skill | 96 | today | MIT | A | 152 | Claude Code, Codex |
| project-readmeFirstp1ck/pi-coding-agent-forge | Skill | 96 | today | MIT | A | 49 | Claude Code, Codex |
| requirements-engineeringFirstp1ck/pi-coding-agent-forge | Skill | 96 | today | MIT | A | 132 | Claude Code, Codex |