docs

A workflow for creating and publishing API documentation from OpenAPI specifications or Postman collections. OpenAPI is a standard format that describes an API's endpoints, inputs, outputs, and authentication.

In plain words
What is it for?
Use it to locate local or Postman API definitions, assess their documentation coverage, improve the content, and publish the resulting API documentation.
Why use it?
It finds available API definitions and identifies missing descriptions, examples, error details, authentication notes, and other documentation gaps.

Command

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 commands/postman-devrel/postman-claude-code-plugin/docs
Clone the repo
git clone --depth 1 https://github.com/Postman-Devrel/postman-claude-code-plugin
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 916 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00013 $0.00916
Opus 5 $0.00006 $0.00458
Sonnet 5 $0.00003 $0.00183
Haiku 4.5 $0.00001 $0.00092

Measured yesterday against content hash c5045ab0e87b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/docs.md · 89 lines

How it starts

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

API Documentation

Analyze, improve, and publish API documentation from OpenAPI specs and Postman collections.

Prerequisites

The Postman MCP Server must be connected for Postman operations. Local spec analysis works without MCP. If needed, tell the user: "Run /postman:setup to configure the Postman MCP Server."

Workflow

Step 1: Find the Source

Call getWorkspaces to get the user's workspace ID. If multiple workspaces exist, ask which to use.

Check for API definitions in this order:

Local specs:

  • Search for **/openapi.{json,yaml,yml}, **/swagger.{json,yaml,yml}

Postman specs:

  • Call getAllSpecs with the workspace ID to find specs in Postman
  • Call getSpecDefinition to pull the full spec

Postman collections:

  • Call getCollections with the workspace parameter
  • Call getCollection for full detail

Step 2: Analyze Documentation Completeness

Read the spec/collection and assess:

Documentation Coverage: 60%
  Endpoints with descriptions:     8/15
  Parameters with descriptions:    22/45
  Endpoints with examples:         3/15
  Error responses documented:      2/15
  Authentication documented:       Yes
  Rate limits documented:          No

Step 3: Generate or Improve

Sparse spec: Generate documentation for each endpoint:

  • Operation summary and description
  • Parameter table (name, type, required, description)
  • Request body schema with examples
  • Response schemas with examples for each status code
  • Error response documentation
  • Authentication requirements per endpoint

Partial spec: Fill the gaps:

  • Add missing descriptions (infer from naming and schemas)
  • Generate realistic examples from schemas
  • Add error responses
  • Document authentication and rate limits

Step 4: Apply Changes

Ask the user which output they want:

  1. Update the spec file - Write improved docs back into the OpenAPI spec
  2. Update in Postman - Use updateCollectionRequest to add descriptions and examples to each request
  3. Publish public docs - Call publishDocumentation with:
    • collectionId: the collection's unique ID
    • customColor and customization for branding
    • Returns a public URL for the docs
    • To unpublish later, call unpublishDocumentation with the collection ID
  4. Generate markdown - Create a docs/api-reference.md file for the project

Read the full file on GitHub · 89 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. yesterday First seen · 89 lines · 13 tokens per session scan A c5045ab0e87b

Subscribe to this mod's changes

docs is a command published in the GitHub repository Postman-Devrel/postman-claude-code-plugin (38 stars, last pushed 26d ago), licensed Apache-2.0. It adds 13 tokens to every session and 916 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories