DeFi Monitor
DeFi Monitor queries tracked liquidity pools, lending protocols, and staking positions via RPC calls to monitor health metrics like TVL, yield rates, and liquidation risk. Use this skill to receive alerts when yields shift significantly, pool liquidity drops substantially, or positions approach danger thresholds, with findings logged to track protocol changes over time.
git clone --depth 1 https://github.com/aaronjmars/aeon /tmp/defi-monitor && cp -r /tmp/defi-monitor/skills/defi-monitor ~/.claude/skills/defi-monitorSKILL.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.
```yaml
# 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:
1. 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
2. Compare current values against last logged values.
3. Flag anything noteworthy:
- Yield rate change > 20%
- Pool TVL drop > 10%
- Position approaching liquidation
- Impermanent loss exceeding threshold
4. Format and send via `./notify`:
```
*DeFi Monitor — ${today}*
*Pool/Protocol Label* (chain)
TVL: $X | APR: Y%
Your position: details
Change since last check: summary
```
5. Log findings to memory/logs/${today}.md.
## Sandbox note
The sandbox may block outbound curl. Use **WebFetch** as a fallback for any URL fetch. For auth-required APIs, use the pre-fetch/post-process pattern (see CLAUDE.md).
If no DeFi positions configured, log "DEFI_MONITOR_OK" and end.Mention/keyword sweep on social platforms for [REPLACE: KEYWORDS] — trends, sentiment, top posts
5 concrete real-life actions, leverage-scored against open loops with specificity and anti-fluff gates
Curated AI-agent tweets, clustered into narratives with insight summaries
Tracker of AI agent substitution signals — which roles, companies, and industries show real headcount displacement. Named roles + real deployments only.
Competitive-intelligence digest on the AI agent framework space — momentum, releases, breaking changes across a curated watchlist
Cross-domain market pulse from AIXBT's free grounding endpoint — crypto, macro, tradfi, geopolitics. Refreshes taxonomy references (clusters, chains) as a bonus.
Pre-batch API provider health check — detects credit exhaustion or auth failure for every configured provider key before the scheduled batch runs, giving the operator a window to act before skills degrade
List a wallet's live ERC-20 token approvals on Base and flag unlimited / risky spender grants. Keyless via Base RPC (eth_getLogs + eth_call) — no explorer key needed.