/metamask:metamask-networks-accountsfrom metamask
This skill should be used when testing MetaMask networks and accounts — add/switch chain, testnets, Anvil, multi-account, and dApp accountsChanged handling.
Ships in metamask. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Field | Value |
|---|---|
| Network name | Anvil / Localhost |
| RPC URL | http://127.0.0.1:8545 |
| Chain ID | 31337 (Foundry default) |
| Currency | ETH |
Hardhat node typically uses the same 31337 / 8545 defaults.
await metamask.addNetwork({
name: 'Anvil',
rpcUrl: 'http://127.0.0.1:8545',
chainId: 31337,
symbol: 'ETH',
})
await metamask.switchNetwork('Anvil', true)
When the app calls wallet_addEthereumChain / wallet_switchEthereumChain:
await metamask.approveNewNetwork()
await metamask.approveSwitchNetwork()
// or rejectNewNetwork / rejectSwitchNetwork
await metamask.addNewAccount('Liquidator')
await metamask.switchAccount('Liquidator')
// OR import second Anvil private key
await metamask.importWalletFromPrivateKey(ANVIL_KEY_1)
Critical: switching account in MetaMask does not update the dApp unless it listens to accountsChanged / reconnects. Assert both:
With Wagmi mock, pass multiple accounts or call window._setupAccount with another key — no extension account switch UI.
Enable "Show test networks" when selecting Sepolia etc.:
await metamask.openSettings()
// open appropriate sidebar menu, then:
await metamask.toggleShowTestNetworks()
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
metamask@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin metamask4 skills in this plugin
/metamask-extension-testingThis skill should be used when deciding how to test MetaMask integration — real extension automation vs mock provider, flaky UX, and CI constraints./metamask-overviewThis skill should be used when the user asks about MetaMask in testing or dApps — injected provider, window.ethereum, connection flow, or how MetaMask fits into Playwright/Synpress E2E./metamask-transactions-approvalsThis skill should be used when testing MetaMask transactions, signatures, ERC-20 approvals, rejections, and gas confirmation flows in E2E tests.