Fintool
second-state/fintool
Financial trading CLIs — spot and perp trading on Hyperliquid, Binance, Coinbase, OKX.
Guard — two-phase ROE-based trailing stop system for Hyperliquid perps.
$ npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Nunchi-trade/agent-cli guard-trailing-stop --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/guard .claude/skills/guard-trailing-stop && rm -rf skills-srcUse ~/.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/
Install the "guard-trailing-stop" agent skill from https://github.com/Nunchi-trade/agent-cli/tree/main/skills/guard into .claude/skills/guard-trailing-stop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "guard-trailing-stop", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Nunchi-trade/agent-cli/tree/main/skills/guardType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Nunchi-trade/agent-cli guard-trailing-stop --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/guard .agents/skills/guard-trailing-stop && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "guard-trailing-stop" agent skill from https://github.com/Nunchi-trade/agent-cli/tree/main/skills/guard into .agents/skills/guard-trailing-stop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "guard-trailing-stop", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Nunchi-trade/agent-cli guard-trailing-stop --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/guard .cursor/skills/guard-trailing-stop && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "guard-trailing-stop" agent skill from https://github.com/Nunchi-trade/agent-cli/tree/main/skills/guard into .cursor/skills/guard-trailing-stop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "guard-trailing-stop", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Nunchi-trade/agent-cli.git --path skills/guard--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Nunchi-trade/agent-cli guard-trailing-stop --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/guard .gemini/skills/guard-trailing-stop && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "guard-trailing-stop" agent skill from https://github.com/Nunchi-trade/agent-cli/tree/main/skills/guard into .gemini/skills/guard-trailing-stop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "guard-trailing-stop", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Nunchi-trade/agent-cli guard-trailing-stopInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/guard .github/skills/guard-trailing-stop && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "guard-trailing-stop" agent skill from https://github.com/Nunchi-trade/agent-cli/tree/main/skills/guard into .github/skills/guard-trailing-stop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "guard-trailing-stop", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Nunchi-trade/agent-cli guard-trailing-stop --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/guard .opencode/skills/guard-trailing-stop && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "guard-trailing-stop" agent skill from https://github.com/Nunchi-trade/agent-cli/tree/main/skills/guard into .opencode/skills/guard-trailing-stop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "guard-trailing-stop", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
guard-trailing-stopGuard — two-phase ROE-based trailing stop system for Hyperliquid perps.
Guard Trailing Stop is an agent skill from Nunchi-trade/agent-cli. Guard — two-phase ROE-based trailing stop system for Hyperliquid perps. Phase 1 lets the trade breathe with wide retrace and patient breach counting. Phase 2 locks profit through configurable tier ratcheting with per-tier retrace overrides. Supports LONG and SHORT, hard/soft breach decay, stagnation take-profit, and preset configs. Use when protecting an open position, setting trailing stops, or automating profit-locked exits.
Its SKILL.md is about 1.9k 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`). Compatibility notes: Requires python3 and yex-trader (agent-cli) installed. Hyperliquid perp positions. Direct HL API — no mcporter needed.
It sits in Business, Finance & HR. It works with Hyperliquid. The licence is MIT.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 58619a2. It shows what the files ask for, not the result of running them.
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.
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.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires python3 and yex-trader (agent-cli) installed. Hyperliquid perp positions. Direct HL API — no mcporter needed.
From compatibility in the SKILL.md frontmatter.
Guard Trailing Stop loads about 1.9k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 708 words of instructions outside code blocks.
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.
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.
The full file from Nunchi-trade/agent-cli at commit 58619a2, republished under its MIT licence (© Nunchi-trade). 708 words, ~1,935 tokens.
.claude/skills/guard-trailing-stop/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Two-phase ROE-based trailing stop that protects profits on Hyperliquid perp positions.
All triggers use ROE (Return on Equity): PnL / margin * 100. At 10x leverage, 1% price move = 10% ROE.
hl guard start ETH-PERP \
--entry 2500.0 \
--size 1.0 \
--direction long \
--leverage 10 \
--preset tight \
--tick 5# config.yaml
strategy: avellaneda_mm
instrument: ETH-PERP
tick_interval: 10.0
guard:
enabled: true
preset: tight
leverage: 10.0hl run avellaneda_mm --config config.yaml| Preset | Tiers | Stagnation TP | Use Case |
|---|---|---|---|
moderate | 6 (10/20/30/50/75/100% ROE) | No | Standard trades |
tight | 4 (10/20/40/75% ROE) | Yes (8% ROE, 1hr) | Aggressive protection |
from modules.trailing_stop import TrailingStopEngine, GuardAction
from modules.guard_config import GuardConfig, PRESETS
from modules.guard_state import GuardState
config = PRESETS["tight"]
config.leverage = 10.0
config.direction = "long"
engine = TrailingStopEngine(config)
state = GuardState.new("ETH-PERP", entry_price=2500.0, position_size=1.0, direction="long")
result = engine.evaluate(price=2520.0, state=state)
# result.action: GuardAction.HOLD | .CLOSE | .TIER_CHANGED
# result.state: updated state (persist this)
# result.roe_pct, result.effective_floor, result.reason| Parameter | Default | Description |
|---|---|---|
direction | long | Position direction: long or short |
leverage | 10.0 | Position leverage (used in ROE calc) |
phase1_retrace | 0.03 | Phase 1 retrace from high-water (3%) |
phase1_max_breaches | 3 | Consecutive breaches before Phase 1 close |
phase1_absolute_floor | 0.0 | Hard price floor (0 = disabled) |
phase2_retrace | 0.015 | Default Phase 2 retrace (1.5%) |
phase2_max_breaches | 2 | Default breaches in Phase 2 |
breach_decay_mode | hard | hard (reset to 0) or soft (decay by 1) |
stagnation_enabled | false | Enable stagnation take-profit |
stagnation_min_roe | 8.0 | Min ROE% for stagnation trigger |
stagnation_timeout_ms | 3600000 | HW stale time before stagnation close (1hr) |
tiers:
- trigger_pct: 10.0 # Activate at 10% ROE
lock_pct: 5.0 # Lock 5% ROE as floor
- trigger_pct: 20.0
lock_pct: 14.0
retrace: 0.012 # Per-tier retrace override (1.2%)
max_breaches: 1 # Per-tier breach count override| Concept | LONG | SHORT |
|---|---|---|
| Profit | Price up | Price down |
| ROE | (price-entry)/entry * lev * 100 | (entry-price)/entry * lev * 100 |
| High water | Highest price | Lowest price |
| Tier floor | entry * (1 + lock/100/lev) | entry * (1 - lock/100/lev) |
| Trailing floor | hw * (1 - retrace) | hw * (1 + retrace) |
| Effective floor | max(tier, trailing) | min(tier, trailing) |
| Breach | price <= floor | price >= floor |
You are the Guard trailing stop guardian. Your job is to protect profits and limit losses on open positions. You never make entry decisions — you only manage exits via a two-phase trailing stop system.
RULES:
| Condition | Action |
|---|---|
Guard returns CLOSE | Close position immediately — no hesitation |
Guard returns TIER_CHANGED | Log the new tier — no action needed, floors auto-ratchet |
Guard returns HOLD | Do nothing — position is healthy |
| ROE > 10% and still Phase 1 | Normal — Phase 2 triggers at first tier (usually 10% ROE) |
| Breach count incrementing but no close | Phase 1 patience — 3 consecutive breaches needed |
| Stagnation timer triggered | Close — profit is stale, capital better deployed elsewhere |
| Preset | When to Use |
|---|---|
moderate | Standard trades, medium hold time, balanced protection |
tight | Aggressive protection, short holds, includes stagnation TP |
| Custom | Only when you understand all tier parameters — test with mock first |
direction=long on a short position means Guard will hold losses and exit winners. Always double-check.| Error | Cause | Fix |
|---|---|---|
No position found | Position already closed or wrong instrument | Check hl status for actual positions |
Guard state stale | Process crashed mid-tick | Restart Guard — state file preserves last known state |
Negative ROE but no close | Still in Phase 1 tolerance | Normal if within 3% retrace. Hard stop at -5% ROE is separate |
Tier jumped from 1 to 4 | Fast price move between ticks | Normal — tiers are checked sequentially but can skip |
Guard is a sub-component of APEX (runs every tick per active slot). Can also be used standalone to guard any position. When used with APEX, Guard states are managed automatically. When used standalone, you must provide entry price, size, direction, and leverage.
# Guard is typically long-running (attached to a position), not cron-scheduled.
# Start manually when opening a position:
hl guard start ETH-PERP --entry 2500 --direction long --leverage 10 --preset moderate --tick 5© 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
SKILL.md and 1 other file (scripts) in skills/guard of Nunchi-trade/agent-cli.
Open the folder on GitHubat commit 58619a2
Guard Trailing Stop 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Guard Trailing Stop this skillNunchi-trade/agent-cli | 521 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Fintoolsecond-state/fintool | 316 | — | ~5.9k | Automated safety check: Pass | None | |
| Vendor ImplementationNo-Trade-No-Life/Yuan | 352 | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Moss Trade Bot Factorymoss-site/moss-trade-bot-skills | 389 | — | ~2.2k | Automated safety check: Pass | MIT-0 | |
| Hyperliquid Smart Money Flow ReaderSenpi-ai/senpi-skills | 134 | — | ~3.5k | Automated safety check: Pass | Apache-2.0 | |
| Senpi Trading Runtime ContractSenpi-ai/senpi-skills | 134 | — | ~2.6k | Automated safety check: Pass | Apache-2.0 |
second-state/fintool
Financial trading CLIs — spot and perp trading on Hyperliquid, Binance, Coinbase, OKX.
No-Trade-No-Life/Yuan
基于Hyperliquid成功实现经验,为新交易所供应商提供Yuan框架集成指南。使用此技能当需要为新的交易所创建供应商实现,包括项目结构设计、API集成、核心服务实现和最佳实践。适用于交易所API集成、金融系统开发、微服务架构设计。
moss-site/moss-trade-bot-skills
用户用自然语言描述币种、回测时间区间和策略风格时,自动创建加密货币交易 Bot,读取内置 Hyperliquid CSV 覆盖并运行本地回测/进化;若币种、时间区间或策略风格缺失,则主动询问缺失项并展示 CSV 解析出的可用回测区间。也可在回测后上传平台 verify 或创建模拟实盘 Bot。适用于创建bot、交易策略、回测、backtest、evolve、upload verify、live…
Senpi-ai/senpi-skills
Reads where proven profitable Hyperliquid wallets are positioned versus smaller traders, surfacing the divergence worth paying attention to.
Senpi-ai/senpi-skills
Documents how a Senpi strategy's scan function talks to the runtime that schedules it, sizes orders, and manages stop-loss exits on Hyperliquid.
Senpi-ai/senpi-skills
Ranks Hyperliquid traders by how copyable they are right now and builds a due-diligence dossier on one trader, judging whether their track record is real or just a hot streak.
Nunchi-trade/agent-cli
Autonomous multi-slot trading orchestrator. An agent skill from Nunchi-trade/agent-cli.
Nunchi-trade/agent-cli
Screens all Hyperliquid perps and surfaces top trading setups
Nunchi-trade/agent-cli
Detects assets with sudden capital inflow via OI/volume/funding proxy signals
Nunchi-trade/agent-cli
First-time setup — from zero to first trade on Hyperliquid. An agent skill from Nunchi-trade/agent-cli.
Nunchi-trade/agent-cli
Reflect, Evaluate, Fine-tune, Learn, Evolve, Correct, Transform — nightly automated performance review
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.
Works with
Categories
Guard — two-phase ROE-based trailing stop system for Hyperliquid perps. Guard Trailing Stop is an agent skill from Nunchi-trade/agent-cli. Guard — two-phase ROE-based trailing stop system for Hyperliquid perps.
Guard Trailing Stop fits situations like: protecting an open position; setting trailing stops; automating profit-locked exits.
Run `npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a claude-code`. Or copy the skill folder (skills/guard in Nunchi-trade/agent-cli) into .claude/skills/guard-trailing-stop in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Nunchi-trade/agent-cli --skill guard-trailing-stop -a codex`. Or copy the skill folder (skills/guard in Nunchi-trade/agent-cli) into .agents/skills/guard-trailing-stop in your project. Codex loads it when a task matches its description.
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 guard-trailing-stop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/guard-trailing-stop, .gemini/skills/guard-trailing-stop, .github/skills/guard-trailing-stop and .opencode/skills/guard-trailing-stop in your project.
Going by SKILL.md and its folder, Guard Trailing Stop needs Python for the scripts in its folder. Our summary lists: Python 3. Compatibility (from SKILL.md): Requires python3 and yex-trader (agent-cli) installed. Hyperliquid perp positions. Direct HL API — no mcporter needed..
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.
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.
Guard Trailing Stop is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Guard Trailing Stop: Fintool (second-state/fintool, 316 stars), Vendor Implementation (No-Trade-No-Life/Yuan, 352 stars), Moss Trade Bot Factory (moss-site/moss-trade-bot-skills, 389 stars) and Hyperliquid Smart Money Flow Reader (Senpi-ai/senpi-skills, 134 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.