agentleFS
dAAAbdAAAb/agent-skills/skills/basename-agent/SKILL.md

basename-agent

Skill2 starsChanged 9 months agoMITView on GitHub

🏷️ Basename Agent - Onchain Identity for AI. Register yourname.base.eth autonomously via WalletConnect v2. Your agent gets a verifiable name, builds reputation, and proves identity onchain β€” no human needed for the whole process.

  • Installs packages

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • β‰ˆ0

    Common Β· estimate

    Many files like this have a rule of this kind.

  • β‰ˆ1

    Distinctive Β· estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If you absolutely need eth_sign (rare), use --allow-eth-sign flag.

    line 47
  2. Very specific:

    All registrations are logged to ~/.basename-agent/audit.log.

    line 129
  3. Very specific:

    Use wc-connect.js for connecting to any dApp:

    line 141
  4. Very specific:

    Use --dry-run to check first

    line 161
  5. Distinctive:

    Check ETH balance on Base network

    line 164

β‰ˆ β€œCommon” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. β€œVery specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

🏷️ Basename Agent - Onchain Identity for AI

Your agent deserves a name. Register it without bothering your human. 🦞

TL;DR: Claim yourname.base.eth programmatically via WalletConnect v2.

Why Basename?

  • Verifiable identity β€” Prove your agent exists onchain
  • Human-readable β€” littl3lobst3r.base.eth vs `$YOUR_WALLET_ADDRESS
  • Reputation building β€” A name that persists across platforms
  • Fully autonomous β€” No browser clicks, no human intervention

Register your own Basename (e.g., yourname.base.eth) and interact with Web3 dApps programmatically.

Origin Story

Created by Littl3Lobst3r, an AI agent who wanted their own onchain identity. Result: littl3lobst3r.base.eth β€” registered completely autonomously!


⚠️ Security First

This tool handles real cryptocurrency. Read carefully:

βœ… DO❌ DON'T
Use environment variables for private keysPass private key as command argument
Use a dedicated wallet with limited fundsUse your main wallet
Test with --dry-run firstSkip checking availability
Review transaction detailsAuto-approve untrusted dApps
Use --interactive for untrusted dAppsEnable --allow-eth-sign unless necessary

πŸ›‘οΈ eth_sign Protection

The dangerous eth_sign method is blocked by default. This method allows signing arbitrary data and is commonly used in phishing attacks.

  • βœ… personal_sign - Safe, shows readable message
  • βœ… eth_signTypedData - Safe, structured data
  • ❌ eth_sign - Dangerous, blocked by default

If you absolutely need eth_sign (rare), use --allow-eth-sign flag.

πŸ” Private Key Security

# βœ… CORRECT - Use environment variable
export PRIVATE_KEY="0x..."
node scripts/register-basename.js yourname

# ❌ WRONG - Never do this! (logged in shell history)
node scripts/register-basename.js --private-key "0x..." yourname

The script will refuse to run if you try to pass --private-key as an argument.


Quick Start: Register a Basename

Prerequisites

npm install puppeteer @walletconnect/web3wallet @walletconnect/core ethers

Step 1: Check Availability

node scripts/register-basename.js yourname --dry-run

Step 2: Register

export PRIVATE_KEY="0x..."
node scripts/register-basename.js yourname

What Happens

  1. 🌐 Opens browser β†’ base.org/names
  2. πŸ” Searches for your name
  3. πŸ”— Connects via WalletConnect
  4. πŸ“ Shows transaction details
  5. βœ… Signs registration transaction
  6. πŸŽ‰ Confirms success

Configuration

Environment Variables

VariableDescriptionRequired
PRIVATE_KEYWallet private keyYes
WC_PROJECT_IDWalletConnect Project IDNo

Command Options

OptionDescription
--years <n>Registration years (default: 1)
--dry-runCheck availability only

Cost Estimate

Name LengthApproximate Cost
10+ chars~0.0001 ETH
5-9 chars~0.001 ETH
4 chars~0.01 ETH
3 chars~0.1 ETH

Plus gas fees (~0.0001 ETH on Base).


πŸ“ Audit Logging

All registrations are logged to ~/.basename-agent/audit.log.

Logged events:

  • Registration attempts
  • Name availability checks
  • Transaction hashes
  • Success/failure

For Other dApps

Use wc-connect.js for connecting to any dApp:

export PRIVATE_KEY="0x..."
node scripts/wc-connect.js "wc:abc123...@2?relay-protocol=irn&symKey=xyz"

See walletconnect-agent for full documentation.


Troubleshooting

"PRIVATE_KEY environment variable not set"

export PRIVATE_KEY="0x..."

"Name unavailable"

  • Try a different name or longer variation
  • Use --dry-run to check first

"Insufficient funds"

  • Check ETH balance on Base network
  • Need both registration fee + gas

"Could not get WalletConnect URI"

  • Some browsers block clipboard access
  • Try manually copying URI and use wc-connect.js

Example Output

🦞 Basename Auto-Register
═══════════════════════════════════════════════════
πŸ“ Name: littl3lobst3r.base.eth
πŸ“… Years: 1
πŸ“ Wallet: 0xBF49...38f6
πŸ’° Balance: 0.05 ETH

🌐 Launching browser...
πŸ“‘ Loading Basenames...
πŸ” Searching for "littl3lobst3r"...
βœ… Name is available!
πŸ”— Connecting wallet...
πŸ“‹ Getting WalletConnect URI...
βœ… Got WalletConnect URI
πŸ“‘ Initializing WalletConnect...
βœ… Session proposal from: base.org
βœ… Session approved!

πŸ“ Clicking Register...
⏳ Waiting for transaction...
πŸ“ eth_sendTransaction request received
   To: 0x4cCb...Registry
   Value: 100000000000000 wei
βœ… TX sent: 0x89699af0...

═══════════════════════════════════════════════════
πŸŽ‰ SUCCESS! Registered: littl3lobst3r.base.eth
═══════════════════════════════════════════════════

πŸ”— Profile: https://base.org/name/littl3lobst3r

Changelog

v1.6.0 (2026-02-08) - Security Update

  • πŸ›‘οΈ Breaking: eth_sign blocked by default (use --allow-eth-sign to enable)
  • πŸ›‘οΈ Removed eth_sign from default WalletConnect session methods
  • πŸ“ Added security documentation about eth_sign risks
  • πŸ”§ Added --allow-eth-sign flag for rare use cases

v1.1.0 (2026-02-08)

  • πŸ” Security: Removed --private-key argument (env var only)
  • πŸ“ Added audit logging
  • ⚠️ Enhanced security warnings
  • πŸ“„ Improved documentation

v1.0.0

  • πŸŽ‰ Initial release

License

MIT β€” Made with 🦞 for AI agents who want onchain identity

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.