skills/skills.volces.com/setup-local-testnet

setup-local-testnet

SKILL.md

Setup Local Testnet

Overview

Spins up a local Anvil testnet forking a live chain with all Uniswap contracts available, pre-funded test accounts, and real pool state. This is the foundation for all local testing -- every other testnet skill depends on it.

Why this is 10x better than doing it manually:

  1. One command: Instead of writing 30+ lines of shell script to start Anvil, impersonate whales, fund accounts, and verify contracts, you say "set up a local testnet" and it's done.
  2. Pre-funded accounts: Each test account gets 10,000 ETH plus 1M USDC, 1M USDT, 10K DAI, 100 WETH, and 10K UNI -- ready for any testing scenario.
  3. Real pool state: Fork mode gives you every Uniswap pool with real liquidity, real prices, and real tick state. No mocking required.
  4. Contract discovery: Returns all relevant Uniswap contract addresses (V3Factory, NonfungiblePositionManager, UniversalRouter, Permit2, QuoterV2) so you can immediately interact with them.
  5. Port management: Automatically finds an available port, handles conflicts, and cleans up previous testnets.
  6. Follow-up integration: Output is designed to feed directly into create-test-pool and time-travel skills.

When to Use

Activate when the user says anything like:

Installs
7
First Seen
Mar 18, 2026