Official agent skill

API Docs

by langchain-ai in langchain-ai/skills-benchmarks

OpenAPI documentation and REST API design patterns. An agent skill from langchain-ai/skills-benchmarks.

OfficialMITAuto-check passedDevelopment

Install API Docs

skills CLI
$ npx skills add langchain-ai/skills-benchmarks --skill api-docs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install langchain-ai/skills-benchmarks api-docs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/langchain-ai/skills-benchmarks.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/noise/api_docs .claude/skills/api-docs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
api-docs
GitHub stars
118
Token cost
~358 tokens
SKILL.md length
61 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

OpenAPI documentation and REST API design patterns. An agent skill from langchain-ai/skills-benchmarks.

  • Works in 5 steps: Use nouns for resources: /users, /orders → Use HTTP methods correctly: GET, POST,… → Return appropriate status codes: 200,… → …
  • Tasks that involve Technical documentation
  • SKILL.md covers OpenAPI Specification, REST Conventions and Error Responses
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

API Docs is an agent skill from langchain-ai/skills-benchmarks, published by the product's own GitHub organization. OpenAPI documentation and REST API design patterns

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Technical documentation, OpenAPI specifications and Design patterns. It works with OpenAPI. The licence is MIT.

When your agent uses it

  • Tasks that involve Technical documentation
  • Tasks that involve OpenAPI specifications
  • Tasks that involve Design patterns

Example prompts

  • “/api-docs”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Use nouns for resources: /users, /orders
  2. Use HTTP methods correctly: GET, POST, PUT, PATCH, DELETE
  3. Return appropriate status codes: 200, 201, 400, 404, 500
  4. Use pagination for lists: ?page=1&limit=20
  5. Version your API: /v1/users

What it can do on your machine

Read from SKILL.md and the folder at commit 9195f8c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

API Docs loads about 358 tokens when it runs. Until then it costs about 15 tokens; SKILL.md has 61 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~15
When it runs · the whole SKILL.md, loaded when a task matches
~358

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from langchain-ai/skills-benchmarks at commit 9195f8c, republished under its MIT licence (© langchain-ai). 61 words, ~358 tokens.

Download SKILL.mdSave it as .claude/skills/api-docs/SKILL.md (or your agent's skills folder).
name
api-docs
description
OpenAPI documentation and REST API design patterns

API Documentation Standards

Design and document RESTful APIs following industry standards.

OpenAPI Specification

Always document APIs using OpenAPI 3.0+:

yaml
openapi: 3.0.3
info:
  title: User API
  version: 1.0.0

paths:
  /users:
    get:
      summary: List users
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/User'

components:
  schemas:
    User:
      type: object
      required: [id, email]
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email

REST Conventions

  1. Use nouns for resources: /users, /orders
  2. Use HTTP methods correctly: GET, POST, PUT, PATCH, DELETE
  3. Return appropriate status codes: 200, 201, 400, 404, 500
  4. Use pagination for lists: ?page=1&limit=20
  5. Version your API: /v1/users

Error Responses

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid input",
    "details": [
      {"field": "email", "message": "Invalid email format"}
    ]
  }
}

© langchain-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/noise/api_docs of langchain-ai/skills-benchmarks.

Open the folder on GitHubat commit 9195f8c

Compare with similar skills

API Docs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

API Docs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
API Docs this skilllangchain-ai/skills-benchmarks118—~358Automated safety check: PassMIT
OpenAPI Spec Generationwshobson/agents40k10 repos~511Automated safety check: PassMIT
API Documentation WriterOneWave-AI/claude-skills323—~541Automated safety check: PassMIT
API Documenteralirezarezvani/claude-code-tresor777—~1.5kAutomated safety check: PassMIT
API Contract Designrsmdt/the-startup551—~1.1kAutomated safety check: PassMIT
Python Fastapi Patternsaiskillstore/marketplace4301 repos~1.3kAutomated safety check: NotesNone

