mockzilla-mock-maker

Mockzilla Mock Maker Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mockzilla-mock-maker" with this command: npx skills add andrecrjr/mockzilla/andrecrjr-mockzilla-mockzilla-mock-maker

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-architect skill.

📜 External References

  • JSON Faker Mock References: Unified guide for keywords, Faker syntax, and high-fidelity templates (Frontend, Backend, Industry).

🛡️ Constraints & Boundaries

  • Always use create_schema_mock for dynamic/static lists.

  • Always set minItems and maxItems to keep responses manageable.

  • Never include state-changing logic (e.g., db.push ) when using this skill.

  • Strict Schemas: Always set additionalProperties: false on objects and additionalItems: false on arrays to prevent "ugly" or unwanted random data by default.

  • Never use hardcoded data for more than 3 fields; use Faker instead.

Core Principles

  • Schema First: Use create_schema_mock for 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.

  • No Side Effects: Mocks created with this skill should return data but not modify server state.

🛠️ Tool Selection

Task Recommended Tool Why?

Simple Mock create_schema_mock

Supports JSON Schema + Faker + Interpolation automatically.

Realistic Data create_schema_mock

Best for generating lists, objects, and realistic strings.

Static Snippet create_mock

Quick for constant responses where variation isn't needed.

🎨 premium JSON Schema Patterns

Use these patterns to generate data that feels like a real production API.

  1. User Profile (The "Sleek" Template)

{ "type": "object", "required": ["id", "profile", "contact", "status"], "additionalProperties": false, "properties": { "id": { "type": "string", "faker": "string.uuid" }, "profile": { "type": "object", "additionalProperties": false, "properties": { "fullName": { "type": "string", "faker": "person.fullName" }, "jobTitle": { "type": "string", "faker": "person.jobTitle" }, "avatar": { "type": "string", "faker": "image.avatar" }, "bio": { "type": "string", "faker": "lorem.sentence" } } }, "contact": { "type": "object", "additionalProperties": false, "properties": { "email": { "type": "string", "faker": "internet.email" }, "phone": { "type": "string", "faker": "phone.number" } } }, "status": { "type": "string", "enum": ["Active", "Idle", "Away"] } } }

  1. E-Commerce Product

{ "type": "object", "properties": { "id": { "type": "string", "faker": "string.uuid" }, "name": { "type": "string", "faker": "commerce.productName" }, "price": { "type": "string", "faker": "commerce.price" }, "category": { "type": "string", "faker": "commerce.department" }, "rating": { "type": "number", "faker": { "number.float": { "min": 3, "max": 5, "precision": 0.1 } } }, "inStock": { "type": "boolean", "faker": "datatype.boolean" } } }

  1. Financial Transaction

{ "type": "object", "properties": { "txId": { "type": "string", "faker": "string.alphanumeric" }, "amount": { "type": "string", "faker": { "finance.amount": { "min": 10, "max": 1000, "dec": 2, "symbol": "$" } } }, "date": { "type": "string", "faker": "date.recent" }, "account": { "type": "string", "faker": "finance.accountNumber" } } }

🔗 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: Always use minItems and maxItems for arrays. Note: Global limit is 5 .

  • Specific Types: Use integer , number , boolean , string , object , and array correctly.

  • Faker Arguments: Use object notation for named parameters: {"faker": {"finance.amount": {"min": 10, "max": 100}}} .

  • Array Content: Always provide an items subschema for arrays, fixed or dynamic.

  • Strictness: Use additionalProperties: false (objects) and additionalItems: false (arrays) to ensure the output matches the schema exactly.

  • Validation: Use preview_mock to test your schema before saving.

🛠️ 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

mockzilla-workflow-architect

No summary provided by upstream source.

Repository SourceNeeds Review
General

ai-image-generator

AI 图片与视频异步生成技能,调用 AI Artist API 根据文本提示词生成图片或视频,自动轮询直到任务完成。 ⚠️ 使用前必须设置环境变量 AI_ARTIST_TOKEN 为你自己的 API Key! 获取 API Key:访问 https://staging.kocgo.vip/index 注册登录后创建。 支持图片模型:SEEDREAM5_0(默认高质量图片)、NANO_BANANA_2(轻量快速)。 支持视频模型:SEEDANCE_1_5_PRO(文生视频,支持音频)、SORA2(文生视频或首尾帧图生视频,支持 firstImageUrl/lastImageUrl)。 触发场景: - 用户要求生成图片,如"生成一匹狼"、"画一只猫"、"风景画"、"帮我画"等。 - 用户要求生成视频,如"生成视频"、"用 SORA2 生成"、"文生视频"、"图生视频"、"生成一段...的视频"等。 - 用户指定模型:SEEDREAM5_0、NANO_BANANA_2、SEEDANCE_1_5_PRO、SORA2。

Archived SourceRecently Updated
General

淘宝投放数据分析

# 投放数据分析技能

Archived SourceRecently Updated
General

productclank-campaigns

Community-powered growth for builders. Boost amplifies your social posts with authentic community engagement (replies, likes, reposts). Discover finds relevant conversations and generates AI-powered replies at scale. Use Boost when the user has a post URL. Use Discover when the user wants to find and engage in conversations about their product.

Archived SourceRecently Updated