ctxhub-get-api-docs

ctxhub-get-api-docs is a skill for Claude Code, Codex from aegntic/cldcde. It costs 119 tokens per session (614 once invoked), scanned A, original, MIT.

A command-line tool guide for finding and retrieving current documentation for outside APIs, software libraries, and developer kits. It uses Context Hub, a service that stores searchable API documentation.

In plain words
What is it for?
Use it before writing code that calls services such as OpenAI, Stripe, or another third-party API. It helps search for the right documentation and retrieve it in a suitable programming language.
Why use it?
An agent's built-in knowledge can be out of date, especially for changing APIs. Fetching the relevant documentation first reduces guesses and code based on old instructions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before writing code that calls services such as OpenAI, Stripe, or another third-party API. It helps search for the right documentation and retrieve it in a suitable programming language.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aegntic/cldcde/ctxhub-get-api-docs
Install

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.

Any agent
npx skills add aegntic/cldcde --skill ctxhub-get-api-docs
Clone the repo
git clone --depth 1 https://github.com/aegntic/cldcde

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ctxhub-get-api-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/aegntic/cldcde/ctxhub-get-api-docs/github.svg)](https://agentmods.dev/skills/aegntic/cldcde/ctxhub-get-api-docs)
Your own site
<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.

agentmods 80×15 button for ctxhub-get-api-docs

Your own site · 80×15
<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>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 614 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 17d ago against content hash 188ac8506242, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/ctxhub-get-api-docs/SKILL.md · 77 lines

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)

  1. 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-annotations on get to include them. They are treated as untrusted input by default.

  2. Rate the doc after using it:

    ctxhub feedback <id> up    # or down --label outdated "why"
    

Rules

  1. Fetch before coding against any external API/SDK — never rely on memorized API shapes, which go stale.
  2. Annotate every non-obvious finding; rate every doc you use.
Files

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.

Changes

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.

  1. 17d ago First seen · 77 lines · 119 tokens per session scan A 188ac8506242

Subscribe to this mod's changes

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.

Related

ctxhub-get-api-docs compared with skills from other repositories

ctxhub-get-api-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ctxhub-get-api-docsaegntic/cldcdeSkill123d agoMITA119Claude Code, Codex
hono-corebobmatnyc/claude-mpm-skillsSkill794mo agoMITA26Claude Code
hono-edge-apifindscripter/everything-skillsSkill12yesterdaynoneA110Claude Code
tauri-django-reactFirstp1ck/pi-coding-agent-forgeSkill96todayMITA63Claude Code, Codex
rewrite-in-rustFirstp1ck/pi-coding-agent-forgeSkill96todayMITA152Claude Code, Codex
project-readmeFirstp1ck/pi-coding-agent-forgeSkill96todayMITA49Claude Code, Codex
requirements-engineeringFirstp1ck/pi-coding-agent-forgeSkill96todayMITA132Claude Code, Codex