Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

mockzilla-creator模拟创造者

Agent Skill

mockzilla-creator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

98

周安装

4

GitHub Stars

公开资料未说明

下载量

32
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mockzilla-creator(模拟创造者)
来源仓库:https://github.com/andrecrjr/mockzilla
仓库路径:skills/mockzilla-creator
安装命令:
npx skills add andrecrjr/mockzilla --skill "mockzilla-creator"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add andrecrjr/mockzilla --skill "mockzilla-creator"

简介

用于在 Codex、Claude、Cursor 和 Gemini CLI 中查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add andrecrjr/mockzilla --skill "mockzilla-creator" 安装。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Mockzilla Creator Skill

This skill guides you through creating effective, dynamic, and stateful mocks using Mockzilla's MCP tools.

Core Principles

  1. Stateless First: Use create_schema_mock for 90% of use cases. It's faster and easier to maintain.
  2. Stateful for Workflows: Use create_workflow_scenario only when the response depends on previous actions (e.g., Auth, Multi-step forms).
  3. Consistency is Key: Use Interpolation to link fields (e.g., id and message) and Faker for realistic data and only when it's necessary.
  4. Deterministic Logic: Keep transitions and effects simple. Complex logic belongs in the schema or the application, not the mock engine.

🛠️ Tool Selection Guide

TaskRecommended ToolWhy?
New Mockcreate_schema_mockSupports JSON Schema + Faker + Interpolation automatically.
Dynamic Datacreate_schema_mockBest for generating lists, objects, and realistic strings.
Login/Authcreate_workflow_transitionAllows setting state.isLoggedIn and checking it later.
CRUD Simulationcreate_workflow_transitionUse db.push and db.update to persist mock data in-memory.
Debugginginspect_workflow_stateSee exactly what's in the mini-DB and current state.

🎨 JSON Schema & Faker Patterns

The "Premium" Schema Template

Use this pattern to WOW the user with realistic data:

{
  "type": "object",
  "required": ["id", "user", "metadata", "status"],
  "properties": {
    "id": { "type": "string", "format": "uuid" },
    "user": {
      "type": "object",
      "properties": {
        "firstName": { "type": "string", "faker": "person.firstName" },
        "lastName": { "type": "string", "faker": "person.lastName" },
        "email": { "type": "string", "faker": "internet.email" },
        "avatar": { "type": "string", "faker": "image.avatar" }
      }
    },
    "metadata": {
      "type": "object",
      "properties": {
        "createdAt": { "type": "string", "faker": "date.past" },
        "ip": { "type": "string", "faker": "internet.ipv4" }
      }
    },
    "status": { "type": "string", "enum": ["active", "pending", "archived"] }
  }
}

Passing Arguments to Faker

{
  "amount": {
    "type": "string",
    "faker": { "finance.amount": [100, 5000, 2, "$"] }
  }
}

🔗 Interpolation & Field Referencing

CRITICAL: Use interpolation to make your mocks feel "alive" and consistent, but only when it's necessary.

1. Internal Consistency (Inside Schema)

Reference other generated fields using {$.path}.

{
  "orderId": { "type": "string", "format": "uuid" },
  "summary": { "const": "Confirming order {$.orderId} for {$.user.firstName}" }
}

2. Request Data Echo (In Workflows)

Reference input data in your response or effects using {{input.*}}.

  • {{input.body.name}}
  • {{input.params.id}}
  • {{input.query.search}}

3. State & DB Access (In Workflows)

Reference the mini-DB or scenario state.

  • {{state.token}}
  • {{db.users[0].name}}

🔄 Workflow Recipes

The "Auth Flow" Recipe

  1. POST /login:

- Effect: {"type": "state.set", "raw": {"user": "{{input.body}}", "isLoggedIn": true}} - Response: {"status": "ok", "token": "mock-jwt-{{input.body.username}}"}

  1. GET /me:

- Condition: {"type": "eq", "field": "state.isLoggedIn", "value": true} - Response: {{state.user}}

The "CRUD" Recipe

  1. POST /items:

- Effect: {"type": "db.push", "table": "items", "value": "{{input.body}}"}

  1. GET /items:

- Response: {"data": "{{db.items}}"}


