api-mocking
Skill by postmanlabs
Finds, builds, runs and publishes a stand-in for one API. It reuses the owning team's published mock when one exists, or builds one from a spec or collection for frontends, clients and demos.
Install api-mocking
Built from the published package, never by AI.
git clone --depth 1 https://github.com/postmanlabs/postman-plugin /tmp/postman-plugin && mkdir -p ~/.claude/skills && cp -r /tmp/postman-plugin/skills/api-mocking ~/.claude/skills/api-mockingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/postmanlabs/postman-plugin /tmp/postman-plugin && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/postman-plugin/skills/api-mocking ~/.gemini/antigravity-cli/skills/api-mockingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
API Mocking is a skill for building and running a stand-in for one API. It first looks for the owning team's published mock and pulls it if one exists. If there is none, it builds a mock from the API's spec or collection. The mock can be stateful when callers write then read. Mocks run locally with postman mock run without sign-in. They can be pushed to a Postman workspace for other teams, or deployed to a mock server for callers that cannot run them. The skill is for anyone who needs an API that is not built or reachable yet, or for teams that want others to build against their API before it ships. To test your own code against several services, the source points to api-simulation instead.
Written from the project's SKILL.md and checked against it.
What it can do
- Find the owner's mockSearches for the owning team's workspace and lists its published mocks before writing a new one.
- Pull a mockAdds a published mock to the repo with postman dependency add mock.
- Generate a mockUses postman mock generate to create a mock from a spec or collection.
- Build a stateful handlerKeeps records in pm.state, seeds them, and adds a reset route for clean tests.
- Run locallyStarts the mock with postman mock run so callers can test against it.
- Check against the contractCalls the mock with requests from the API contract using postman request or a collection run.
- Push to a workspacePublishes the mock to a Postman workspace with postman mock push.
- Deploy to a mock serverHosts the mock on a mock server with postman mock deploy for callers that need a URL.
What you need
- Postman CLI, signed in for owner search, push and deploy
- Node.js for the mock handler
- A paid plan to deploy a mock server
Try asking
- Find and pull the mock our payments team published
- Build a stateful mock for the orders API from its OpenAPI spec
- Run the users mock locally and check it with the collection
Good to know
- Generated mocks replay saved responses and accept any request, so they do not reject calls that break the contract.
- Searching, pushing and deploying need a signed-in CLI. Deploying needs a paid plan.
- Mock servers are private unless deployed with --public, which exposes the mock and its data to anyone with the URL.
- Local mocks reload only on restart after an edit.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/api-mocking/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to api-mocking
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
api-mocking: common questions
Do I need to sign in to run a mock locally?
No. The source says postman mock run needs no sign-in. Searching for the owner's mock, pushing and deploying do need a signed-in CLI.
How is this different from api-simulation?
This skill stands in for one API. The source says api-simulation runs and tests your own code against several APIs at once.
Who can call a deployed mock server?
The source says it is private. Callers send an API key as x-api-key, or an access token as x-access-token if they can view the workspace.
How do I install api-mocking?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is api-mocking free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is api-mocking safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to api-mocking?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
