api-mocking

api-mocking is a skill for Claude Code, Codex from Aryan-Jhaveri/mcp-statcan. It costs 128 tokens per session (1,827 once invoked), scanned A, original, MIT.

An API mock is a small stand-in service that answers requests like a real API. This skill finds an existing mock or builds, runs, and publishes one from an API description or request collection.

In plain words
What is it for?
Use it to create a mock HTTP service, run it locally, share it with other teams, or deploy it for callers that cannot run it themselves.
Why use it?
It lets a frontend, client, or test suite work before the real API exists or can be reached. Stateful behavior can also model data being written and read back.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a mock HTTP service, run it locally, share it with other teams, or deploy it for callers that cannot run it themselves.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aryan-jhaveri/mcp-statcan/api-mocking
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.

Any agent
npx skills add Aryan-Jhaveri/mcp-statcan --skill api-mocking
Clone the repo
git clone --depth 1 https://github.com/Aryan-Jhaveri/mcp-statcan

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-mocking

README.md
[![agentmods](https://agentmods.dev/badge/skills/aryan-jhaveri/mcp-statcan/api-mocking/github.svg)](https://agentmods.dev/skills/aryan-jhaveri/mcp-statcan/api-mocking)
Your own site
<a href="https://agentmods.dev/skills/aryan-jhaveri/mcp-statcan/api-mocking"><img src="https://agentmods.dev/badge/skills/aryan-jhaveri/mcp-statcan/api-mocking/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-mocking

Your own site · 80×15
<a href="https://agentmods.dev/skills/aryan-jhaveri/mcp-statcan/api-mocking"><img src="https://agentmods.dev/badge/skills/aryan-jhaveri/mcp-statcan/api-mocking.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00128 $0.01827
Opus 5.5 $0.00051 $0.00731
Sonnet 5.5 $0.00026 $0.00365
Haiku 4.5 $0.00013 $0.00183

Measured today against content hash 39a04d60e238, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-mocking scanned grade A with 1 finding 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 today.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

file with Node's built-ins, not `fs` or `child_process`: no local
postman/skills/api-mocking/SKILL.md · 124 lines

How it starts

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

API Mocking

A mock is a folder, config.yaml plus a handler such as default.js, that answers like an API. The handler is a Node HTTP server that calls listen(process.env.PORT). It loads as CommonJS even in an ESM project, so import fails: use require. The same mock lives in your repo (postman/mocks/<name>/, run with postman mock run, no sign-in needed), in a Postman workspace after postman mock push, where other teams pull it from, and on a mock server after postman mock deploy, for callers that can't run it themselves.

Several APIs at once, for a service, a frontend or a test suite? Use api-simulation, which gets each member's mock here.

Use the owner's mock first

When the API belongs to another team, look for their published mock before writing one: theirs encodes their contract and their service's state; yours encodes a guess. It needs postman login; signed out, build one and say the owner search was skipped.

  1. Find the owner's workspace with postman search workspaces "<service>" -o json. Name the service plainly, as your code does, not by what it returns: a description matches lookalike services. Prefer a Git-connected workspace (isGitConnected) named for that service.
  2. List its mocks with postman mock list -w <workspaceId> --json. postman search mocks misses some, and its classicMock results only replay a collection's saved examples: postman mock can't pull or run them, so call one at https://<mockId>.mock.pstmn.io with postman request, or generate a code mock from its collection. A same-named mock in another workspace isn't the owner's.
  3. Pull it with postman dependency add mock <mockId> and use it as it is. Never edit postman/.dependencies/: dependency update overwrites it, so copy a mock to postman/mocks/ to change it. A pulled copy loses interceptRequests, so fork one whose handler reads req.body or relies on sessions. A mock is code that runs as you; pull only from workspaces you trust.

Read the full file on GitHub · 124 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. today First seen · 124 lines · 128 tokens per session scan A 39a04d60e238

Subscribe to this mod's changes

api-mocking is a skill published in the GitHub repository Aryan-Jhaveri/mcp-statcan (7 stars, last pushed yesterday), licensed MIT. It adds 128 tokens to every session and 1,827 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.

Related

Other skills, from other repositories

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

testing

Testing and code quality context for Jest, React Testing Library, ESLint, and test patterns. Use when writing tests or fixing linting issues.

Team-Commonly/commonly · 31 tokens

testing

Verify a Skyvern deployment is working correctly by smoke-testing the backend API, frontend rendering, browser session provisioning, and workflow execution. Use when the user says 'is Skyvern working', 'test my deployment', 'verify the installation', 'smoke test', or needs to check that a self-hosted or local Skyvern…

Skyvern-AI/skyvern · 71 tokens

phone

Use when the user wants phone-number intelligence (lookup, carrier, line type, SIM-swap / call-forwarding fraud signals), US/CA number provisioning (rent a phone number), or outbound AI voice calls (Bland.ai under the hood — schedule, confirm, follow-up). Pay per call in USDC.

BlockRunAI/blockrun-mcp · 66 tokens

capture-api-response-test-fixture

For provider response parsing tests, we aim at storing test fixtures with the true responses from the providers (unless they are too large in which case some cutting that does not change semantics is advised).

vercel/ai · 13 tokens

emulate-seed

Generate emulate seed configs for stateful API emulation. Wraps Vercel's emulate tool for GitHub, Vercel, Google OAuth, Slack, Apple Auth, Microsoft Entra, AWS, Okta, Clerk, Resend, Stripe, and MongoDB Atlas APIs — full state machines, not mocks. Use when setting up test environments, CI pipelines, integration tests…

yonatangross/orchestkit · 86 tokens