# Get Api Docs

> Fetch curated API documentation using Context Hub (chub) before coding against any external API. Use when the task involves calling a third-party API (Stripe, OpenAI, Airwallex, Notion, etc.) to prevent hallucinated parameters and deprecated endpoints.

- **Type:** Skill
- **Install:** `agentstack add skill-dwarvesf-dwarves-kit-get-api-docs`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dwarvesf](https://agentstack.voostack.com/s/dwarvesf)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dwarvesf](https://github.com/dwarvesf)
- **Source:** https://github.com/dwarvesf/dwarves-kit/tree/master/skills/get-api-docs

## Install

```sh
agentstack add skill-dwarvesf-dwarves-kit-get-api-docs
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

```bash
# 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):

```bash
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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dwarvesf](https://github.com/dwarvesf)
- **Source:** [dwarvesf/dwarves-kit](https://github.com/dwarvesf/dwarves-kit)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dwarvesf-dwarves-kit-get-api-docs
- Seller: https://agentstack.voostack.com/s/dwarvesf
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
