api-documentation

api-documentation is a skill for Claude Code, Codex from LambdaTest/agent-skills. It costs 147 tokens per session (1,888 once invoked), scanned A, original, MIT.

A tool that creates reference documentation for APIs, the interfaces programs use to communicate, from endpoint lists, route code, OpenAPI or Swagger files, Postman collections, gRPC, GraphQL, or plain descriptions.

In plain words
What is it for?
Use it to document web endpoints, request fields, responses, errors, authentication, pagination, versioning, and other API conventions.
Why use it?
It turns scattered technical definitions into consistent documentation covering how to connect, authenticate, send requests, and understand responses.

Skill for Claude CodeCodex

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

Good fit Use it to document web endpoints, request fields, responses, errors, authentication, pagination, versioning, and other API conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lambdatest/agent-skills/api-documentation
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 LambdaTest/agent-skills --skill api-documentation
Clone the repo
git clone --depth 1 https://github.com/LambdaTest/agent-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/api-documentation"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-documentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,888 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: 3 findings, up to high

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 →

  • high Tool Misuse · line 206
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Data Exfiltration · line 115
    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 115
    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.00147 $0.01888
Opus 5.5 $0.00059 $0.00755
Sonnet 5.5 $0.00029 $0.00378
Haiku 4.5 $0.00015 $0.00189

Measured 1mo ago against content hash 5653ec5e6e21, 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 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 1mo 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/v1/users \
api-skill/api-documentation/SKILL.md · 241 lines

How it starts

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

API Documentation Skill

Generate clear, complete, professional API documentation from any form of API input.


Supported Input Formats

Accept any of the following as input:

  • OpenAPI / Swagger (YAML or JSON, v2 or v3)
  • Endpoint list (plain text, e.g. GET /users/:id)
  • Route definitions (Express, FastAPI, Django, Rails, etc.)
  • Controller / handler code (infer from function signatures and decorators)
  • Informal descriptions ("I have an endpoint that creates a user and takes name + email")
  • Postman collections (JSON)
  • gRPC proto files (document as method-based API)
  • GraphQL schema (document as query/mutation reference)

If the input is ambiguous, make reasonable inferences and note assumptions clearly.


Output Structure

Produce documentation with these sections, omitting any that are not applicable:

1. Overview

  • API name and short description
  • Base URL (if known or inferable)
  • Authentication method(s) (API key, Bearer token, OAuth2, etc.)
  • Versioning scheme (if present)
  • General conventions (date formats, pagination, error codes)

2. Authentication

  • How to authenticate
  • Token/key location (header, query param, cookie)
  • Example header or request snippet
  • Token expiry / refresh flow (if mentioned)

3. Endpoints (one section per endpoint)

For each endpoint, document:

### [METHOD] /path/to/endpoint
**Summary**: One-line description of what this endpoint does.

**Description**: (Optional) Longer explanation, use cases, side effects.

**Authentication**: Required / Optional / None

#### Path Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| id   | string | Yes    | Unique identifier of the resource |

#### Query Parameters
| Name | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| page | integer | No  | 1       | Page number for pagination |

#### Request Body
Content-Type: application/json

\`\`\`json
{
  "field": "value"
}
\`\`\`

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| field | string | Yes    | Description of field |

#### Responses

**200 OK**
\`\`\`json
{
  "id": "abc123",
  "name": "Example"
}
\`\`\`

**400 Bad Request** — Validation error
**401 Unauthorized** — Missing or invalid token
**404 Not Found** — Resource does not exist
**500 Internal Server Error** — Unexpected server error

#### Example Request
\`\`\`bash
curl -X POST https://api.example.com/v1/users \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Alice", "email": "[email protected]"}'
\`\`\`

#### Example Response
\`\`\`json
{
  "id": "u_abc123",
  "name": "Alice",
  "email": "[email protected]",
  "createdAt": "2026-03-20T10:00:00Z"
}
\`\`\`

Read the full file on GitHub · 241 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. 1mo ago First seen · 241 lines · 147 tokens per session scan A 5653ec5e6e21

Subscribe to this mod's changes

api-documentation is a skill published in the GitHub repository LambdaTest/agent-skills (376 stars, last pushed 6d ago), licensed MIT. It adds 147 tokens to every session and 1,888 once invoked, about $0.0006 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

Other skills, from other repositories

detecting-broken-object-property-level-authorization

Detect and test for OWASP API3:2023 Broken Object Property Level Authorization vulnerabilities including excessive data exposure and mass assignment attacks.

xalgorix/xalgorix · 36 tokens

API Test Suite Generator

Automatically generate comprehensive API test suites from OpenAPI specifications covering CRUD operations, error handling, authentication, pagination, and edge cases.

PramodDutta/qaskills · 29 tokens

bruno

Create version-controlled Bruno API collections, write Bru request files, and run API checks through the Bruno CLI in CI.

alivirgo/Major-AI-Skills · 26 tokens

kahea

Safely use HTTP APIs and finite WebSocket sessions through the Kāhea deterministic invocation kernel. Use when an agent must discover operations from OpenAPI, Postman, HAR, cURL, HTTP files, direct descriptors, websocket-session JSON/YAML, or the supported AsyncAPI 2.6/3.0 WebSocket subset; create and review sealed…

copyleftdev/kahea · 102 tokens

flowforge-testing

Generate, modify, validate, execute and triage Flow Forge API test cases. Use when the user wants to turn requirement documents, API documents, table structures or business rules into executable YAML/Excel test cases, revise existing cases after requirement/API changes, run cases with the Flow Forge executor and…

Remon-16/flow-forge · 90 tokens

api-spec-generator

Generate a ready-to-import Postman or Bruno collection from an API spec, Swagger/OpenAPI file, or endpoint description. Use this skill whenever the user wants to create, export, or scaffold an API test collection. Triggers on: "generate Postman collection", "create Bruno spec", "import-ready collection", "generate…

oumaimah-QA/QIOS · 110 tokens