From 456a43905951f8a7f3d11abd292854413bd07cf7 Mon Sep 17 00:00:00 2001 From: AyushBherwani1998 Date: Mon, 8 Jun 2026 15:39:03 +0400 Subject: [PATCH 1/2] chore: update skills to use mm binary --- skills/metamask-agent-wallet/SKILL.md | 144 +++++++++--------- .../metamask-agent-wallet/references/auth.md | 70 ++++----- .../metamask-agent-wallet/references/chain.md | 6 +- .../references/decode.md | 10 +- .../references/errors.md | 6 +- .../references/market-data.md | 56 +++---- .../metamask-agent-wallet/references/perps.md | 110 ++++++------- .../references/polling.md | 12 +- .../references/predict.md | 130 ++++++++-------- .../references/signing.md | 12 +- .../metamask-agent-wallet/references/swap.md | 40 ++--- .../references/transaction.md | 10 +- .../references/transfer.md | 10 +- .../references/wallet.md | 48 +++--- .../metamask-agent-wallet/workflows/bridge.md | 10 +- .../metamask-agent-wallet/workflows/login.md | 10 +- .../workflows/market-data.md | 22 +-- .../workflows/onboarding.md | 24 +-- .../workflows/perps-close-position.md | 12 +- .../workflows/perps-modify-position.md | 12 +- .../workflows/perps-open-position.md | 14 +- .../workflows/predict-trading.md | 54 +++---- .../metamask-agent-wallet/workflows/swap.md | 8 +- .../workflows/troubleshooting.md | 20 +-- skills/metamask-agent-workflows/SKILL.md | 10 +- .../workflows/bridge.md | 10 +- .../workflows/login.md | 10 +- .../workflows/market-data.md | 22 +-- .../workflows/onboarding.md | 24 +-- .../workflows/perps-close-position.md | 12 +- .../workflows/perps-modify-position.md | 12 +- .../workflows/perps-open-position.md | 14 +- .../workflows/predict-trading.md | 54 +++---- .../workflows/swap.md | 8 +- .../workflows/troubleshooting.md | 20 +-- 35 files changed, 523 insertions(+), 523 deletions(-) diff --git a/skills/metamask-agent-wallet/SKILL.md b/skills/metamask-agent-wallet/SKILL.md index ab5a700..e9d8f0d 100644 --- a/skills/metamask-agent-wallet/SKILL.md +++ b/skills/metamask-agent-wallet/SKILL.md @@ -1,6 +1,6 @@ --- name: metamask-agent-wallet -description: Use when the user asks anything about blockchain wallets, transactions, signing, token transfers, supported chains, wallet balances, perpetual futures trading, prediction markets, token swaps, cross-chain bridges, market data, token discovery, decoding EVM calldata, or authentication via the MetaMask Agentic CLI. Single entry point for all mm-dev CLI operations. +description: Use when the user asks anything about blockchain wallets, transactions, signing, token transfers, supported chains, wallet balances, perpetual futures trading, prediction markets, token swaps, cross-chain bridges, market data, token discovery, decoding EVM calldata, or authentication via the MetaMask Agentic CLI. Single entry point for all mm CLI operations. license: MIT metadata: author: metamask @@ -9,7 +9,7 @@ metadata: # MetaMask Agentic CLI Skill -This skill documents the `mm-dev` CLI surface for MetaMask Agent Wallet authentication, wallet lifecycle, balance queries, token transfers, message and typed-data signing, raw transactions, chain discovery, market data, token discovery, perpetual futures trading, prediction market trading, token swaps, and cross-chain bridges. +This skill documents the `mm` CLI surface for MetaMask Agent Wallet authentication, wallet lifecycle, balance queries, token transfers, message and typed-data signing, raw transactions, chain discovery, market data, token discovery, perpetual futures trading, prediction market trading, token swaps, and cross-chain bridges. Use the routing table to select the relevant reference file. CLI behavior lives in `references/`. Repeatable operational patterns live in `workflows/`. @@ -19,71 +19,71 @@ Match the user's intent to a command and reference file, then read the reference | User Intent | Command | Reference | | --- | --- | --- | -| Check authentication status | `mm-dev auth status` | [auth.md](references/auth.md) | -| Login in MetaMask Agentic CLI | `mm-dev login` | [auth.md](references/auth.md) | -| Choose a wallet mode and set up policies | `mm-dev init` | [auth.md](references/auth.md) | -| Show current init settings | `mm-dev init show` | [auth.md](references/auth.md) | -| Sign in via QR code (coming soon) | `mm-dev login qr` | [auth.md](references/auth.md) | -| Sign in via Google | `mm-dev login google` | [auth.md](references/auth.md) | -| Sign in via email OTP | `mm-dev login email` | [auth.md](references/auth.md) | -| Sign out | `mm-dev logout` | [auth.md](references/auth.md) | -| Reset CLI session | `mm-dev reset` | [auth.md](references/auth.md) | -| Set BYOK mnemonic encryption password | `mm-dev wallet password set` | [auth.md](references/auth.md) | -| Change BYOK mnemonic encryption password | `mm-dev wallet password change` | [auth.md](references/auth.md) | -| Remove BYOK mnemonic encryption password | `mm-dev wallet password remove` | [auth.md](references/auth.md) | +| Check authentication status | `mm auth status` | [auth.md](references/auth.md) | +| Login in MetaMask Agentic CLI | `mm login` | [auth.md](references/auth.md) | +| Choose a wallet mode and set up policies | `mm init` | [auth.md](references/auth.md) | +| Show current init settings | `mm init show` | [auth.md](references/auth.md) | +| Sign in via QR code (coming soon) | `mm login qr` | [auth.md](references/auth.md) | +| Sign in via Google | `mm login google` | [auth.md](references/auth.md) | +| Sign in via email OTP | `mm login email` | [auth.md](references/auth.md) | +| Sign out | `mm logout` | [auth.md](references/auth.md) | +| Reset CLI session | `mm reset` | [auth.md](references/auth.md) | +| Set BYOK mnemonic encryption password | `mm wallet password set` | [auth.md](references/auth.md) | +| Change BYOK mnemonic encryption password | `mm wallet password change` | [auth.md](references/auth.md) | +| Remove BYOK mnemonic encryption password | `mm wallet password remove` | [auth.md](references/auth.md) | | Interpret raw CLI error codes | `AuthError`, `ValidationError`, `WALLET_ERROR` | [errors.md](references/errors.md) | -| Decode EVM calldata into a human-readable intent | `mm-dev decode` | [decode.md](references/decode.md) | -| Create a wallet | `mm-dev wallet create` | [wallet.md](references/wallet.md) | -| List all wallets | `mm-dev wallet list` | [wallet.md](references/wallet.md) | -| Switch active wallet | `mm-dev wallet select` | [wallet.md](references/wallet.md) | -| Show active wallet details | `mm-dev wallet show` | [wallet.md](references/wallet.md) | -| Show active wallet address | `mm-dev wallet address` | [wallet.md](references/wallet.md) | -| Check the active wallet balance | `mm-dev wallet balance` | [wallet.md](references/wallet.md) | -| Sign a plaintext message | `mm-dev wallet sign-message` | [signing.md](references/signing.md) | -| Sign EIP-712 typed data | `mm-dev wallet sign-typed-data` | [signing.md](references/signing.md) | -| Send a raw EVM transaction | `mm-dev wallet send-transaction` | [transaction.md](references/transaction.md) | -| Transfer native tokens or ERC-20 tokens | `mm-dev transfer` | [transfer.md](references/transfer.md) | -| List supported chains by the CLI | `mm-dev chains list` | [chain.md](references/chain.md) | -| List pending wallet requests | `mm-dev wallet requests list` | [polling.md](references/polling.md) | -| Watch a wallet polling id | `mm-dev wallet requests watch` | [polling.md](references/polling.md) | -| Query spot or historical prices | `mm-dev price ...` | [market-data.md](references/market-data.md) | -| Discover tokens, token networks, or token metadata | `mm-dev token ...` | [market-data.md](references/market-data.md) | -| List perpetual markets | `mm-dev perps markets` | [perps.md](references/perps.md) | -| Check perps account balance | `mm-dev perps balance` | [perps.md](references/perps.md) | -| List open perpetual positions | `mm-dev perps positions` | [perps.md](references/perps.md) | -| Get a quote for a perpetual order | `mm-dev perps quote` | [perps.md](references/perps.md) | -| List resting perpetual orders | `mm-dev perps orders` | [perps.md](references/perps.md) | -| Open a perpetual position | `mm-dev perps open` | [perps.md](references/perps.md) | -| Close a perpetual position | `mm-dev perps close` | [perps.md](references/perps.md) | -| Modify leverage, take-profit, or stop-loss | `mm-dev perps modify` | [perps.md](references/perps.md) | -| Cancel a resting perps order | `mm-dev perps cancel` | [perps.md](references/perps.md) | -| Deposit USDC into a perps venue | `mm-dev perps deposit` | [perps.md](references/perps.md) | -| Withdraw USDC from a perps venue | `mm-dev perps withdraw` | [perps.md](references/perps.md) | -| Transfer USDC between spot and perp accounts | `mm-dev perps transfer` | [perps.md](references/perps.md) | -| List perpetual futures venues | `mm-dev perps list-venues` | [perps.md](references/perps.md) | -| List available DEXs for a venue | `mm-dev perps dexs` | [perps.md](references/perps.md) | -| Set Predict trading mode | `mm-dev predict mode` | [predict.md](references/predict.md) | -| One-time Predict setup | `mm-dev predict setup` | [predict.md](references/predict.md) | -| Create or refresh Predict credentials | `mm-dev predict auth` | [predict.md](references/predict.md) | -| Repair Predict approvals | `mm-dev predict approve` | [predict.md](references/predict.md) | -| Check Predict back-end status | `mm-dev predict status` | [predict.md](references/predict.md) | -| List prediction markets | `mm-dev predict markets list` | [predict.md](references/predict.md) | -| Search prediction markets | `mm-dev predict markets search` | [predict.md](references/predict.md) | -| Inspect a prediction market | `mm-dev predict markets get` | [predict.md](references/predict.md) | -| Preview a prediction order cost | `mm-dev predict quote` | [predict.md](references/predict.md) | -| Place a prediction market order | `mm-dev predict place` | [predict.md](references/predict.md) | -| Cancel prediction orders | `mm-dev predict cancel` | [predict.md](references/predict.md) | -| View prediction market positions | `mm-dev predict positions` | [predict.md](references/predict.md) | -| View open prediction orders | `mm-dev predict orders` | [predict.md](references/predict.md) | -| Check Predict deposit wallet balance | `mm-dev predict balance` | [predict.md](references/predict.md) | -| Fund Predict deposit wallet | `mm-dev predict deposit` | [predict.md](references/predict.md) | -| Withdraw pUSD from Predict deposit wallet | `mm-dev predict withdraw` | [predict.md](references/predict.md) | -| Fetch prediction order book | `mm-dev predict book` | [predict.md](references/predict.md) | -| Watch a Predict job | `mm-dev predict watch` | [predict.md](references/predict.md) | -| Get a swap or bridge quote | `mm-dev swap quote` | [swap.md](references/swap.md) | -| Execute a token swap or bridge | `mm-dev swap execute` | [swap.md](references/swap.md) | -| Check swap or bridge status | `mm-dev swap status` | [swap.md](references/swap.md) | -| Bridge tokens to another chain | `mm-dev swap execute` | [swap.md](references/swap.md) | +| Decode EVM calldata into a human-readable intent | `mm decode` | [decode.md](references/decode.md) | +| Create a wallet | `mm wallet create` | [wallet.md](references/wallet.md) | +| List all wallets | `mm wallet list` | [wallet.md](references/wallet.md) | +| Switch active wallet | `mm wallet select` | [wallet.md](references/wallet.md) | +| Show active wallet details | `mm wallet show` | [wallet.md](references/wallet.md) | +| Show active wallet address | `mm wallet address` | [wallet.md](references/wallet.md) | +| Check the active wallet balance | `mm wallet balance` | [wallet.md](references/wallet.md) | +| Sign a plaintext message | `mm wallet sign-message` | [signing.md](references/signing.md) | +| Sign EIP-712 typed data | `mm wallet sign-typed-data` | [signing.md](references/signing.md) | +| Send a raw EVM transaction | `mm wallet send-transaction` | [transaction.md](references/transaction.md) | +| Transfer native tokens or ERC-20 tokens | `mm transfer` | [transfer.md](references/transfer.md) | +| List supported chains by the CLI | `mm chains list` | [chain.md](references/chain.md) | +| List pending wallet requests | `mm wallet requests list` | [polling.md](references/polling.md) | +| Watch a wallet polling id | `mm wallet requests watch` | [polling.md](references/polling.md) | +| Query spot or historical prices | `mm price ...` | [market-data.md](references/market-data.md) | +| Discover tokens, token networks, or token metadata | `mm token ...` | [market-data.md](references/market-data.md) | +| List perpetual markets | `mm perps markets` | [perps.md](references/perps.md) | +| Check perps account balance | `mm perps balance` | [perps.md](references/perps.md) | +| List open perpetual positions | `mm perps positions` | [perps.md](references/perps.md) | +| Get a quote for a perpetual order | `mm perps quote` | [perps.md](references/perps.md) | +| List resting perpetual orders | `mm perps orders` | [perps.md](references/perps.md) | +| Open a perpetual position | `mm perps open` | [perps.md](references/perps.md) | +| Close a perpetual position | `mm perps close` | [perps.md](references/perps.md) | +| Modify leverage, take-profit, or stop-loss | `mm perps modify` | [perps.md](references/perps.md) | +| Cancel a resting perps order | `mm perps cancel` | [perps.md](references/perps.md) | +| Deposit USDC into a perps venue | `mm perps deposit` | [perps.md](references/perps.md) | +| Withdraw USDC from a perps venue | `mm perps withdraw` | [perps.md](references/perps.md) | +| Transfer USDC between spot and perp accounts | `mm perps transfer` | [perps.md](references/perps.md) | +| List perpetual futures venues | `mm perps list-venues` | [perps.md](references/perps.md) | +| List available DEXs for a venue | `mm perps dexs` | [perps.md](references/perps.md) | +| Set Predict trading mode | `mm predict mode` | [predict.md](references/predict.md) | +| One-time Predict setup | `mm predict setup` | [predict.md](references/predict.md) | +| Create or refresh Predict credentials | `mm predict auth` | [predict.md](references/predict.md) | +| Repair Predict approvals | `mm predict approve` | [predict.md](references/predict.md) | +| Check Predict back-end status | `mm predict status` | [predict.md](references/predict.md) | +| List prediction markets | `mm predict markets list` | [predict.md](references/predict.md) | +| Search prediction markets | `mm predict markets search` | [predict.md](references/predict.md) | +| Inspect a prediction market | `mm predict markets get` | [predict.md](references/predict.md) | +| Preview a prediction order cost | `mm predict quote` | [predict.md](references/predict.md) | +| Place a prediction market order | `mm predict place` | [predict.md](references/predict.md) | +| Cancel prediction orders | `mm predict cancel` | [predict.md](references/predict.md) | +| View prediction market positions | `mm predict positions` | [predict.md](references/predict.md) | +| View open prediction orders | `mm predict orders` | [predict.md](references/predict.md) | +| Check Predict deposit wallet balance | `mm predict balance` | [predict.md](references/predict.md) | +| Fund Predict deposit wallet | `mm predict deposit` | [predict.md](references/predict.md) | +| Withdraw pUSD from Predict deposit wallet | `mm predict withdraw` | [predict.md](references/predict.md) | +| Fetch prediction order book | `mm predict book` | [predict.md](references/predict.md) | +| Watch a Predict job | `mm predict watch` | [predict.md](references/predict.md) | +| Get a swap or bridge quote | `mm swap quote` | [swap.md](references/swap.md) | +| Execute a token swap or bridge | `mm swap execute` | [swap.md](references/swap.md) | +| Check swap or bridge status | `mm swap status` | [swap.md](references/swap.md) | +| Bridge tokens to another chain | `mm swap execute` | [swap.md](references/swap.md) | ## Workflows @@ -104,7 +104,7 @@ CLI behavior lives in `references/`. Repeatable patterns live in `workflows/`. L ## Global Flags -Every `mm-dev` command accepts these flags: +Every `mm` command accepts these flags: | Flag | Short | Description | | --- | --- | --- | @@ -120,7 +120,7 @@ Always use `--toon` for command output unless the user explicitly requests a dif Always run preflight before any CLI operation. ```bash -mm-dev auth status +mm auth status ``` If the user is not authenticated, follow `workflows/onboarding.md` for first time setup, or `workflows/login.md` for login. @@ -187,7 +187,7 @@ Flag to the user before proceeding if a signing payload or transaction contains: - `permit`, `approve`, `setApprovalForAll`, or allowance-like fields - Unusually large values or unfamiliar contract interactions -When raw calldata is unfamiliar or was not constructed by you, run `mm-dev decode --payload <0x-calldata>` first and confirm the decoded intent with the user before signing or sending. See [decode.md](references/decode.md). +When raw calldata is unfamiliar or was not constructed by you, run `mm decode --payload <0x-calldata>` first and confirm the decoded intent with the user before signing or sending. See [decode.md](references/decode.md). ## Server Wallet Async Model @@ -195,8 +195,8 @@ In server-wallet mode, signing and transaction commands return a `pollingId` ins 1. Prefer `--wait` to block until complete. 2. If not using `--wait`, inform the user of the `pollingId` and how to track it: - - `mm-dev wallet requests list` - - `mm-dev wallet requests watch --polling-id ` + - `mm wallet requests list` + - `mm wallet requests watch --polling-id ` 3. In BYOK mode, results are returned immediately. If the mnemonic is password-encrypted, the user must set `MM_PASSWORD` environment variable to unlock it for the operation. Transfers, swaps, perps, predict orders, and predict withdraws attach a human-readable `intent` summary to their wallet request (e.g. `Transfer 0.5 ETH to 0x...`, `Withdraw 10 pUSD to 0x...`). When surfacing a pending request from `wallet requests list` or `wallet requests watch`, show the `intent` summary so the user can confirm what they are approving. @@ -205,4 +205,4 @@ Transfers, swaps, perps, predict orders, and predict withdraws attach a human-re - Route silently. Do not announce which reference you are loading. - Surface errors from commands verbatim. Do not mask or reword them. -- If a command fails, check `mm-dev --help` and guide from there. +- If a command fails, check `mm --help` and guide from there. diff --git a/skills/metamask-agent-wallet/references/auth.md b/skills/metamask-agent-wallet/references/auth.md index 24d22fd..cc652f9 100644 --- a/skills/metamask-agent-wallet/references/auth.md +++ b/skills/metamask-agent-wallet/references/auth.md @@ -4,12 +4,12 @@ Use these commands to initialize wallet mode, sign in, inspect authentication st ## `init` Command -Initialize the project by selecting wallet mode and trading mode. Requires an authenticated session — run `mm-dev login` first. +Initialize the project by selecting wallet mode and trading mode. Requires an authenticated session — run `mm login` first. ### Syntax ```bash -mm-dev init [--wallet ] [--mode ] [--mnemonic ] [--password ] +mm init [--wallet ] [--mode ] [--mnemonic ] [--password ] ``` ### Supported Flags @@ -24,14 +24,14 @@ mm-dev init [--wallet ] [--mode ] [--mnemonic ] [--password ### Example ```bash -mm-dev init -mm-dev init --wallet server-wallet --mode beast +mm init +mm init --wallet server-wallet --mode beast export MM_MNEMONIC="word1 word2 ..." -mm-dev init --wallet byok +mm init --wallet byok export MM_MNEMONIC="word1 word2 ..." export MM_PASSWORD="mypassword" -mm-dev init --wallet byok +mm init --wallet byok ``` ## `init show` Command @@ -41,7 +41,7 @@ Display the current initialization settings (wallet mode, trading mode, policies ### Syntax ```bash -mm-dev init show +mm init show ``` ### Supported Flags @@ -51,17 +51,17 @@ This command does not support additional flags beyond output format options. ### Example ```bash -mm-dev init show +mm init show ``` ## `login` Command -Sign in to the CLI. On a TTY, bare `mm-dev login` shows a method picker (QR, Google, or email). QR is recommended but not auto-selected. +Sign in to the CLI. On a TTY, bare `mm login` shows a method picker (QR, Google, or email). QR is recommended but not auto-selected. ### Syntax ```bash -mm-dev login [qr | google | email] [--token ] [--timeout ] [--no-wait] +mm login [qr | google | email] [--token ] [--timeout ] [--no-wait] ``` ### Supported Flags @@ -70,24 +70,24 @@ mm-dev login [qr | google | email] [--token ] [--timeout ] [--no | --- | --- | --- | | `--token` | No | Pre-minted CLI token in `cliToken:cliRefreshToken` format [env: `MM_CLI_TOKEN`] | | `--timeout` | No | Seconds to wait for QR or browser callback | -| `--no-wait` | No | Print the sign-in URL and exit without waiting (for non-interactive/CI use). Not supported with QR login. Complete later with `mm-dev login --token` | +| `--no-wait` | No | Print the sign-in URL and exit without waiting (for non-interactive/CI use). Not supported with QR login. Complete later with `mm login --token` | ### Example ```bash -mm-dev login --no-wait -mm-dev login google --no-wait -mm-dev login email --no-wait -mm-dev login --token "cliToken:cliRefreshToken" +mm login --no-wait +mm login google --no-wait +mm login email --no-wait +mm login --token "cliToken:cliRefreshToken" ``` ### Note -- If already authenticated, the CLI returns `ALREADY_AUTHENTICATED`. Run `mm-dev logout` first, then log in again. -- `mm-dev login qr` returns `COMING_SOON`. Use Google or email sign-in instead. +- If already authenticated, the CLI returns `ALREADY_AUTHENTICATED`. Run `mm logout` first, then log in again. +- `mm login qr` returns `COMING_SOON`. Use Google or email sign-in instead. - Pairing codes tolerate `-` and whitespace separators (e.g. `608-225` is equivalent to `608225`). -- Use `mm-dev login google --no-wait` or `mm-dev login email --no-wait` for non-interactive/CI flows. Bare `mm-dev login --no-wait` fails without a TTY because no method is selected. -- `--no-wait` is not supported with QR login. Complete authentication later with `mm-dev login --token`. +- Use `mm login google --no-wait` or `mm login email --no-wait` for non-interactive/CI flows. Bare `mm login --no-wait` fails without a TTY because no method is selected. +- `--no-wait` is not supported with QR login. Complete authentication later with `mm login --token`. ## `auth status` Command @@ -96,7 +96,7 @@ Show the current authentication status. ### Syntax ```bash -mm-dev auth status [--toon] +mm auth status [--toon] ``` ### Supported Flags @@ -106,8 +106,8 @@ This command does not support additional flags beyond output format options. ### Example ```bash -mm-dev auth status -mm-dev auth status --toon +mm auth status +mm auth status --toon ``` ## `logout` Command @@ -117,7 +117,7 @@ Sign out and clear auth credentials plus local init state, wallet selection, and ### Syntax ```bash -mm-dev logout +mm logout ``` ### Supported Flags @@ -127,7 +127,7 @@ This command does not support flags. ### Example ```bash -mm-dev logout +mm logout ``` ## `reset` Command @@ -137,7 +137,7 @@ Clear the local CLI session entirely. ### Syntax ```bash -mm-dev reset +mm reset ``` ### Supported Flags @@ -147,7 +147,7 @@ This command does not support flags. ### Example ```bash -mm-dev reset +mm reset ``` ## `wallet password set` Command @@ -157,7 +157,7 @@ Set a password to encrypt the BYOK mnemonic at rest. Only available in BYOK mode ### Syntax ```bash -mm-dev wallet password set [--new ] +mm wallet password set [--new ] ``` ### Supported Flags @@ -169,8 +169,8 @@ mm-dev wallet password set [--new ] ### Example ```bash -mm-dev wallet password set -mm-dev wallet password set --new "mypassword" +mm wallet password set +mm wallet password set --new "mypassword" ``` ## `wallet password change` Command @@ -180,7 +180,7 @@ Change the BYOK mnemonic encryption password. Only available when the mnemonic i ### Syntax ```bash -mm-dev wallet password change [--current ] [--new ] +mm wallet password change [--current ] [--new ] ``` ### Supported Flags @@ -193,8 +193,8 @@ mm-dev wallet password change [--current ] [--new ] ### Example ```bash -mm-dev wallet password change -mm-dev wallet password change --current "oldpassword" --new "newpassword" +mm wallet password change +mm wallet password change --current "oldpassword" --new "newpassword" ``` ## `wallet password remove` Command @@ -204,7 +204,7 @@ Remove the BYOK mnemonic encryption password, storing the mnemonic as plaintext. ### Syntax ```bash -mm-dev wallet password remove [--current ] +mm wallet password remove [--current ] ``` ### Supported Flags @@ -216,8 +216,8 @@ mm-dev wallet password remove [--current ] ### Example ```bash -mm-dev wallet password remove -mm-dev wallet password remove --current "mypassword" +mm wallet password remove +mm wallet password remove --current "mypassword" ``` ## Wallet Modes diff --git a/skills/metamask-agent-wallet/references/chain.md b/skills/metamask-agent-wallet/references/chain.md index d35a55c..a09e4a6 100644 --- a/skills/metamask-agent-wallet/references/chain.md +++ b/skills/metamask-agent-wallet/references/chain.md @@ -9,7 +9,7 @@ List all supported EVM blockchain networks (EIP-155). ### Syntax ```bash -mm-dev chains list [--toon] +mm chains list [--toon] ``` ### Supported Flags @@ -19,8 +19,8 @@ This command does not support additional flags beyond output format options. ### Example ```bash -mm-dev chains list -mm-dev chains list --toon +mm chains list +mm chains list --toon ``` ## Supported Namespaces diff --git a/skills/metamask-agent-wallet/references/decode.md b/skills/metamask-agent-wallet/references/decode.md index 2e73796..f4da733 100644 --- a/skills/metamask-agent-wallet/references/decode.md +++ b/skills/metamask-agent-wallet/references/decode.md @@ -9,10 +9,10 @@ Decode hex-encoded EVM calldata into its function name, parameters, and a plain- ### Syntax ```bash -mm-dev decode --payload <0x-calldata> [--toon] +mm decode --payload <0x-calldata> [--toon] ``` -The payload can also be passed positionally: `mm-dev decode <0x-calldata>`. +The payload can also be passed positionally: `mm decode <0x-calldata>`. ### Supported Flags @@ -31,11 +31,11 @@ The payload can also be passed positionally: `mm-dev decode <0x-calldata>`. ### Example ```bash -mm-dev decode --payload 0x095ea7b3000000000000000000000000... -mm-dev decode 0x095ea7b3000000000000000000000000... --toon +mm decode --payload 0x095ea7b3000000000000000000000000... +mm decode 0x095ea7b3000000000000000000000000... --toon ``` ## Notes -- Use this before `mm-dev wallet send-transaction` whenever the calldata is unfamiliar or was not constructed by you, to confirm what the transaction actually does. +- Use this before `mm wallet send-transaction` whenever the calldata is unfamiliar or was not constructed by you, to confirm what the transaction actually does. - If the selector is not recognized, `intent` falls back to `Call unknown function`. Treat unrecognized calldata as higher risk and warn the user before proceeding. diff --git a/skills/metamask-agent-wallet/references/errors.md b/skills/metamask-agent-wallet/references/errors.md index 78814a5..e4361ae 100644 --- a/skills/metamask-agent-wallet/references/errors.md +++ b/skills/metamask-agent-wallet/references/errors.md @@ -6,7 +6,7 @@ This reference lists error codes the CLI actually emits. SDK-only or remapped co | Code | Meaning | | --- | --- | -| `ALREADY_AUTHENTICATED` | Valid session already exists; run `mm-dev logout` before logging in again | +| `ALREADY_AUTHENTICATED` | Valid session already exists; run `mm logout` before logging in again | | `AUTH_FAILED` | Authentication failed (includes missing refresh token cases) | | `AUTH_ERROR` | Generic authentication error (includes missing auth token cases) | | `TOKEN_INVALID` | Invalid CLI token, token pair, or project ID | @@ -72,13 +72,13 @@ This reference lists error codes the CLI actually emits. SDK-only or remapped co | Code | Meaning | | --- | --- | | `ABORTED` | Operation aborted by user | -| `NOT_INITIALIZED` | Project not initialized — run `mm-dev init` | +| `NOT_INITIALIZED` | Project not initialized — run `mm init` | | `NO_MNEMONIC` | Mnemonic not stored | | `NO_TTY` | No TTY available for interactive prompts | | `MISSING_ID` | Missing ID parameter | | `MISSING_QUOTE_ID` | Missing quote ID | | `MISSING_SWAP_PARAMS` | Missing swap parameters | -| `COMING_SOON` | Feature not yet available (e.g. `mm-dev login qr`) | +| `COMING_SOON` | Feature not yet available (e.g. `mm login qr`) | ## Swap & Bridge Errors diff --git a/skills/metamask-agent-wallet/references/market-data.md b/skills/metamask-agent-wallet/references/market-data.md index d06314e..ef83b4e 100644 --- a/skills/metamask-agent-wallet/references/market-data.md +++ b/skills/metamask-agent-wallet/references/market-data.md @@ -9,7 +9,7 @@ Fetch spot prices for one or more CAIP-19 assets. ### Syntax ```bash -mm-dev price spot --asset-ids [--vs ] [--market-data] +mm price spot --asset-ids [--vs ] [--market-data] ``` ### Supported Flags @@ -23,9 +23,9 @@ mm-dev price spot --asset-ids [--vs ] [--market-data] ### Example ```bash -mm-dev price spot --asset-ids "eip155:1/slip44:60,eip155:137/slip44:966" -mm-dev price spot --asset-ids "eip155:1/slip44:60" --vs eur -mm-dev price spot --asset-ids "eip155:1/slip44:60" --market-data +mm price spot --asset-ids "eip155:1/slip44:60,eip155:137/slip44:966" +mm price spot --asset-ids "eip155:1/slip44:60" --vs eur +mm price spot --asset-ids "eip155:1/slip44:60" --market-data ``` ## `price history` Command @@ -35,25 +35,25 @@ Fetch historical prices for an asset. ### Syntax ```bash -mm-dev price history --chain-id --asset-type [--time-period ] [--interval ] [--from ] [--to ] [--vs ] +mm price history --chain-id --asset-type [--time-period ] [--interval ] [--from ] [--to ] [--vs ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--chain-id` | Yes | CAIP-2 chain ID (e.g. `eip155:1`). Run `mm-dev price networks` to see supported chains | +| `--chain-id` | Yes | CAIP-2 chain ID (e.g. `eip155:1`). Run `mm price networks` to see supported chains | | `--asset-type` | Yes | CAIP-19 asset type (e.g. `slip44:60` for ETH, `erc20:0x...` for ERC-20 tokens) | | `--time-period` | No | Time period (e.g. `1d`, `7d`, `30d`, `2M`, `1y`, `3y`) | | `--interval` | No | Sampling interval: `5m`, `hourly`, or `daily` | | `--from` | No | Start time as a Unix timestamp in seconds. Use with `--to` instead of `--time-period` for custom ranges | | `--to` | No | End time as a Unix timestamp in seconds. Use with `--from` instead of `--time-period` for custom ranges | -| `--vs` | No | Quote currency code (defaults to `usd`). Run `mm-dev price currencies` to see options | +| `--vs` | No | Quote currency code (defaults to `usd`). Run `mm price currencies` to see options | ### Example ```bash -mm-dev price history --chain-id eip155:1 --asset-type slip44:60 --time-period 7d --interval daily +mm price history --chain-id eip155:1 --asset-type slip44:60 --time-period 7d --interval daily ``` ## `price currencies` Command @@ -63,13 +63,13 @@ List supported quote currencies. ### Syntax ```bash -mm-dev price currencies +mm price currencies ``` ### Example ```bash -mm-dev price currencies +mm price currencies ``` ## `price networks` Command @@ -79,13 +79,13 @@ List CAIP-2 networks supported by the price API. ### Syntax ```bash -mm-dev price networks +mm price networks ``` ### Example ```bash -mm-dev price networks +mm price networks ``` ## `token list` Commands @@ -95,9 +95,9 @@ List popular, trending, or top-gainer tokens. ### Syntax ```bash -mm-dev token list popular [--chain ] -mm-dev token list trending [--chain ] -mm-dev token list top-gainer [--chain ] +mm token list popular [--chain ] +mm token list trending [--chain ] +mm token list top-gainer [--chain ] ``` ### Supported Flags @@ -109,9 +109,9 @@ mm-dev token list top-gainer [--chain ] ### Example ```bash -mm-dev token list popular --chain 1 -mm-dev token list trending --chain 1 -mm-dev token list top-gainer --chain 1 +mm token list popular --chain 1 +mm token list trending --chain 1 +mm token list top-gainer --chain 1 ``` ## `token list search` Command @@ -121,7 +121,7 @@ Search tokens by query. ### Syntax ```bash -mm-dev token list search --query [--chain ] [--limit ] [--after ] +mm token list search --query [--chain ] [--limit ] [--after ] ``` ### Supported Flags @@ -136,8 +136,8 @@ mm-dev token list search --query [--chain ] [--limit ] [--aft ### Example ```bash -mm-dev token list search --query USDC --chain 1,137 --limit 25 -mm-dev token list search --query WETH --chain eip155:8453 +mm token list search --query USDC --chain 1,137 --limit 25 +mm token list search --query WETH --chain eip155:8453 ``` ## `token networks` Command @@ -147,13 +147,13 @@ List networks supported by token APIs. ### Syntax ```bash -mm-dev token networks +mm token networks ``` ### Example ```bash -mm-dev token networks +mm token networks ``` ## `token assets` Command @@ -163,14 +163,14 @@ Fetch asset metadata for one or more CAIP-19 assets. ### Syntax ```bash -mm-dev token assets --asset-ids [--include-market-data] [--include-token-security-data] [--include-labels] [--include-aggregators] [--include-coingecko-id] [--include-occurrences] [--include-rwa-data] +mm token assets --asset-ids [--include-market-data] [--include-token-security-data] [--include-labels] [--include-aggregators] [--include-coingecko-id] [--include-occurrences] [--include-rwa-data] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--asset-ids` | Yes | Comma-separated CAIP-19 asset IDs (e.g. `eip155:1/erc20:0xa0b8...`). Run `mm-dev token networks` to see supported chains | +| `--asset-ids` | Yes | Comma-separated CAIP-19 asset IDs (e.g. `eip155:1/erc20:0xa0b8...`). Run `mm token networks` to see supported chains | | `--include-market-data` | No | Include market cap, volume, and price data | | `--include-token-security-data` | No | Include token security signals (scam risk, honeypot detection) | | `--include-labels` | No | Include token labels and categories | @@ -182,7 +182,7 @@ mm-dev token assets --asset-ids [--include-market-data] [--include-t ### Example ```bash -mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,eip155:137/slip44:966" -mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data --include-labels -mm-dev token assets --asset-ids "eip155:1/slip44:60" --include-aggregators --include-coingecko-id --include-rwa-data +mm token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,eip155:137/slip44:966" +mm token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data --include-labels +mm token assets --asset-ids "eip155:1/slip44:60" --include-aggregators --include-coingecko-id --include-rwa-data ``` diff --git a/skills/metamask-agent-wallet/references/perps.md b/skills/metamask-agent-wallet/references/perps.md index 9131fb9..5861111 100644 --- a/skills/metamask-agent-wallet/references/perps.md +++ b/skills/metamask-agent-wallet/references/perps.md @@ -20,26 +20,26 @@ List perpetual markets for a venue. ### Syntax ```bash -mm-dev perps markets [--venue ] [--network ] [--symbol ] [--symbols ] [--dex ] +mm perps markets [--venue ] [--network ] [--symbol ] [--symbols ] [--dex ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm-dev perps list-venues` to see options (allowed: `hyperliquid`) | +| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm perps list-venues` to see options (allowed: `hyperliquid`) | | `--network` | No | Target network: `mainnet` or `testnet` (defaults to `mainnet`) (allowed: `mainnet`, `testnet`) | | `--symbol` | No | Filter to a single market symbol (e.g. BTC) | | `--symbols` | No | Comma-separated market symbols to filter (e.g. BTC,ETH,SOL) | -| `--dex` | No | HIP-3 DEX name; omit for the main Hyperliquid DEX. Run `mm-dev perps dexs` to see options | +| `--dex` | No | HIP-3 DEX name; omit for the main Hyperliquid DEX. Run `mm perps dexs` to see options | ### Example ```bash -mm-dev perps markets --venue hyperliquid -mm-dev perps markets --venue hyperliquid --symbol BTC -mm-dev perps markets --venue hyperliquid --symbols BTC,ETH,SOL --network testnet -mm-dev perps markets --venue hyperliquid --dex myDex +mm perps markets --venue hyperliquid +mm perps markets --venue hyperliquid --symbol BTC +mm perps markets --venue hyperliquid --symbols BTC,ETH,SOL --network testnet +mm perps markets --venue hyperliquid --dex myDex ``` ## `perps balance` Command @@ -49,14 +49,14 @@ Show the connected wallet's perpetual account balances for a venue. ### Syntax ```bash -mm-dev perps balance [--venue ] [--network ] +mm perps balance [--venue ] [--network ] ``` ### Example ```bash -mm-dev perps balance --venue hyperliquid -mm-dev perps balance --venue hyperliquid --network testnet +mm perps balance --venue hyperliquid +mm perps balance --venue hyperliquid --network testnet ``` ## `perps positions` Command @@ -66,14 +66,14 @@ List open positions for the connected wallet on a venue. ### Syntax ```bash -mm-dev perps positions [--venue ] [--network ] +mm perps positions [--venue ] [--network ] ``` ### Example ```bash -mm-dev perps positions --venue hyperliquid -mm-dev perps positions --venue hyperliquid --network testnet +mm perps positions --venue hyperliquid +mm perps positions --venue hyperliquid --network testnet ``` ## `perps quote` Command @@ -83,7 +83,7 @@ Estimate entry price, notional, fees, and liquidation price without placing an o ### Syntax ```bash -mm-dev perps quote [--venue ] --symbol --side --size --leverage [--type ] [--limit-px ] [--network ] +mm perps quote [--venue ] --symbol --side --size --leverage [--type ] [--limit-px ] [--network ] ``` ### Supported Flags @@ -102,8 +102,8 @@ mm-dev perps quote [--venue ] --symbol --side --size ] --symbol --side --size --leverage [--type ] [--limit-px ] [--max-slippage-bps ] [--network ] [--dry-run] [--yes] [--password ] +mm perps open [--venue ] --symbol --side --size --leverage [--type ] [--limit-px ] [--max-slippage-bps ] [--network ] [--dry-run] [--yes] [--password ] ``` ### Supported Flags @@ -136,9 +136,9 @@ mm-dev perps open [--venue ] --symbol --side --size ] [--network ] +mm perps orders [--venue ] [--network ] ``` ### Example ```bash -mm-dev perps orders --venue hyperliquid -mm-dev perps orders --venue hyperliquid --network testnet +mm perps orders --venue hyperliquid +mm perps orders --venue hyperliquid --network testnet ``` ## `perps close` Command @@ -165,7 +165,7 @@ Close one position, part of a position, or all open positions. ### Syntax ```bash -mm-dev perps close [--venue ] [--symbol ] [--size ] [--all] [--max-slippage-bps ] [--network ] [--dry-run] [--yes] [--password ] +mm perps close [--venue ] [--symbol ] [--size ] [--all] [--max-slippage-bps ] [--network ] [--dry-run] [--yes] [--password ] ``` ### Supported Flags @@ -189,10 +189,10 @@ mm-dev perps close [--venue ] [--symbol ] [--size ] [--all] ### Example ```bash -mm-dev perps close --venue hyperliquid --symbol BTC -mm-dev perps close --venue hyperliquid --symbol ETH --size 0.5 -mm-dev perps close --venue hyperliquid --all -mm-dev perps close --venue hyperliquid --symbol BTC --dry-run +mm perps close --venue hyperliquid --symbol BTC +mm perps close --venue hyperliquid --symbol ETH --size 0.5 +mm perps close --venue hyperliquid --all +mm perps close --venue hyperliquid --symbol BTC --dry-run ``` ## `perps modify` Command @@ -202,7 +202,7 @@ Modify leverage, take-profit, or stop-loss for an existing position. ### Syntax ```bash -mm-dev perps modify [--venue ] --symbol [--leverage ] [--tp ] [--sl ] [--network ] [--dry-run] [--yes] [--password ] +mm perps modify [--venue ] --symbol [--leverage ] [--tp ] [--sl ] [--network ] [--dry-run] [--yes] [--password ] ``` ### Supported Flags @@ -226,9 +226,9 @@ mm-dev perps modify [--venue ] --symbol [--leverage ] ### Example ```bash -mm-dev perps modify --venue hyperliquid --symbol BTC --leverage 10 -mm-dev perps modify --venue hyperliquid --symbol ETH --tp 3000 --sl 2000 -mm-dev perps modify --venue hyperliquid --symbol BTC --leverage 3 --dry-run +mm perps modify --venue hyperliquid --symbol BTC --leverage 10 +mm perps modify --venue hyperliquid --symbol ETH --tp 3000 --sl 2000 +mm perps modify --venue hyperliquid --symbol BTC --leverage 3 --dry-run ``` ## `perps cancel` Command @@ -238,14 +238,14 @@ Cancel a resting perps order. ### Syntax ```bash -mm-dev perps cancel [--venue ] --order-id [--symbol ] [--network ] [--dry-run] [--yes] [--password ] +mm perps cancel [--venue ] --order-id [--symbol ] [--network ] [--dry-run] [--yes] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm-dev perps list-venues` to see options (allowed: `hyperliquid`) | +| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm perps list-venues` to see options (allowed: `hyperliquid`) | | `--order-id` | Yes | Venue order ID to cancel (positive integer) | | `--symbol` | No | Market symbol; speeds up cancel by avoiding an open-order lookup (e.g. BTC, ETH) | | `--network` | No | Target network: `mainnet` or `testnet` (defaults to `mainnet`) (allowed: `mainnet`, `testnet`) | @@ -256,10 +256,10 @@ mm-dev perps cancel [--venue ] --order-id [--symbol ] [--net ### Example ```bash -mm-dev perps cancel --venue hyperliquid --order-id 12345 -mm-dev perps cancel --venue hyperliquid --order-id 12345 --symbol BTC -mm-dev perps cancel --venue hyperliquid --order-id 12345 --dry-run -mm-dev perps cancel --venue hyperliquid --order-id 12345 --yes +mm perps cancel --venue hyperliquid --order-id 12345 +mm perps cancel --venue hyperliquid --order-id 12345 --symbol BTC +mm perps cancel --venue hyperliquid --order-id 12345 --dry-run +mm perps cancel --venue hyperliquid --order-id 12345 --yes ``` ## `perps deposit` Command @@ -269,14 +269,14 @@ Deposit USDC into a perpetual venue. ### Syntax ```bash -mm-dev perps deposit [--venue ] --amount [--asset ] [--source-chain ] [--network ] [--dry-run] [--password ] +mm perps deposit [--venue ] --amount [--asset ] [--source-chain ] [--network ] [--dry-run] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm-dev perps list-venues` to see options (allowed: `hyperliquid`) | +| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm perps list-venues` to see options (allowed: `hyperliquid`) | | `--amount` | Yes | Human-readable USDC amount to deposit (e.g. 100, 50.5) | | `--asset` | No | Deposit asset (defaults to `USDC`) (allowed: `USDC`) | | `--source-chain` | No | Source chain as a CAIP-2 ID or decimal chain ID (defaults to Arbitrum for the selected network: `eip155:42161` on mainnet, `eip155:421614` on testnet) | @@ -287,8 +287,8 @@ mm-dev perps deposit [--venue ] --amount [--asset ] [--so ### Example ```bash -mm-dev perps deposit --venue hyperliquid --amount 100 --asset USDC -mm-dev perps deposit --venue hyperliquid --amount 100 --asset USDC --dry-run +mm perps deposit --venue hyperliquid --amount 100 --asset USDC +mm perps deposit --venue hyperliquid --amount 100 --asset USDC --dry-run ``` ## `perps withdraw` Command @@ -298,14 +298,14 @@ Withdraw USDC from a perpetual venue. ### Syntax ```bash -mm-dev perps withdraw [--venue ] --amount [--asset ] [--destination
] [--network ] [--dry-run] [--include-spot] [--password ] +mm perps withdraw [--venue ] --amount [--asset ] [--destination
] [--network ] [--dry-run] [--include-spot] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm-dev perps list-venues` to see options (allowed: `hyperliquid`) | +| `--venue` | No | Perpetual venue (defaults to `hyperliquid`). Run `mm perps list-venues` to see options (allowed: `hyperliquid`) | | `--amount` | Yes | Human-readable USDC amount to withdraw (e.g. 50, 25.5) | | `--asset` | No | Withdrawal asset (defaults to `USDC`) (allowed: `USDC`) | | `--destination` | No | EVM destination address (defaults to your connected wallet) | @@ -317,9 +317,9 @@ mm-dev perps withdraw [--venue ] --amount [--asset ] [--d ### Example ```bash -mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC -mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC --include-spot -mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC --destination 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18 +mm perps withdraw --venue hyperliquid --amount 50 --asset USDC +mm perps withdraw --venue hyperliquid --amount 50 --asset USDC --include-spot +mm perps withdraw --venue hyperliquid --amount 50 --asset USDC --destination 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18 ``` ## `perps transfer` Command @@ -329,7 +329,7 @@ Transfer USDC between spot and perp accounts on a perpetual venue. ### Syntax ```bash -mm-dev perps transfer [--venue ] --amount --direction [--asset ] [--network ] [--dry-run] [--password ] +mm perps transfer [--venue ] --amount --direction [--asset ] [--network ] [--dry-run] [--password ] ``` ### Supported Flags @@ -347,8 +347,8 @@ mm-dev perps transfer [--venue ] --amount --direction ] [--network ] +mm perps dexs [--venue ] [--network ] ``` ### Supported Flags @@ -391,9 +391,9 @@ mm-dev perps dexs [--venue ] [--network ] ### Example ```bash -mm-dev perps dexs --venue hyperliquid +mm perps dexs --venue hyperliquid ``` ## Notes -- If the user does not mention a token symbol, use `mm-dev perps markets` to list available markets and confirm the symbol with the user before proceeding. +- If the user does not mention a token symbol, use `mm perps markets` to list available markets and confirm the symbol with the user before proceeding. diff --git a/skills/metamask-agent-wallet/references/polling.md b/skills/metamask-agent-wallet/references/polling.md index c782fb7..3b0fec4 100644 --- a/skills/metamask-agent-wallet/references/polling.md +++ b/skills/metamask-agent-wallet/references/polling.md @@ -11,7 +11,7 @@ List all pending wallet requests. ### Syntax ```bash -mm-dev wallet requests list [--sync] [--toon] +mm wallet requests list [--sync] [--toon] ``` ### Supported Flags @@ -23,8 +23,8 @@ mm-dev wallet requests list [--sync] [--toon] ### Example ```bash -mm-dev wallet requests list -mm-dev wallet requests list --no-sync --toon +mm wallet requests list +mm wallet requests list --no-sync --toon ``` ## `wallet requests watch` Command @@ -34,7 +34,7 @@ Wait for a specific wallet request to complete by its polling ID. MFA prompts ar ### Syntax ```bash -mm-dev wallet requests watch [--polling-id ] [--toon] +mm wallet requests watch [--polling-id ] [--toon] ``` ### Supported Flags @@ -47,6 +47,6 @@ mm-dev wallet requests watch [--polling-id ] [--toon] ### Example ```bash -mm-dev wallet requests watch abc-123 -mm-dev wallet requests watch --polling-id abc-123 --toon +mm wallet requests watch abc-123 +mm wallet requests watch --polling-id abc-123 --toon ``` diff --git a/skills/metamask-agent-wallet/references/predict.md b/skills/metamask-agent-wallet/references/predict.md index 2598a81..59f5816 100644 --- a/skills/metamask-agent-wallet/references/predict.md +++ b/skills/metamask-agent-wallet/references/predict.md @@ -9,15 +9,15 @@ Choose or display the current Predict trading mode. ### Syntax ```bash -mm-dev predict mode [mainnet|testnet] +mm predict mode [mainnet|testnet] ``` ### Example ```bash -mm-dev predict mode mainnet -mm-dev predict mode testnet -mm-dev predict mode +mm predict mode mainnet +mm predict mode testnet +mm predict mode ``` ## `predict setup` Command @@ -27,7 +27,7 @@ One-time Predict setup: creates trading credentials, deploys the deposit wallet, ### Syntax ```bash -mm-dev predict setup [--wait] [--password ] +mm predict setup [--wait] [--password ] ``` ### Supported Flags @@ -40,7 +40,7 @@ mm-dev predict setup [--wait] [--password ] ### Example ```bash -mm-dev predict setup --wait +mm predict setup --wait ``` ## `predict auth` Command @@ -50,7 +50,7 @@ Create or refresh Predict trading credentials (API key + CLOB signing). ### Syntax ```bash -mm-dev predict auth [--refresh] [--password ] +mm predict auth [--refresh] [--password ] ``` ### Supported Flags @@ -63,8 +63,8 @@ mm-dev predict auth [--refresh] [--password ] ### Example ```bash -mm-dev predict auth -mm-dev predict auth --refresh +mm predict auth +mm predict auth --refresh ``` ## `predict approve` Command @@ -74,7 +74,7 @@ Repair missing deposit-wallet approvals. ### Syntax ```bash -mm-dev predict approve [--wait] [--password ] +mm predict approve [--wait] [--password ] ``` ### Supported Flags @@ -87,7 +87,7 @@ mm-dev predict approve [--wait] [--password ] ### Example ```bash -mm-dev predict approve --wait +mm predict approve --wait ``` ## `predict status` Command @@ -97,13 +97,13 @@ Probe Predict back-end reachability (Gamma + CLOB). ### Syntax ```bash -mm-dev predict status +mm predict status ``` ### Example ```bash -mm-dev predict status +mm predict status ``` ## `predict markets list` Command @@ -113,7 +113,7 @@ List tradeable Predict markets with Gamma-style filters. ### Syntax ```bash -mm-dev predict markets list [--slug ] [--limit ] [--offset ] [--order ] [--ascending] [--tag ] [--liquidity-num-min ] [--liquidity-num-max ] [--volume-num-min ] [--volume-num-max ] [--start-date-min ] [--start-date-max ] [--end-date-min ] [--end-date-max ] [--active] [--closed] +mm predict markets list [--slug ] [--limit ] [--offset ] [--order ] [--ascending] [--tag ] [--liquidity-num-min ] [--liquidity-num-max ] [--volume-num-min ] [--volume-num-max ] [--start-date-min ] [--start-date-max ] [--end-date-min ] [--end-date-max ] [--active] [--closed] ``` ### Supported Flags @@ -140,9 +140,9 @@ mm-dev predict markets list [--slug ] [--limit ] [--offset ] [--orde ### Example ```bash -mm-dev predict markets list --slug will-this-work --limit 5 -mm-dev predict markets list --tag sports --liquidity-num-min 10000 --limit 10 -mm-dev predict markets list --active --limit 50 +mm predict markets list --slug will-this-work --limit 5 +mm predict markets list --tag sports --liquidity-num-min 10000 --limit 10 +mm predict markets list --active --limit 50 ``` ## `predict markets search` Command @@ -152,7 +152,7 @@ Search Predict markets with Polymarket public search. ### Syntax ```bash -mm-dev predict markets search [--limit ] [--page ] [--sort ] [--ascending] [--search-tags] [--events-status] [--recurrence ] +mm predict markets search [--limit ] [--page ] [--sort ] [--ascending] [--search-tags] [--events-status] [--recurrence ] ``` ### Supported Flags @@ -171,8 +171,8 @@ mm-dev predict markets search [--limit ] [--page ] [--sort ### Example ```bash -mm-dev predict markets search "Knicks NBA Finals" --limit 5 -mm-dev predict markets search "election" --limit 5 +mm predict markets search "Knicks NBA Finals" --limit 5 +mm predict markets search "election" --limit 5 ``` ## `predict markets get` Command @@ -182,21 +182,21 @@ Inspect a specific market and show outcome token IDs needed for quoting and plac ### Syntax ```bash -mm-dev predict markets get [--market ] +mm predict markets get [--market ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `` | Yes | Market slug, ID, or condition ID (positional). Run `mm-dev predict markets search` or `mm-dev predict markets list` to find markets | +| `` | Yes | Market slug, ID, or condition ID (positional). Run `mm predict markets search` or `mm predict markets list` to find markets | | `--market` | No | Same as positional `` | ### Example ```bash -mm-dev predict markets get will-the-new-york-knicks-win-the-2026-nba-finals -mm-dev predict markets get 0x713641f745d71f6ec61f906237ffca3c8583f251e49384429a63ceb0ccdb2d37 +mm predict markets get will-the-new-york-knicks-win-the-2026-nba-finals +mm predict markets get 0x713641f745d71f6ec61f906237ffca3c8583f251e49384429a63ceb0ccdb2d37 ``` ## `predict quote` Command @@ -206,14 +206,14 @@ Preview order cost and fill before placing. ### Syntax ```bash -mm-dev predict quote [--token-id ] --side --size [--limit-price ] [--password ] +mm predict quote [--token-id ] --side --size [--limit-price ] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `` | Yes | Outcome token ID (positional). Run `mm-dev predict markets get ` to get token IDs | +| `` | Yes | Outcome token ID (positional). Run `mm predict markets get ` to get token IDs | | `--token-id` | No | Same as positional `` | | `--side` | Yes | Order side: `buy` or `sell` | | `--size` | Yes | Order size in shares, human-readable (e.g. 1, 100) | @@ -223,8 +223,8 @@ mm-dev predict quote [--token-id ] --side --size --side buy --size 1 -mm-dev predict quote --token-id --side sell --size 5 --limit-price 0.60 +mm predict quote --token-id --side buy --size 1 +mm predict quote --token-id --side sell --size 5 --limit-price 0.60 ``` ## `predict place` Command @@ -234,14 +234,14 @@ Place a Predict order (GTC/GTD limit, FOK/FAK market). ### Syntax ```bash -mm-dev predict place [--token-id ] --side --size --price [--order-type ] [--post-only] [--expiration ] [--password ] +mm predict place [--token-id ] --side --size --price [--order-type ] [--post-only] [--expiration ] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `` | Yes | Outcome token ID (positional). Run `mm-dev predict markets get ` to get token IDs | +| `` | Yes | Outcome token ID (positional). Run `mm predict markets get ` to get token IDs | | `--token-id` | No | Same as positional `` | | `--side` | Yes | Order side: `buy` or `sell` | | `--size` | Yes | Order size in shares, human-readable (e.g. 1, 100) | @@ -259,9 +259,9 @@ mm-dev predict place [--token-id ] --side --size --side buy --size 1 --price 0.80 -mm-dev predict place --token-id --side buy --size 5 --price 1 --order-type FOK -mm-dev predict place --token-id --side sell --size 2 --price 0.7 --order-type GTD --expiration 1735689600 +mm predict place --token-id --side buy --size 1 --price 0.80 +mm predict place --token-id --side buy --size 5 --price 1 --order-type FOK +mm predict place --token-id --side sell --size 2 --price 0.7 --order-type GTD --expiration 1735689600 ``` ## `predict cancel` Command @@ -271,7 +271,7 @@ Cancel Predict orders by ID, market, asset, or all open orders. ### Syntax ```bash -mm-dev predict cancel [] [--order-id ] [--all] [--market ] [--asset ] [--password ] +mm predict cancel [] [--order-id ] [--all] [--market ] [--asset ] [--password ] ``` ### Supported Flags @@ -292,11 +292,11 @@ mm-dev predict cancel [] [--order-id ] [--all] [--market -mm-dev predict cancel --order-id -mm-dev predict cancel --all -mm-dev predict cancel --market -mm-dev predict cancel --asset +mm predict cancel +mm predict cancel --order-id +mm predict cancel --all +mm predict cancel --market +mm predict cancel --asset ``` ## `predict positions` Command @@ -306,21 +306,21 @@ View your Predict positions. ### Syntax ```bash -mm-dev predict positions [--market ] [--password ] +mm predict positions [--market ] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--market` | No | Market slug, ID, or condition ID. Run `mm-dev predict markets search` or `mm-dev predict markets list` to find markets | +| `--market` | No | Market slug, ID, or condition ID. Run `mm predict markets search` or `mm predict markets list` to find markets | | `--password` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [env: `MM_PASSWORD`] | ### Example ```bash -mm-dev predict positions -mm-dev predict positions --market +mm predict positions +mm predict positions --market ``` ## `predict orders` Command @@ -330,22 +330,22 @@ View open Predict orders. ### Syntax ```bash -mm-dev predict orders [--market ] [--cursor ] [--password ] +mm predict orders [--market ] [--cursor ] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--market` | No | Market slug, ID, or condition ID. Run `mm-dev predict markets search` or `mm-dev predict markets list` to find markets | +| `--market` | No | Market slug, ID, or condition ID. Run `mm predict markets search` or `mm predict markets list` to find markets | | `--cursor` | No | Pagination cursor from a previous response | | `--password` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [env: `MM_PASSWORD`] | ### Example ```bash -mm-dev predict orders -mm-dev predict orders --market +mm predict orders +mm predict orders --market ``` ## `predict balance` Command @@ -355,22 +355,22 @@ Check deposit wallet funds, approvals, and setup status. ### Syntax ```bash -mm-dev predict balance [--token-id ] [--sync] [--password ] +mm predict balance [--token-id ] [--sync] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--token-id` | No | Outcome token ID. Run `mm-dev predict markets get ` to get token IDs | +| `--token-id` | No | Outcome token ID. Run `mm predict markets get ` to get token IDs | | `--sync` | No | Refresh balances and allowances before reading | | `--password` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [env: `MM_PASSWORD`] | ### Example ```bash -mm-dev predict balance --sync -mm-dev predict balance --token-id --sync +mm predict balance --sync +mm predict balance --token-id --sync ``` ## `predict withdraw` Command @@ -380,7 +380,7 @@ Withdraw pUSD from your Predict deposit wallet to your owner EOA or another addr ### Syntax ```bash -mm-dev predict withdraw --amount [--to
] [--wait] [--password ] +mm predict withdraw --amount [--to
] [--wait] [--password ] ``` ### Supported Flags @@ -395,8 +395,8 @@ mm-dev predict withdraw --amount [--to
] [--wait] [--password ### Example ```bash -mm-dev predict withdraw --amount 10 --wait -mm-dev predict withdraw --amount 5 --to 0xAbc... --wait +mm predict withdraw --amount 10 --wait +mm predict withdraw --amount 5 --to 0xAbc... --wait ``` ## `predict deposit` Command @@ -406,7 +406,7 @@ Convert USDC.e from your EOA to pUSD in your Predict deposit wallet. ### Syntax ```bash -mm-dev predict deposit --amount [--wait] [--password ] +mm predict deposit --amount [--wait] [--password ] ``` ### Supported Flags @@ -420,7 +420,7 @@ mm-dev predict deposit --amount [--wait] [--password ] ### Example ```bash -mm-dev predict deposit --amount 5 --wait +mm predict deposit --amount 5 --wait ``` ## `predict book` Command @@ -430,20 +430,20 @@ Fetch the raw order book for an outcome token. ### Syntax ```bash -mm-dev predict book [--token-id ] +mm predict book [--token-id ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `` | Yes | Outcome token ID (positional). Run `mm-dev predict markets get ` to get token IDs | +| `` | Yes | Outcome token ID (positional). Run `mm predict markets get ` to get token IDs | | `--token-id` | No | Same as positional `` | ### Example ```bash -mm-dev predict book --token-id +mm predict book --token-id ``` ## `predict watch` Command @@ -453,7 +453,7 @@ Watch a setup, approval, deposit, withdraw, or order job until it completes. ### Syntax ```bash -mm-dev predict watch [--id ] [--wait] [--password ] +mm predict watch [--id ] [--wait] [--password ] ``` ### Supported Flags @@ -468,16 +468,16 @@ mm-dev predict watch [--id ] [--wait] [--password ] ### Example ```bash -mm-dev predict watch --wait -mm-dev predict watch --id --wait +mm predict watch --wait +mm predict watch --id --wait ``` ## Notes -- Before trading, run `mm-dev predict setup --wait` to initialize credentials, deploy the deposit wallet, and set approvals. -- Use `mm-dev predict markets get ` to get outcome token IDs required by `quote`, `place`, `book`, and `balance --token-id`. +- Before trading, run `mm predict setup --wait` to initialize credentials, deploy the deposit wallet, and set approvals. +- Use `mm predict markets get ` to get outcome token IDs required by `quote`, `place`, `book`, and `balance --token-id`. - Prices are per-share and must be in the range [0, 1]. - Side must be `buy` or `sell`. - The `predict mode` command switches between `mainnet` and `testnet`. - If the user does not specify a mode, the CLI uses the previously set mode. -- Setup, approve, deposit, withdraw, and order flows can return job IDs. Track them with `mm-dev predict watch --wait`. +- Setup, approve, deposit, withdraw, and order flows can return job IDs. Track them with `mm predict watch --wait`. diff --git a/skills/metamask-agent-wallet/references/signing.md b/skills/metamask-agent-wallet/references/signing.md index a358509..c8f8022 100644 --- a/skills/metamask-agent-wallet/references/signing.md +++ b/skills/metamask-agent-wallet/references/signing.md @@ -10,7 +10,7 @@ Sign a plaintext message with the active wallet. ### Syntax ```bash -mm-dev wallet sign-message --message --chain-id [--wait] [--password ] +mm wallet sign-message --message --chain-id [--wait] [--password ] ``` ### Supported Flags @@ -25,8 +25,8 @@ mm-dev wallet sign-message --message --chain-id [--wait] [--password ### Example ```bash -mm-dev wallet sign-message --message "Hello, world!" --chain-id 1 -mm-dev wallet sign-message --message "Hello" --chain-id 1 --wait +mm wallet sign-message --message "Hello, world!" --chain-id 1 +mm wallet sign-message --message "Hello" --chain-id 1 --wait ``` ## `wallet sign-typed-data` Command @@ -36,7 +36,7 @@ Sign EIP-712 typed data with the active wallet. ### Syntax ```bash -mm-dev wallet sign-typed-data --chain-id --payload '' [--wait] [--password ] +mm wallet sign-typed-data --chain-id --payload '' [--wait] [--password ] ``` ### Supported Flags @@ -51,8 +51,8 @@ mm-dev wallet sign-typed-data --chain-id --payload '' [--wait] [--pas ### Example ```bash -mm-dev wallet sign-typed-data --chain-id 1 --payload '{"types":...,"primaryType":...,"domain":...,"message":...}' -mm-dev wallet sign-typed-data --chain-id 137 --payload '{"types":...}' --wait +mm wallet sign-typed-data --chain-id 1 --payload '{"types":...,"primaryType":...,"domain":...,"message":...}' +mm wallet sign-typed-data --chain-id 137 --payload '{"types":...}' --wait ``` ## EIP-712 Typed Data diff --git a/skills/metamask-agent-wallet/references/swap.md b/skills/metamask-agent-wallet/references/swap.md index 72e3ab5..402f527 100644 --- a/skills/metamask-agent-wallet/references/swap.md +++ b/skills/metamask-agent-wallet/references/swap.md @@ -9,7 +9,7 @@ Get a swap or bridge quote showing expected output, fees, and route. ### Syntax ```bash -mm-dev swap quote --from --to --amount --from-chain [--to-chain ] [--slippage ] +mm swap quote --from --to --amount --from-chain [--to-chain ] [--slippage ] ``` ### Supported Flags @@ -26,10 +26,10 @@ mm-dev swap quote --from --to --amount --from-chain [--password ] -mm-dev swap execute --from --to --amount --from-chain [--to-chain ] [--slippage ] [--password ] +mm swap execute --quote-id [--password ] +mm swap execute --from --to --amount --from-chain [--to-chain ] [--slippage ] [--password ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--quote-id` | Yes (unless re-quote args given) | Quote ID returned by `mm-dev swap quote`. If omitted, provide `--from`, `--to`, `--amount`, and `--from-chain` to re-quote | +| `--quote-id` | Yes (unless re-quote args given) | Quote ID returned by `mm swap quote`. If omitted, provide `--from`, `--to`, `--amount`, and `--from-chain` to re-quote | | `--from` | Yes (unless `--quote-id`) | Source token symbol | | `--to` | Yes (unless `--quote-id`) | Destination token symbol | | `--amount` | Yes (unless `--quote-id`) | Amount to swap | @@ -64,9 +64,9 @@ mm-dev swap execute --from --to --amount --from-chain < ### Example ```bash -mm-dev swap execute --quote-id -mm-dev swap execute --from ETH --to USDC --amount 0.5 --from-chain 1 -mm-dev swap execute --from USDC --to USDT --amount 100 --from-chain 137 --to-chain 137 --slippage 1 +mm swap execute --quote-id +mm swap execute --from ETH --to USDC --amount 0.5 --from-chain 1 +mm swap execute --from USDC --to USDT --amount 100 --from-chain 137 --to-chain 137 --slippage 1 ``` ## `swap status` Command @@ -76,31 +76,31 @@ Check the status of a previously executed swap or bridge by its quote ID. ### Syntax ```bash -mm-dev swap status --quote-id [--tx-hash ] +mm swap status --quote-id [--tx-hash ] ``` ### Supported Flags | Name | Required | Description | | --- | --- | --- | -| `--quote-id` | Yes | Quote ID returned by `mm-dev swap quote` | +| `--quote-id` | Yes | Quote ID returned by `mm swap quote` | | `--tx-hash` | No | Source transaction hash; overrides the stored hash from execute | ### Example ```bash -mm-dev swap status --quote-id -mm-dev swap status --quote-id --tx-hash 0xabc...123 +mm swap status --quote-id +mm swap status --quote-id --tx-hash 0xabc...123 ``` ## Notes - If the chain is not mentioned by the user, ask for the chain. -- Use `mm-dev chains list` to discover supported chain IDs. +- Use `mm chains list` to discover supported chain IDs. - Same-chain swap: omit `--to-chain` (it defaults to `--from-chain`). - Cross-chain bridge: set `--to-chain` to a different chain than `--from-chain`. The CLI automatically routes through a bridge. -- The typical flow is: `mm-dev swap quote` to preview, then `mm-dev swap execute --quote-id ` to submit. -- You can skip the quote step by passing all swap parameters directly to `mm-dev swap execute`. -- Use `mm-dev swap status --quote-id ` to track progress after execution. +- The typical flow is: `mm swap quote` to preview, then `mm swap execute --quote-id ` to submit. +- You can skip the quote step by passing all swap parameters directly to `mm swap execute`. +- Use `mm swap status --quote-id ` to track progress after execution. - If the user asks to "bridge" tokens, use the `swap` commands with different `--from-chain` and `--to-chain` values. -- After execution, track swap progress with `mm-dev swap status --quote-id `. +- After execution, track swap progress with `mm swap status --quote-id `. diff --git a/skills/metamask-agent-wallet/references/transaction.md b/skills/metamask-agent-wallet/references/transaction.md index 5e36bb7..da2748c 100644 --- a/skills/metamask-agent-wallet/references/transaction.md +++ b/skills/metamask-agent-wallet/references/transaction.md @@ -9,7 +9,7 @@ Send a raw EVM transaction using the active wallet. ### Syntax ```bash -mm-dev wallet send-transaction --chain-id --payload '' [--wait] [--password ] +mm wallet send-transaction --chain-id --payload '' [--wait] [--password ] ``` ### Supported Flags @@ -24,9 +24,9 @@ mm-dev wallet send-transaction --chain-id --payload '' [--wait] [--pa ### Example ```bash -mm-dev wallet send-transaction --chain-id 1 --payload '{"to":"0x742d...","value":"0xde0b6b3a7640000","data":"0x"}' -mm-dev wallet send-transaction --chain-id 1 --payload '{"to":"0x...","value":"0x0","data":"0xabcdef"}' --wait -mm-dev wallet send-transaction --chain-id 1 --payload '...' --toon +mm wallet send-transaction --chain-id 1 --payload '{"to":"0x742d...","value":"0xde0b6b3a7640000","data":"0x"}' +mm wallet send-transaction --chain-id 1 --payload '{"to":"0x...","value":"0x0","data":"0xabcdef"}' --wait +mm wallet send-transaction --chain-id 1 --payload '...' --toon ``` ## Transaction Payload @@ -46,5 +46,5 @@ Optional fields: `gas`, `nonce`, `maxFeePerGas`, `maxPriorityFeePerGas`. The `va ## Notes - If the chain is not mentioned by the user, ask for the chain. -- When the `data`/calldata is unfamiliar or was not constructed by you, decode it first with `mm-dev decode --payload <0x-calldata>` and confirm the intent before sending. See `references/decode.md`. +- When the `data`/calldata is unfamiliar or was not constructed by you, decode it first with `mm decode --payload <0x-calldata>` and confirm the intent before sending. See `references/decode.md`. - In server-wallet mode, send-transaction returns a `pollingId` when `--wait` is omitted. See `references/polling.md` to track requests. diff --git a/skills/metamask-agent-wallet/references/transfer.md b/skills/metamask-agent-wallet/references/transfer.md index b7233d7..4286708 100644 --- a/skills/metamask-agent-wallet/references/transfer.md +++ b/skills/metamask-agent-wallet/references/transfer.md @@ -9,7 +9,7 @@ Transfer native currency or ERC-20 tokens to a recipient address. ### Syntax ```bash -mm-dev transfer --to
--amount --chain-id --token [--wait] [--password ] +mm transfer --to
--amount --chain-id --token [--wait] [--password ] ``` ### Supported Flags @@ -26,13 +26,13 @@ mm-dev transfer --to
--amount --chain-id --token ] [--name ] [--trading-mode ] [--password ] +mm wallet create [--chain-namespace ] [--name ] [--trading-mode ] [--password ] ``` ### Supported Flags @@ -24,9 +24,9 @@ mm-dev wallet create [--chain-namespace ] [--name ] [--trading- ### Example ```bash -mm-dev wallet create --chain-namespace evm -mm-dev wallet create --chain-namespace evm --name "Trading" -mm-dev wallet create --chain-namespace evm --name "Fast Trading" --trading-mode beast +mm wallet create --chain-namespace evm +mm wallet create --chain-namespace evm --name "Trading" +mm wallet create --chain-namespace evm --name "Fast Trading" --trading-mode beast ``` ## `wallet list` Command @@ -36,7 +36,7 @@ List all wallets associated with the authenticated account. ### Syntax ```bash -mm-dev wallet list [--chain-namespace ] [--toon] +mm wallet list [--chain-namespace ] [--toon] ``` ### Supported Flags @@ -48,8 +48,8 @@ mm-dev wallet list [--chain-namespace ] [--toon] ### Example ```bash -mm-dev wallet list -mm-dev wallet list --chain-namespace evm --toon +mm wallet list +mm wallet list --chain-namespace evm --toon ``` ## `wallet select` Command @@ -59,7 +59,7 @@ Switch the active wallet used for subsequent commands. ### Syntax ```bash -mm-dev wallet select [--chain-namespace ] [--id ] [--address
] [--name ] +mm wallet select [--chain-namespace ] [--id ] [--address
] [--name ] ``` ### Supported Flags @@ -74,8 +74,8 @@ mm-dev wallet select [--chain-namespace ] [--id ] [--address ] [--id ] [--address
] [--name ] +mm wallet show [--chain-namespace ] [--id ] [--address
] [--name ] ``` ### Supported Flags @@ -100,8 +100,8 @@ mm-dev wallet show [--chain-namespace ] [--id ] [--address ] +mm wallet address [--chain-namespace ] ``` ### Supported Flags @@ -123,8 +123,8 @@ mm-dev wallet address [--chain-namespace ] ### Example ```bash -mm-dev wallet address -mm-dev wallet address --chain-namespace evm +mm wallet address +mm wallet address --chain-namespace evm ``` ## `wallet balance` Command @@ -134,7 +134,7 @@ Show native and token balances for the active wallet. ### Syntax ```bash -mm-dev wallet balance [--currency ] [--chain ] [--token ] [--address
] [--testnet] [--testnet-chain-id ] [--token-contracts ] +mm wallet balance [--currency ] [--chain ] [--token ] [--address
] [--testnet] [--testnet-chain-id ] [--token-contracts ] ``` ### Supported Flags @@ -142,7 +142,7 @@ mm-dev wallet balance [--currency ] [--chain ] [--token ] [ | Name | Required | Description | | --- | --- | --- | | `--currency` | No | Fiat currency code for price conversion (e.g. usd, eur) | -| `--chain` | No | Comma-separated chain filters (e.g. `1,137` or `eip155:1`). Run `mm-dev chains list` to see options | +| `--chain` | No | Comma-separated chain filters (e.g. `1,137` or `eip155:1`). Run `mm chains list` to see options | | `--token` | No | Filter by token symbol, contract address, or CAIP-19 asset ID (e.g. USDC, 0xa0b8...) | | `--address` | No | Wallet address (0x-prefixed hex) | | `--testnet` | No | Read balances via RPC on Arbitrum Sepolia, Amoy, and Sepolia testnets | @@ -152,10 +152,10 @@ mm-dev wallet balance [--currency ] [--chain ] [--token ] [ ### Example ```bash -mm-dev wallet balance -mm-dev wallet balance --chain 8453 -mm-dev wallet balance --token USDC -mm-dev wallet balance --currency eur -mm-dev wallet balance --testnet -mm-dev wallet balance --testnet-chain-id 421614 --token-contracts 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 +mm wallet balance +mm wallet balance --chain 8453 +mm wallet balance --token USDC +mm wallet balance --currency eur +mm wallet balance --testnet +mm wallet balance --testnet-chain-id 421614 --token-contracts 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 ``` diff --git a/skills/metamask-agent-wallet/workflows/bridge.md b/skills/metamask-agent-wallet/workflows/bridge.md index 7614eaf..3172d2d 100644 --- a/skills/metamask-agent-wallet/workflows/bridge.md +++ b/skills/metamask-agent-wallet/workflows/bridge.md @@ -15,7 +15,7 @@ Do not skip the quote review step. It is where the user sees output amount, fees ## Quote ```bash -mm-dev swap quote --from ETH --to USDC --amount 1 --from-chain 1 --to-chain 137 --slippage 0.5 +mm swap quote --from ETH --to USDC --amount 1 --from-chain 1 --to-chain 137 --slippage 0.5 ``` Required flags: `--from`, `--to`, `--amount`, `--from-chain`, and `--to-chain`. @@ -26,7 +26,7 @@ Confirm source token, destination token, amount, source chain, destination chain ## Execute ```bash -mm-dev swap execute --quote-id "QUOTE_ID" +mm swap execute --quote-id "QUOTE_ID" ``` Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID execution keeps the reviewed quote tied to the submitted action. @@ -34,8 +34,8 @@ Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID exe ## Status ```bash -mm-dev swap status --quote-id "QUOTE_ID" -mm-dev swap status --quote-id "QUOTE_ID" --tx-hash 0xabc123 +mm swap status --quote-id "QUOTE_ID" +mm swap status --quote-id "QUOTE_ID" --tx-hash 0xabc123 ``` Use status polling for bridges where the destination side can lag behind the source transaction. @@ -46,4 +46,4 @@ Use status polling for bridges where the destination side can lag behind the sou - Insufficient balance: surface the error verbatim. - Slippage exceeded: only increase `--slippage` if the user explicitly accepts more slippage. Always warn the user if slippage is increased above 1% that it will affect the minimum received. -- Missing chain: use `mm-dev chains list` before guessing a chain ID. +- Missing chain: use `mm chains list` before guessing a chain ID. diff --git a/skills/metamask-agent-wallet/workflows/login.md b/skills/metamask-agent-wallet/workflows/login.md index f6378f2..6cd0e7f 100644 --- a/skills/metamask-agent-wallet/workflows/login.md +++ b/skills/metamask-agent-wallet/workflows/login.md @@ -12,11 +12,11 @@ Reference command syntax in `references/auth.md`. ## Login -`mm-dev login qr` returns `COMING_SOON`. Use Google or email sign-in. +`mm login qr` returns `COMING_SOON`. Use Google or email sign-in. ```bash -mm-dev login google --no-wait -mm-dev login email --no-wait +mm login google --no-wait +mm login email --no-wait ``` Use `--no-wait` for non-interactive environments. The command prints a sign-in URL. @@ -26,11 +26,11 @@ Use `--no-wait` for non-interactive environments. The command prints a sign-in U Once the user completes sign-in, verify with: ```bash -mm-dev login --token "" +mm login --token "" ``` ## Confirm ```bash -mm-dev auth status +mm auth status ``` diff --git a/skills/metamask-agent-wallet/workflows/market-data.md b/skills/metamask-agent-wallet/workflows/market-data.md index cb2833b..872563a 100644 --- a/skills/metamask-agent-wallet/workflows/market-data.md +++ b/skills/metamask-agent-wallet/workflows/market-data.md @@ -9,25 +9,25 @@ Reference command syntax in `references/market-data.md`. If the user mentions a token by name or symbol, search for it first to get the correct asset ID: ```bash -mm-dev token list search --query "USDC" --chain 1 +mm token list search --query "USDC" --chain 1 ``` To browse popular, trending, or top-gainer tokens on a chain: ```bash -mm-dev token list popular --chain 1 -mm-dev token list trending --chain 1 -mm-dev token list top-gainer --chain 1 +mm token list popular --chain 1 +mm token list trending --chain 1 +mm token list top-gainer --chain 1 ``` -Use `mm-dev token networks` to discover which chains support token data. +Use `mm token networks` to discover which chains support token data. ## Get Token Metadata Once you have the CAIP-19 asset ID, fetch detailed metadata: ```bash -mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data +mm token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data ``` ## Get Spot Price @@ -35,18 +35,18 @@ mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0 Fetch the current price for one or more tokens: ```bash -mm-dev price spot --asset-ids "eip155:1/slip44:60" -mm-dev price spot --asset-ids "eip155:1/slip44:60,eip155:137/slip44:966" --vs eur --market-data +mm price spot --asset-ids "eip155:1/slip44:60" +mm price spot --asset-ids "eip155:1/slip44:60,eip155:137/slip44:966" --vs eur --market-data ``` -Use `mm-dev price networks` to discover supported CAIP-2 chain IDs and `mm-dev price currencies` to list quote currencies. +Use `mm price networks` to discover supported CAIP-2 chain IDs and `mm price currencies` to list quote currencies. ## Get Historical Price Fetch historical price data for an asset: ```bash -mm-dev price history --chain-id eip155:1 --asset-type slip44:60 --time-period 7d --interval daily +mm price history --chain-id eip155:1 --asset-type slip44:60 --time-period 7d --interval daily ``` Common time periods: `1d`, `7d`, `30d`, `2M`, `1y`, `3y`. Intervals: `5m`, `hourly`, `daily`. @@ -56,7 +56,7 @@ For a custom date range, use `--from` and `--to` with Unix timestamps instead of ## Edge Cases - If the chain is not mentioned by the user, ask for the chain. -- Use `mm-dev chains list` to discover supported chain IDs. +- Use `mm chains list` to discover supported chain IDs. - If a token search returns no results, try broader chains or alternate names. - CAIP-19 asset IDs follow the format `eip155:/slip44:` for native tokens or `eip155:/erc20:` for ERC-20s. - Use `--include-token-security-data` on `token assets` to surface scam or risk signals before the user trades an unfamiliar token. diff --git a/skills/metamask-agent-wallet/workflows/onboarding.md b/skills/metamask-agent-wallet/workflows/onboarding.md index 1d2b5b3..f6dee2e 100644 --- a/skills/metamask-agent-wallet/workflows/onboarding.md +++ b/skills/metamask-agent-wallet/workflows/onboarding.md @@ -15,20 +15,20 @@ Reference command syntax in `references/auth.md` and `references/wallet.md`. ## Check CLI Installation ```bash -mm-dev --version +mm --version ``` If this fails, the CLI is not installed. Guide the user to install it before proceeding. ## Login Flow -Ask the user which login method they want to use: Google or Email. QR login is coming soon (`mm-dev login qr` returns `COMING_SOON`). +Ask the user which login method they want to use: Google or Email. QR login is coming soon (`mm login qr` returns `COMING_SOON`). ### Login ```bash -mm-dev login google --no-wait -mm-dev login email --no-wait +mm login google --no-wait +mm login email --no-wait ``` Use `--no-wait` for non-interactive environments. The command prints a sign-in URL. @@ -38,7 +38,7 @@ Use `--no-wait` for non-interactive environments. The command prints a sign-in U Once the user completes sign-in, verify with: ```bash -mm-dev login --token "" +mm login --token "" ``` ## Initialize Project @@ -46,7 +46,7 @@ mm-dev login --token "" First check if the project is already initialized: ```bash -mm-dev init show +mm init show ``` If already initialized, skip this step. Otherwise, ask the user which wallet mode they want: @@ -60,7 +60,7 @@ Ask the user which trading mode they want (server-wallet only): Server wallet: ```bash -mm-dev init --wallet server-wallet --mode guard +mm init --wallet server-wallet --mode guard ``` BYOK: @@ -69,7 +69,7 @@ Never pass `--mnemonic` or `--password` as inline flags. Always instruct the use ```bash export MM_MNEMONIC="word1 word2 ..." -mm-dev init --wallet byok +mm init --wallet byok ``` If the user wants to encrypt their mnemonic with a password during init: @@ -77,13 +77,13 @@ If the user wants to encrypt their mnemonic with a password during init: ```bash export MM_MNEMONIC="word1 word2 ..." export MM_PASSWORD="mypassword" -mm-dev init --wallet byok +mm init --wallet byok ``` If the mnemonic was stored unencrypted, suggest setting a password afterward: ```bash -mm-dev wallet password set +mm wallet password set ``` Once the mnemonic is encrypted, all subsequent operations that need the private key require the `MM_PASSWORD` environment variable to be set. Never instruct the user to pass `--password` inline. @@ -91,7 +91,7 @@ Once the mnemonic is encrypted, all subsequent operations that need the private ## Verify Auth Status ```bash -mm-dev auth status +mm auth status ``` Confirm the session is authenticated, the wallet mode is correct, and the token is valid. @@ -99,5 +99,5 @@ Confirm the session is authenticated, the wallet mode is correct, and the token ## Show Wallet Address ```bash -mm-dev wallet address +mm wallet address ``` diff --git a/skills/metamask-agent-wallet/workflows/perps-close-position.md b/skills/metamask-agent-wallet/workflows/perps-close-position.md index c4fa489..8aa26ec 100644 --- a/skills/metamask-agent-wallet/workflows/perps-close-position.md +++ b/skills/metamask-agent-wallet/workflows/perps-close-position.md @@ -15,7 +15,7 @@ Reference command syntax in `references/perps.md`. If the user does not mention a token symbol, list open positions and confirm with the user: ```bash -mm-dev perps positions +mm perps positions ``` ## Check Positions @@ -23,7 +23,7 @@ mm-dev perps positions `--venue` defaults to `hyperliquid`. It can be omitted. ```bash -mm-dev perps positions +mm perps positions ``` ## Dry Run @@ -31,7 +31,7 @@ mm-dev perps positions Preview the close before executing: ```bash -mm-dev perps close --symbol BTC --dry-run +mm perps close --symbol BTC --dry-run ``` For partial close, include `--size `. @@ -41,14 +41,14 @@ For partial close, include `--size `. Remove `--dry-run` only after explicit user confirmation: ```bash -mm-dev perps close --symbol BTC -mm-dev perps close --symbol BTC --size 0.005 +mm perps close --symbol BTC +mm perps close --symbol BTC --size 0.005 ``` `--all` closes every open position. Require explicit confirmation that the user wants all positions closed. ```bash -mm-dev perps close --all +mm perps close --all ``` Do not add `--yes` unless the user explicitly asked for unattended execution. diff --git a/skills/metamask-agent-wallet/workflows/perps-modify-position.md b/skills/metamask-agent-wallet/workflows/perps-modify-position.md index 9968a08..3f28f06 100644 --- a/skills/metamask-agent-wallet/workflows/perps-modify-position.md +++ b/skills/metamask-agent-wallet/workflows/perps-modify-position.md @@ -15,7 +15,7 @@ Reference command syntax in `references/perps.md`. If the user does not mention a token symbol, list open positions and confirm with the user: ```bash -mm-dev perps positions +mm perps positions ``` ## Check Positions @@ -23,7 +23,7 @@ mm-dev perps positions `--venue` defaults to `hyperliquid`. It can be omitted. ```bash -mm-dev perps positions +mm perps positions ``` ## Dry Run @@ -31,8 +31,8 @@ mm-dev perps positions Preview the modification before executing: ```bash -mm-dev perps modify --symbol BTC --leverage 10 --dry-run -mm-dev perps modify --symbol ETH --tp 3000 --sl 2000 --dry-run +mm perps modify --symbol BTC --leverage 10 --dry-run +mm perps modify --symbol ETH --tp 3000 --sl 2000 --dry-run ``` At least one of `--leverage`, `--tp`, or `--sl` must be provided. @@ -42,8 +42,8 @@ At least one of `--leverage`, `--tp`, or `--sl` must be provided. Remove `--dry-run` only after explicit user confirmation: ```bash -mm-dev perps modify --symbol BTC --leverage 10 -mm-dev perps modify --symbol ETH --tp 3000 --sl 2000 +mm perps modify --symbol BTC --leverage 10 +mm perps modify --symbol ETH --tp 3000 --sl 2000 ``` Do not add `--yes` unless the user explicitly asked for unattended execution. diff --git a/skills/metamask-agent-wallet/workflows/perps-open-position.md b/skills/metamask-agent-wallet/workflows/perps-open-position.md index a961765..a315631 100644 --- a/skills/metamask-agent-wallet/workflows/perps-open-position.md +++ b/skills/metamask-agent-wallet/workflows/perps-open-position.md @@ -16,7 +16,7 @@ Reference command syntax in `references/perps.md`. If the user does not mention a token symbol, list available markets and confirm with the user: ```bash -mm-dev perps markets +mm perps markets ``` ## Check Balance @@ -24,23 +24,23 @@ mm-dev perps markets `--venue` defaults to `hyperliquid`. It can be omitted. ```bash -mm-dev perps balance +mm perps balance ``` If available margin is zero or insufficient, deposit USDC before proceeding. Hyperliquid only supports deposits from Arbitrum mainnet (`eip155:42161`). ```bash -mm-dev perps deposit --amount --asset USDC +mm perps deposit --amount --asset USDC ``` -To confirm a deposit, wait briefly and poll `mm-dev perps balance`. +To confirm a deposit, wait briefly and poll `mm perps balance`. ## Quote Always quote before opening: ```bash -mm-dev perps quote --symbol BTC --side long --size 0.01 --leverage 5 +mm perps quote --symbol BTC --side long --size 0.01 --leverage 5 ``` Show the user estimated entry, notional, fees, liquidation price, side, size, leverage, and venue before proceeding. @@ -50,7 +50,7 @@ Show the user estimated entry, notional, fees, liquidation price, side, size, le Preview the order before signing: ```bash -mm-dev perps open --symbol BTC --side long --size 0.01 --leverage 5 --dry-run +mm perps open --symbol BTC --side long --size 0.01 --leverage 5 --dry-run ``` For limit orders, include `--type limit --limit-px `. @@ -62,7 +62,7 @@ For limit orders, include `--type limit --limit-px `. Remove `--dry-run` only after explicit user confirmation: ```bash -mm-dev perps open --symbol BTC --side long --size 0.01 --leverage 5 +mm perps open --symbol BTC --side long --size 0.01 --leverage 5 ``` Do not add `--yes` unless the user explicitly asked for unattended execution. diff --git a/skills/metamask-agent-wallet/workflows/predict-trading.md b/skills/metamask-agent-wallet/workflows/predict-trading.md index cc77610..4dc9690 100644 --- a/skills/metamask-agent-wallet/workflows/predict-trading.md +++ b/skills/metamask-agent-wallet/workflows/predict-trading.md @@ -9,19 +9,19 @@ Reference command syntax in `../references/predict.md`. Choose the Predict mode, run setup, and check backend status: ```bash -mm-dev predict mode mainnet -mm-dev predict setup --wait -mm-dev predict status +mm predict mode mainnet +mm predict setup --wait +mm predict status ``` -`predict setup --wait` blocks until credential, deposit-wallet, and approval jobs complete. Without `--wait`, watch returned jobs with `mm-dev predict watch`. +`predict setup --wait` blocks until credential, deposit-wallet, and approval jobs complete. Without `--wait`, watch returned jobs with `mm predict watch`. If setup or approvals look stale later: ```bash -mm-dev predict auth --refresh -mm-dev predict approve --wait -mm-dev predict balance --sync +mm predict auth --refresh +mm predict approve --wait +mm predict balance --sync ``` `predict setup` and `predict deposit` use `--wait`; do not add `--yes` to those commands. @@ -31,13 +31,13 @@ mm-dev predict balance --sync Check deposit wallet status: ```bash -mm-dev predict balance --sync +mm predict balance --sync ``` Fund pUSD: ```bash -mm-dev predict deposit --amount 100 --wait --json +mm predict deposit --amount 100 --wait --json ``` `--amount` is in pUSD. The owner EOA needs enough Polygon USDC and POL for gas to complete the deposit transaction. @@ -47,14 +47,14 @@ mm-dev predict deposit --amount 100 --wait --json Check balance first: ```bash -mm-dev predict balance --sync +mm predict balance --sync ``` Withdraw pUSD to the owner EOA (default) or a specified address: ```bash -mm-dev predict withdraw --amount 50 --wait -mm-dev predict withdraw --amount 10 --to 0xRecipient... --wait +mm predict withdraw --amount 50 --wait +mm predict withdraw --amount 10 --to 0xRecipient... --wait ``` The CLI validates the amount against the on-chain deposit wallet balance before signing. Confirm amount and recipient with the user before executing. @@ -64,8 +64,8 @@ The CLI validates the amount against the on-chain deposit wallet balance before Search can return loosely related markets, so inspect the selected market before quoting: ```bash -mm-dev predict markets search "Knicks NBA Finals" --limit 5 --json -mm-dev predict markets get will-the-new-york-knicks-win-the-2026-nba-finals --json +mm predict markets search "Knicks NBA Finals" --limit 5 --json +mm predict markets get will-the-new-york-knicks-win-the-2026-nba-finals --json ``` The market detail prints outcome token IDs. Outcome token IDs are not market IDs; use the token ID for `quote`, `place`, `book`, and `balance --token-id`. @@ -73,7 +73,7 @@ The market detail prints outcome token IDs. Outcome token IDs are not market IDs If search is noisy, list active markets and filter manually: ```bash -mm-dev predict markets list --active --limit 50 --json +mm predict markets list --active --limit 50 --json ``` ## Quote, Then Place @@ -81,7 +81,7 @@ mm-dev predict markets list --active --limit 50 --json Preview the order cost and fill before placing: ```bash -mm-dev predict quote \ +mm predict quote \ --token-id \ --side buy --size 100 --limit-price 0.55 ``` @@ -89,7 +89,7 @@ mm-dev predict quote \ After the user confirms token ID, outcome, side, size, price, and order type: ```bash -mm-dev predict place \ +mm predict place \ --token-id \ --side buy --size 100 --price 0.55 \ --order-type GTC @@ -100,14 +100,14 @@ mm-dev predict place \ ## Manage Orders and Positions ```bash -mm-dev predict orders -mm-dev predict orders --market -mm-dev predict positions -mm-dev predict positions --market -mm-dev predict cancel --order-id -mm-dev predict cancel --market -mm-dev predict cancel --asset -mm-dev predict cancel --all +mm predict orders +mm predict orders --market +mm predict positions +mm predict positions --market +mm predict cancel --order-id +mm predict cancel --market +mm predict cancel --asset +mm predict cancel --all ``` `predict cancel --all` cancels every open order. Require explicit confirmation. @@ -115,7 +115,7 @@ mm-dev predict cancel --all ## Watch Async Jobs ```bash -mm-dev predict watch --id --wait +mm predict watch --id --wait ``` Use this for setup, approve, deposit, withdraw, and order jobs that have not reached a terminal state. @@ -123,5 +123,5 @@ Use this for setup, approve, deposit, withdraw, and order jobs that have not rea ## Safety Notes - Prices are 0-1 floats. Treat `--price 1` as suspicious unless the user explicitly confirms. -- Trades are signed by the deposit wallet address shown by `mm-dev predict balance`, not necessarily the connected owner EOA. +- Trades are signed by the deposit wallet address shown by `mm predict balance`, not necessarily the connected owner EOA. - Always inspect the market to map the user's intended outcome to the correct token ID. diff --git a/skills/metamask-agent-wallet/workflows/swap.md b/skills/metamask-agent-wallet/workflows/swap.md index 05ac322..7eb1bba 100644 --- a/skills/metamask-agent-wallet/workflows/swap.md +++ b/skills/metamask-agent-wallet/workflows/swap.md @@ -15,7 +15,7 @@ Do not skip the quote review step. It is where the user sees output amount, fees ## Quote ```bash -mm-dev swap quote --from ETH --to USDC --amount 1 --from-chain 1 +mm swap quote --from ETH --to USDC --amount 1 --from-chain 1 ``` Required flags: `--from`, `--to`, `--amount`, and `--from-chain`. @@ -26,7 +26,7 @@ Confirm source token, destination token, amount, chain, slippage, expected outpu ## Execute ```bash -mm-dev swap execute --quote-id "$QUOTE_ID" +mm swap execute --quote-id "$QUOTE_ID" ``` Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID execution keeps the reviewed quote tied to the submitted action. @@ -34,7 +34,7 @@ Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID exe ## Status ```bash -mm-dev swap status --quote-id "$QUOTE_ID" +mm swap status --quote-id "$QUOTE_ID" ``` ## Edge Cases @@ -43,4 +43,4 @@ mm-dev swap status --quote-id "$QUOTE_ID" - Insufficient balance: surface the error verbatim. - Slippage exceeded: only increase `--slippage` if the user explicitly accepts more slippage. Always warn the user if slippage is increased above 1% that it will affect the minimum received. -- Missing chain: use `mm-dev chains list` before guessing a chain ID. +- Missing chain: use `mm chains list` before guessing a chain ID. diff --git a/skills/metamask-agent-wallet/workflows/troubleshooting.md b/skills/metamask-agent-wallet/workflows/troubleshooting.md index e807ce9..d1e1742 100644 --- a/skills/metamask-agent-wallet/workflows/troubleshooting.md +++ b/skills/metamask-agent-wallet/workflows/troubleshooting.md @@ -7,9 +7,9 @@ Use this workflow when a command fails, hangs, prompts unexpectedly, or behaves Run or suggest these in order: ```bash -mm-dev --version -mm-dev auth status -mm-dev --help +mm --version +mm auth status +mm --help ``` If `auth status` reports anything other than authenticated, fix authentication before debugging downstream wallet, signing, swap, perps, or predict commands. @@ -18,20 +18,20 @@ If `auth status` reports anything other than authenticated, fix authentication b | Symptom | Likely cause | Next step | | --- | --- | --- | -| `mm-dev: command not found` | Binary not installed or not on `PATH` | Check install and PATH | -| Async command returns a polling id and appears stuck | Request was dispatched without `--wait` | Use `mm-dev wallet requests list` or `mm-dev wallet requests watch --polling-id ` | -| Auth errors after previously working | Expired token or wrong environment | Check `mm-dev auth status` and environment/session file | +| `mm: command not found` | Binary not installed or not on `PATH` | Check install and PATH | +| Async command returns a polling id and appears stuck | Request was dispatched without `--wait` | Use `mm wallet requests list` or `mm wallet requests watch --polling-id ` | +| Auth errors after previously working | Expired token or wrong environment | Check `mm auth status` and environment/session file | | `CHAIN_ID_MISMATCH` on typed data | Payload `domain.chainId` differs from `--chain-id` | Align the two chain IDs | | `MNEMONIC_LOCKED` or `WRONG_PASSWORD` | BYOK mnemonic is encrypted and password was wrong or missing | Set the correct `MM_PASSWORD` environment variable and re-run | -| `ALREADY_ENCRYPTED` on `wallet password set` | Mnemonic already has a password | Use `mm-dev wallet password change` instead | -| `NOT_ENCRYPTED` on `wallet password change/remove` | Mnemonic is not encrypted | Use `mm-dev wallet password set` instead | +| `ALREADY_ENCRYPTED` on `wallet password set` | Mnemonic already has a password | Use `mm wallet password change` instead | +| `NOT_ENCRYPTED` on `wallet password change/remove` | Mnemonic is not encrypted | Use `mm wallet password set` instead | ## Verbose Logging Use `--verbose` when a command appears to hang or hides progress: ```bash -mm-dev wallet balance --json --verbose +mm wallet balance --json --verbose ``` Structured logs and progress lines go to stderr; command results remain on stdout. @@ -42,4 +42,4 @@ For raw error-code meanings, load `../references/errors.md`. Relay CLI errors ve ## Reset Last -Use `mm-dev reset` only after checking version, auth status, current environment, and the failing command's help output. Reset clears local session state and should not be the first troubleshooting step. Always ask the user for explicit confirmation before running reset. +Use `mm reset` only after checking version, auth status, current environment, and the failing command's help output. Reset clears local session state and should not be the first troubleshooting step. Always ask the user for explicit confirmation before running reset. diff --git a/skills/metamask-agent-workflows/SKILL.md b/skills/metamask-agent-workflows/SKILL.md index 26b376b..c8531e6 100644 --- a/skills/metamask-agent-workflows/SKILL.md +++ b/skills/metamask-agent-workflows/SKILL.md @@ -4,12 +4,12 @@ description: Use when the user needs to perform multi-step operations with the M license: MIT metadata: author: metamask - version: "1.2.0" + version: "1.3.0" --- # MetaMask Agent Workflows -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. +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 @@ -33,17 +33,17 @@ Always use `--toon` for command output unless the user explicitly requests a dif Always run preflight before any CLI operation. ```bash -mm-dev auth status +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-dev --help` to confirm the exact flags, syntax, and defaults. Do not guess flags from memory. +Before constructing any command, run `mm --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-dev --help` and guide from there. +- If a command fails, check `mm --help` and guide from there. diff --git a/skills/metamask-agent-workflows/workflows/bridge.md b/skills/metamask-agent-workflows/workflows/bridge.md index 7614eaf..3172d2d 100644 --- a/skills/metamask-agent-workflows/workflows/bridge.md +++ b/skills/metamask-agent-workflows/workflows/bridge.md @@ -15,7 +15,7 @@ Do not skip the quote review step. It is where the user sees output amount, fees ## Quote ```bash -mm-dev swap quote --from ETH --to USDC --amount 1 --from-chain 1 --to-chain 137 --slippage 0.5 +mm swap quote --from ETH --to USDC --amount 1 --from-chain 1 --to-chain 137 --slippage 0.5 ``` Required flags: `--from`, `--to`, `--amount`, `--from-chain`, and `--to-chain`. @@ -26,7 +26,7 @@ Confirm source token, destination token, amount, source chain, destination chain ## Execute ```bash -mm-dev swap execute --quote-id "QUOTE_ID" +mm swap execute --quote-id "QUOTE_ID" ``` Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID execution keeps the reviewed quote tied to the submitted action. @@ -34,8 +34,8 @@ Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID exe ## Status ```bash -mm-dev swap status --quote-id "QUOTE_ID" -mm-dev swap status --quote-id "QUOTE_ID" --tx-hash 0xabc123 +mm swap status --quote-id "QUOTE_ID" +mm swap status --quote-id "QUOTE_ID" --tx-hash 0xabc123 ``` Use status polling for bridges where the destination side can lag behind the source transaction. @@ -46,4 +46,4 @@ Use status polling for bridges where the destination side can lag behind the sou - Insufficient balance: surface the error verbatim. - Slippage exceeded: only increase `--slippage` if the user explicitly accepts more slippage. Always warn the user if slippage is increased above 1% that it will affect the minimum received. -- Missing chain: use `mm-dev chains list` before guessing a chain ID. +- Missing chain: use `mm chains list` before guessing a chain ID. diff --git a/skills/metamask-agent-workflows/workflows/login.md b/skills/metamask-agent-workflows/workflows/login.md index f6378f2..6cd0e7f 100644 --- a/skills/metamask-agent-workflows/workflows/login.md +++ b/skills/metamask-agent-workflows/workflows/login.md @@ -12,11 +12,11 @@ Reference command syntax in `references/auth.md`. ## Login -`mm-dev login qr` returns `COMING_SOON`. Use Google or email sign-in. +`mm login qr` returns `COMING_SOON`. Use Google or email sign-in. ```bash -mm-dev login google --no-wait -mm-dev login email --no-wait +mm login google --no-wait +mm login email --no-wait ``` Use `--no-wait` for non-interactive environments. The command prints a sign-in URL. @@ -26,11 +26,11 @@ Use `--no-wait` for non-interactive environments. The command prints a sign-in U Once the user completes sign-in, verify with: ```bash -mm-dev login --token "" +mm login --token "" ``` ## Confirm ```bash -mm-dev auth status +mm auth status ``` diff --git a/skills/metamask-agent-workflows/workflows/market-data.md b/skills/metamask-agent-workflows/workflows/market-data.md index cb2833b..872563a 100644 --- a/skills/metamask-agent-workflows/workflows/market-data.md +++ b/skills/metamask-agent-workflows/workflows/market-data.md @@ -9,25 +9,25 @@ Reference command syntax in `references/market-data.md`. If the user mentions a token by name or symbol, search for it first to get the correct asset ID: ```bash -mm-dev token list search --query "USDC" --chain 1 +mm token list search --query "USDC" --chain 1 ``` To browse popular, trending, or top-gainer tokens on a chain: ```bash -mm-dev token list popular --chain 1 -mm-dev token list trending --chain 1 -mm-dev token list top-gainer --chain 1 +mm token list popular --chain 1 +mm token list trending --chain 1 +mm token list top-gainer --chain 1 ``` -Use `mm-dev token networks` to discover which chains support token data. +Use `mm token networks` to discover which chains support token data. ## Get Token Metadata Once you have the CAIP-19 asset ID, fetch detailed metadata: ```bash -mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data +mm token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data ``` ## Get Spot Price @@ -35,18 +35,18 @@ mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0 Fetch the current price for one or more tokens: ```bash -mm-dev price spot --asset-ids "eip155:1/slip44:60" -mm-dev price spot --asset-ids "eip155:1/slip44:60,eip155:137/slip44:966" --vs eur --market-data +mm price spot --asset-ids "eip155:1/slip44:60" +mm price spot --asset-ids "eip155:1/slip44:60,eip155:137/slip44:966" --vs eur --market-data ``` -Use `mm-dev price networks` to discover supported CAIP-2 chain IDs and `mm-dev price currencies` to list quote currencies. +Use `mm price networks` to discover supported CAIP-2 chain IDs and `mm price currencies` to list quote currencies. ## Get Historical Price Fetch historical price data for an asset: ```bash -mm-dev price history --chain-id eip155:1 --asset-type slip44:60 --time-period 7d --interval daily +mm price history --chain-id eip155:1 --asset-type slip44:60 --time-period 7d --interval daily ``` Common time periods: `1d`, `7d`, `30d`, `2M`, `1y`, `3y`. Intervals: `5m`, `hourly`, `daily`. @@ -56,7 +56,7 @@ For a custom date range, use `--from` and `--to` with Unix timestamps instead of ## Edge Cases - If the chain is not mentioned by the user, ask for the chain. -- Use `mm-dev chains list` to discover supported chain IDs. +- Use `mm chains list` to discover supported chain IDs. - If a token search returns no results, try broader chains or alternate names. - CAIP-19 asset IDs follow the format `eip155:/slip44:` for native tokens or `eip155:/erc20:` for ERC-20s. - Use `--include-token-security-data` on `token assets` to surface scam or risk signals before the user trades an unfamiliar token. diff --git a/skills/metamask-agent-workflows/workflows/onboarding.md b/skills/metamask-agent-workflows/workflows/onboarding.md index 1d2b5b3..f6dee2e 100644 --- a/skills/metamask-agent-workflows/workflows/onboarding.md +++ b/skills/metamask-agent-workflows/workflows/onboarding.md @@ -15,20 +15,20 @@ Reference command syntax in `references/auth.md` and `references/wallet.md`. ## Check CLI Installation ```bash -mm-dev --version +mm --version ``` If this fails, the CLI is not installed. Guide the user to install it before proceeding. ## Login Flow -Ask the user which login method they want to use: Google or Email. QR login is coming soon (`mm-dev login qr` returns `COMING_SOON`). +Ask the user which login method they want to use: Google or Email. QR login is coming soon (`mm login qr` returns `COMING_SOON`). ### Login ```bash -mm-dev login google --no-wait -mm-dev login email --no-wait +mm login google --no-wait +mm login email --no-wait ``` Use `--no-wait` for non-interactive environments. The command prints a sign-in URL. @@ -38,7 +38,7 @@ Use `--no-wait` for non-interactive environments. The command prints a sign-in U Once the user completes sign-in, verify with: ```bash -mm-dev login --token "" +mm login --token "" ``` ## Initialize Project @@ -46,7 +46,7 @@ mm-dev login --token "" First check if the project is already initialized: ```bash -mm-dev init show +mm init show ``` If already initialized, skip this step. Otherwise, ask the user which wallet mode they want: @@ -60,7 +60,7 @@ Ask the user which trading mode they want (server-wallet only): Server wallet: ```bash -mm-dev init --wallet server-wallet --mode guard +mm init --wallet server-wallet --mode guard ``` BYOK: @@ -69,7 +69,7 @@ Never pass `--mnemonic` or `--password` as inline flags. Always instruct the use ```bash export MM_MNEMONIC="word1 word2 ..." -mm-dev init --wallet byok +mm init --wallet byok ``` If the user wants to encrypt their mnemonic with a password during init: @@ -77,13 +77,13 @@ If the user wants to encrypt their mnemonic with a password during init: ```bash export MM_MNEMONIC="word1 word2 ..." export MM_PASSWORD="mypassword" -mm-dev init --wallet byok +mm init --wallet byok ``` If the mnemonic was stored unencrypted, suggest setting a password afterward: ```bash -mm-dev wallet password set +mm wallet password set ``` Once the mnemonic is encrypted, all subsequent operations that need the private key require the `MM_PASSWORD` environment variable to be set. Never instruct the user to pass `--password` inline. @@ -91,7 +91,7 @@ Once the mnemonic is encrypted, all subsequent operations that need the private ## Verify Auth Status ```bash -mm-dev auth status +mm auth status ``` Confirm the session is authenticated, the wallet mode is correct, and the token is valid. @@ -99,5 +99,5 @@ Confirm the session is authenticated, the wallet mode is correct, and the token ## Show Wallet Address ```bash -mm-dev wallet address +mm wallet address ``` diff --git a/skills/metamask-agent-workflows/workflows/perps-close-position.md b/skills/metamask-agent-workflows/workflows/perps-close-position.md index c4fa489..8aa26ec 100644 --- a/skills/metamask-agent-workflows/workflows/perps-close-position.md +++ b/skills/metamask-agent-workflows/workflows/perps-close-position.md @@ -15,7 +15,7 @@ Reference command syntax in `references/perps.md`. If the user does not mention a token symbol, list open positions and confirm with the user: ```bash -mm-dev perps positions +mm perps positions ``` ## Check Positions @@ -23,7 +23,7 @@ mm-dev perps positions `--venue` defaults to `hyperliquid`. It can be omitted. ```bash -mm-dev perps positions +mm perps positions ``` ## Dry Run @@ -31,7 +31,7 @@ mm-dev perps positions Preview the close before executing: ```bash -mm-dev perps close --symbol BTC --dry-run +mm perps close --symbol BTC --dry-run ``` For partial close, include `--size `. @@ -41,14 +41,14 @@ For partial close, include `--size `. Remove `--dry-run` only after explicit user confirmation: ```bash -mm-dev perps close --symbol BTC -mm-dev perps close --symbol BTC --size 0.005 +mm perps close --symbol BTC +mm perps close --symbol BTC --size 0.005 ``` `--all` closes every open position. Require explicit confirmation that the user wants all positions closed. ```bash -mm-dev perps close --all +mm perps close --all ``` Do not add `--yes` unless the user explicitly asked for unattended execution. diff --git a/skills/metamask-agent-workflows/workflows/perps-modify-position.md b/skills/metamask-agent-workflows/workflows/perps-modify-position.md index 9968a08..3f28f06 100644 --- a/skills/metamask-agent-workflows/workflows/perps-modify-position.md +++ b/skills/metamask-agent-workflows/workflows/perps-modify-position.md @@ -15,7 +15,7 @@ Reference command syntax in `references/perps.md`. If the user does not mention a token symbol, list open positions and confirm with the user: ```bash -mm-dev perps positions +mm perps positions ``` ## Check Positions @@ -23,7 +23,7 @@ mm-dev perps positions `--venue` defaults to `hyperliquid`. It can be omitted. ```bash -mm-dev perps positions +mm perps positions ``` ## Dry Run @@ -31,8 +31,8 @@ mm-dev perps positions Preview the modification before executing: ```bash -mm-dev perps modify --symbol BTC --leverage 10 --dry-run -mm-dev perps modify --symbol ETH --tp 3000 --sl 2000 --dry-run +mm perps modify --symbol BTC --leverage 10 --dry-run +mm perps modify --symbol ETH --tp 3000 --sl 2000 --dry-run ``` At least one of `--leverage`, `--tp`, or `--sl` must be provided. @@ -42,8 +42,8 @@ At least one of `--leverage`, `--tp`, or `--sl` must be provided. Remove `--dry-run` only after explicit user confirmation: ```bash -mm-dev perps modify --symbol BTC --leverage 10 -mm-dev perps modify --symbol ETH --tp 3000 --sl 2000 +mm perps modify --symbol BTC --leverage 10 +mm perps modify --symbol ETH --tp 3000 --sl 2000 ``` Do not add `--yes` unless the user explicitly asked for unattended execution. diff --git a/skills/metamask-agent-workflows/workflows/perps-open-position.md b/skills/metamask-agent-workflows/workflows/perps-open-position.md index a961765..a315631 100644 --- a/skills/metamask-agent-workflows/workflows/perps-open-position.md +++ b/skills/metamask-agent-workflows/workflows/perps-open-position.md @@ -16,7 +16,7 @@ Reference command syntax in `references/perps.md`. If the user does not mention a token symbol, list available markets and confirm with the user: ```bash -mm-dev perps markets +mm perps markets ``` ## Check Balance @@ -24,23 +24,23 @@ mm-dev perps markets `--venue` defaults to `hyperliquid`. It can be omitted. ```bash -mm-dev perps balance +mm perps balance ``` If available margin is zero or insufficient, deposit USDC before proceeding. Hyperliquid only supports deposits from Arbitrum mainnet (`eip155:42161`). ```bash -mm-dev perps deposit --amount --asset USDC +mm perps deposit --amount --asset USDC ``` -To confirm a deposit, wait briefly and poll `mm-dev perps balance`. +To confirm a deposit, wait briefly and poll `mm perps balance`. ## Quote Always quote before opening: ```bash -mm-dev perps quote --symbol BTC --side long --size 0.01 --leverage 5 +mm perps quote --symbol BTC --side long --size 0.01 --leverage 5 ``` Show the user estimated entry, notional, fees, liquidation price, side, size, leverage, and venue before proceeding. @@ -50,7 +50,7 @@ Show the user estimated entry, notional, fees, liquidation price, side, size, le Preview the order before signing: ```bash -mm-dev perps open --symbol BTC --side long --size 0.01 --leverage 5 --dry-run +mm perps open --symbol BTC --side long --size 0.01 --leverage 5 --dry-run ``` For limit orders, include `--type limit --limit-px `. @@ -62,7 +62,7 @@ For limit orders, include `--type limit --limit-px `. Remove `--dry-run` only after explicit user confirmation: ```bash -mm-dev perps open --symbol BTC --side long --size 0.01 --leverage 5 +mm perps open --symbol BTC --side long --size 0.01 --leverage 5 ``` Do not add `--yes` unless the user explicitly asked for unattended execution. diff --git a/skills/metamask-agent-workflows/workflows/predict-trading.md b/skills/metamask-agent-workflows/workflows/predict-trading.md index cc77610..4dc9690 100644 --- a/skills/metamask-agent-workflows/workflows/predict-trading.md +++ b/skills/metamask-agent-workflows/workflows/predict-trading.md @@ -9,19 +9,19 @@ Reference command syntax in `../references/predict.md`. Choose the Predict mode, run setup, and check backend status: ```bash -mm-dev predict mode mainnet -mm-dev predict setup --wait -mm-dev predict status +mm predict mode mainnet +mm predict setup --wait +mm predict status ``` -`predict setup --wait` blocks until credential, deposit-wallet, and approval jobs complete. Without `--wait`, watch returned jobs with `mm-dev predict watch`. +`predict setup --wait` blocks until credential, deposit-wallet, and approval jobs complete. Without `--wait`, watch returned jobs with `mm predict watch`. If setup or approvals look stale later: ```bash -mm-dev predict auth --refresh -mm-dev predict approve --wait -mm-dev predict balance --sync +mm predict auth --refresh +mm predict approve --wait +mm predict balance --sync ``` `predict setup` and `predict deposit` use `--wait`; do not add `--yes` to those commands. @@ -31,13 +31,13 @@ mm-dev predict balance --sync Check deposit wallet status: ```bash -mm-dev predict balance --sync +mm predict balance --sync ``` Fund pUSD: ```bash -mm-dev predict deposit --amount 100 --wait --json +mm predict deposit --amount 100 --wait --json ``` `--amount` is in pUSD. The owner EOA needs enough Polygon USDC and POL for gas to complete the deposit transaction. @@ -47,14 +47,14 @@ mm-dev predict deposit --amount 100 --wait --json Check balance first: ```bash -mm-dev predict balance --sync +mm predict balance --sync ``` Withdraw pUSD to the owner EOA (default) or a specified address: ```bash -mm-dev predict withdraw --amount 50 --wait -mm-dev predict withdraw --amount 10 --to 0xRecipient... --wait +mm predict withdraw --amount 50 --wait +mm predict withdraw --amount 10 --to 0xRecipient... --wait ``` The CLI validates the amount against the on-chain deposit wallet balance before signing. Confirm amount and recipient with the user before executing. @@ -64,8 +64,8 @@ The CLI validates the amount against the on-chain deposit wallet balance before Search can return loosely related markets, so inspect the selected market before quoting: ```bash -mm-dev predict markets search "Knicks NBA Finals" --limit 5 --json -mm-dev predict markets get will-the-new-york-knicks-win-the-2026-nba-finals --json +mm predict markets search "Knicks NBA Finals" --limit 5 --json +mm predict markets get will-the-new-york-knicks-win-the-2026-nba-finals --json ``` The market detail prints outcome token IDs. Outcome token IDs are not market IDs; use the token ID for `quote`, `place`, `book`, and `balance --token-id`. @@ -73,7 +73,7 @@ The market detail prints outcome token IDs. Outcome token IDs are not market IDs If search is noisy, list active markets and filter manually: ```bash -mm-dev predict markets list --active --limit 50 --json +mm predict markets list --active --limit 50 --json ``` ## Quote, Then Place @@ -81,7 +81,7 @@ mm-dev predict markets list --active --limit 50 --json Preview the order cost and fill before placing: ```bash -mm-dev predict quote \ +mm predict quote \ --token-id \ --side buy --size 100 --limit-price 0.55 ``` @@ -89,7 +89,7 @@ mm-dev predict quote \ After the user confirms token ID, outcome, side, size, price, and order type: ```bash -mm-dev predict place \ +mm predict place \ --token-id \ --side buy --size 100 --price 0.55 \ --order-type GTC @@ -100,14 +100,14 @@ mm-dev predict place \ ## Manage Orders and Positions ```bash -mm-dev predict orders -mm-dev predict orders --market -mm-dev predict positions -mm-dev predict positions --market -mm-dev predict cancel --order-id -mm-dev predict cancel --market -mm-dev predict cancel --asset -mm-dev predict cancel --all +mm predict orders +mm predict orders --market +mm predict positions +mm predict positions --market +mm predict cancel --order-id +mm predict cancel --market +mm predict cancel --asset +mm predict cancel --all ``` `predict cancel --all` cancels every open order. Require explicit confirmation. @@ -115,7 +115,7 @@ mm-dev predict cancel --all ## Watch Async Jobs ```bash -mm-dev predict watch --id --wait +mm predict watch --id --wait ``` Use this for setup, approve, deposit, withdraw, and order jobs that have not reached a terminal state. @@ -123,5 +123,5 @@ Use this for setup, approve, deposit, withdraw, and order jobs that have not rea ## Safety Notes - Prices are 0-1 floats. Treat `--price 1` as suspicious unless the user explicitly confirms. -- Trades are signed by the deposit wallet address shown by `mm-dev predict balance`, not necessarily the connected owner EOA. +- Trades are signed by the deposit wallet address shown by `mm predict balance`, not necessarily the connected owner EOA. - Always inspect the market to map the user's intended outcome to the correct token ID. diff --git a/skills/metamask-agent-workflows/workflows/swap.md b/skills/metamask-agent-workflows/workflows/swap.md index 05ac322..7eb1bba 100644 --- a/skills/metamask-agent-workflows/workflows/swap.md +++ b/skills/metamask-agent-workflows/workflows/swap.md @@ -15,7 +15,7 @@ Do not skip the quote review step. It is where the user sees output amount, fees ## Quote ```bash -mm-dev swap quote --from ETH --to USDC --amount 1 --from-chain 1 +mm swap quote --from ETH --to USDC --amount 1 --from-chain 1 ``` Required flags: `--from`, `--to`, `--amount`, and `--from-chain`. @@ -26,7 +26,7 @@ Confirm source token, destination token, amount, chain, slippage, expected outpu ## Execute ```bash -mm-dev swap execute --quote-id "$QUOTE_ID" +mm swap execute --quote-id "$QUOTE_ID" ``` Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID execution keeps the reviewed quote tied to the submitted action. @@ -34,7 +34,7 @@ Prefer executing by quote ID. Re-quote-and-execute flags exist, but quote ID exe ## Status ```bash -mm-dev swap status --quote-id "$QUOTE_ID" +mm swap status --quote-id "$QUOTE_ID" ``` ## Edge Cases @@ -43,4 +43,4 @@ mm-dev swap status --quote-id "$QUOTE_ID" - Insufficient balance: surface the error verbatim. - Slippage exceeded: only increase `--slippage` if the user explicitly accepts more slippage. Always warn the user if slippage is increased above 1% that it will affect the minimum received. -- Missing chain: use `mm-dev chains list` before guessing a chain ID. +- Missing chain: use `mm chains list` before guessing a chain ID. diff --git a/skills/metamask-agent-workflows/workflows/troubleshooting.md b/skills/metamask-agent-workflows/workflows/troubleshooting.md index e807ce9..d1e1742 100644 --- a/skills/metamask-agent-workflows/workflows/troubleshooting.md +++ b/skills/metamask-agent-workflows/workflows/troubleshooting.md @@ -7,9 +7,9 @@ Use this workflow when a command fails, hangs, prompts unexpectedly, or behaves Run or suggest these in order: ```bash -mm-dev --version -mm-dev auth status -mm-dev --help +mm --version +mm auth status +mm --help ``` If `auth status` reports anything other than authenticated, fix authentication before debugging downstream wallet, signing, swap, perps, or predict commands. @@ -18,20 +18,20 @@ If `auth status` reports anything other than authenticated, fix authentication b | Symptom | Likely cause | Next step | | --- | --- | --- | -| `mm-dev: command not found` | Binary not installed or not on `PATH` | Check install and PATH | -| Async command returns a polling id and appears stuck | Request was dispatched without `--wait` | Use `mm-dev wallet requests list` or `mm-dev wallet requests watch --polling-id ` | -| Auth errors after previously working | Expired token or wrong environment | Check `mm-dev auth status` and environment/session file | +| `mm: command not found` | Binary not installed or not on `PATH` | Check install and PATH | +| Async command returns a polling id and appears stuck | Request was dispatched without `--wait` | Use `mm wallet requests list` or `mm wallet requests watch --polling-id ` | +| Auth errors after previously working | Expired token or wrong environment | Check `mm auth status` and environment/session file | | `CHAIN_ID_MISMATCH` on typed data | Payload `domain.chainId` differs from `--chain-id` | Align the two chain IDs | | `MNEMONIC_LOCKED` or `WRONG_PASSWORD` | BYOK mnemonic is encrypted and password was wrong or missing | Set the correct `MM_PASSWORD` environment variable and re-run | -| `ALREADY_ENCRYPTED` on `wallet password set` | Mnemonic already has a password | Use `mm-dev wallet password change` instead | -| `NOT_ENCRYPTED` on `wallet password change/remove` | Mnemonic is not encrypted | Use `mm-dev wallet password set` instead | +| `ALREADY_ENCRYPTED` on `wallet password set` | Mnemonic already has a password | Use `mm wallet password change` instead | +| `NOT_ENCRYPTED` on `wallet password change/remove` | Mnemonic is not encrypted | Use `mm wallet password set` instead | ## Verbose Logging Use `--verbose` when a command appears to hang or hides progress: ```bash -mm-dev wallet balance --json --verbose +mm wallet balance --json --verbose ``` Structured logs and progress lines go to stderr; command results remain on stdout. @@ -42,4 +42,4 @@ For raw error-code meanings, load `../references/errors.md`. Relay CLI errors ve ## Reset Last -Use `mm-dev reset` only after checking version, auth status, current environment, and the failing command's help output. Reset clears local session state and should not be the first troubleshooting step. Always ask the user for explicit confirmation before running reset. +Use `mm reset` only after checking version, auth status, current environment, and the failing command's help output. Reset clears local session state and should not be the first troubleshooting step. Always ask the user for explicit confirmation before running reset. From 0ead708f5bec57435f7751bb6157dda14df53aab Mon Sep 17 00:00:00 2001 From: AyushBherwani1998 Date: Mon, 8 Jun 2026 16:34:11 +0400 Subject: [PATCH 2/2] update to major version --- skills/metamask-agent-wallet/SKILL.md | 2 +- skills/metamask-agent-workflows/SKILL.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/metamask-agent-wallet/SKILL.md b/skills/metamask-agent-wallet/SKILL.md index e9d8f0d..5cecd3f 100644 --- a/skills/metamask-agent-wallet/SKILL.md +++ b/skills/metamask-agent-wallet/SKILL.md @@ -4,7 +4,7 @@ description: Use when the user asks anything about blockchain wallets, transacti license: MIT metadata: author: metamask - version: "1.3.0" + version: "2.0.0" --- # MetaMask Agentic CLI Skill diff --git a/skills/metamask-agent-workflows/SKILL.md b/skills/metamask-agent-workflows/SKILL.md index c8531e6..4c60a2c 100644 --- a/skills/metamask-agent-workflows/SKILL.md +++ b/skills/metamask-agent-workflows/SKILL.md @@ -4,7 +4,7 @@ description: Use when the user needs to perform multi-step operations with the M license: MIT metadata: author: metamask - version: "1.3.0" + version: "2.0.0" --- # MetaMask Agent Workflows