get-api-docs

get-api-docs is a skill for Claude Code, Codex from dwarvesf/dwarves-kit. It costs 57 tokens per session (368 once invoked), scanned A, original, MIT.

A workflow for fetching curated documentation before writing code that calls an external API.

In plain words
What is it for?
Search for an API's documentation, retrieve language-specific or complete references, and record useful integration notes for later use.
Why use it?
It reduces the risk of using made-up, outdated, or incorrect endpoints, parameters, and authentication methods.

Skill for Claude CodeCodex

Part of the kit plugin — 11 skills, 38 commands, 30 agents, 10 hooks shipped together

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.

agentmods
npx agentmods add skills/dwarvesf/dwarves-kit/get-api-docs
Any agent
npx skills add dwarvesf/dwarves-kit --skill get-api-docs
Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit

Made for: Claude Code, Codex.

Or install kit, the plugin that ships this one along with the rest of its 11 skills, 38 commands, 30 agents, 10 hooks.

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 get-api-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/dwarvesf/dwarves-kit/get-api-docs.svg)](https://agentmods.dev/skills/dwarvesf/dwarves-kit/get-api-docs)
Your own site
<a href="https://agentmods.dev/skills/dwarvesf/dwarves-kit/get-api-docs"><img src="https://agentmods.dev/badge/skills/dwarvesf/dwarves-kit/get-api-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00057 $0.00368
Opus 5 $0.00028 $0.00184
Sonnet 5 $0.00011 $0.00074
Haiku 4.5 $0.00006 $0.00037

Measured today against content hash 0b27fb758320, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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/get-api-docs/SKILL.md · 48 lines

What it actually says

Get API Docs

Before writing code that calls any external API, fetch the curated documentation first.

When to use

  • You are about to write code that calls a third-party API
  • You are unsure about the current API parameters, endpoints, or auth method
  • The user mentions an API integration (Stripe, Notion, OpenAI, Airwallex, etc.)
  • You are debugging an API call that returns unexpected results

How to use

# Search for available docs
chub search [api-name]

# Fetch docs (language-specific)
chub get [provider]/[api] --lang [py|js|go]

# Fetch specific reference file
chub get [provider]/[api] --file references/[topic].md

# Fetch everything for comprehensive work
chub get [provider]/[api] --full

After using the API

If you discover something not in the docs (a workaround, a gotcha, a version quirk):

chub annotate [provider]/[api] "your note here"

This persists locally and appears automatically next time you fetch the same doc.

If chub is not installed

Tell the user: "Context Hub (chub) is not installed. Install it with npm install -g @aisuite/chub to get curated API docs and prevent hallucinated API calls."

Then fall back to web search, but warn that the results may be outdated.

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. today First seen · 48 lines · 57 tokens per session scan A 0b27fb758320

Subscribe to this mod's changes

get-api-docs is a skill published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 368 once invoked, about $0.0003 per session on Opus 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-09-04.