Clone Contracts
Pulls verified Solidity source from Etherscan V2, resolves proxies, rewrites @-imports to relative paths.
Test report
- Verdict
- Works with setup
- Score
- Tested
- Jul 15, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Jul 18, 2026 · a4c94ca
Ran the core pipeline live on synthetic Etherscan-style JSON: it correctly split a multi-file source, rewrote an `@openzeppelin/...` import to the right relative `../lib/...` path, and laid out contracts/interfaces/lib exactly as documented. Real friction: SKILL.md itself says 'run ./setup.sh', which builds a venv and a ~/.local/bin wrapper and needs a free Etherscan API key — a plain folder copy does not give you a working `clone-external` command. Also caught a real bug: an invalid/missing API key crashes with `'str' object has no attribute 'get'` instead of a clean error.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 4/5
What Clone Contracts does
Fetches verified contract source for any address across 20+ EVM chains via the Etherscan V2 API, auto-resolves proxy contracts to their implementation, and rewrites npm/Foundry-style @-imports to relative paths so the clone reads cleanly without remappings. Triggers when auditing an external integration, tracing a cross-contract call, or needing the source of a contract not in the main codebase.
How to install Clone Contracts
git clone https://github.com/TheSchnilch/CloneContractsSkill
cd CloneContractsSkill && ./setup.sh # creates venv + ~/.local/bin/clone-external wrapper, prompts for a free ETHERSCAN_API_KEY
# (a bare `cp -r` alone will NOT make the `clone-external` command work)
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Clone Contracts
-
/clone-contractsPulls verified Solidity source from Etherscan V2, resolves proxies, rewrites @-imports to relative paths.
It also activates on plain-language prompts like these:
-
Clone the verified WETH contract source so I can read it locally -
Pull this proxy contract's implementation source from Etherscan -
Fetch this contract and rewrite its imports to relative paths
Frequently asked questions
- Is the Clone Contracts skill free?
- Yes. The skill itself is free from TheSchnilch/CloneContractsSkill. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Clone Contracts work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 15, 2026. Verdict: Works with setup. Ran the core pipeline live on synthetic Etherscan-style JSON: it correctly split a multi-file source, rewrote an `@openzeppelin/...` import to the right relative `../lib/...` path, and laid out contracts/interfaces/lib exactly as documented. Real friction: SKILL.md itself says 'run ./setup.sh', which builds a venv and a ~/.local/bin wrapper and needs a free Etherscan API key — a plain folder copy does not give you a working `clone-external` command. Also caught a real bug: an invalid/missing API key crashes with `'str' object has no attribute 'get'` instead of a clean error.
- What is the Clone Contracts SkillProof Score?
- 8.8/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 4/5.
- How do I install Clone Contracts?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Clone Contracts with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.