earn-hunter
БесплатноЗапускает вложенные скриптыНе проверенAutomatically monitors OKX Flash Earn, Fixed Earn and Flexible Earn opportunities, sends push notifications, and guides subscription. 自动监控 OKX…
Об этом скилле
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
Verify
okxCLI installed:which okx. If missing, install vianpm install -g @okx_ai/okx-trade-cli. On OpenClaw, also verify the in-sessioncrontool is available in the agent tool list (used for scheduling — not theopenclawCLI).Check optional dependent skills:
okx skill list --jsonOptional 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:
okx skill add okx-cex-earn okx skill add okx-cex-auth- Install succeeds → continue
- Install fails (network error, marketplace unavailable, etc.) → warn and continue:
"⚠
{skill_name}安装失败,扫描和通知功能不受影响。申购引导和认证恢复需要该 skill,后续可手动安装。" - Preflight continues regardless of skill installation result
Auth mode detection — run both, first match wins:
okx config show --json→ has non-emptyapi_keyfield → API Key mode. Add--profile liveto all commands.- No API key +
okx auth status --json→"status":"logged_in"→ OAuth mode. No--profileflag needed. - Neither → stop. Load
okx-cex-authskill and follow login steps.
Init config and state:
- If
~/.okx/earn-hunter/directory does not exist →mkdir -p ~/.okx/earn-hunter - If
~/.okx/earn-hunter/config.jsondoes not exist → copy{baseDir}/config/default.jsonto it - If
~/.okx/earn-hunter/state.jsondoes not exist → write{"flash":{},"fixed":{},"flexible":{},"consecutive_failures":0,"last_error":""} - If
~/.okx/earn-hunter/platform.jsondoes 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. - Write
~/.okx/earn-hunter/env.snapshotwith resolved tool paths (cron cannot rely on the user's login PATH):
The scan script sources this file to resolve tool paths even under cron's minimalcat > ~/.okx/earn-hunter/env.snapshot << SNAP # auto-generated by earn-hunter activation — $(date -Iseconds) OKX_BIN=$(command -v okx) NODE_BIN=$(command -v node) JQ_BIN=$(command -v jq) ACTIVATION_PATH=$PATH SNAPPATH=/usr/bin:/bin.
Config/state/platform JSON read-write done by the agent is only for activation/config management. The recurring scan itself is performed entirely by
scripts/scan.sh(shell + jq) —jqis required for scanning. Verify withwhich jq; if missing, install (brew install jq/apt-get install jq).- If
Platform & Channel Detection
Three independent dimensions: platform (where the agent runs), scheduler (what triggers scans), notification channel (where alerts go).
Platform Detection (active probe + user confirmation)
First run (no platform.json exists):
- Probe environment clues:
OPENCLAW_HOMEenv var exists? → hint: OpenClaw- Agent tool list contains
cron/deliverytools? → hint: OpenClaw HERMES_HOMEenv var exists orwhich hermessucceeds? → hint: Hermes Agent- Running inside Claude Code session? → hint: Claude Code
- None of the above matched → hint: Generic
- Present detection result and ask user to confirm:
- "检测到你正在使用 {detected_platform},是否正确?"
- User confirms → proceed
- User says no → ask: "你使用的是哪个平台?1) OpenClaw 2) Claude Code 3) Hermes Agent 4) 其他"
- Initialize platform config:
- OpenClaw / Claude Code → copy
{baseDir}/config/<confirmed_platform>.default.jsonto~/.okx/earn-hunter/platform.json - Hermes Agent → copy
{baseDir}/config/claude-code.default.jsonas base, set.platformto"hermes",.scheduler.typeto"cron" - Generic → copy
{baseDir}/config/claude-code.default.jsonas base, set.platformto"generic",.scheduler.typeto"manual"
- OpenClaw / Claude Code → copy
- Result written to
~/.okx/earn-hunter/platform.json, subsequent runs skip detection.
Subsequent runs (platform.json exists):
Read ~/.okx/earn-hunter/platform.json and extract the .platform field (returns "openclaw", "claude-code", "hermes", or "generic").
No scheduler available on detected platform (only applies to platforms that should have one but don't) → error: "当前客户端不支持定时任务,请升级到最新版本。" Generic platform → no automatic scheduler. Inform: "当前平台不支持自动调度,你可以手动说'执行 earn-hunter 扫描'来触发。"
Configuration Files
| File | Scope | Content |
|---|---|---|
config.json |
Shared | Scan scope (flash/fixed/fle |
Установить earn-hunter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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, 活期年化高了通知我, 监控活期.
Как установить скилл earn-hunter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл earn-hunter запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub