Crypto Defi
by @xueyetianya
Calculate DeFi yields including APY, impermanent loss, and staking rewards. Use when estimating returns, comparing protocols, tracking farming.
clawhub install crypto-defiπ About This Skill
version: "2.0.0" name: DeFi Calculator description: "Calculate DeFi yields including APY, impermanent loss, and staking rewards. Use when estimating returns, comparing protocols, tracking farming." author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills
Crypto DeFi
A comprehensive crypto toolkit for tracking DeFi positions, managing portfolios, monitoring prices, watching whale activity, and analyzing market data. Crypto DeFi provides 16+ commands for recording and reviewing crypto-related observations with timestamped logs and multi-format data export.
Commands
| Command | Description |
|---------|-------------|
| crypto-defi track | Record a tracking entry (token, protocol, position) β run without args to view recent entries |
| crypto-defi portfolio | Log a portfolio update or snapshot β run without args to view recent portfolio entries |
| crypto-defi alert | Record a price or event alert β run without args to view recent alerts |
| crypto-defi price | Log a price observation β run without args to view recent price entries |
| crypto-defi compare | Record a protocol or token comparison β run without args to view recent comparisons |
| crypto-defi history | Log a historical note β run without args to view recent history entries |
| crypto-defi gas | Record gas fee data β run without args to view recent gas entries |
| crypto-defi whale-watch | Log whale activity observations β run without args to view recent whale-watch entries |
| crypto-defi report | Record a report entry β run without args to view recent reports |
| crypto-defi watchlist | Add to or view the watchlist β run without args to view recent watchlist entries |
| crypto-defi analyze | Log an analysis note β run without args to view recent analysis entries |
| crypto-defi export | Record an export event β run without args to view recent export entries |
| crypto-defi stats | Display summary statistics across all log categories |
| crypto-defi search | Search across all log files for a keyword |
| crypto-defi recent | Show the 20 most recent activity entries from the history log |
| crypto-defi status | Health check β shows version, data directory, entry count, disk usage |
| crypto-defi help | Display available commands and usage information |
| crypto-defi version | Print current version (v2.0.0) |
Each data command (track, portfolio, alert, etc.) works in two modes:
Data Storage
All data is stored locally in plain-text log files:
~/.local/share/crypto-defi/YYYY-MM-DD HH:MM| in per-category .log fileshistory.log with timestampsstats command aggregates entry counts and disk usage across all categoriesRequirements
set -euo pipefail)date, wc, du, head, tail, grep, basename, catWhen to Use
1. DeFi position tracking β Record yield farming positions, staking entries, and liquidity pool allocations with timestamps for historical review
2. Portfolio management β Log portfolio snapshots, token balances, and allocation changes to maintain a running record of your holdings
3. Whale activity monitoring β Use whale-watch to record large transaction observations and spot market-moving activity patterns
4. Gas fee tracking β Log gas fee observations over time to identify optimal transaction windows and track network congestion trends
5. Multi-protocol comparison β Use compare and analyze to record side-by-side protocol evaluations and store your analysis notes
Examples
# Track a new DeFi position
crypto-defi track "Uniswap V3 ETH/USDC 0.3% pool β 5 ETH deposited"Log current portfolio state
crypto-defi portfolio "BTC: 0.5, ETH: 10, SOL: 200 β total ~$45k"Record a price alert trigger
crypto-defi alert "ETH crossed $4000 resistance level"Log gas fee observation
crypto-defi gas "Ethereum mainnet base fee 25 gwei β good time for swaps"Record whale activity
crypto-defi whale-watch "0xdead... moved 10,000 ETH to Binance deposit address"View summary statistics across all categories
crypto-defi statsSearch for all entries mentioning a specific protocol
crypto-defi search "Uniswap"Quick health check
crypto-defi status
Configuration
Set DATA_DIR by modifying the script or symlinking ~/.local/share/crypto-defi/ to your preferred location.
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*
β‘ When to Use
π‘ Examples
# Track a new DeFi position
crypto-defi track "Uniswap V3 ETH/USDC 0.3% pool β 5 ETH deposited"Log current portfolio state
crypto-defi portfolio "BTC: 0.5, ETH: 10, SOL: 200 β total ~$45k"Record a price alert trigger
crypto-defi alert "ETH crossed $4000 resistance level"Log gas fee observation
crypto-defi gas "Ethereum mainnet base fee 25 gwei β good time for swaps"Record whale activity
crypto-defi whale-watch "0xdead... moved 10,000 ETH to Binance deposit address"View summary statistics across all categories
crypto-defi statsSearch for all entries mentioning a specific protocol
crypto-defi search "Uniswap"Quick health check
crypto-defi status
βοΈ Configuration
Set DATA_DIR by modifying the script or symlinking ~/.local/share/crypto-defi/ to your preferred location.
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*