Agent Skills
› NeverSight/learn-skills.dev
› add-events
add-events
GitHub从区块浏览器URL或链ID及合约地址解析信息,运行脚本将缺失的ABI事件添加到eventDb,执行代码修复并报告添加结果。
Trigger Scenarios
用户希望从区块浏览器(如Etherscan)添加事件解码所需的ABI事件
用户提供链ID和合约地址以获取事件数据
Install
npx skills add NeverSight/learn-skills.dev --skill add-events -g -y
SKILL.md
Frontmatter
{
"name": "add-events",
"description": "Adds new events to the eventDb"
}
Add Events from Explorer
Adds missing ABI events from a verified contract to the event database.
Trigger
When the user wants to add events from a block explorer URL (e.g. etherscan, polygonscan, etc.) or provides a chain ID + contract address for event decoding.
Instructions
-
Parse the input to extract the chain ID and contract address:
- If given an explorer URL like
https://etherscan.io/address/0x..., extract the address and infer chain ID from the domain:etherscan.io→ chain 1polygonscan.com→ chain 137arbiscan.io→ chain 42161optimistic.etherscan.io→ chain 10basescan.org→ chain 8453snowscan.xyzorsnowtrace.io→ chain 43114bscscan.com→ chain 56gnosisscan.io→ chain 100scrollscan.com→ chain 534352era.zksync.network→ chain 324lineascan.build→ chain 59144- For other explorers, ask the user for the chain ID
- If given a chain ID and address directly, use those
- Strip any URL fragments (e.g.
#code) and query parameters
- If given an explorer URL like
-
Run the script:
cd /Volumes/sensitive/BGD/aave-helpers/packages/aave-helpers-js && npx tsx scripts/add-events.ts <chainId> <address> -
Run lint fix:
cd /Volumes/sensitive/BGD/aave-helpers && npm run lint:fix -
Report the results to the user (how many events were added, which ones).
Version History
- e0220ca Current 2026-07-05 22:14


