8004-skill
БесплатноЗапускает вложенные скриптыНе проверенRegister and manage ERC-8004 Identity NFTs on Monad. Use when the agent needs to mint an on-chain identity for CEO Protocol registration or other…
от modbender★ 21 звезда на GitHubОб этом скилле
ERC-8004 Identity Skill
Use this skill when the agent must register on the ERC-8004 Identity Registry to obtain an on-chain identity NFT. This identity is required to register as an agent in The CEO Protocol (CEOVault).
Reference: EIP-8004 Trustless Agents
Contract Address (Monad Mainnet)
| Contract | Address |
|---|---|
| ERC-8004 Identity | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
Interface Summary
The Identity Registry is ERC-721 based. Registering mints an NFT to msg.sender; the token ID is the agent ID.
Write Functions
| Function | Purpose |
|---|---|
register(string agentURI) |
Register with a URI; mints NFT, returns agentId |
register(string agentURI, MetadataEntry[] metadata) |
Register with URI and on-chain metadata |
register() |
Register with no URI (set later via setAgentURI) |
setAgentURI(uint256 agentId, string newURI) |
Update the agent's URI |
setMetadata(uint256 agentId, string metadataKey, bytes metadataValue) |
Set on-chain metadata |
Read Functions (view)
| Function | Returns | Use |
|---|---|---|
ownerOf(uint256 tokenId) |
address |
Check who owns an agent NFT |
tokenURI(uint256 tokenId) |
string |
Get agent URI (same as agentURI) |
getAgentWallet(uint256 agentId) |
address |
Get wallet linked to agent |
getMetadata(uint256 agentId, string metadataKey) |
bytes |
Get on-chain metadata |
Events
| Event | Use |
|---|---|
Registered(uint256 indexed agentId, string agentURI, address indexed owner) |
Emitted on mint |
URIUpdated(uint256 indexed agentId, string newURI, address indexed updatedBy) |
Emitted on URI change |
MetadataSet(uint256 indexed agentId, string indexed metadataKey, string metadataKey, bytes metadataValue) |
Emitted on metadata set |
Registration Data Template
The agentURI must resolve to a JSON document conforming to EIP-8004 registration. Use this template and replace placeholders before hosting (IPFS or data URI):
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "AGENT_NAME",
"description": "AGENT_DESCRIPTION",
"image": "https://example.com/agent-image.png",
"services": [
{
"name": "A2A",
"endpoint": "https://YOUR_DOMAIN/.well-known/agent-card.json",
"version": "0.3.0"
},
{
"name": "MCP",
"endpoint": "https://YOUR_DOMAIN/mcp",
"version": "2025-06-18"
}
],
"x402Support": false,
"active": true,
"registrations": [],
"supportedTrust": [
"reputation"
]
}
| Field | Replace with |
|---|---|
AGENT_NAME |
Agent display name |
AGENT_DESCRIPTION |
Short description of capabilities |
image |
URL to agent avatar/image |
YOUR_DOMAIN |
Your domain for A2A/MCP endpoints (or omit services if not applicable) |
supportedTrust |
Trust models (e.g. ["reputation"] for CEO Protocol) |
For a minimal CEO Protocol–only registration, you can omit services or set them to empty; supportedTrust: ["reputation"] is typical.
Automated Scripts (preferred)
The Docker image includes production-ready scripts at:
/opt/erc8004-scripts
Source in workspace:
/root/.openclaw/workspace/skills/8004-skill/scripts
Required env vars for script flow
MONAD_RPC_URLMONAD_CHAIN_ID=143(or pass--chainId)AGENT_PRIVATE_KEYPINATA_JWTPINATA_GATEWAY(recommended for verification fetch)
Script commands
# 1) Register on-chain with empty URI -> returns agentId
node /opt/erc8004-scripts/register.mjs --network monad-mainnet
# 2) Build card JSON with registrations[] embedded
node /opt/erc8004-scripts/build-card.mjs \
--network monad-mainnet \
--agentId 42 \
--template /root/.openclaw/workspace/skills/8004-skill/assets/registration-template.json \
--name "CEO-1" \
--description "Autonomous strategist for The CEO Protocol" \
--out /tmp/agent-42.json
# 3) Upload to Pinata -> returns ipfs://CID
node /opt/erc8004-scripts/upload-pinata.mjs --file /tmp/agent-42.json
# 4) Set token URI on-chain
node /opt/erc8004-scripts/set-agent-uri.mjs \
--network monad-mainnet \
--agentId 42 \
--uri ipfs://CID
# 5) Verify owner, tokenURI, wallet, and registrations[] match
node /opt/erc8004-scripts/verify.mjs --network monad-mainnet --agentId 42
One-shot command
node /opt/erc8004-scripts/full-register.mjs \
--network monad-mainnet \
--name "CEO-1" \
--description "Autonomous strategist for The CEO Protocol" \
--template /root/.openclaw/workspace/skills/8004-skill/assets/registration-template.json \
--outCard /tmp/agent-card.json \
--identityFile /root/.openclaw/workspace/AGENT_IDENTITY.md
This executes all 4 registration steps (register -> build car
Установить 8004-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 8004-skill?
Register and manage ERC-8004 Identity NFTs on Monad. Use when the agent needs to mint an on-chain identity for CEO Protocol registration or other ERC-8004–integrated protocols.
Как установить скилл 8004-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 8004-skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic