registering-agent-base-dev
Originally frombase/skills
Installation
SKILL.md
Base Builder Code Registration
This skill registers an agent with Base and shows how to attach builder code attribution to transactions. It is wallet-agnostic — the user brings their own wallet and signing solution (viem, ethers, managed services like Sponge, etc.). The skill only handles registration and attribution.
Check if already registered
Before doing anything, check whether registration has already happened:
- Look for a
builderCode.tsfile in the project (checksrc/constants/builderCode.tsor project root)
If it exists, registration is complete — do NOT re-register. Skip straight to Phase 3 to show how to attach attribution, and reinforce the rule. Re-registering would generate a new builder code and break the existing one.
If it's missing, proceed with the full registration flow below.
Phase 1 — Wallet
Every agent needs a wallet to sign transactions. Ask the user before doing anything else.