/synpress:synpress-wallet-setupfrom synpress
This skill should be used when configuring Synpress wallet-setup — defineWalletSetup, MetaMask seed/password, wallet-setup cache, and Anvil/Hardhat test accounts.
Ships in synpress. 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.
Define MetaMask onboarding once, cache browser state, reuse across tests.
wallet-setup/
metamask.setup.ts # or basic.setup.ts
.cache-synpress/ # generated — gitignore this
// wallet-setup/metamask.setup.ts
import { defineWalletSetup } from '@synthetixio/synpress'
import { MetaMask } from '@synthetixio/synpress/playwright'
// Anvil / Hardhat default mnemonic account #0
const SEED_PHRASE =
'test test test test test test test test test test test junk'
const PASSWORD = 'Tester@1234'
export default defineWalletSetup(PASSWORD, async (context, walletPage) => {
const metamask = new MetaMask(context, walletPage, PASSWORD)
await metamask.importWallet(SEED_PHRASE)
// Optional: import extra Anvil keys, add local network, etc.
})
npx synpress wallet-setup
Opens Chromium, runs onboarding, writes cache under .cache-synpress/. Re-run when setup file or MetaMask version changes.
| Index | Address (Anvil default) | Use |
|---|---|---|
| 0 | 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 | Primary tester |
| 1 | 0x70997970C51812dc3A010C7d01b50e0d17dc79C8 | Counterparty / liquidator |
Import Anvil private keys with importWalletFromPrivateKey inside setup or in tests via the metamask fixture.
await metamask.addNetwork({
name: 'Anvil',
rpcUrl: 'http://127.0.0.1:8545',
chainId: 31337,
symbol: 'ETH',
})
await metamask.switchNetwork('Anvil', true)
.cache-synpress/
Commit the setup source, not the cache (or commit cache only if your team wants zero first-run cost in CI — trade secret risk of seed in cache artifacts).
webServer)npx synpress wallet-setup (or restore cached directory)npx playwright testprocess.env.METAMASK_PWWhat SKILL.md sets; muted values are Claude Code's defaults
synpress@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin synpress4 skills in this plugin
/synpress-metamask-apiThis skill should be used when calling Synpress MetaMask API methods — connectToDapp, confirmTransaction, approveTokenPermission, switchNetwork, signatures, and account import./synpress-overviewThis skill should be used when the user asks about "Synpress", "@synthetixio/synpress", Web3 E2E with MetaMask extension, or wallet-cache setup for Playwright/Cypress dApp tests./synpress-playwrightThis skill should be used when writing Playwright tests with Synpress — testWithSynpress, metaMaskFixtures, connecting dApps, confirming txs, and page objects with MetaMask.