api-documentation-generator

api-documentation-generator is a skill for Claude Code, Codex from eitelcj/Claude-Weekend. It costs 40 tokens per session (370 once invoked), scanned A, original, MIT.

A tool for creating documentation for APIs, which are interfaces that let software systems exchange data. It can produce OpenAPI specifications, endpoint details, examples, integration instructions, error references, and authentication guidance.

In plain words
What is it for?
Use it to create or update API documentation, describe endpoints and data formats, and provide usage examples for JavaScript, Python, or command-line clients.
Why use it?
It reduces the manual work of explaining how an API works and helps keep documentation accurate and consistent.

Skill for Claude CodeCodex

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

Good fit Use it to create or update API documentation, describe endpoints and data formats, and provide usage examples for JavaScript, Python, or command-line clients.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eitelcj/claude-weekend/doc-generator
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 eitelcj/Claude-Weekend --skill doc-generator
Clone the repo
git clone --depth 1 https://github.com/eitelcj/Claude-Weekend

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 api-documentation-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/eitelcj/claude-weekend/doc-generator/github.svg)](https://agentmods.dev/skills/eitelcj/claude-weekend/doc-generator)
Your own site
<a href="https://agentmods.dev/skills/eitelcj/claude-weekend/doc-generator"><img src="https://agentmods.dev/badge/skills/eitelcj/claude-weekend/doc-generator/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 api-documentation-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/eitelcj/claude-weekend/doc-generator"><img src="https://agentmods.dev/badge/skills/eitelcj/claude-weekend/doc-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00040 $0.00370
Opus 5.5 $0.00016 $0.00148
Sonnet 5.5 $0.00008 $0.00074
Haiku 4.5 $0.00004 $0.00037

Measured 3mo ago against content hash 4cad92d5c5e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-documentation-generator scanned grade A with 1 finding 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (generate-docs.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X GET "https://api.example.com/api/v1/users/usr_123" \
03-skills/doc-generator/SKILL.md · 77 lines

What it actually says

API Documentation Generator Skill

Generates

  • OpenAPI/Swagger specifications
  • API endpoint documentation
  • SDK usage examples
  • Integration guides
  • Error code references
  • Authentication guides

Documentation Structure

For Each Endpoint

## GET /api/v1/users/:id

### Description
Brief explanation of what this endpoint does

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| id | string | Yes | User ID |

### Response

**200 Success**
```json
{
  "id": "usr_123",
  "name": "John Doe",
  "email": "[email protected]",
  "created_at": "2025-01-15T10:30:00Z"
}

404 Not Found

{
  "error": "USER_NOT_FOUND",
  "message": "User does not exist"
}

Examples

cURL

curl -X GET "https://api.example.com/api/v1/users/usr_123" \
  -H "Authorization: Bearer YOUR_TOKEN"

JavaScript

const user = await fetch('/api/v1/users/usr_123', {
  headers: { 'Authorization': 'Bearer token' }
}).then(r => r.json());

Python

response = requests.get(
    'https://api.example.com/api/v1/users/usr_123',
    headers={'Authorization': 'Bearer token'}
)
user = response.json()
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. 3mo ago First seen · 77 lines · 40 tokens per session scan A 4cad92d5c5e8

Subscribe to this mod's changes

api-documentation-generator is a skill published in the GitHub repository eitelcj/Claude-Weekend (2 stars, last pushed 7mo ago), licensed MIT. It adds 40 tokens to every session and 370 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

api-documentation-generator compared with skills from other repositories

api-documentation-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-documentation-generatoreitelcj/Claude-WeekendSkill27mo agoMITA40Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70ktodayApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3ktodayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3ktodayMITA46Claude Code
api-designericrisco/rsc-harnessSkill7072d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill283todayMITA106Claude Code