api-doc-generator

api-doc-generator is a skill for Claude Code, Codex from khalilbenaz/claude-skills-collection. It costs 92 tokens per session (1,628 once invoked), scanned A, original, MIT.

An API documentation guide that turns code, routes, or descriptions into structured documentation for REST, GraphQL, gRPC, or WebSocket APIs. It can produce OpenAPI YAML, Markdown, or a Postman collection.

In plain words
What is it for?
Use it to document an existing API, describe its endpoints, or create an OpenAPI specification for tools such as Swagger.
Why use it?
It removes the need to document every endpoint by hand and helps capture parameters, request data, authentication, successful responses, and errors consistently.

Skill for Claude CodeCodex

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

Good fit Use it to document an existing API, describe its endpoints, or create an OpenAPI specification for tools such as Swagger.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/api-doc-generator"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/api-doc-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,628 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 120
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 126
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00092 $0.01628
Opus 5.5 $0.00037 $0.00651
Sonnet 5.5 $0.00018 $0.00326
Haiku 4.5 $0.00009 $0.00163

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

Security

Grade A, and why

api-doc-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 2mo 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 -X POST "https://api.example.com/api/v1/payments" \
dev-skills/api-doc-generator/SKILL.md · 183 lines

How it starts

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

API Doc Generator

Workflow

Étape 1 — Détection du contexte

Identifie avant tout :

  • Framework : Express/NestJS, FastAPI, Django REST, Laravel, ASP.NET Core, Spring Boot, etc.
  • Type d'API : REST, GraphQL, gRPC, WebSocket
  • Auth : Bearer JWT, API Key, OAuth2, Basic, aucune
  • Format cible : OpenAPI 3.1 YAML, Markdown, Postman Collection v2.1

Si aucun format cible n'est précisé, utilise OpenAPI 3.1 YAML pour une API REST, Markdown structuré sinon.


Étape 2 — Extraction des endpoints

Pour chaque endpoint, collecte :

Champ Contenu attendu
Méthode + URL POST /api/v1/payments
Description Action métier claire, pas le nom de la fonction
Path params {id} → type, exemple, contraintes
Query params nom, type, requis/optionnel, valeur par défaut
Request body schéma JSON avec types, requis, exemples
Headers requis Authorization, Content-Type, custom headers
Réponses 200/201/204 succès + 400/401/403/404/422/500 erreurs
Auth scope/rôle requis si applicable

Étape 3 — Format de sortie

OpenAPI 3.1 YAML (format recommandé)
openapi: 3.1.0
info:
  title: Payments API
  version: 1.0.0
paths:
  /api/v1/payments:
    post:
      summary: Créer un paiement
      tags: [Payments]
      security:
        - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: [amount, currency, recipient_id]
              properties:
                amount:
                  type: integer
                  description: Montant en centimes
                  example: 5000
                currency:
                  type: string
                  enum: [TND, EUR, USD]
                  example: TND
                recipient_id:
                  type: string
                  format: uuid
      responses:
        "201":
          description: Paiement créé
          content:
            application/json:
              example:
                id: "pay_abc123"
                status: "pending"
        "422":
          description: Validation échouée
          content:
            application/json:
              example:
                error: "amount must be positive"
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

Read the full file on GitHub · 183 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. 2mo ago First seen · 183 lines · 92 tokens per session scan A 1f6bd8664d21

Subscribe to this mod's changes

api-doc-generator is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (27 stars, last pushed 3mo ago), licensed MIT. It adds 92 tokens to every session and 1,628 once invoked, about $0.0004 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-09-03.

Related

api-doc-generator compared with skills from other repositories

api-doc-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-doc-generatorkhalilbenaz/claude-skills-collectionSkill273mo agoMITA92Claude Code, Codex
api-patternssoftspark/ai-toolkitSkill18013d agoApache-2.0A52Claude Code
csharp-patternssoftspark/ai-toolkitSkill18013d agoApache-2.0A61Claude Code
java-patternssoftspark/ai-toolkitSkill18013d agoApache-2.0A48Claude Code
medplum-rulessoftspark/ai-toolkitSkill18013d agoApache-2.0A53Claude Code
plugin-systemellmos-ai/skillsSkill10todayMITA99Claude Code, Codex
kafka-event-driven-designjohnqtcg/awesome-skillsSkill311mo agoMITA191Claude Code, Codex