Skip to content
Skill

API simulation

Runs your code against stand-in APIs to test how it handles dependency failures

API simulation is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
49
Last commit
License
Apache-2.0
Listing updated

Similar skills

About API simulation

API Simulation lets an AI coding agent run services, frontends, tests or demos against stand-ins for their HTTP dependencies instead of the real services. Stand-ins can be served together through a proxy that answers for the dependencies' own hostnames, or on one local port where each member is reached by its route key. Members can be seeded from datasets so responses reflect realistic records.

The skill guides the agent through reusing an existing simulation in a postman/simulations/ directory, building mocks for each dependency, and reading the request log to confirm the dependency path actually ran. It also covers injecting failures such as unreachable hosts, hanging responses, JSON error bodies and HTML error pages, and checking other members for side effects like reserved stock that was never released. A companion context document records assumptions about the dependencies, the evidence behind them and open questions, so later sessions can build on earlier findings.

The workflow relies on the Postman CLI version 1.70.0 or later with the simulation command, and it expects a signed-in CLI when pulling mocks owned by other teams. Commands are run in the background with logs written to files, and the skill notes that simulation runs prove behavior against stand-ins, not the real services.

When your agent uses it

Use when you add or change code that calls other services and need to run it, test it, prove a fix or reproduce an upstream failure (timeouts, 5xx, 409, 429) end to end, locally or in CI, without the real services because they're unreachable, need credentials, cost money, have side effects or don't exist yet. Also use it to answer what happens to a request, or the data it writes, when a service it calls is down, slow or erroring ("what happens to a booking if the email service is down?"). Runs services, frontends, tests or demos against stand-ins for their HTTP dependencies, optionally backed by file or database records, served locally or at a deployed URL. A `postman/simulations/` directory is itself a reason to load it, even if nobody says mock or simulation. To give a frontend or another team a stand-in for an API, use postman:api-mocking. Covers `postman simulation`.

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 3 files (28 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@postman

Or copy only this skill to ~/.claude/skills/api-simulation:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.claude/skills/api-simulation &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/api-simulation inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/api-simulation 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-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.agents/skills/api-simulation &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/api-simulation inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/api-simulation 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-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.cursor/skills/api-simulation &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/api-simulation inside it instead.

Cursor docs on skills

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-simulation

Or copy the folder to ~/.gemini/skills/api-simulation yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/api-simulation:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.copilot/skills/api-simulation &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/api-simulation inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git

Then copy postman-plugin/agent-plugin/skills/api-simulation into your agent's skills folder as api-simulation. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Simulated dependency environments
Runs a set of mock dependencies together behind a proxy or on a single local port.
Failure injection
Triggers timeouts, JSON errors, HTML error pages and unreachable hosts in dependencies.
Request log review
Reads the newline-delimited JSON log to confirm which dependency calls were made.
Dataset-backed mocks
Seeds stand-ins with records from CSV, JSON, sheet or database datasets.
Context record keeping
Maintains a YAML file of assumptions, evidence and open questions about dependencies.
Mock reuse and dependencies
Pulls other teams' published mocks as dependencies before building new ones.

Good for

  • Test how checkout code behaves when the payment API times out
  • Reproduce a 429 or 409 response from an upstream service in an end-to-end run
  • Check what happens to a booking if the email service is down
  • Run a frontend against stand-ins for its backend APIs during development
  • Run API-dependent tests in CI without real credentials or side effects

API simulation FAQ

When should the agent load API simulation?

When code that calls other services needs to run, test or reproduce an upstream failure without the real services, or when a postman/simulations/ directory is present.

What version of the Postman CLI is required?

Postman CLI 1.70.0 or later is needed for the postman simulation command.

Does API simulation send requests to the real services?

Under the proxy mode, the code keeps its base URLs and the proxy answers for the dependency hostnames, so the run uses stand-ins rather than the real services.

Where are simulation results and context stored?

Simulations live in postman/simulations/ with a .sim.yaml file and a .context.yaml file beside it, and the run log is written to a file such as sim.ndjson.

How do I install API simulation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/api-simulation to use it in all your projects, or to .claude/skills/api-simulation in one project. Or install the postman plugin, which includes it: /plugin marketplace add postmanlabs/postman-plugin, then /plugin install postman@postman.

Does API simulation 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 simulation?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to API simulation?

The closest alternatives to API simulation are API mocking, API testing, API discovery, API engineer and API mock helper.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from postmanlabs/postman-plugin

  1. Guides an agent through wiring a new vendor plugin route into the Postman plugin repo

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

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

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

    • Open source
    • 49 GitHub stars
    • Developer tools
  5. Keeps API contracts, examples and published docs accurate for callers, tests and mocks

    • Open source
    • 49 GitHub stars
    • Developer tools
  6. Guides an agent through multi-step HTTP API work using Postman skills and shared contracts

    • Open source
    • 49 GitHub stars
    • Legal and government