⚠️ Troubleshooting

  • Reference Errors: If {$.path} appears literally, ensure the referenced field is defined *before* or at the same level in the JSON object (though Mockzilla resolves after generation, order helps readability).
  • Condition Mismatch: Use inspect_workflow_state to verify if your values match exactly (type and casing).
  • Schema Validation: Ensure type is present for every property in create_schema_mock.
  • Default Limits: Mockzilla defaults maxItems to 5. Explicitly set minItems/maxItems in your schema if you need more.

💎 Premium Templates (Copy-Paste)

🛍️ E-commerce Product

{
  "type": "object",
  "required": ["id", "name", "price", "rating", "image"],
  "properties": {
    "id": { "type": "string", "faker": "string.uuid" },
    "name": { "type": "string", "faker": "commerce.productName" },
    "description": { "type": "string", "faker": "commerce.productDescription" },
    "price": { "type": "string", "faker": "commerce.price" },
    "rating": { "type": "number", "faker": { "number.float": { "min": 1, "max": 5, "fractionDigits": 1 } } },
    "image": { "type": "string", "faker": "image.url" },
    "tags": {
      "type": "array",
      "minItems": 2,
      "maxItems": 4,
      "items": { "type": "string", "faker": "commerce.department" }
    }
  }
}

📊 SaaS User Dashboard

{
  "type": "object",
  "properties": {
    "user": {
      "type": "object",
      "properties": {
        "id": { "type": "string", "faker": "string.uuid" },
        "email": { "type": "string", "faker": "internet.email" },
        "plan": { "type": "string", "enum": ["free", "pro", "enterprise"] },
        "status": { "type": "string", "enum": ["active", "suspended"] }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "dailyVisits": { "type": "integer", "faker": { "number.int": { "min": 100, "max": 5000 } } },
        "totalRevenue": { "type": "string", "faker": "finance.amount" }
      }
    },
    "recentActivity": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "object",
        "properties": {
          "action": { "type": "string", "enum": ["login", "purchase", "update_profile"] },
          "timestamp": { "type": "string", "faker": "date.recent" }
        }
      }
    }
  }
}

📱 Social Feed Post

{
  "type": "object",
  "properties": {
    "id": { "type": "string", "faker": "string.uuid" },
    "author": {
      "type": "object",
      "properties": {
        "username": { "type": "string", "faker": "internet.userName" },
        "avatar": { "type": "string", "faker": "image.avatar" }
      }
    },
    "content": { "type": "string", "faker": "lorem.paragraph" },
    "likes": { "type": "integer", "faker": { "number.int": { "min": 0, "max": 1000 } } },
    "comments": {
      "type": "array",
      "maxItems": 2,
      "items": {
        "type": "object",
        "properties": {
          "user": { "type": "string", "faker": "internet.userName" },
          "text": { "type": "string", "faker": "lorem.sentence" }
        }
      }
    }
  }
}

🚀 Advanced Workflow Recipes

📄 Pagination

Simulate standardized pagination using input.query.

Variables:

  • page: {{input.query.page}} (defaults to 1 if missing is handled by app logic, or use fallback in schema)

Transition:

  • Path: /api/items
  • Response Body:
{
  "page": "{{input.query.page}}",
  "total": 100,
  "data": "{{db.items}}"
}

*Note: Real slicing requires advanced logic, but echoing the page number helps frontend integration.*

🛑 Error Simulation (Chaos Engineering)

Toggle errors without changing code.

  1. Set State: POST /admin/toggle-error -> state.set: {forceError: true}
  2. Check Condition:

- Trigger: {"type": "eq", "field": "state.forceError", "value": true} - Response: 500 {"error": "Simulated outage"}

🐢 Network Latency

Mockzilla processes requests instantly. To simulate latency:

  • Use mock_delay header if supported by client, or
  • Rely on client-side throttling (Network tab in DevTools) for UI testing. *Mockzilla itself does not currently support server-side sleep effects.*

🧪 Testing & Verification

  1. Schema Validation:

- Use preview_mock with your schema *before* creating the mock. - Check for [ref:key-not-found] in the output to catch bad interpolation paths.

  1. State Verification:

- Use inspect_workflow_state to view the *real* values in db.*. - Compare {{db.users[0].id}} with {{state.currentUserId}} to debug mismatches.

  1. Performance:

- Keep schemas simple. Deeply nested arrays with maxItems: 100 can slow down generation. - Default maxItems is 5 for a reason—it's enough for UI testing.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Gemini CLI

89.8%
按下载量换算29

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills