api-docs

A command that creates documentation for software APIs, the interfaces that let programs communicate. It can describe schemas, examples, authentication, errors, and usage rules.

In plain words
What is it for?
Use it to generate OpenAPI or GraphQL documentation, request and response examples, code samples, interactive explorers, mock servers, and versioned documentation.
Why use it?
It gives developers a clearer way to understand and try an API while keeping documentation connected to the code.

Command for Claude Code

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 commands/oxygen-fragment/claude-modular/api-docs
Clone the repo
git clone --depth 1 https://github.com/oxygen-fragment/claude-modular

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 605 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.00000 $0.00605
Opus 5 $0.00000 $0.00302
Sonnet 5 $0.00000 $0.00121
Haiku 4.5 $0.00000 $0.00060

Measured 3d ago against content hash c8d3234c4365, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 3d 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.

.claude/commands/documentation/api-docs.md · 98 lines

What it actually says

API Documentation Command

2. **Schema Generation**
   - Generate OpenAPI/Swagger specifications
   - Create GraphQL schema documentation
   - Extract data models and types
   - Document validation rules and constraints

3. **Example Generation**
   - Create realistic request/response examples
   - Generate code samples in multiple languages
   - Include error handling examples
   - Add authentication flow examples

4. **Interactive Documentation**
   - Set up interactive API explorer
   - Configure try-it-out functionality
   - Add mock server integration
   - Include testing playground

5. **Documentation Enhancement**
   - Add comprehensive descriptions
   - Include usage guidelines and best practices
   - Document rate limiting and quotas
   - Add troubleshooting guides

6. **Publishing and Maintenance**
   - Generate static documentation sites
   - Set up automatic updates from code
   - Configure version management
   - Enable team collaboration features
# Generated documentation:
# - OpenAPI/Swagger specs
# - Interactive API explorer
# - Code examples
# - Authentication guides
```

```bash
# Generate docs for specific API version
/docs:api-docs --version=v2

# Version-specific documentation:
# - v2 API endpoints
# - Migration guides
# - Deprecation notices
# - Version comparison
```

```bash
# Generate docs with custom examples
/docs:api-docs --examples=production-data

# Enhanced documentation:
# - Real-world examples
# - Production use cases
# - Performance guidelines
# - Best practices
```
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. 3d ago First seen · 98 lines · 0 tokens per session scan A c8d3234c4365

Subscribe to this mod's changes

api-docs is a command published in the GitHub repository oxygen-fragment/claude-modular (283 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 605 tokens. 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-08-30.

Related

Other commands, from other repositories

paul:help

Show available PAUL commands and usage guide.

ChristopherKahler/paul · 13 tokens

verify

Grade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type checking, scores every dimension 0-10, and returns a merge verdict with a VERIFIED-vs-CLAIMED evidence manifest. Writes no test files and edits no source. Use…

yonatangross/orchestkit · 92 tokens

expect

Diff-aware AI browser testing — reads the git diff, maps changes to affected pages via the route map, generates a targeted test plan, and executes it via agent-browser (Rust daemon + CDP, ARIA-tree-first) with pass/fail reporting. Use when testing UI changes, verifying PRs before merge, or running regression checks on…

yonatangross/orchestkit · 73 tokens

paul:verify

Guide manual user acceptance testing of recently built features.

ChristopherKahler/paul · 14 tokens

auto

Intent-classified router, the front door to OrchestKit and the DEFAULT entry point for any goal-shaped request. Classifies a plain-English goal and routes it to the right specialist skill. Routing is never overhead, so use it even when the target skill seems obvious; skip only when already executing inside another…

yonatangross/orchestkit · 99 tokens

design-to-code

Mockup-to-component pipeline using Google Stitch, 21st.dev, and Storybook MCP. Accepts a screenshot, a description, or a URL and produces production-ready React components, checking existing Storybook components before generating anything new. Use when implementing UI from a mockup or screenshot. To call the MCP tool…

yonatangross/orchestkit · 86 tokens