mockzilla-mock-maker
Generate production-quality API mocks and JSON schema responses for stateless testing environments.
Install
mkdir -p .claude/skills/mockzilla-mock-maker && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18716" && unzip -o skill.zip -d .claude/skills/mockzilla-mock-maker && rm skill.zipInstalls to .claude/skills/mockzilla-mock-maker
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when creating stateless Mockzilla mocks, JSON Schema Faker responses, wildcard mock variants, realistic API response data, or query/header/body-aware previews through manage_mocks.Key capabilities
- →Generate dynamic API responses using JSON Schema
- →Create stateless Mockzilla mocks
- →Manage mock subfolders and folders
- →Preview mock responses with query, header, or body context
- →Update existing mocks with new schemas or paths
How it works
The skill uses `manage_mocks` to create or update mocks based on provided JSON schemas, and `manage_folders` or `manage_mock_subfolders` to organize them.
Inputs & outputs
When to use mockzilla-mock-maker
- →Generate API response mocks
- →Create test data for UI components
- →Simulate API failure scenarios
- →Define JSON schema responses
About this skill
Mockzilla Mock Maker Skill
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-architectskill.
📜 External References
- Manager Tools Contract: Canonical manager tools and actions.
- JSON Faker Mock References: Unified guide for keywords, Faker syntax, and high-fidelity templates (Frontend, Backend, Industry).
Available MCP Tools & Signatures
| 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 |
Current operating rules
- Resolve the parent folder first with
manage_folders(getby slug, orlist), then use the returnedfolderSlugfor mock operations. - Create requires
name,path,method,statusCode, and a parent (folderSlugorfolderId). Supplyresponsefor static mocks; supply a JSON-stringjsonSchemaand setuseDynamicResponse: truefor generated responses. - Use
get/listbeforeupdateordelete. Preview with the exact served path and include query, header, or body context when matching depends on it. - Use
mockFolderIdonly 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.
🔀 Advanced Wildcard Variants
When using multiple * characters in a path, Mockzilla forms a Composite Key by joining captured segments with a pipe |.
- Path:
/users/*/orders/* - Request:
/users/alice/orders/101→ Key:alice|101 - Selection Logic:
- Tries exact match for the composite key (e.g.,
alice|101). - Falls back directly to the catch-all variant
*. - Note: Partial keys like
alice|*are NOT currently supported as intermediate fallbacks.
- Tries exact match for the composite key (e.g.,
🛡️ Constraints & Boundaries
- Always use
manage_mocks(action:create) withjsonSchemafor dynamic/realistic data. - Set
minItemsandmaxItemsdeliberately to keep responses manageable; the server default is configurable throughMOCKZILLA_MAX_ITEMS. - Never include state-changing logic (e.g.,
db.push) when using this skill. - Strict Schemas: Always set
additionalProperties: falseon objects to prevent unwanted random data. - Never use hardcoded data for more than 3 fields; use Faker instead.
- Call
manage_mocks(action:preview) after creating or changing a mock to verify matching and output. - Syntax Check: Use
{$.path}for JSON Schema/Mock interpolation (this skill). Use{{path}}ONLY for workflows (Workflow Architect skill).
Core Principles
- Schema First: Use
manage_mocks(action:create) withjsonSchemafor the majority of UI development. It provides realistic, varied data without manual maintenance. - Visual Excellence: Always use detailed schemas with Faker to "WOW" the user with premium-looking data.
- Maximum Flexibility: Use Interpolation (
{$.path}) to create internal consistency within a single response. - Evaluate before Build: Use
workflow_control(action:evaluate_template) only for Handlebars templates. For JSON Schema interpolation, usemanage_mocks(action:preview) against a real request context. - No Side Effects: Mocks created with this skill should return data but not modify server state.
- Verify: Preview every new or changed mock before handing it off.
🔄 Standard Workflow
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)
🛠️ Tool Selection
| 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. |
🎨 Premium JSON Schema Patterns
Use the linked reference instead of expanding large examples in this file.
- User profiles, ecommerce products, finance transactions, dashboards, pagination, errors, and healthcare examples live in JSON Faker Mock References.
- Load that reference when the request needs domain-specific fields, polished UI data, or complex schema examples.
🔗 Internal Interpolation
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." }
}
💡 Best Practices
- Set Limits: Use
minItemsandmaxItemsfor arrays; respect the configuredMOCKZILLA_MAX_ITEMSceiling. - Specific Types: Use
integer,number,boolean,string,object, andarraycorrectly. - Faker Arguments: Use object notation for named parameters:
{"faker": {"finance.amount": {"min": 10, "max": 100}}}. - Array Content: Always provide an
itemssubschema for arrays, fixed or dynamic. - Strictness: Use
additionalProperties: false(objects) andadditionalItems: false(arrays) to ensure the output matches the schema exactly. - Always validate: Call
manage_mocks(action:preview) immediately aftermanage_mocks(action:create) to check the generated data quality. Iterate withmanage_mocks(action:update) if needed. - Prefer
folderSlug: UsefolderSlugparameter instead offolderIdwhen creating mocks—it's human-readable and avoids needing an extra lookup. - Subfolder paths: Use
manage_mock_subfoldersto create nested levels. For a subfolder withmainPath: "/users/details", create mocks withmockFolderIdset to that subfolder ID andpathrelative to the subfolder, such as/123; the served URL becomes/api/mock/{folderSlug}/users/details/123. - Wildcard paths: For path params like
/users/*, setmatchType: "wildcard"and addvariantsfor specific ID cases (e.g.,test-admin). - Query param matching: Use
queryParamsto lock a mock to a specific query string signature.
🛠️ JSON Schema Keywords reference
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 |
⏭️ When to Switch Skills
If you need:
- Multi-step login flow
- Dynamic search filtering (interactive)
- Persistent CRUD (storing data in
db) - Delayed responses or error toggling
👉 Switch to mockzilla-workflow-architect
If you need:
- Importing a full OpenAPI/Swagger spec
- Bootstrapping an entire project from scratch
- Mass-creating mocks across many endpoints
👉 Switch to mockzilla-spec-translator
✅ Before Finishing
- Create or update mocks only through
manage_mocks. - Preview every new or changed mock with
manage_mocks(action:preview). - Use
folderSlugwhen possible andmockFolderIdonly for subfolder placement. - Use only the consolidated manager tools listed in [Manager Tools Contr
Content truncated.
When not to use it
- →When multi-step login flows are required
- →When persistent CRUD operations are needed
- →When dynamic search filtering is required
Limitations
- →Does not support state-changing logic
- →Does not support multi-step login flows
- →Does not support dynamic search filtering
How it compares
This skill automates the creation and management of realistic API mocks using JSON Schema and Faker, unlike manual mock creation.
Compared to similar skills
mockzilla-mock-maker side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| mockzilla-mock-maker (this skill) | 0 | 15d | No flags | Intermediate |
| qa_skill | 0 | 3mo | Review | Intermediate |
| webapp-testing | 353 | 3mo | Review | Intermediate |
| ui-ux-expert-skill | 91 | 9mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
qa_skill
sameer-thakkar
Skill and agent index for crest (API), celium (UI), pixify (VD), and appium (Mobile) — load qa_common as the universal entry point or use individual skills (api, ui, vd, app) directly for single-layer tasks.
webapp-testing
anthropics
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
ui-ux-expert-skill
fercracix33
Technical workflow for implementing accessible React user interfaces with shadcn/ui, Tailwind CSS, and TanStack Query. Includes 6-phase process with mandatory Style Guide compliance, Context7 best practices consultation, Chrome DevTools validation, and WCAG 2.1 AA accessibility standards. Use after Test Agent, Implementer, and Supabase agents complete their work.
telegram-mini-app
davila7
Expert in building Telegram Mini Apps (TWA) - web apps that run inside Telegram with native-like experience. Covers the TON ecosystem, Telegram Web App API, payments, user authentication, and building viral mini apps that monetize. Use when: telegram mini app, TWA, telegram web app, TON app, mini app.
accessibility
tech-leads-club
Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
playwright-browser-automation
lackeyjb
Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.