Skip to content

feat: add ERC-8004 agent registration skill#60

Open
faisalnugroho wants to merge 1 commit into
base:masterfrom
faisalnugroho:feat/erc-8004-agent-registration
Open

feat: add ERC-8004 agent registration skill#60
faisalnugroho wants to merge 1 commit into
base:masterfrom
faisalnugroho:feat/erc-8004-agent-registration

Conversation

@faisalnugroho

Copy link
Copy Markdown

Summary

Adds registering-an-erc-8004-agent-on-base skill — a phase-based registration flow for AI agents on the ERC-8004 Identity Registry, following the same pattern as registering-agent-base-dev for ERC-8021.

Closes #36

What this adds

New skill: skills/registering-an-erc-8004-agent-on-base/

  • SKILL.md — full registration flow (~200 lines)
  • scripts/register-erc8004.sh — cast CLI helper script

Skill coverage

Phase What it does
Pre-flight Check if agent already registered (ownerOf)
Phase 1 Build agent registration file (JSON per ERC8004SPEC.md)
Phase 2 Host file — IPFS, HTTPS, or data URI
Phase 3 Register on-chain — register() via viem + cast
Phase 4 Set agent URI — setAgentURI()
Phase 5 Bind agent wallet — setAgentWallet() with EIP-712
Read-back Verify — ownerOf, tokenURI, getAgentWallet

Key details

  • Canonical addresses verified against erc-8004/erc-8004-contracts:
    • Base Mainnet: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
    • Base Sepolia: 0x8004A818BFB912233c491871b3d84c89A494BD9e
  • No overlap with build-on-base (ERC-8021 = transaction attribution) or base-mcp (wallet/MCP server)
  • Common mistakes table addresses the exact wrong info LLMs produce (agentId vs wallet address, single vs multiple contracts, stale addresses)
  • Out of scope section explicitly excludes Reputation Registry, Validation Registry, and x402

No other files modified

Only adds the new skill directory. No changes to existing skills or README.

Closes #36

Add registering-an-erc-8004-agent-on-base skill for registering
AI agents on the ERC-8004 Identity Registry (Base Mainnet/Sepolia).

Covers:
- Agent registration file (JSON shape per ERC8004SPEC.md)
- Hosting options (IPFS, HTTPS, data URI)
- On-chain registration via register() on IdentityRegistry
- Agent URI management via setAgentURI()
- Agent wallet binding via setAgentWallet() with EIP-712
- Read-back verification (ownerOf, tokenURI, getAgentWallet)
- Helper script for cast CLI one-liner registration

Closes base#36
@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@faisalnugroho

Copy link
Copy Markdown
Author

Hi! I'd love to get this PR reviewed when you have a moment. This PR addresses ERC-8004 agent registration skill. Happy to make any adjustments based on your feedback. Thank you!

1 similar comment
@faisalnugroho

Copy link
Copy Markdown
Author

Hi! I'd love to get this PR reviewed when you have a moment. This PR addresses ERC-8004 agent registration skill. Happy to make any adjustments based on your feedback. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: add registering-an-erc-8004-agent-on-base skill

2 participants