Add add-chain Claude skill for adding chains/tokens#55
Conversation
Adds a self-contained Claude Code skill that adds a new EVM chain and/or tokens to the demo app by editing src/lib/config.ts (the single source of truth for chains). It handles viem-supported and non-viem chains, custom RPCs, native + ERC-20 tokens, and runs RPC/codehash/Polymer verification, ending with a usage + verification summary. No commit/PR is performed by the skill itself. Also narrows the .claude gitignore (.claude/* + !.claude/skills/) so the skill is tracked while local settings/worktrees stay ignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds ChangesAdd-chain skill document and gitignore wiring
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🚀 Preview deployed! Worker: |
What
Adds a self-contained Claude Code skill (
.claude/skills/add-chain/SKILL.md) that lets an agent add a new EVM chain and/or tokens to the demo app in one focused turn, for demoing the service on new networks.The skill edits only
src/lib/config.ts(the single source of truth for chains — wallet onboarding auto-derives fromchainMap) across its 7 coupled sites, and handles:chainMap) and non-viem chains (defineChain).decimals/symbolvia RPC; native usesADDRESS_ZERO.info_health, RouteMesh, CORS — plusbun run checkas the one blocking gate.Also narrows the
.claudegitignore so the skill is tracked:(local settings/worktrees stay ignored).
How it was built
Design and the skill file were each independently reviewed (review subagent + Codex oracle); findings on secret handling, the viem-wrap requirement, native-token templating, verification rigor, and the duplicate-chain guard were folded in.
Validation
Smoke-tested end-to-end on a viem chain (Optimism + USDC + native ETH): all 7 edits applied, invariant check passed,
bun run checkintroduced zero new errors (verified against baseline), infra codehashes matchedbase, and Polymer reported chain 10healthy. Reverted afterward — this PR contains only the skill + gitignore change.🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Chores