ERC-8004 Reputation Skill
Interact with the ERC-8004 Reputation Registry — the decentralized reputation layer for AI agents.
Use This When...
- - "Check an agent's reputation"
- "Rate this agent"
- "Give feedback to agent X"
- "What's my agent's reputation?"
- "Who gave feedback to my agent?"
- "Show me the reputation leaderboard"
- "Top agents by reputation"
- "Revoke my feedback"
Commands
lookup
Look up an agent's reputation summary.
CODEBLOCK0
Shows: reviewer count, feedback count, summary value, individual feedback.
give
Give feedback to an agent.
CODEBLOCK1
Examples:
CODEBLOCK2
my-rep
Check your agent's reputation across all chains.
CODEBLOCK3
clients
List all addresses that gave feedback.
CODEBLOCK4
feedback
Read a specific feedback entry.
CODEBLOCK5
revoke
Revoke feedback you previously gave.
CODEBLOCK6
leaderboard
Show top agents by reputation score.
CODEBLOCK7
Fetches from Agentscan API and displays top agents with scores and star ratings.
Cross-Skill Workflows
Post-Registration Reputation Building
CODEBLOCK8
Before Interacting with an Agent
CODEBLOCK9
Reputation Monitoring
CODEBLOCK10
Heartbeat Integration
Monitor reputation changes in automated pipelines:
CODEBLOCK11
Configuration
Wallet (required for write operations)
CODEBLOCK12
Read operations (lookup, my-rep, clients, feedback, leaderboard) don't need a wallet.
Supported Chains
| Chain | ID | Default | Gas Cost |
|---|
| Base | 8453 | Yes | ~$0.001 |
| Ethereum |
1 | | ~$1-10 |
| Polygon | 137 | | ~$0.01 |
| Monad | 143 | | ~$0.001 |
| BNB | 56 | | ~$0.05 |
Base is recommended — cheapest gas by far.
Contract Addresses
Same on all chains:
- - Identity Registry: INLINECODE0
- Reputation Registry: INLINECODE1
Dependencies
CODEBLOCK13
Related Skills
- - erc8004-register: Register and manage agents on-chain
- erc8004-discover: Find and monitor agents
ERC-8004 声誉技能
与ERC-8004声誉注册表交互——AI代理的去中心化声誉层。
使用场景...
- - 检查某个代理的声誉
- 评价这个代理
- 给代理X提供反馈
- 我的代理声誉如何?
- 谁给我的代理提供了反馈?
- 显示声誉排行榜
- 按声誉排名最高的代理
- 撤销我的反馈
命令
lookup
查询代理的声誉摘要。
bash
python scripts/reputation.py lookup [--chain CHAIN]
显示:评价者数量、反馈数量、摘要值、单个反馈。
give
向代理提供反馈。
bash
python scripts/reputation.py give [--decimals N] [--tag1 TAG] [--tag2 TAG] [--chain CHAIN]
示例:
bash
简单评分(0-100)
python scripts/reputation.py give 16700 85 --tag1 reliable
带小数的百分比(99.77%)
python scripts/reputation.py give 16700 9977 --decimals 2 --tag1 uptime
my-rep
检查你的代理在所有链上的声誉。
bash
python scripts/reputation.py my-rep [--chains base,ethereum,polygon]
clients
列出所有提供反馈的地址。
bash
python scripts/reputation.py clients [--chain CHAIN]
feedback
读取特定的反馈条目。
bash
python scripts/reputation.py feedback [--chain CHAIN]
revoke
撤销你之前提供的反馈。
bash
python scripts/reputation.py revoke [--chain CHAIN]
leaderboard
按声誉分数显示排名最高的代理。
bash
python scripts/reputation.py leaderboard [--chain CHAIN] [--limit 20]
从Agentscan API获取数据,显示排名最高的代理及其分数和星级评分。
跨技能工作流
注册后建立声誉
bash
1. 注册你的代理(来自 erc8004-register 技能)
python scripts/register.py register --name MyBot --description ...
2. 验证注册
python scripts/register.py validate 42
3. 检查初始声誉(应为空)
python scripts/reputation.py lookup 42
4. 与客户交互后,检查声誉增长
python scripts/reputation.py my-rep 42
与代理交互前
bash
1. 查找代理(来自 erc8004-discover 技能)
python scripts/discover.py search oracle
2. 获取详细信息
python scripts/discover.py info 0x1234...
3. 检查他们的声誉
python scripts/reputation.py lookup 42 --chain base
4. 如果满意,交互后提供反馈
python scripts/reputation.py give 42 85 --tag1 reliable --tag2 accurate
声誉监控
bash
定期检查你的声誉
python scripts/reputation.py my-rep 42
查看谁在提供反馈
python scripts/reputation.py clients 42 --chain base
读取特定反馈
python scripts/reputation.py feedback 42 0xABC... 1 --chain base
心跳集成
在自动化流程中监控声誉变化:
bash
Cron:每日检查声誉
0 9
* python scripts/reputation.py my-rep 42 >> /var/log/rep-monitor.log 2>&1
在监控脚本中:
#!/bin/bash
获取当前反馈数量
count=$(python scripts/reputation.py lookup 42 2>&1 | grep Feedback count: | awk {print $3})
last_count=$(cat /tmp/rep-count-42.txt 2>/dev/null || echo 0)
if [ $count != $last_count ]; then
echo 收到新反馈!数量:$count | notify-send
echo $count > /tmp/rep-count-42.txt
fi
配置
钱包(写操作必需)
bash
export ERC8004_MNEMONIC=你的十二词助记词短语
或者
export ERC8004
PRIVATEKEY=0xabc123...
读操作(lookup、my-rep、clients、feedback、leaderboard)不需要钱包。
支持的链
| 链 | ID | 默认 | Gas费用 |
|---|
| Base | 8453 | 是 | ~$0.001 |
| Ethereum |
1 | | ~$1-10 |
| Polygon | 137 | | ~$0.01 |
| Monad | 143 | | ~$0.001 |
| BNB | 56 | | ~$0.05 |
推荐使用Base——目前Gas费用最低。
合约地址
所有链上相同:
- - 身份注册表:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
- 声誉注册表:0x8004BAa17C55a88189AE136b182e5fdA19dE9b63
依赖项
bash
pip install web3 eth-account
相关技能
- - erc8004-register:在链上注册和管理代理
- erc8004-discover:查找和监控代理