api-docs-generator

api-docs-generator is a skill for Claude Code from armanzeroeight/fastagent-plugins. It costs 37 tokens per session (1,102 once invoked), scanned A, original, MIT.

A skill that creates API documentation from source code, including OpenAPI descriptions, JSDoc pages, and Python documentation.

In plain words
What is it for?
Documenting REST endpoints, GraphQL schemas, JavaScript libraries, and Python libraries.
Why use it?
It turns route definitions, code comments, and Python docstrings into reference material for developers using an API or library.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the documentation-toolkit plugin — 3 skills shipped together

Good fit Documenting REST endpoints, GraphQL schemas, JavaScript libraries, and Python libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/armanzeroeight/fastagent-plugins/api-docs-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 armanzeroeight/fastagent-plugins --skill api-docs-generator
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

Made for: Claude Code.

Or install documentation-toolkit, the plugin that ships this one along with the rest of its 3 skills.

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-docs-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/armanzeroeight/fastagent-plugins/api-docs-generator"><img src="https://agentmods.dev/badge/skills/armanzeroeight/fastagent-plugins/api-docs-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,102 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.00037 $0.01102
Opus 5.5 $0.00015 $0.00441
Sonnet 5.5 $0.00007 $0.00220
Haiku 4.5 $0.00004 $0.00110

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

Security

Grade A, and why

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

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 -H "Authorization: Bearer TOKEN" \\
plugins/documentation-toolkit/skills/api-docs-generator/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Documentation Generator

Quick Start

Generate API docs based on code type:

# OpenAPI from Express routes
npx swagger-jsdoc -d swaggerDef.js routes/*.js

# JSDoc for JavaScript
npx jsdoc src/ -d docs/

# Python docstrings
pdoc --html --output-dir docs/ mypackage/

Instructions

Step 1: Identify API Type

Determine documentation approach:

API Type Tool Output
REST API OpenAPI/Swagger Interactive API docs
GraphQL GraphQL Schema Schema documentation
JavaScript Library JSDoc HTML reference
Python Library Sphinx/pdoc HTML reference

Step 2: Extract Documentation

REST API (OpenAPI):

Scan route files for JSDoc comments:

/**
 * @swagger
 * /users:
 *   get:
 *     summary: Get all users
 *     responses:
 *       200:
 *         description: List of users
 */
router.get('/users', getUsers);

Generate spec:

npx swagger-jsdoc -d swaggerDef.js routes/*.js -o openapi.json

JavaScript Library (JSDoc):

/**
 * Adds two numbers together.
 * @param {number} a - First number
 * @param {number} b - Second number
 * @returns {number} Sum of a and b
 * @example
 * add(2, 3); // returns 5
 */
function add(a, b) {
  return a + b;
}

Python (Docstrings):

def add(a: int, b: int) -> int:
    """Add two numbers together.
    
    Args:
        a: First number
        b: Second number
        
    Returns:
        Sum of a and b
        
    Example:
        >>> add(2, 3)
        5
    """
    return a + b

Step 3: Generate Documentation

OpenAPI/Swagger:

# Generate OpenAPI spec
npx swagger-jsdoc -d swaggerDef.js routes/*.js -o openapi.json

# Serve interactive docs
npx swagger-ui-express openapi.json

JSDoc:

npx jsdoc src/ -d docs/ -r

Python Sphinx:

sphinx-apidoc -o docs/source mypackage/
cd docs && make html

Python pdoc:

pdoc --html --output-dir docs/ mypackage/

Read the full file on GitHub · 223 lines

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 · 223 lines · 37 tokens per session scan A 5f002bb83777

Subscribe to this mod's changes

api-docs-generator is a skill published in the GitHub repository armanzeroeight/fastagent-plugins (30 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 1,102 once invoked, about $0.0001 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-30.

Related

api-docs-generator compared with skills from other repositories

api-docs-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-docs-generatorarmanzeroeight/fastagent-pluginsSkill304mo agoMITA37Claude Code
github-oauth-nango-integrationAgentWorkforce/relaySkill1.2ktodayApache-2.0A37Claude Code
wegent-knowledgewecode-ai/WegentSkill896todayApache-2.0A60Claude Code, Codex
chat-sdkvercel-labs/open-agentsSkill5.9k3mo agoMITA191Claude Code, Codex
workflowvercel-labs/open-agentsSkill5.9k3mo agoMITA74Claude Code, Codex
ai-sdkvercel-labs/open-agentsSkill5.9k3mo agoMITA155Claude Code, Codex
a0-developmentagent0ai/agent-zeroSkill20ktodaynoneA24Claude Code, Codex