← 返回 Skills 市场
xueyetianya

Crypto Defi

作者 bytesagain4 · GitHub ↗ · v2.4.9 · MIT-0
cross-platform ✓ 安全检测通过
541
总下载
0
收藏
3
当前安装
16
版本数
在 OpenClaw 中安装
/install crypto-defi
功能描述
Calculate DeFi yields including APY, impermanent loss, and staking rewards. Use when estimating returns, comparing protocols, tracking farming.
使用说明 (SKILL.md)

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 \x3Cinput> Record a tracking entry (token, protocol, position) — run without args to view recent entries
crypto-defi portfolio \x3Cinput> Log a portfolio update or snapshot — run without args to view recent portfolio entries
crypto-defi alert \x3Cinput> Record a price or event alert — run without args to view recent alerts
crypto-defi price \x3Cinput> Log a price observation — run without args to view recent price entries
crypto-defi compare \x3Cinput> Record a protocol or token comparison — run without args to view recent comparisons
crypto-defi history \x3Cinput> Log a historical note — run without args to view recent history entries
crypto-defi gas \x3Cinput> Record gas fee data — run without args to view recent gas entries
crypto-defi whale-watch \x3Cinput> Log whale activity observations — run without args to view recent whale-watch entries
crypto-defi report \x3Cinput> Record a report entry — run without args to view recent reports
crypto-defi watchlist \x3Cinput> Add to or view the watchlist — run without args to view recent watchlist entries
crypto-defi analyze \x3Cinput> Log an analysis note — run without args to view recent analysis entries
crypto-defi export \x3Cinput> 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 \x3Cterm> 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:

  • With arguments: Records the input with a timestamp into its dedicated log file
  • Without arguments: Displays the 20 most recent entries from that category

Data Storage

All data is stored locally in plain-text log files:

  • Location: ~/.local/share/crypto-defi/
  • Format: Each entry is saved as YYYY-MM-DD HH:MM|\x3Cvalue> in per-category .log files
  • History: All operations are additionally logged to history.log with timestamps
  • Stats: The stats command aggregates entry counts and disk usage across all categories
  • No cloud sync — everything stays on your machine, no API keys needed

Requirements

  • Bash 4.0+ (uses set -euo pipefail)
  • Standard Unix utilities: date, wc, du, head, tail, grep, basename, cat
  • No external dependencies, no API keys, no network access required
  • Works on Linux and macOS

When 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 stats

# Search 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 | [email protected]

安全使用建议
This skill appears to do what it says: it stores logs locally in plain-text under ~/.local/share/crypto-defi and does not use network access or request secrets. Before installing, review the script if you plan to store sensitive information — do NOT store private keys, seed phrases, or passwords in these logs. Consider setting restrictive file permissions on the data dir, and be aware exports (JSON/csv/txt) may not escape user input safely (malformed entries could break the export). If you need encrypted storage, modify the script or keep sensitive data out of the logs.
功能分析
Type: OpenClaw Skill Name: crypto-defi Version: 2.4.9 The skill is a local logging utility for recording crypto-related observations (e.g., portfolio snapshots, gas fees, whale activity) into plain-text files in `~/.local/share/crypto-defi/`. While there is a functional discrepancy between the `SKILL.md` description (claiming to be a calculator) and the implementation in `scripts/script.sh` (which only performs text logging and searching), the code contains no network calls, no credential access, and no execution of arbitrary user input. A minor logic bug exists where a duplicate case for the 'export' command prevents the actual data export function from being reached.
能力评估
Purpose & Capability
The name/description (DeFi yields, tracking, comparing) matches the provided CLI and script: commands to record, view, search, export, and show stats. No unrelated cloud or system-level capabilities are requested.
Instruction Scope
SKILL.md and the script operate only on local files in a single data directory and standard Unix utilities. Instructions do not ask the agent to read unrelated system files, credentials, or contact external endpoints.
Install Mechanism
No install spec; just an instruction script file. Nothing is downloaded or written outside the user's home data directory, so install risk is minimal.
Credentials
No required environment variables or credentials are declared or used. The script relies only on HOME for the data directory, which is expected for a local CLI tool.
Persistence & Privilege
The skill does not request always:true or modify other skills/configs. It creates and uses its own data directory only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install crypto-defi
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /crypto-defi 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.4.9
update
v2.4.8
v2.5 standard: Use-when desc, homepage, source, security fix
v2.4.7
retry-fix-token
v2.4.6
old template -> domain-specific v2.0.0
v2.4.5
Quality upgrade
v2.4.4
Quality upgrade: custom functionality
v2.4.3
De-template, unique content, script cleanup
v2.4.2
Quality fix: cleaner docs, removed flags
v2.4.1
Quality improvement: better docs, examples, cleaner text
v2.4.0
Fixed: aligned documentation with implementation, added missing commands
v2.3.0
Quality fixes: aligned docs with implementation
v2.2.0
Enhanced descriptions for better AI triggering
v1.0.2
Runtime fix
v2.0.0
Complete rewrite with real functionality
v1.0.1
map
v1.0.0
DeFi Calculator 1.0.0 – Initial Release - Calculate DeFi returns: APY, impermanent loss, yield farming, staking, and gas fees. - Includes protocol comparison tools. - Designed for Chinese users and market context. - Practical, easy-to-use commands for multiple DeFi scenarios.
元数据
Slug crypto-defi
版本 2.4.9
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 16
常见问题

Crypto Defi 是什么?

Calculate DeFi yields including APY, impermanent loss, and staking rewards. Use when estimating returns, comparing protocols, tracking farming. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 541 次。

如何安装 Crypto Defi?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install crypto-defi」即可一键安装,无需额外配置。

Crypto Defi 是免费的吗?

是的,Crypto Defi 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Crypto Defi 支持哪些平台?

Crypto Defi 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Crypto Defi?

由 bytesagain4(@xueyetianya)开发并维护,当前版本 v2.4.9。

💬 留言讨论