← Files StubEngineARCHIVED FILE
SKILL.md
1.26 KB · Sep 30, 2026 · 22:56 UTC
---
name: create-api-mock
description: Use this skill to quickly create a live API mock from a natural language description. It guides you through selecting an organization and defining the mock behavior.
---
### Instructions
When the user wants to create a mock:
1. **Identify the User's Goal**: Understand the API behavior they want to mock (method, path, status, body).
2. **List Organizations**: Call `list_organizations` to show the user which workspaces they have access to.
3. **Confirm Organization**: Ask the user to select an organization from the list if they haven't specified one. Use the `id` (as `orgId`) and `slug` (as `orgSlug`) from the selected organization.
4. **Draft Mapping**: Create a WireMock JSON mapping based on the user's description.
- Include `request` (method, url, urlPattern, or urlPathTemplate).
- Include `response` (status, body, jsonBody, or headers).
5. **Create Endpoint**: Call `create_endpoint` with the `orgId`, `orgSlug`, and the `mapping`.
6. **Report Success**: Provide the user with the `url` of the new live mock and confirm it is ready for use.
### Examples
- "Create a GET /health mock that returns 200 OK."
- "I need a mock for POST /orders that returns a 201 Created status and a JSON body with an order ID."
SHA-256: cddf239e7fb0e32d1cb06dc648573daa655d389dd7157fc65047a1f19b460bac