加密观察器

modbender2026-10-26查看 1750复制 66

监控加密钱包和 DeFi 仓位。发生变化时获取提醒。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md1967 chars
---
name: crypto-watcher
description: Monitor crypto wallets and DeFi positions. Get alerts when things change.
---

# crypto-watcher

Monitor crypto wallets and DeFi positions. Get alerts when things change.

## Features

- **Wallet tracking**: ETH + token balances across chains
- **DeFi positions**: LP positions, lending health, staking rewards
- **Gas alerts**: Notify when gas is cheap for transactions
- **Whale alerts**: Large transfers on watched tokens

## Usage

### Setup
```bash
# Add a wallet to watch
crypto-watcher add 0x1234...abcd --name "main" --chains eth,arb,base

# Configure alerts
crypto-watcher config --gas-alert 20 --balance-change 5%
```

### Commands
```bash
# Check all positions
crypto-watcher status

# Check specific wallet
crypto-watcher status main

# Gas prices
crypto-watcher gas

# DeFi positions (via DefiLlama)
crypto-watcher defi 0x1234...abcd
```

### Heartbeat Integration

Add to HEARTBEAT.md:
```markdown
### Crypto Check
- Run `crypto-watcher status --quiet` 
- Alert if any position health < 1.5 or balance dropped > 10%
- Check gas, alert if < 15 gwei (good time for L1 txs)
```

## Config

`~/.config/crypto-watcher/config.json`:
```json
{
  "wallets": [
    {
      "address": "0x...",
      "name": "main",
      "chains": ["eth", "arb", "base"]
    }
  ],
  "alerts": {
    "gasThreshold": 20,
    "balanceChangePercent": 5,
    "healthFactorMin": 1.5
  }
}
```

## Data Sources

- **Balances**: Public RPCs (no API key needed)
- **DeFi**: DefiLlama API (free)
- **Gas**: eth_gasPrice RPC call
- **Prices**: CoinGecko API (free tier)

## Chains Supported

| Chain | ID | RPC |
|-------|-----|-----|
| Ethereum | eth | https://eth.llamarpc.com |
| Arbitrum | arb | https://arb1.arbitrum.io/rpc |
| Base | base | https://mainnet.base.org |
| Optimism | op | https://mainnet.optimism.io |
| Polygon | matic | https://polygon-rpc.com |
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