AGENT SKILL

recipe-harness

Operate mm-harness in one isolated MetaMask checkout. Use for runtime preparation, action or recipe execution, diagnostics, and evidence collection; the installed CLI owns version-specific recipe authoring guidance.

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

01 前言 Front Matter

name
recipe-harness
maturity
experimental
description
Operate mm-harness in one isolated MetaMask checkout. Use for runtime preparation, action or recipe execution, diagnostics, and evidence collection; the installed CLI owns version-specific recipe authoring guidance.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Recipe Harness

Use only mm-harness. Recipe Cook owns task routing and checklist policy. This skill adds the MetaMask checkout and runtime boundary.

Read the installed contract

From the target checkout, run:

mm-harness help --json

The returned harness version, Recipe Protocol version, adapter, authoring method, quality bar, drift recovery, and discovery commands are authoritative for that installed binary. Follow them instead of recalling recipe fields, copying skill prose, or inventing commands. The canonical protocol remains Recipe Protocol v1: https://farmslot.io/docs/reference/recipe-protocol-v1/.

Prepare one sandbox

  1. Run mm-harness doctor --fix --json in this checkout. It may repair harness-owned runtime state, but it must not choose credentials, a wallet, or another checkout.
  2. If doctor reports a wallet-fixture choice, relay its exact numbered options and end the turn. Never request or pass an SRP, private key, or password in chat or CLI arguments.
  3. After the operator chooses, run only the printed fixture command, rerun doctor, then follow status into launch or reuse. Use launch --verify; add --build only when doctor requires it. Core is headless and uses verify.
  4. Require the final result to identify only this checkout's device or browser profile, ports, fixture, runtime owner, and artifact directory. Never borrow another checkout.

Run one checkout operation at a time. If a job is backgrounded, wait for that job. If its handle is lost, wait for the PID recorded in temp/recipe/runtime/sandbox.lock; do not probe with a competing harness command. A bounded failure stops the loop.

Execution boundaries

  • Use the task's provenance-locked harness when Recipe Cook or Release QA created one. Do not replace it with a PATH binary mid-task.
  • When no catalog action can observe an AC, write a task action under a new name, modeled on a library action (actions --action <name> --json shows its sourceManifest) but self-contained (node built-ins, plus any helper copied next to it): keep its manifest in <task>/artifacts/task-actions/manifests/ and its script in the sibling <task>/artifacts/task-actions/actions/, pass --action-manifest <manifest> to every harness actions, run --plan, run and call, and flag it in the report as a library candidate. A missing fixture or runtime capability is still a named blocker, never a hidden state mutation.
  • Final evidence comes from the run's printed artifact directory. Require the root recipe, resolution graph and dependency recipes, summary, trace, artifact manifest, and claimed evidence.
  • Review sideFindings and diagnostics.json as non-blocking leads. They do not establish a product failure or its cause.
  • Keep secrets out of recipes, commands, reports, and evidence.

Read references/evidence-package.md only when a task needs the optional evidence-package layout.

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