AGENT SKILL

recipe-setup

Check an engineer's machine for recipe-backed MetaMask work — harness, runtime, wallet fixture, device and installed skills — and walk through whatever is missing.

License 许可
MIT
所属仓库
MetaMask/skills
最近更新
2026-11-14
Stars
★ 25
Forks
11

01 前言 Front Matter

name
recipe-setup
maturity
experimental
description
Check an engineer's machine for recipe-backed MetaMask work — harness, runtime, wallet fixture, device and installed skills — and walk through whatever is missing.
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Setup for recipe-backed work

Use only when explicitly named.

Run mm-harness doctor through scripts/setup-check, from the MetaMask checkout. Doctor is the verdict; the script adds only what doctor does not report yet. On exit 0 print its summary and stop; a ! warning (skills) does not block, offer its step. Otherwise follow ONLY the step named by SETUP INCOMPLETE: <piece>, then rerun. Show doctor's findings and next command as printed, never reworded.

harness

This skill installs before the harness, so a missing mm-harness is step one: run the exact install scripts/setup-check prints (the pin lives in scripts/harness-package-policy), then mm-harness --version. A newer harness already installed is used without warning or replacement. An explicit MM_HARNESS_BIN is always used, with a warning only when older than the recommended version. Task-local installs use exactly that pinned version; never install latest or a version range from this personal scope. Everything below runs inside a MetaMask checkout (metamask-extension, metamask-mobile, core). If the user did not start you in one, run mm-harness setup-base --dry-run, show what it would create, and ask before running it for real.

doctor

Follow doctor's own next command until it passes. --fix repairs harness-owned runtime state; it never invents credentials or simulators. A runtime finding of app-not-running is advisory, not a failure.

fixture

With no fixture, STOP and ask which wallet. Show this file, then wait:

temp/recipe/runtime/wallet-fixture.json
{
  "password": "<unlock password>",
  "accounts": [
    {
      "type": "mnemonic",
      "value": "<secret recovery phrase>",
      "name": "Account 1",
      "count": 1,
      "names": ["Account 1"]
    }
  ],
  "settings": { "skipGtmModals": true, "skipPerpsTutorial": true, "autoLockNever": true }
}

The user gives a path (mm-harness fixtures init --from <path>), writes the file themselves (never paste a secret recovery phrase into chat), or explicitly picks the disposable public test wallet (mm-harness fixtures init --dev, never real funds). Never invent a mnemonic or a password. Continue only at READY.

launch

Reached from doctor's next command, or when the fixture has to be applied to a running app.

  • Extension: mm-harness launch --verify, then mm-harness fixtures set.
  • Android: mm-harness launch android --verify; with several devices listed, pick one serial and repeat with --device <serial>; pass the same --device to fixtures set.
  • iOS: pin one simulator. Reuse simulatorUdid from temp/recipe/runtime/agentic-runtime.json when set, else mm-harness provision runway ios --device mm-local --force (recorded UUID: --device '<UUID>' --force). Then mm-harness launch ios --device '<UUID>' --verify and mm-harness fixtures set --device '<UUID>'. Never grab a spare or already-booted simulator.
  • Core: mm-harness verify; no app to launch.

skills

Inspect METAMASK_SKILLS_DIR; reuse a valid public clone. If it is missing, show the path and ask before cloning:

git clone https://github.com/MetaMask/skills.git ~/dev/metamask/skills

Export METAMASK_SKILLS_DIR in the current shell only; never edit a startup file without explicit consent. The recipe skills install from this public repository; no private overlay is required. Then, from the checkout:

yarn skills --include agentic/recipe-harness,agentic/recipe-cook,agentic/recipe-dev,agentic/recipe-fix-bug,agentic/recipe-qa,agentic/recipe-pretty-pr,agentic/recipe-setup,perps/recipe-performance --save

actions

mm-harness actions is the only capability list, now and in every later session. Never invent an action or a flag.

Rules

Evidence comes only from executed commands. A failing command names the next one — run that, do not improvise. If a step fails twice after following its error, stop and show the exact error.

04 同仓库更多 Skills

MetaMask
MetaMask/skills

recipe-plan-and-dispatch

Plan a ticket with the engineer before a recipe fix-bug or dev run. Agree the acceptance criteria and an implementation plan, write it as an approved plan file, and print the prompt that starts the run with any agent and model. Never edits product code or starts the run.

★ 25
MetaMask
MetaMask/skills

recipe-library-audit

Run every recipe of a team recipe library on one client with mm-harness, classify each result with the failing node and exact error, and review naming and composability. Produces a per-client table; changes nothing.

★ 25
MetaMask
MetaMask/skills

recipe-performance

Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.

★ 25
MetaMask
MetaMask/skills

x402-payments

Build x402 payment flows using MetaMask Smart Accounts Kit, machine to machine payments over HTTP with ERC-7710 delegations and ERC-7715 Advanced Permissions

★ 25
MetaMask
MetaMask/skills

smart-accounts-kit

Build dApps with MetaMask Smart Accounts Kit — ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)

★ 25
MetaMask
MetaMask/skills

oh-my-opencode

Multi-agent orchestration plugin for OpenCode. Use when the user wants to install, configure, or operate oh-my-opencode — including agent delegation, ultrawork mode, Prometheus planning, background tasks, category-based task routing, model resolution, tmux integration, or any oh-my-opencode feature. Covers installation, configuration, all agents (Sisyphus, Oracle, Librarian, Explore, Atlas, Prometheus, Metis, Momus), all categories, slash commands, hooks, skills, MCPs, and troubleshooting.

★ 25