← 返回 Skills 市场
wpank

Setup Local Anvil Testnet

作者 wpank · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
838
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install setup-local-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.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install setup-local-testnet
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /setup-local-testnet 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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).
元数据
Slug setup-local-testnet
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 838 次。

如何安装 Setup Local Anvil Testnet?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install setup-local-testnet」即可一键安装,无需额外配置。

Setup Local Anvil Testnet 是免费的吗?

是的,Setup Local Anvil Testnet 完全免费(开源免费),可自由下载、安装和使用。

Setup Local Anvil Testnet 支持哪些平台?

Setup Local Anvil Testnet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Setup Local Anvil Testnet?

由 wpank(@wpank)开发并维护,当前版本 v0.1.0。

💬 留言讨论