
API documentation
Keeps API contracts, examples and published docs accurate for callers, tests and mocks
API documentation is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 49
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About API documentation
This skill guides an agent through maintaining an API contract alongside its documentation. It starts from whichever artifact is the source of truth, such as an OpenAPI spec or a Postman collection, and asks that any sync direction between the two be stated explicitly. When a spec is authoritative, it points the agent to the Postman CLI command that generates a collection from it, with a reminder to inspect the output before overwriting an existing collection that may hold scripts and examples.
The workflow focuses on what changes a caller's decisions: required and optional inputs, auth and scopes, response guarantees, pagination, retryable failures and side effects. It asks the agent to label unresolved design choices rather than invent them, and to save examples for consequential cases including errors, since those examples also feed mock servers. Variables are used to keep credentials out of shared requests.
Publishing is handled by audience. Local files support Git review, a workspace push shares artifacts with teammates, and a public docs link goes through the postman-mcp-server documentation tool after the intended audience is confirmed. Verification checks that edited files parse, that examples match the contract, and that the published page is actually readable.
When your agent uses it
Use when defining or improving an API contract, generating documentation from a collection or OpenAPI spec, publishing API docs, or sharing a documentation link. Makes auth, inputs, responses, and examples reusable by callers, tests, and mocks. Use for requests such as "publish API docs".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the postman plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add postmanlabs/postman-plugin
/plugin install postman@postmanOr copy only this skill to ~/.claude/skills/api-documentation:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-documentation &&
cp -R "$tmp/agent-plugin/skills/api-documentation" ~/.claude/skills/api-documentation &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/api-documentation inside it instead.
Copy the skill folder to ~/.agents/skills/api-documentation to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-documentation &&
cp -R "$tmp/agent-plugin/skills/api-documentation" ~/.agents/skills/api-documentation &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/api-documentation inside it instead.
Copy the skill folder to ~/.cursor/skills/api-documentation to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-documentation &&
cp -R "$tmp/agent-plugin/skills/api-documentation" ~/.cursor/skills/api-documentation &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/api-documentation inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/postmanlabs/postman-plugin.git --path agent-plugin/skills/api-documentationOr copy the folder to ~/.gemini/skills/api-documentation yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/api-documentation:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-documentation &&
cp -R "$tmp/agent-plugin/skills/api-documentation" ~/.copilot/skills/api-documentation &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/api-documentation inside it instead.
Get the folder:
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.gitThen copy postman-plugin/agent-plugin/skills/api-documentation into your agent's skills folder as api-documentation. Agents that support SKILL.md read one folder per skill.
What it does
- Contract-first documentation
- Keeps OpenAPI specs and Postman collections aligned with a stated direction of generation.
- Caller-focused guarantees
- Documents auth, scopes, inputs, pagination, retries and side effects that affect integration.
- Error and success examples
- Saves examples for consequential cases, including failures, reusable by mocks and tests.
- Spec-to-collection generation
- Uses the Postman CLI to generate a collection from an OpenAPI spec, with review before replacement.
- Public docs publishing
- Guides publishing to a workspace or a public documentation link via the Postman MCP server.
- Verification steps
- Checks that edited artifacts parse, examples agree with the contract and published pages render.
Good for
- Generate a Postman collection from an existing OpenAPI spec
- Document authentication and error responses for an API endpoint
- Improve examples so mock servers return realistic failure cases
- Publish API documentation to a shared Postman workspace
- Create a public documentation link for an API
API documentation FAQ
When does API documentation trigger?
When you ask to define or improve an API contract, generate docs from a collection or OpenAPI spec, publish API docs, or share a documentation link.
Does publishing make docs public automatically?
No. A workspace push does not publish a public docs page or change permissions. Public links go through the documentation workflow and the intended audience should be set first.
Does API documentation overwrite my existing collection?
The skill asks the agent to inspect a generated collection before replacing an existing one, since maintained scripts and examples may be lost.
How do I install API documentation in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/api-documentation to use it in all your projects, or to .claude/skills/api-documentation in one project. Or install the postman plugin, which includes it: /plugin marketplace add postmanlabs/postman-plugin, then /plugin install postman@postman.
Does API documentation run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use API documentation?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to API documentation?
The closest alternatives to API documentation are API engineer, API documentation, API mocking, API and API discovery.
Where this comes from
- Description: from the skill's own SKILL.md.
More from postmanlabs/postman-plugin

Guides an agent through wiring a new vendor plugin route into the Postman plugin repo
- Open source
- 49 GitHub stars
- Developer tools

Walks an agent through cutting and publishing npm releases of the Postman plugin installer
- Open source
- 49 GitHub stars
- Developer tools

Scores how well an API contract lets AI agents discover, call and recover from errors
- Open source
- 49 GitHub stars
- Developer tools

Finds existing API contracts, mocks and consumers so agents reuse them instead of guessing
- Open source
- 49 GitHub stars
- Developer tools

Guides an agent through multi-step HTTP API work using Postman skills and shared contracts
- Open source
- 49 GitHub stars
- Legal and government

Finds, builds or pulls a stand-in API for frontends, clients and tests
- Open source
- 49 GitHub stars
- Developer tools



