eigen-skills
npx skills add https://github.com/zeeshan8281/eigen-skills --skill eigen-skills
Agent 安装分布
Skill 文档
EigenLayer Skills for Claude Code
One-command integration: drop this file into your project and Claude Code can query live EigenLayer data.
Setup
curl -o SKILL.md https://raw.githubusercontent.com/zeeshan8281/eigen-agent-skills/main/SKILL.md
Get a free API key at https://developer.eigenexplorer.com and set it:
export EIGEN_API_KEY="your-key-here"
Data Source
EigenExplorer API â https://api.eigenexplorer.com
- Auth:
x-api-tokenheader - Testnet:
https://api-holesky.eigenexplorer.com
1. Ecosystem Metrics
Use when the user asks about EigenLayer stats, total TVL, total stakers, total operators, or an ecosystem overview.
Get ecosystem metrics
curl -s "https://api.eigenexplorer.com/metrics" -H "x-api-token: $EIGEN_API_KEY"
Get historical TVL
curl -s "https://api.eigenexplorer.com/metrics/historical/tvl" -H "x-api-token: $EIGEN_API_KEY"
2. Operators
Use when the user asks about EigenLayer operators, top operators, operator details, or operator search.
List operators (sorted by staker count)
curl -s "https://api.eigenexplorer.com/operators?withTvl=true&sortByTotalStakers=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"
List operators by TVL
curl -s "https://api.eigenexplorer.com/operators?withTvl=true&sortByTvl=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"
List operators by APY
curl -s "https://api.eigenexplorer.com/operators?withTvl=true&sortByApy=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"
Search operators by name
curl -s "https://api.eigenexplorer.com/operators?searchByText=NAME&withTvl=true" -H "x-api-token: $EIGEN_API_KEY"
Get a specific operator
curl -s "https://api.eigenexplorer.com/operators/0xOPERATOR_ADDRESS?withTvl=true" -H "x-api-token: $EIGEN_API_KEY"
Get stakers delegating to an operator
curl -s "https://api.eigenexplorer.com/operators/0xOPERATOR_ADDRESS/stakers?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get all operator addresses (lightweight)
curl -s "https://api.eigenexplorer.com/operators/addresses" -H "x-api-token: $EIGEN_API_KEY"
3. Stakers
Use when the user asks about a specific staker’s position, deposits, withdrawals, or delegation.
Get staker info
curl -s "https://api.eigenexplorer.com/stakers/0xSTAKER_ADDRESS" -H "x-api-token: $EIGEN_API_KEY"
Get staker deposits
curl -s "https://api.eigenexplorer.com/stakers/0xSTAKER_ADDRESS/deposits?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get staker withdrawals
curl -s "https://api.eigenexplorer.com/stakers/0xSTAKER_ADDRESS/withdrawals?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get staker rewards
curl -s "https://api.eigenexplorer.com/stakers/0xSTAKER_ADDRESS/rewards" -H "x-api-token: $EIGEN_API_KEY"
4. AVS (Actively Validated Services)
Use when the user asks about AVS, which services exist, operators/stakers per AVS, or comparing AVS.
List all AVS (sorted by TVL)
curl -s "https://api.eigenexplorer.com/avs?withTvl=true&sortByTvl=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"
List AVS by APY
curl -s "https://api.eigenexplorer.com/avs?withTvl=true&sortByApy=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"
Search AVS by name
curl -s "https://api.eigenexplorer.com/avs?searchByText=NAME&withTvl=true" -H "x-api-token: $EIGEN_API_KEY"
Get a specific AVS
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS?withTvl=true" -H "x-api-token: $EIGEN_API_KEY"
Get operators registered to an AVS
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/operators?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get stakers for an AVS
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/stakers?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get rewards distributed by an AVS
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/rewards" -H "x-api-token: $EIGEN_API_KEY"
Get registration events for an AVS
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/events/registration?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get operator-sets for an AVS
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/operator-sets?take=20" -H "x-api-token: $EIGEN_API_KEY"
5. Rewards & Yield
Use when the user asks about rewards, APY, yield, best operators/AVS by returns, or how much a staker is earning.
Top operators by APY
curl -s "https://api.eigenexplorer.com/operators?withTvl=true&sortByApy=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"
Top AVS by APY
curl -s "https://api.eigenexplorer.com/avs?withTvl=true&sortByApy=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"
Get rewards for a specific operator
curl -s "https://api.eigenexplorer.com/operators/0xOPERATOR_ADDRESS/rewards" -H "x-api-token: $EIGEN_API_KEY"
6. Deposits & Withdrawals (Global)
Use when the user asks about recent deposits/withdrawals across the whole protocol.
Get recent deposits
curl -s "https://api.eigenexplorer.com/deposits?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get recent withdrawals
curl -s "https://api.eigenexplorer.com/withdrawals?take=20" -H "x-api-token: $EIGEN_API_KEY"
7. Delegation & Events
Use when the user asks about delegation events, who is delegating to whom, or operator registration events.
Get delegation events
curl -s "https://api.eigenexplorer.com/events/delegation?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get operator registration events
curl -s "https://api.eigenexplorer.com/events/registration-status?take=20" -H "x-api-token: $EIGEN_API_KEY"
Get all operator-sets
curl -s "https://api.eigenexplorer.com/operator-sets?take=20" -H "x-api-token: $EIGEN_API_KEY"
8. EigenCompute (TEE)
Use when the user asks about deploying to EigenCompute, TEE, EigenCloud, attestation, or app management.
Requires: npm install -g @layr-labs/ecloud-cli
Authentication
ecloud auth login
ecloud auth whoami
Deploy an app
ecloud compute app create --name my-app --language typescript
ecloud compute app deploy
Always use “Build and deploy from Dockerfile” â deploy from registry is unreliable.
Manage apps
ecloud compute app list
ecloud compute app info <APP_ID>
ecloud compute app logs <APP_ID>
ecloud compute app start <APP_ID>
ecloud compute app stop <APP_ID>
ecloud compute app terminate <APP_ID>
ecloud compute app upgrade <APP_ID>
Set sealed secrets
ecloud compute app env set MY_SECRET="value" API_KEY="key"
TEE attestation
Inside the TEE, the KMS signing key is at /usr/local/bin/kms-signing-public-key.pem. Verify at https://verify-sepolia.eigencloud.xyz.
9. EigenDA (Data Availability)
Use when the user asks about storing/retrieving data on EigenDA, blob storage, or data availability.
Requires: EigenDA Proxy running locally:
docker run -d --name eigenda-proxy -p 3100:3100 \
ghcr.io/layr-labs/eigenda-proxy:latest \
--eigenda.disperser-rpc=disperser-sepolia.eigenda.xyz:443 \
--eigenda.service-manager-addr=0xD4A7E1Bd8015057293f0D0A557088c286942e84b \
--eigenda.eth-rpc=YOUR_SEPOLIA_RPC_URL \
--eigenda.status-query-timeout=45s \
--eigenda.signer-private-key-hex=YOUR_PRIVATE_KEY \
--memstore.enabled=false --eigenda.disable-tls=false
Store a blob
curl -s -X POST "http://127.0.0.1:3100/put?commitment_mode=standard" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'
Retrieve a blob
curl -s "http://127.0.0.1:3100/get/COMMITMENT_HASH?commitment_mode=standard"
Health check
curl -s "http://127.0.0.1:3100/health"
View blob on explorer
https://blobs-sepolia.eigenda.xyz/blobs/COMMITMENT_HASH
Query Parameters Reference
| Parameter | Used On | Values | Description |
|---|---|---|---|
withTvl |
operators, avs | true/false |
Include TVL calculations |
sortByTvl |
operators, avs | asc/desc |
Sort by TVL |
sortByApy |
operators, avs | asc/desc |
Sort by APY |
sortByTotalStakers |
operators, avs | asc/desc |
Sort by staker count |
sortByTotalAvs |
operators | asc/desc |
Sort by AVS count |
searchByText |
operators, avs | string | Case-insensitive name search |
skip |
all list endpoints | number | Pagination offset (default: 0) |
take |
all list endpoints | number | Results per page (default: 12) |
Response Formatting
When presenting results to users:
- Bold names and abbreviate addresses (
0x1234...abcd) - TVL in human-readable form (“$1.2B” not “1200000000”)
- APY as percentages (“4.2% APY”)
- Show staker counts and operator counts
- Use bullet points, not tables
- Flag high APY + low TVL as potentially risky