Similar skills

  • Create, validate and maintain OpenAPI 3.1 specs for REST APIs, whether designed first or generated from existing code, and use them for docs and client SDKs.

    40k GitHub starsUsed in 10 repos~511 tokens
    Backend & APIsAuto-check passed
  • API Documentation Writer

    OneWave-AI/claude-skills

    Generate comprehensive API documentation including endpoint descriptions, request/response examples, authentication guides, error codes, and SDKs.

    323 GitHub stars~541 tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • API Documenter

    alirezarezvani/claude-code-tresor

    Auto-generate API documentation from code and comments. An agent skill from alirezarezvani/claude-code-tresor.

    777 GitHub stars~1.5k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • API Contract Design

    rsmdt/the-startup

    REST and GraphQL API design patterns, OpenAPI/Swagger specifications, versioning strategies, and authentication patterns.

    551 GitHub stars~1.1k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Python Fastapi Patterns

    aiskillstore/marketplace

    FastAPI web framework patterns. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~1.3k tokens
    Backend & APIsAuto-check: notes
  • Document API Endpoint

    getsentry/skills

    Official

    Document and type a Sentry API endpoint. An agent skill from getsentry/skills.

    1k GitHub stars~1.1k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed

More from langchain-ai/skills-benchmarks

All 8 skills in this repo
  • Framework Selection

    langchain-ai/skills-benchmarks

    Official

    INVOKE THIS SKILL at the START of any LangChain/LangGraph/Deep Agents project, before writing any agent code.

    118 GitHub stars~1.8k tokensUpdated 16 days ago
    Auto-check passed
  • Langchain Agents

    langchain-ai/skills-benchmarks

    Official

    Build LangChain agents with modern patterns. An agent skill from langchain-ai/skills-benchmarks.

    118 GitHub stars~2.5k tokensUpdated 16 days ago
    Auto-check passed
  • Langchain Oss Primer

    langchain-ai/skills-benchmarks

    Official

    ALWAYS START HERE for any LangChain, Deep Agents, or LangGraph agent building project.

    118 GitHub stars~4.1k tokensUpdated 16 days ago
    Auto-check passed
  • React Components

    langchain-ai/skills-benchmarks

    Official

    Modern React component patterns with hooks and TypeScript. An agent skill from langchain-ai/skills-benchmarks.

    118 GitHub stars~437 tokensUpdated 16 days ago
    Auto-check passed
  • Testing Patterns

    langchain-ai/skills-benchmarks

    Official

    Unit testing and integration testing best practices. An agent skill from langchain-ai/skills-benchmarks.

    118 GitHub stars~447 tokensUpdated 16 days ago
    Auto-check passed
  • Database Migrations

    langchain-ai/skills-benchmarks

    Official

    Database migration patterns and schema versioning. An agent skill from langchain-ai/skills-benchmarks.

    118 GitHub stars~350 tokensUpdated 16 days ago
    Auto-check passed

Works with

Questions about API Docs

What does API Docs do?

OpenAPI documentation and REST API design patterns. An agent skill from langchain-ai/skills-benchmarks. API Docs is an agent skill from langchain-ai/skills-benchmarks, published by the product's own GitHub organization.

When should I use API Docs?

API Docs fits situations like: tasks that involve Technical documentation; tasks that involve OpenAPI specifications; tasks that involve Design patterns.

How do I install API Docs in Claude Code?

Run `npx skills add langchain-ai/skills-benchmarks --skill api-docs -a claude-code`. Or copy the skill folder (skills/noise/api_docs in langchain-ai/skills-benchmarks) into .claude/skills/api-docs in your project. Claude Code loads it when a task matches its description.

How do I install API Docs in Codex?

Run `npx skills add langchain-ai/skills-benchmarks --skill api-docs -a codex`. Or copy the skill folder (skills/noise/api_docs in langchain-ai/skills-benchmarks) into .agents/skills/api-docs in your project. Codex loads it when a task matches its description.

Can I use API Docs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add langchain-ai/skills-benchmarks --skill api-docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-docs, .gemini/skills/api-docs, .github/skills/api-docs and .opencode/skills/api-docs in your project.

What does API Docs need to run?

SKILL.md names no scripts, command-line tools or credentials: API Docs is instructions for the agent only.

Does API Docs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is API Docs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does API Docs use?

API Docs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does API Docs use?

About 358 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to API Docs?

Skills that share tags, products or a category with API Docs: OpenAPI Spec Generation (wshobson/agents, 40k stars), API Documentation Writer (OneWave-AI/claude-skills, 323 stars), API Documenter (alirezarezvani/claude-code-tresor, 777 stars) and API Contract Design (rsmdt/the-startup, 551 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains API Docs?

langchain-ai (a GitHub organization, an official publisher) maintains it in langchain-ai/skills-benchmarks, which has 118 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 21, 2026.

Source: langchain-ai/skills-benchmarks on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.