Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/okx/agent-trade-kit/earn-hunternpx skills add okx/agent-trade-kit --skill earn-huntergit clone --depth 1 https://github.com/okx/agent-trade-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/okx/agent-trade-kit/earn-hunter)<a href="https://agentmods.dev/skills/okx/agent-trade-kit/earn-hunter"><img src="https://agentmods.dev/badge/skills/okx/agent-trade-kit/earn-hunter.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00114 | $0.08552 |
| Opus 5 | $0.00057 | $0.04276 |
| Sonnet 5 | $0.00023 | $0.01710 |
| Haiku 4.5 | $0.00011 | $0.00855 |
Grade A, and why
earn-hunter scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- scheduler.type = `"cron"` — scheduled via **OS crontab → `scripts/scan.sh`** (zero LLM token cost), notification via TG / Lark curl from the script itself. Copies of this mod
1 near-identical copy found in the catalogue:
- earn-hunter — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 566 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
- If
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- config/claude-code.default.json 302 B
- config/default.json 499 B
- config/openclaw.default.json 145 B
- references/config-reference.md 7.8 KB
- references/notify-channels.md 8.0 KB
- references/purchase-guide.md 6.1 KB
- references/scan-logic.md 16 KB
- references/scheduler-setup.md 5.8 KB
- scripts/scan.sh 32 KB runs code
- templates/activation.md 3.2 KB
- templates/error-alert.md 2.2 KB
- templates/fixed-earn.md 3.0 KB
- templates/flash-earn.md 2.3 KB
- templates/flexible-earn.md 2.3 KB
- templates/mixed-notify.md 3.4 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed e6435a831cae
- 5d ago First seen · 566 lines · 114 tokens per session scan A 8d5d5643c7f7
earn-hunter is a skill published in the GitHub repository okx/agent-trade-kit (420 stars, last pushed 4d ago), licensed MIT. It adds 114 tokens to every session and 8,552 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
opik-diagnose
Surface the Opik traces worth a developer's attention, ranked by signal — errors, failed tool calls, latency, regressions, and low online-eval scores — plus Diagnostics issues. Reads live/production traces via the SDK (searchtraces and agentinsights) and works with no MCP; uses the MCP issue entity when connected.…
client-scripts
Write ServiceNow client scripts (onLoad/onChange/onSubmit/onCellEdit) using gform, guser, GlideAjax, field visibility/mandatory toggles, and validation with debounced server calls.
agoragentic-transaction-assurance
Prepare, evaluate, and reconcile autonomous agent transactions without self-granting payment or owner authority. Use when an agent must bind principal authority, seller terms, payment evidence, execution, delivered outcome, and reconciliation; handle paid retries safely; or prepare an authority request for owner…
debugging-mutations
Verify what changed on a ServiceNow instance after a tool call — sysaudit inspection, syslog/transaction logs, session context, Flow Designer execution logs, outbound HTTP traces.
maya-shot-export
Pipeline stage — shot-level export: frame ranges, cameras, FBX / Alembic packaging for editorial. Use when packaging shot data for downstream departments. Not for full pipeline publish (maya-pipeline) or scene assembly (maya-scene-assembly).
social-scrape
Collect public posts and discussion from X, LinkedIn and Hacker News through a local signed-out browser, then report them in chat or write them to a document. Use when the user wants to scrape, monitor or research specific accounts, topics, hashtags or discussions on social platforms.