postman-claude-code-plugin
CLAUDE.md41 starsChanged 2 months agoApache-2.0Archived repositoryView on GitHub
The Postman Plugin for Claude Code — a pure-markdown, configuration-driven plugin that provides full API lifecycle management via the Postman MCP Server. No compiled code, no runtime dependencies, no build step. Commands (commands/*.md): YAML front matter with description and allowed-tools. Each defines a structured workflow invoked as /postman:<name>. - MCP commands: setup, sync, search, test, mock, docs, security, learn (learn requires Full mode — searchLearningCenter is absent in minimal/code) - CLI commands: request, generate-spec, run-collection, list-flows, trigger-flow, deploy-flow, get-flow-run Skills…
- Reads credentials
- Installs packages
- Commits and pushes
In this repository13 other files it gives its agents.
- ai-readinessSkill
- api-discoverySkill
- api-documentationSkill
- api-engineerSkill
- api-mockingSkill
- api-monitoringSkill
- api-testingSkill
- bootstrapSkill
- ci-integrationSkill
- collection-schema-v3Skill
- flowsSkill
- performance-testingSkill
- postman-mcp-serverSkill
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 71
When adding a new command, follow the existing front matter pattern in commands/
- Very specific: line 72
When adding a new skill, create skills/<name>/SKILL.md with proper front matter
- Very specific: line 80
Every user-facing change bumps the version and adds an entry under ## [Unreleased] in CHANGELOG.md (added a command/skill → minor.
- Very specific: line 81
When bumping plugin.json, also update the X-Plugin-Version and User-Agent headers in .mcp.json to the same version — these are sent to the …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
The Postman Plugin for Claude Code — a pure-markdown, configuration-driven plugin that provides full API lifecycle management via the Postman MCP Server. No compiled code, no runtime dependencies, no build step.
Repository Structure
.claude-plugin/plugin.json # Plugin manifest (name, version, metadata)
.mcp.json # MCP server auto-config (Postman MCP at mcp.postman.com)
commands/*.md # 15 slash commands (/postman:<name>)
skills/*/SKILL.md # 11 skills (knowledge, agent-ready APIs, CLI, send-request, generate-spec, run-collection, context, and Flows: list-flows, trigger-flow, deploy-flow, get-flow-run)
skills/*/references/*.md # On-demand reference files loaded by skills only when needed
agents/readiness-analyzer.md # Sub-agent for API readiness analysis
examples/ # Sample output (readiness report)How the Plugin Works
- Claude Code discovers components via
.claude-plugin/plugin.jsonmanifest .mcp.jsonauto-configures the Postman MCP server, providingmcp__postman__*tools. The server mode is switchable viaPOSTMAN_MCP_MODE(mcpfull/default,minimal, orcode— the latter two expose fewer tools;minimallacks the*Contextcode-gen tools)- MCP commands use the cloud Postman MCP Server — authenticate via OAuth in
/postman:setupor aPOSTMAN_API_KEYenvironment variable - Routing is native: there is no routing skill. Claude matches user intent to commands/skills from their front-matter
descriptionfields, so descriptions must state when to use the component - CLI commands use the locally installed Postman CLI (
npm install -g postman-cli) — requirespostman login - Plugin is loaded with
claude --plugin-dir /path/to/postman-claude-code-plugin
Component Conventions
Commands (commands/*.md): YAML front matter with description and allowed-tools. Each defines a structured workflow invoked as /postman:<name>.
- MCP commands: setup, sync, search, test, mock, docs, security, learn (learn requires Full mode —
searchLearningCenteris absent inminimal/code) - CLI commands: request, generate-spec, run-collection, list-flows, trigger-flow, deploy-flow, get-flow-run
Skills (skills/*/SKILL.md): YAML front matter with name, description, user-invocable. Auto-injected context, not directly invoked. postman-knowledge provides MCP tool guidance; agent-ready-apis provides readiness criteria; postman-cli provides CLI and git sync file structure knowledge; postman-context provides API discovery, exploration, and code generation from real API definitions.
Large skills use progressive disclosure: a lean SKILL.md holds the workflow, and detailed rules live in references/*.md files inside the skill directory that the skill instructs Claude to Read only at the step that needs them (see postman-context and generate-spec). Keep new skills under ~6KB and put bulky templates/rules in references.
Agent (agents/readiness-analyzer.md): YAML front matter with name, description, model, allowed-tools. Runs as a sub-agent (sonnet model) for deep API readiness analysis (8 pillars, 48 checks).
Key MCP Limitations
These are documented in skills/postman-knowledge/mcp-limitations.md and must be respected in all commands:
searchPostmanElementsis the unified search tool — passownership: organization(default) for the user's org resources,externalfor the public Postman network, orallfor both. Use theprivateNetworkfilter to restrict to the Private API Network.generateCollectionandsyncCollectionWithSpecreturn HTTP 202 — must poll for completionsyncCollectionWithSpecsupports OpenAPI 3.0 only — useupdateSpecFile+generateCollectionfor Swagger 2.0 or OpenAPI 3.1createCollectioncreates flat collections — nest viacreateCollectionFolder+createCollectionRequestcreateSpecstruggles with specs >50KB — decompose into collection items instead
Postman CLI Commands
Several commands use the Postman CLI instead of MCP. They require postman-cli installed locally (npm install -g postman-cli) and authenticated (postman login). If CLI is not found, show install instructions and stop.
/postman:request— Send HTTP requests viapostman request <METHOD> <URL>/postman:generate-spec— Scan code for API routes, generate OpenAPI 3.0 YAML, validate withpostman spec lint/postman:run-collection— Run collection tests viapostman collection run <id>using cloud IDs from.postman/resources.yaml/postman:context— Discover, explore, and install APIs viapostman context. Searches Postman's API network, fetches real API definitions, and generates client code from them./postman:list-flows— List flows in a workspace and resolve a flow name to its 24-char ID viapostman flows list/postman:trigger-flow— Trigger a deployed flow viapostman flows trigger, with a deploy-then-trigger fallback when the flow isn't deployed/postman:deploy-flow— Deploy a flow to make it triggerable viapostman flows deploy(proposes and confirms a trigger path first)/postman:get-flow-run— Inspect a run by Run ID viapostman flows get-run(per-block logs, failing block, status)
CLI commands work with Postman's git sync structure: postman/collections/ (v3 folder format), postman/environments/, postman/specs/, and .postman/resources.yaml for cloud ID mapping.
Development Notes
- There is no build, lint, or test suite — all "code" is instructional markdown
- Changes are purely editing markdown files with YAML front matter
- When adding a new command, follow the existing front matter pattern in
commands/ - When adding a new skill, create
skills/<name>/SKILL.mdwith proper front matter - The
allowed-toolsfield in front matter controls what tools a command/agent can use - CLI commands need
Bashinallowed-tools; MCP commands list the specificmcp__postman__<toolName>tools they call — never themcp__postman__*wildcard. When a command's workflow gains a new MCP call, add that tool to itsallowed-tools - Front-matter
descriptionfields are injected into every user session — keep them to one or two sentences (what it does + when to use it)
Versioning & Releases
- The plugin follows Semantic Versioning.
versionin.claude-plugin/plugin.jsonis the single source of truth - Every user-facing change bumps the version and adds an entry under
## [Unreleased]inCHANGELOG.md(added a command/skill → minor; fix/tweak → patch; breaking change → major) - When bumping
plugin.json, also update theX-Plugin-VersionandUser-Agentheaders in.mcp.jsonto the same version — these are sent to the Postman MCP Server for telemetry and must stay in sync - To release: bump
plugin.jsonand the matching.mcp.jsonversion headers, move[Unreleased]notes into a dated## [X.Y.Z]section, merge tomain, thengit tag vX.Y.Z && git push origin vX.Y.Z - The
ReleaseGitHub Actions workflow (.github/workflows/release.yml) triggers onv*tags: it fails if the tag doesn't matchplugin.jsonor if.mcp.json's version headers don't matchplugin.json, extracts the matching CHANGELOG section, and publishes a GitHub Release with those notes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

