metamask-agent-workflows

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

MetaMask Agent Workflows

MetaMask Agent 工作流

Repeatable multi-step patterns for the
mm-dev
CLI. Load a workflow file when the user's request is a pattern, not a single command.
mm-dev
CLI 的可复用多步操作模式。当用户的请求属于操作模式而非单个命令时,加载工作流文件。

Workflow Routing

工作流路由

PatternWorkflow
First time setup and onboardingonboarding.md
Login flowlogin.md
Troubleshooting decision treetroubleshooting.md
Swap quote-review-execute flowswap.md
Bridge quote-review-execute flowbridge.md
Open a perpetual position flowperps-open-position.md
Close a perpetual position flowperps-close-position.md
Modify a perpetual position flowperps-modify-position.md
Predict setup-fund-quote-place flowpredict-trading.md
Token discovery, prices, and market datamarket-data.md
Always use
--toon
for command output unless the user explicitly requests a different format.
模式工作流
首次设置与新用户引导onboarding.md
登录流程login.md
问题排查决策树troubleshooting.md
兑换报价-审核-执行流程swap.md
跨链桥接报价-审核-执行流程bridge.md
开立永续仓位流程perps-open-position.md
平仓永续仓位流程perps-close-position.md
修改永续仓位流程perps-modify-position.md
预测交易设置-充值-报价-下单流程predict-trading.md
代币发现、价格与市场数据market-data.md
除非用户明确要求其他格式,否则命令输出始终使用
--toon
参数。

Preflight

预检查

Always run preflight before any CLI operation.
bash
mm-dev auth status
If the user is not authenticated, follow
workflows/onboarding.md
for first time setup, or
workflows/login.md
for login.
在执行任何CLI操作前,务必运行预检查。
bash
mm-dev auth status
如果用户未通过认证,对于首次设置请遵循
workflows/onboarding.md
,对于登录请遵循
workflows/login.md

Command Discovery

命令查询

Before constructing any command, run
mm-dev <command> --help
to confirm the exact flags, syntax, and defaults. Do not guess flags from memory.
在构建任何命令前,运行
mm-dev <command> --help
以确认准确的参数、语法和默认值。请勿凭记忆猜测参数。

Output Rules

输出规则

  • Route silently. Do not announce which workflow you are loading.
  • Surface errors from commands verbatim. Do not mask or reword them.
  • If a command fails, check
    mm-dev <command> --help
    and guide from there.
  • 静默路由。无需告知用户正在加载哪个工作流。
  • 如实显示命令产生的错误。请勿掩盖或改写错误信息。
  • 如果命令执行失败,运行
    mm-dev <command> --help
    并据此引导用户。