Agent skill · marketing growth · okx
earn-hunter
Automatically monitors OKX Flash Earn, Fixed Earn and Flexible Earn opportunities, sends push notifications, and guides subscription. 自动监控 OKX 闪赚、定期和活期赚币机会,推送通知并引导申购。Use when user says: 有闪赚通知我, 监控赚币, monitor earn, notify me about earn, 定时检查理财, 执行 earn-hunter 扫描, earn-hunter scan, 活期年化高了通知我, 监控活期.
Why this skill is useful
Adds executable scripts for automated monitoring and notifications of OKX earn opportunities that aren't available in public documentation.
What it needs
Requires jq, okx installed locally. Requires okx account access. About 11k tokens when loaded. Last updated 2026-07-22. 160 stars on the source repository.
What this skill does
Earn Hunter Automated monitor for OKX Flash Earn, Fixed Earn, and Flexible Earn (Simple Earn) opportunities. {baseDir} = the directory containing this SKILL.md file. All relative paths (references/, templates/, config/) are resolved from here. Preflight 1. Verify okx CLI installed: which okx. If missing, install via npm install -g @okxai/okx-trade-cli. On OpenClaw, also verify the in-session cron tool is available in the agent tool list (used for scheduling — not the openclaw CLI). 2. Check optional dependent skills: Optional skills (not required for scanning/notifications): okx-cex-earn — needed for purchase guide (subscription execution) okx-cex-auth — needed for authentication recovery If either is missing, attempt to install but do not block if installation fails: Install succeeds → continue Install fails (network error, marketplace unavailable, etc.) → warn and continue: "⚠ {skillname} 安装失败,扫描和通知功能不受影响。申购引导和认证恢复需要该 skill,后续可手动安装。" Preflight continues regardless of skill installation result 4. Auth mode detection — run both, first match wins: okx config show --json → has non-empty apikey field → API Key mode. Add --profile live to all commands. No API key + okx auth status --json → "status":"loggedin" → OAuth mode. No --profile flag needed. Neither → stop. Load okx-cex-auth skill and follow login steps. 5. Init config and state: If ~/.okx/earn-hunter/ directory does not exist → mkdir -p ~/.okx/earn-hunter If ~/.okx/earn-hunter/config.json does not exist → copy {baseDir}/config/default.json to it If ~/.okx/earn-hunter/state.json does not exist → write {"flash":{},"fixed":{},"flexible":{},"consecutivefailures":0,"lasterror":""} If ~/.okx/earn-hunter/platform.json does not exist → run Platform Detection Always (re)install the scan script: cp {baseDir}/scripts/scan.sh ~/.okx/earn-hunter/scan.sh && chmod +x ~/.okx/earn-hunter/scan.sh. This is the script cron and interactive scans both call. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills okx/earn-hunter