Api Mock Server
CheckedHelps with API, server as part of agent workflows workflows.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add patricio0312rev/skills --skill api-mock-server -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
patricio0312rev
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned patricio0312rev/skills at 79ea6af485.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 79ea6af485
- Manifest
- testing/api-mock-server/SKILL.md
- Scanned
- 1 file, 529 lines
About this skill
What it does
This skill enables AI agents to create realistic mock APIs for testing and development purposes. It supports three different approaches: MSW, json-server, or custom implementations. The agent can define endpoint handlers, set up test data (fixtures), configure success/error scenarios, integrate these mocks into test suites, and document the API contract created by the mock.
When to use it
- When you need to test an application against an API that is not yet available or stable.
- For development purposes when simulating backend behavior without relying on a live server.
- To create isolated testing environments for specific features or components.
- When needing to control the responses from an API to reproduce edge cases or error conditions.
Key capabilities
- Supports three mocking approaches: MSW, json-server, and custom implementations.
- Allows defining mock endpoint handlers with configurable success and error states.
- Enables setting up test data (fixtures) for realistic simulations.
- Provides the ability to integrate mocks into existing test suites.
- Facilitates documenting API contracts based on the created mocks.
Example prompts
- "Create a mock API endpoint using MSW that returns a list of users."
- "Simulate a POST request to /api/users with a 201 status code and return the newly created user data."
- "Generate test data for a GET request to /api/users/:id, where id is '1'."
Tips & gotchas
- The skill supports MSW, which requires initial setup (
npm install -D mswandnpx msw init ./public --save). - You will need to define handlers (e.g., in a
mocks/handlers.tsfile) to specify the behavior of each mock endpoint. - The skill allows for delays using
await delay(100)within handler definitions, simulating network latency.