/metamask:metamask-transactions-approvalsfrom metamask
This skill should be used when testing MetaMask transactions, signatures, ERC-20 approvals, rejections, and gas confirmation flows in E2E tests.
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.
eth_sendTransaction, eth_signTypedData_v4, …)E2E must cover steps 2–5, not only the click that starts step 1.
// Synpress
await page.getByTestId('supply-button').click()
await metamask.confirmTransaction()
// negative
await metamask.rejectTransaction()
Two-step DeFi pattern: approve then action.
await page.getByRole('button', { name: /Approve/i }).click()
await metamask.approveTokenPermission({ spendLimit: 'max' })
await page.getByRole('button', { name: /Supply/i }).click()
await metamask.confirmTransaction()
approveTokenPermission for ERC-20 spendconfirmTransaction for NFT approvals / generic txsconfirmSignature) instead of approve txsawait metamask.confirmSignature()
await metamask.confirmSignatureWithRisk()
await metamask.rejectSignature()
Cover EIP-712 (Permit2, offline quotes) and personal_sign login if your app uses SIWE.
Don't stop at "button clicked":
await expect(page.getByTestId('tx-success')).toBeVisible()
// Optional chain assert with viem
const bal = await publicClient.getBalance({ address })
expect(bal).toBeLessThan(before)
| Scenario | How |
|---|---|
| User rejects tx | rejectTransaction |
| User rejects connect | cancel connect / mock connectError |
| Insufficient funds | drain account on Anvil or use empty imported key |
| Wrong network | stay on mainnet profile, expect switch prompt |
| Stale allowance | approve low spendLimit then attempt large swap |
Local Anvil: cheap/instant — still confirm MetaMask gas UI doesn't block. Production-fork tests may need gasSetting overrides in Synpress.
What SKILL.md sets; muted values are Claude Code's defaults
4 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-networks-accountsThis skill should be used when testing MetaMask networks and accounts — add/switch chain, testnets, Anvil, multi-account, and dApp accountsChanged handling./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.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 metamask