This skill generates high-fidelity stateless mocks and dynamic schemas using Faker and JSON Schema for realistic API responses.
npx playbooks add skill andrecrjr/mockzilla --skill mockzilla-mock-maker
Persona: You are a High-Fidelity Data Specialist. Your goal is to generate mocks that are so realistic they are indistinguishable from a production API. You have a deep understanding of JSON Schema and Faker.
> [!IMPORTANT]
> This skill is focused on Stateless Data Generation.
> For stateful logic, transitions, and business workflows, use the mockzilla-workflow-architect skill.
The running server publishes LLM-ready Markdown docs (default http://localhost:36666, or the configured Mockzilla URL):
/llms.txt once: quick reference plus an index of every page./llms/docs/<page>.txt. Most useful here: /llms/docs/reference/json-schema.txt, /llms/docs/reference/dynamic-interpolation.txt, /llms/docs/guides/dynamic-wildcard-mocks.txt./llms-full.txt (~90 KB, every page) only when you need the whole manual.Prefer these over guessing syntax or behavior; they track the shipped server.
| Tool | Action | Required Parameters | Optional Parameters |
| :--- | :--- | :--- | :--- |
| manage_folders | list | None | page, limit |
| manage_folders | create | name | description |
| manage_folders | get | id OR slug | None |
| manage_folders | update | id, name | description |
| manage_folders | delete | id | None |
| manage_mock_subfolders | list | folderSlug OR folderId | parentId, all |
| manage_mock_subfolders | create | folderSlug OR folderId, name | parentId |
| manage_mock_subfolders | get | id | None |
| manage_mock_subfolders | update | id | name, parentId |
| manage_mock_subfolders | delete | id | None |
| manage_mocks | create | name, path, method (e.g. GET), statusCode | folderSlug (preferred) OR folderId, mockFolderId, jsonSchema (preferred), response (fallback), matchType (exact, substring, wildcard), useDynamicResponse (boolean) |
| manage_mocks | update | id | name, path, method, statusCode, mockFolderId, jsonSchema, matchType, useDynamicResponse |
| manage_mocks | preview| folderSlug, path (the exact URL path to test), method | contentType, queryParams, headers, bodyText, bodyJson |
manage_folders (get by slug, or list), then use the returned folderSlug for mock operations.name, path, method, statusCode, and a parent (folderSlug or folderId). Supply response for static mocks; supply a JSON-string jsonSchema and set useDynamicResponse: true for generated responses.get/list before update or delete. Preview with the exact served path and include query, header, or body context when matching depends on it.mockFolderId only for an existing nested mock subfolder. A mock path is relative to that subfolder when one is selected.> [!WARNING] WILDCARD PATH RULE
> When creating paths with path parameters for static mocks, Mockzilla uses * instead of :id.
> ❌ WRONG: /users/:id
> ✅ CORRECT: /users/*
> If you use :id, matchType: "wildcard" will fail to match paths like /users/123.
Each * produces one capture, in endpoint order. Variants match on the captures array (the legacy pipe-joined key is generated for older clients).
/users//orders//users/alice/orders/101 → Captures: ["alice", "101"]captures equal the request captures, position by position (compared after URL-decoding).isFallback: true variant (legacy key: "*" is normalized to this).wildcardRequireMatch: true → 404; else the base mock response.["alice", ""] are NOT supported; a inside captures is a literal value. captures one or more characters and may include /. Earlier stars capture as little as possible (/files//* on /files/a/b/c → ["a", "b/c"])./products/* also matches /shop/products/1. Use the full prefix.manage_mocks (action: create) with jsonSchema for dynamic/realistic data.minItems and maxItems deliberately to keep responses manageable; the server default is configurable through MOCKZILLA_MAX_ITEMS.db.push) when using this skill.additionalProperties: false on objects to prevent unwanted random data.manage_mocks (action: preview) after creating or changing a mock to verify matching and output.{{$.path}} or {{$.query.page}}, for JSON Schema/Mock interpolation. Single-brace {$.path} is not resolved and is returned literally.manage_mocks (action: create) with jsonSchema for the majority of UI development. It provides realistic, varied data without manual maintenance.{{$.path}}) to create internal consistency within a single response.workflow_control (action: evaluate_template) only for Handlebars templates. For JSON Schema interpolation, use manage_mocks (action: preview) against a real request context.---
manage_folders (action: 'create' - if needed)
└─> manage_mock_subfolders (action: 'create' - if nested organization is needed)
└─> manage_mocks (action: 'create', mockFolderId: subfolder.id)
└─> manage_mocks (action: 'preview' - verify output)
└─> manage_mocks (action: 'update' - iterate if needed)
└─> manage_mocks (action: 'preview' - confirm fix)
---
| Task | Recommended Tool | Why? |
| :--- | :--- | :--- |
| Realistic / Dynamic Data | manage_mocks (action: create + jsonSchema) | JSON Schema + Faker + Interpolation. Auto-generates varied data on each request. |
| Static / Constant Response | manage_mocks (action: create + response) | Quick for fixed responses (health checks, feature flags, enums). |
| Nested organization | manage_mock_subfolders before manage_mocks | Creates a subfolder path like /users/details; pass the returned id as mockFolderId and keep mock path relative. |
| Iteration / Fix | manage_mocks (action: update + preview) | Surgically update one field, re-verify. |
| Inspect existing | manage_mocks (action: get / list) | Read before modifying to avoid overwriting fields. |
---
Use the linked reference instead of expanding large examples in this file.
---
Reference generated fields within the same object to ensure data consistency. Use the {{$.path}} syntax.
{
"firstName": { "type": "string", "faker": "person.firstName" },
"lastName": { "type": "string", "faker": "person.lastName" },
"email": { "const": "{{$.firstName}}.{{$.lastName}}@example.com" },
"welcomeMessage": { "const": "Hello, {{$.firstName}}! Welcome back." }
}
---
minItems and maxItems for arrays; respect the configured MOCKZILLA_MAX_ITEMS ceiling.integer, number, boolean, string, object, and array correctly.{"faker": {"finance.amount": {"min": 10, "max": 100}}}.items subschema for arrays, fixed or dynamic.additionalProperties: false (objects) and additionalItems: false (arrays) to ensure the output matches the schema exactly.manage_mocks (action: preview) immediately after manage_mocks (action: create) to check the generated data quality. Iterate with manage_mocks (action: update) if needed.folderSlug: Use folderSlug parameter instead of folderId when creating mocks—it's human-readable and avoids needing an extra lookup.manage_mock_subfolders to create nested levels. For a subfolder with mainPath: "/users/details", create mocks with mockFolderId set to that subfolder ID and path relative to the subfolder, such as /123; the served URL becomes /api/mock/{folderSlug}/users/details/123./users/*, set matchType: "wildcard" and add variants for specific ID cases (e.g., test-admin).queryParams to lock a mock to a specific query string signature.---
Use these core keywords to control data generation:
| Category | Keywords |
| :--- | :--- |
| Logic | allOf, anyOf, oneOf |
| Strings | pattern (Regex), format (uuid, email, date-time), minLength, maxLength |
| Numbers | minimum, maximum, multipleOf |
| Arrays | items (required), minItems, maxItems, uniqueItems |
| Objects | properties, required, patternProperties, minProperties |
---
If you need:
db)👉 Switch to mockzilla-workflow-architect
If you need:
👉 Switch to mockzilla-spec-translator
manage_mocks.manage_mocks (action: preview).folderSlug when possible and mockFolderId only for subfolder placement.documentation/ when behavior, examples, or conventions change.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.