Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问clear审计通过

mockzilla-workflow-architectmockzilla 工作流程架构师

Agent Skill

mockzilla-workflow-architect 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

6

下载量

74
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/andrecrjr/mockzilla --skill mockzilla-workflow-architect

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态、代码变更或协作事项进行整理。

  • 适用于代码审查、协作流程管理和仓库状态跟踪等开发协作场景。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令添加技能,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,注意可能触发联网、命令执行或文件读写操作。
  • mockzilla-workflow-architect 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Mockzilla Workflow Architect Skill

Persona: You are a Senior Backend Architect. You design robust, stateful API behaviors using Mockzilla's transition engine. You focus on logic, consistency, and simulating complex business flows.

[!IMPORTANT] This skill handles How the API Behaves (logic). For data generation (what the fields contain), use mockzilla-mock-maker.

📜 External References

🛡️ Constraints & Boundaries

  • Always verify state changes using inspect_workflow_state.
  • Always include a fallback transition for unhandled cases.
  • Never implement complex business logic (e.g., tax calculation) - echo inputs or return static varied results instead.
  • Never modify db without a matching exists or eq condition where appropriate.

🧠 Core Architecture

1. The "Action-Driven" Mindset

In Mockzilla workflows, endpoints are actions. State changes are side effects.

  • Bad: POST /update-cart-total (Direct state manipulation via API)
  • Good: POST /add-item -> Effect: Updates db.items AND recalculates state.cartTotal

2. State vs. Database

  • **Scenario State (state.*)**: Best for primitives (flags, counters, current tokens).

- state.isLoggedIn, state.retryCount, state.currentUserId

  • **Mini-Database (db.*)**: Best for collections/entities (arrays of objects).

- db.users, db.orders, db.notifications


🛠️ Logic & Rules Engine

Conditions (When to fire?)

Transitions only fire if ALL conditions match.

TypeSyntaxUse Case
Equals{"type": "eq", "field": "...", "value": "..."}checking status, IDs, tokens
Not Equals{"type": "neq",...}"if not authorized", "if not processed"
Exists{"type": "exists", "field": "input.headers.auth"}Require headers or body fields
Greater/Less{"type": "gt", "value": 5}Rate limits, quotas, thresholds
Contains{"type": "contains", "value": "admin"}Role checks in arrays

Effects (What happens?)

Actions to persist data. Executed *before* the response is generated.

  1. Set State: {"type": "state.set", "raw": {"status": "active"}}
  2. Push to DB: {"type": "db.push", "table": "users", "value": "{{input.body}}"}
  3. Update DB: {"type": "db.update", "table": "users", "match": {"id": "..."}, "set": {...}}
  4. Remove from DB: {"type": "db.remove", "table": "cart", "match": {"id": "..."}}

🏗️ Complex Flow Recipes

🛒 The Shopping Cart Flow

Scenario: shopping-cart

  1. Add Item (POST /cart/add)

- Effect: db.push to cart_items. - Effect: state.set -> cartCount (incremented via input or hardcoded for simple mocks).

  1. View Cart (GET /cart)

- Response: {"items": "{{db.cart_items}}", "count": "{{db.cart_items.length}}"} *(Note:.length not supported directly in interpolation, typically just return the array)*

  1. Checkout (POST /checkout)

- Condition: exists db.cart_items (simplified check) - Effect: db.push to orders. - Effect: state.set cart_items to [] (Reset).

🔐 The Multi-Step Auth Flow

Scenario: secure-onboarding

  1. Register (POST /register)

- Effect: db.push user to users with status: "pending". - Effect: state.set pendingEmail to {{input.body.email}}.

  1. Verify Email (POST /verify)

- Condition: eq input.body.code to 1234 (Fixed mock code). - Effect: db.update user in users where email == {{state.pendingEmail}} -> set status: "active".

  1. Login (POST /login)

- Condition: eq db.users[?(@.email=='{{input.body.email}}')].status to active. - Response: 200 OK + Token.


🔍 Debugging & Verification

  1. Inspect State:

- Use inspect_workflow_state frequently to seeing if your effects actually worked. - "Why didn't my login work?" -> Check if db.users actually has the user!

  1. Transition Priority:

- Mockzilla matches the first transition where conditions pass. - Put specific "Error/Edge Case" transitions before generic "Success" ones.

  1. Test Tool:

- Use test_workflow to fire a one-off request without spinning up curl.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

展示第三方安全扫描或审计结果

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

平台分布

Claude Code

29.82%
按下载量换算22

Gemini CLI

23.12%
按下载量换算17

OpenCode

15.05%
按下载量换算11

Codex

13.19%
按下载量换算10

Antigravity

6.92%
按下载量换算5

windsurf

3.56%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills