Agent skill
DeFi Monitor
Check pool health, positions, and yield rates for tracked protocols
Install this agent skill to your Project
npx add-skill https://github.com/aaronjmars/aeon/tree/main/skills/defi-monitor
SKILL.md
${var} — Position label to check. If empty, checks all watched positions.
If ${var} is set, only check the position with that label.
Config
This skill reads watched contracts and positions from memory/on-chain-watches.yml. If the file doesn't exist yet, create it or skip this skill.
# memory/on-chain-watches.yml
watches:
- label: My Wallet
address: "0x1234...abcd"
chain: ethereum
rpc_url: https://eth.llamarpc.com
type: wallet
threshold: 0.1 # ETH — alert on balance changes above this
- label: Uniswap Pool
address: "0xabcd...5678"
chain: ethereum
rpc_url: https://eth.llamarpc.com
type: contract
Read memory/MEMORY.md and memory/on-chain-watches.yml for watched contracts and positions. Read the last 2 days of memory/logs/ to track changes over time.
Steps:
- For each DeFi position in on-chain-watches.yml (type: pool or position):
- Query the contract for current state using eth_call:
bash
# Example: read slot0 from a Uniswap-style pool curl -s -X POST "${rpc_url}" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"'"$address"'","data":"'"$calldata"'"},"latest"],"id":1}' - For known protocols, query standard view functions:
- Liquidity pools: totalSupply, reserves, current tick/price
- Lending: supplyRate, borrowRate, utilization
- Staking: earned rewards, APR
- Query the contract for current state using eth_call:
- Compare current values against last logged values.
- Flag anything noteworthy:
- Yield rate change > 20%
- Pool TVL drop > 10%
- Position approaching liquidation
- Impermanent loss exceeding threshold
- Format and send via
./notify:*DeFi Monitor — ${today}* *Pool/Protocol Label* (chain) TVL: $X | APR: Y% Your position: details Change since last check: summary - Log findings to memory/logs/${today}.md. If no DeFi positions configured, log "DEFI_MONITOR_OK" and end.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Polymarket
Trending and top markets on Polymarket — volume, new markets, biggest movers
Daily Article
Research trending topics and write a publication-ready article
Skill Evals
Evaluate skill output quality against assertion manifests — detects regressions before users notice
Monitor Polymarket
Monitor specific prediction markets for 24h price moves, volume changes, and fresh comments
Self Review
Weekly audit of what Aeon did, what failed, and what to improve
push-recap
Daily deep-dive recap of all pushes — reads diffs, explains what changed and why
Didn't find tool you were looking for?