agentleFS
nirholasnirholas/three.ws/.agents/skills/metamask-agent-workflows/SKILL.md

metamask-agent-workflows

Skill264 starsChanged 43 days agoApache-2.0View on GitHub

Use when the user needs to perform multi-step operations with the MetaMask Agentic CLI such as onboarding, login, swapping tokens, bridging across chains, opening/closing/modifying perpetual positions, prediction market trading, Aave V3 lending and borrowing, or troubleshooting CLI issues.

  • Installs packages

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always use --toon for command output unless the user explicitly requests a different format.

    line 42
  2. Distinctive:

    Run these checks before the first CLI operation in a session, in order.

    line 46
  3. Very specific:

    If the installed major.minor differs from the pinned cliVersion, or the installed version is behind the latest release, warn the user once …

    line 62
  4. Distinctive:

    Run this check once per session.

    line 66
  5. Very specific:

    If the user is not authenticated, follow workflows/onboarding.md for first time setup, or workflows/login.md for login.

    line 74
  6. Very specific:

    Before constructing any command, run mm <command> --help to confirm the exact flags, syntax, and defaults.

    line 78
  7. Very specific:

    If a command fails, check mm <command> --help and guide from there.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MetaMask Agent Workflows

Repeatable multi-step patterns for the mm CLI. Load a workflow file when the user's request is a pattern, not a single command.

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 first-time setup and credentialspredict-setup.md
Deposit or withdraw pUSD from Predict walletpredict-funding.md
Search and browse prediction marketspredict-markets.md
Quote and place a prediction orderpredict-place-order.md
View or cancel Predict orders and positionspredict-manage-orders.md
View Predict portfolio and redeem winningspredict-portfolio.md
Token discovery, prices, and market datamarket-data.md
Supply assets to Aave V3aave-supply.md
Withdraw assets from Aave V3aave-withdraw.md
Borrow from Aave V3aave-borrow.md
Repay Aave V3 debtaave-repay.md
Toggle Aave V3 collateralaave-collateral.md
Check Aave V3 positions and health factoraave-positions.md
Discover Aave V3 tokens, rates, and liquidityaave-markets.md

Always use --toon for command output unless the user explicitly requests a different format.

Preflight

Run these checks before the first CLI operation in a session, in order.

1. Version compatibility

This skill is written for @metamask/agentic-cli v1.0.0 (see cliVersion in the frontmatter). Check the installed version:

mm --version

The installed version is the value after @metamask/agentic-cli/ (e.g. @metamask/agentic-cli/1.0.0 darwin-arm64 node-v24.14.1). Compare its major.minor against the pinned cliVersion. Optionally check the latest published version (best-effort; skip silently on network failure):

npm view @metamask/agentic-cli version

If the installed major.minor differs from the pinned cliVersion, or the installed version is behind the latest release, warn the user once and continue:

Version mismatch: installed CLI <installed>, this skill is pinned to 1.0.0, latest release is <latest>. Command syntax in this skill may be inaccurate until they are aligned. Update the CLI with npm install -g @metamask/agentic-cli@latest, then re-install the skills with npx skills add metaMask/agent-skills.

Run this check once per session. Do not block operations on it.

2. Authentication

mm auth status

If the user is not authenticated, follow workflows/onboarding.md for first time setup, or workflows/login.md for login.

Command Discovery

Before constructing any command, run mm <command> --help to confirm the exact flags, syntax, and defaults. Do not guess flags from memory.

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 <command> --help and guide from there.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.