Agent skill

Apex Strategy

by Nunchi-trade in Nunchi-trade/agent-cli

Autonomous multi-slot trading orchestrator. An agent skill from Nunchi-trade/agent-cli.

MITAuto-check passedBusiness, Finance & HR

Install Apex Strategy

skills CLI
$ npx skills add Nunchi-trade/agent-cli --skill apex-strategy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Nunchi-trade/agent-cli apex-strategy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/apex .claude/skills/apex-strategy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
apex-strategy
GitHub stars
521
Token cost
~1.4k tokens
SKILL.md length
640 words
Files
2 (incl. scripts)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Autonomous multi-slot trading orchestrator. An agent skill from Nunchi-trade/agent-cli.

  • Works in 3 steps: Every tick: Fetch prices, update ROEs,… → Every 5 ticks (5 min): Watchdog health… → Every 15 ticks (15 min): Run opportunity…
  • Tasks that involve Trading and backtesting
  • SKILL.md covers Architecture, Slot Management, Entry Priority and Exit Priority, plus 10 more sections
  • Runs Python scripts from its folder

What it does

Apex Strategy is an agent skill from Nunchi-trade/agent-cli. Autonomous multi-slot trading orchestrator

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/standalone_runner.py`).

It sits in Business, Finance & HR, covering Trading and backtesting. The licence is MIT.

When your agent uses it

  • Tasks that involve Trading and backtesting

Example prompts

  • “/apex-strategy”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Every tick: Fetch prices, update ROEs, check DSL guards, run pulse, evaluate entry/exit
  2. Every 5 ticks (5 min): Watchdog health check (verify positions match exchange)
  3. Every 15 ticks (15 min): Run opportunity radar, queue high-score setups

What it can do on your machine

Read from SKILL.md and the folder at commit 58619a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Apex Strategy loads about 1.4k tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 640 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~14
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Nunchi-trade/agent-cli at commit 58619a2, republished under its MIT licence (© Nunchi-trade). 640 words, ~1,391 tokens.

Download SKILL.mdSave it as .claude/skills/apex-strategy/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
apex-strategy
description
Autonomous multi-slot trading orchestrator
version
1.0.0
author
YEX
dependencies
modules/apex_config.py, modules/apex_state.py, modules/apex_engine.py, modules/radar_guard.py, modules/pulse_guard.py, modules/guard_bridge.py

APEX Strategy

Autonomous multi-slot trading strategy that composes Radar + Pulse + DSL into a unified orchestrator.

Architecture

APEX runs a single tick loop (60s base) that:

  1. Every tick: Fetch prices, update ROEs, check DSL guards, run pulse, evaluate entry/exit
  2. Every 5 ticks (5 min): Watchdog health check (verify positions match exchange)
  3. Every 15 ticks (15 min): Run opportunity radar, queue high-score setups

Slot Management

  • 2-3 concurrent positions (configurable)
  • Each slot: EMPTY -> ACTIVE -> CLOSED (reset to EMPTY)
  • No duplicate instruments across slots
  • Max 2 same-direction positions

Entry Priority

  1. Pulse IMMEDIATE_MOVER -> auto-enter
  2. Radar score > 170 -> queue entry
  3. Pulse other signals (confidence > 70) -> enter

Exit Priority

  1. DSL trailing stop CLOSE
  2. Hard stop: ROE < -5%
  3. Conviction collapse: signal gone + negative PnL for 30+ min
  4. Stagnation: ROE stuck above 3% for 60+ min

Risk Management

  • Per-slot margin: total_budget / max_slots
  • Daily loss limit: $500 (default)
  • Daily loss trigger: close all positions immediately

Prerequisites

Before running APEX live (not mock), ensure:

  1. Testnet: Claim USDyP first — hl setup claim-usdyp (without funds, all orders fail silently)
  2. Mainnet: Deposit USDC via the Hyperliquid web UI
  3. Builder fee: Approve once per network — hl builder approve (testnet) or hl builder approve --mainnet

Usage

bash
# Mock mode (no funds needed)
hl apex run --mock --max-ticks 10

# Live (testnet) — requires USDyP balance + builder approval
hl apex run

# Live (mainnet) — requires USDC balance + mainnet builder approval
hl apex run --mainnet

# Check status
hl apex status

# List presets
hl apex presets

Presets

  • default: 3 slots, 10x leverage, $10K budget
  • conservative: 2 slots, 5x leverage, higher thresholds
  • aggressive: 3 slots, 15x leverage, lower thresholds

Agent Mandate

You are the APEX orchestrator. Your job is to hunt for high-probability setups and manage 2-3 concurrent positions with strict risk controls.

RULES:

  • NEVER exceed max_slots concurrent positions
  • ALWAYS check daily_loss_limit before entering new positions
  • NEVER enter a position without Radar score > 170 OR Pulse IMMEDIATE signal
  • ALWAYS run DSL trailing stop on every active position
  • Exit ALL positions immediately if daily loss exceeds limit
  • ALWAYS run --mock --max-ticks 5 before first live deployment
  • Log every entry/exit decision with reasoning

Decision Rules

ConditionAction
Radar score > 200 + Pulse IMMEDIATEEnter with 1.5x size — strongest conviction
Radar score > 170, no Pulse signalEnter with 1.0x size — radar-only conviction
Radar score 140-170Queue entry, wait for Pulse confirmation within 15 min
Radar score < 140Skip — insufficient edge
ROE > 5% and DSL Phase 2 activeLet DSL manage exit — do not manually close
ROE < -3% for > 15 minExit — conviction lost, don't wait for hard stop
2 consecutive losses same sessionReduce position size by 50% for next 2 trades
Daily loss > 50% of limitSwitch to conservative preset for remainder
All slots filledWait for exit before scanning new entries
Pulse IMMEDIATE but all slots fullEvaluate weakest slot for replacement
Show full SKILL.md (214 more words)Show less

Anti-Patterns

  • Over-leveraging on volatile days: Using aggressive preset during high-VIX or post-CPI → blown account. Use conservative preset on macro days.
  • "One more trade to recover": After hitting daily loss limit, entering another trade always makes it worse. Hard stop means hard stop.
  • Chasing Pulse signals alone: Entering on VOLUME_SURGE without Radar confirmation → 60% historical loss rate. IMMEDIATE_MOVER is the only standalone entry signal.
  • Tight stops on entry: DSL Phase 1 exists to give the trade room. Overriding with tight custom stops → premature exits on noise.
  • Running without budget cap: Always set --budget. Unbounded budget = unbounded loss.

Error Recovery

ErrorCauseFix
No positions but slots show ACTIVEStale state after restarthl apex status, manually reset via state file
Radar returned 0 candidatesLow-vol period or API issueNormal during weekends/low-vol — APEX will idle safely
Daily loss limit reachedBad sessionAPEX auto-closes all. Review with hl reflect run tomorrow
Builder fee not approvedSkipped onboarding stephl builder approve then restart APEX
Connection timeoutHL API rate limitAPEX auto-retries with backoff — no action needed

Composition

APEX is the top-level orchestrator. It composes Radar (opportunity finding), Pulse (real-time signal detection), and DSL (risk management) into one tick loop. Use APEX for autonomous trading. Use individual skills when you need manual control.

Cron Template

bash
# Start APEX at market open, stop at EOD
0 8 * * 1-5  cd ~/agent-cli && source .venv/bin/activate && hl apex run --budget 5000 >> logs/apex.log 2>&1
0 20 * * 1-5 pkill -f "hl apex run"
# Nightly REFLECT review
55 23 * * * cd ~/agent-cli && source .venv/bin/activate && hl reflect run >> logs/reflect.log 2>&1

© Nunchi-trade, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in skills/apex of Nunchi-trade/agent-cli.

  • SKILL.md
  • scripts/standalone_runner.py

Open the folder on GitHubat commit 58619a2

Compare with similar skills

Apex Strategy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Apex Strategy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Apex Strategy this skillNunchi-trade/agent-cli521—~1.4kAutomated safety check: PassMIT
Tushare Datazillionare/zillionare3222 repos~2.3kAutomated safety check: PassNone
Tradingview MCPatilaahmettaner/tradingview-mcp5k—~1.3kAutomated safety check: PassMIT
Digital Oraclekomako-workshop/digital-oracle878—~5.9kAutomated safety check: PassMIT
Polyclawchainstacklabs/polyclaw3591 repos~2kAutomated safety check: PassApache-2.0
Markdownfacioquo/stock-indicators-dotnet1.2k—~812Automated safety check: PassApache-2.0

Similar skills

  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    322 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    5k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Digital Oracle

    komako-workshop/digital-oracle

    Answer prediction questions using market trading data, not opinions.

    878 GitHub stars~5.9k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Polyclaw

    chainstacklabs/polyclaw

    Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.

    359 GitHub starsUsed in 1 repo~2k tokens
    Business, Finance & HRAuto-check passed
  • Markdown

    facioquo/stock-indicators-dotnet

    Format and lint Markdown in this repository against GitHub Flavored Markdown and its markdownlint-cli2 configuration — headers, lists, code fences, callouts (VitePress containers on docs-site pages…

    1.2k GitHub stars~812 tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Openmobius Skill

    MobiusQuant/OpenMobius-skill

    Provides multi-school trading Q&A, chart/OHLCV analysis, annotation, and fresh-market workflows covering ICT/SMC, ChanLun, Wyckoff, Price Action, Order Flow, VSA, and Elliott Wave.

    697 GitHub stars~7.2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed

More from Nunchi-trade/agent-cli

  • Guard Trailing Stop

    Nunchi-trade/agent-cli

    Guard — two-phase ROE-based trailing stop system for Hyperliquid perps.

    521 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Opportunity Radar

    Nunchi-trade/agent-cli

    Screens all Hyperliquid perps and surfaces top trading setups

    521 GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Pulse

    Nunchi-trade/agent-cli

    Detects assets with sudden capital inflow via OI/volume/funding proxy signals

    521 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Agent Onboarding

    Nunchi-trade/agent-cli

    First-time setup — from zero to first trade on Hyperliquid. An agent skill from Nunchi-trade/agent-cli.

    521 GitHub stars~2.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Reflect Performance Review

    Nunchi-trade/agent-cli

    Reflect, Evaluate, Fine-tune, Learn, Evolve, Correct, Transform — nightly automated performance review

    521 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Yex Trader

    Nunchi-trade/agent-cli

    Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.

    521 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check: notes

Questions about Apex Strategy

What does Apex Strategy do?

Autonomous multi-slot trading orchestrator. An agent skill from Nunchi-trade/agent-cli. Apex Strategy is an agent skill from Nunchi-trade/agent-cli.

When should I use Apex Strategy?

Apex Strategy fits situations like: tasks that involve Trading and backtesting.

How do I install Apex Strategy in Claude Code?

Run `npx skills add Nunchi-trade/agent-cli --skill apex-strategy -a claude-code`. Or copy the skill folder (skills/apex in Nunchi-trade/agent-cli) into .claude/skills/apex-strategy in your project. Claude Code loads it when a task matches its description.

How do I install Apex Strategy in Codex?

Run `npx skills add Nunchi-trade/agent-cli --skill apex-strategy -a codex`. Or copy the skill folder (skills/apex in Nunchi-trade/agent-cli) into .agents/skills/apex-strategy in your project. Codex loads it when a task matches its description.

Can I use Apex Strategy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nunchi-trade/agent-cli --skill apex-strategy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/apex-strategy, .gemini/skills/apex-strategy, .github/skills/apex-strategy and .opencode/skills/apex-strategy in your project.

What does Apex Strategy need to run?

Going by SKILL.md and its folder, Apex Strategy needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Apex Strategy access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Apex Strategy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Apex Strategy use?

Apex Strategy is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Apex Strategy use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Apex Strategy?

Skills that share tags, products or a category with Apex Strategy: Tushare Data (zillionare/zillionare, 322 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Digital Oracle (komako-workshop/digital-oracle, 878 stars) and Polyclaw (chainstacklabs/polyclaw, 359 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Apex Strategy?

Nunchi-trade (a GitHub organization) maintains it in Nunchi-trade/agent-cli, which has 521 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on July 8, 2026.

Source: Nunchi-trade/agent-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.