← Back to Skills Marketplace
wpank

Setup Local Anvil Testnet

by wpank · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
838
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install setup-local-testnet
Description
Spin up a local Anvil testnet with Uniswap deployed and pre-seeded liquidity. One command gives you a full development environment with funded accounts, real Uniswap pools, and zero gas costs. Use when developing, testing, or demoing Uniswap agent workflows.
Usage Guidance
This skill appears to do what it claims (start a local Anvil fork, seed Uniswap pools, and return accounts/contracts), but check these before installing or running: 1) Confirm where the fork RPC comes from — the MCP tool or you will need to supply an RPC URL / API key (Alchemy/Infura/etc.). Don't assume anonymous public RPCs will be used. 2) The SKILL.md suggests running Foundry's installer (curl ... | bash) if Anvil is missing — audit that installer and run it yourself if you trust the source. 3) The skill will print private keys for test accounts (normal for local forks). Treat those keys as sensitive for any environment where networked components might read them; never reuse them on mainnet. 4) Verify the MCP tool implementations (mcp__uniswap__setup_local_testnet, fund_test_account, get_supported_chains) come from a trusted source or inspect their code before allowing autonomous execution. 5) If you are uncertain, run this skill in an isolated VM/container and ensure it uses a known RPC endpoint. These checks would change the confidence to high if satisfied.
Capability Analysis
Type: OpenClaw Skill Name: setup-local-testnet Version: 0.1.0 The skill is classified as suspicious primarily due to a prompt injection risk and the exposure of sensitive information. The SKILL.md file instructs the AI agent to output a `curl -L https://foundry.paradigm.xyz | bash && foundryup` command to the user if a prerequisite (Anvil) is not found. While intended for the user, this `curl | bash` pattern is inherently risky, and a poorly constrained AI agent could potentially misinterpret this as an instruction to execute the command itself, leading to arbitrary code execution. Additionally, the skill outputs default Anvil private keys in SKILL.md, which, despite being labeled as test keys, is a sensitive information disclosure.
Capability Assessment
Purpose & Capability
Name/description match the instructions: the SKILL.md describes starting an Anvil fork, seeding accounts and Uniswap pools, and returning RPC URL/contract addresses/private keys. The skill is instruction-only and expects an MCP tool (mcp__uniswap__setup_local_testnet) to perform the actual work — this is consistent with a wrapper/orchestration skill.
Instruction Scope
Instructions stay within the stated purpose (check Anvil, parse parameters, call the MCP tool, format results). They will present private keys and funded account details to the user (expected for a local testnet). The document also suggests running the Foundry install command (curl ... | bash) if Anvil is missing — that is an out-of-band installation step the user should consider carefully.
Install Mechanism
This is instruction-only (no install spec, no code files to execute). README points to adding the skill via npx/clawhub; the SKILL.md itself does not install arbitrary binaries. The only external install the instructions reference is the standard Foundry installer (curl pipe to bash), which is common but should be treated as an explicit user action and audited before running.
Credentials
The skill declares no required env vars, but fork mode realistically needs a chain RPC endpoint (Alchemy/Infura/custom RPC) to fork from; SKILL.md mentions network access/timeouts but does not declare or ask for an RPC API key. That omission may be an implementation detail of the MCP tool, but you should confirm where the RPC URL comes from. Also, the skill outputs private keys for funded accounts — normal for local Anvil forks but sensitive if reused or transmitted elsewhere.
Persistence & Privilege
The skill does not request elevated persistence (always:false) and does not instruct modifying other skills or system-wide settings. It will manage a local Anvil process/port and clean it up per its description — expected for this functionality.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install setup-local-testnet
  3. After installation, invoke the skill by name or use /setup-local-testnet
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release: Instantly spin up a local Anvil testnet forked from Ethereum or supported L2s, with Uniswap deployed and key pools/liquidity seeded. - Automatically provides pre-funded test accounts (ETH, USDC, USDT, DAI, WETH, UNI) and outputs contract/pool addresses and private keys. - Handles port management and cleans up existing testnets for a seamless experience. - Simple parameter extraction: supports chain, block number, account count, port, and empty/funded state. - Integrated workflow and actionable next steps for local Uniswap agent development and testing. - Clear error messages for missing dependencies or network issues, including installation guidance for Anvil (Foundry).
Metadata
Slug setup-local-testnet
Version 0.1.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Setup Local Anvil Testnet?

Spin up a local Anvil testnet with Uniswap deployed and pre-seeded liquidity. One command gives you a full development environment with funded accounts, real Uniswap pools, and zero gas costs. Use when developing, testing, or demoing Uniswap agent workflows. It is an AI Agent Skill for Claude Code / OpenClaw, with 838 downloads so far.

How do I install Setup Local Anvil Testnet?

Run "/install setup-local-testnet" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Setup Local Anvil Testnet free?

Yes, Setup Local Anvil Testnet is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Setup Local Anvil Testnet support?

Setup Local Anvil Testnet is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Setup Local Anvil Testnet?

It is built and maintained by wpank (@wpank); the current version is v0.1.0.

💬 Comments