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

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 skills/lambdatest/agent-skills/api-documentation
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.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.svg" alt="Measured on agentmods" 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. 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.00147 $0.01888
Opus 5 $0.00073 $0.00944
Sonnet 5 $0.00029 $0.00378
Haiku 4.5 $0.00015 $0.00189

Measured 4d ago against content hash 5653ec5e6e21, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (366 stars, last pushed 1mo ago), licensed MIT. It adds 147 tokens to every session and 1,888 once invoked, about $0.0007 per session on Opus 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

azure-mgmt-apicenter-dotnet

Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…

microsoft/skills · 97 tokens

azsdk-common-pipeline-analysis

Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format. Load this skill before calling azsdkanalyzepipeline, which returns raw failure data that this skill interprets and formats. USE FOR: "pipeline failed", "build failure", "CI check failing", "tests failing in…

Azure/azure-sdk-for-net · 192 tokens

requirements-author

Requirements authoring guide for BRD and PRD across Discover, Define, and Govern with canonical templates and handoff contracts.

microsoft/hve-core · 27 tokens

mps-aspect-actions

Use when defining or editing MPS node factories (the "actions" aspect) — NodeFactories roots, per-concept NodeFactory setup functions that initialize a freshly created node and optionally copy data from a replaced sampleNode, plus the actions aspect's CopyPasteHandlers and PasteWrappers roots. Reach for this skill…

JetBrains/MPS · 115 tokens

mps-aspect-intentions

Use when defining or editing MPS intentions (the Alt+Enter context-action aspect) — adding IntentionDeclaration roots, parameterized or surround-with variants, description/isApplicable/execute blocks, child-filter functions, factory-initialized AST splicing, or debugging why an intention is not offered. Lives in the…

JetBrains/MPS · 89 tokens

marginfi

MarginFi — Solana lending and borrowing.

alsk1992/CloddsBot · 11 tokens