1391/hl-copy-trader/SKILL.md
Copy-trade any Hyperliquid trader automatically. Mirrors their positions and orders at your capital scale, with risk controls. Use when user says 'copy trade', 'follow this trader', 'mirror this HL address', 'track this wallet on Hyperliquid', or provides an HL address and capital amount.
npx skillsauth add starchild-ai-agent/community-skills @1391/hl-copy-traderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
名称 / Name: HL Copy Trader
描述(中文): 一键跟单 Hyperliquid 上的优质交易员。自动读取目标持仓,按你的资金比例等比缩放同步。资金始终在你自己的钱包中。
Description (English): One-click copy trading for top Hyperliquid traders. Automatically mirrors target positions scaled to your capital. Your funds stay in your own wallet.
Before any trade, wallet policy must be active. Load the wallet-policy skill and propose the standard wildcard policy (deny key export + allow *). Required for HL deposit, order signing, and cancellation.
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| target_address | string | — | Required. Target trader's HL wallet address |
| my_capital | number | — | Required. Your capital in USDC |
| risk_stop_pct | number | 40 | Stop loss %. Liquidate all when account drops below my_capital × (1 - risk_stop_pct/100) |
| sync_interval | number | 5 | Sync frequency in minutes (1 / 3 / 5 / 15) |
| max_leverage | number | 10 | Cap leverage if target uses more |
| copy_assets | string | "all" | Coins to copy. "all" or comma-separated e.g. "BTC,ETH" |
| min_order_size | number | 10 | Skip scaled orders below this USDC notional |
| risk_action | string | "liquidate" | Action on circuit breaker trigger. "liquidate" = close all positions + stop (default). "pause" = stop sync only, notify user to decide manually — no positions touched. |
Run scripts/setup.py to initialize. It:
scale_ratio = my_capital / target_account_valuesync_interval minutes)Confirmation summary to show user before starting:
Target trader: {address} (truncated)
Target capital: ${target_value:,.0f}
Your capital: ${my_capital:,.0f}
Scale ratio: 1 : {ratio:.0f}
Stop-loss line: ${stop_value:,.0f} (−{risk_stop_pct}%)
Sync frequency: every {sync_interval} min
Assets: {copy_assets}
Max leverage: {max_leverage}x
Confirm? (yes/no)
Run scripts/sync.py on every scheduled trigger. Steps:
account_value < stop_value:
risk_action == "liquidate" (default): close all skill-managed positions, cancel all skill-managed orders, pause task, notify user.risk_action == "pause": pause task immediately without touching any positions. Notify user: "⚠️ Stop-loss triggered. Sync paused. Your positions are untouched — please decide whether to close manually."state.json:target_account_value_at_setup. If drift > 20%:
"⚠️ Target account value changed from $X to $Y (>{20}%). Scale ratio would shift from 1:A to 1:B. Confirm to resume with new ratio, or reply 'keep ratio' to continue at the original scale."scale_ratio in state and resuming.state.json:skill_positions (skill-managed). Never touch positions not in that set.state.json:paul_orders (skill-managed). Place orders target added. Skip if scaled notional < min_order_size or asset not in copy_assets. Never cancel orders not in the mapping.State is stored in tasks/{job_id}/state.json:
{
"paused": false,
"target_address": "0x...",
"my_capital": 1000,
"scale_ratio": 0.01,
"stop_value": 600,
"sync_interval": 5,
"max_leverage": 10,
"copy_assets": "all",
"min_order_size": 10,
"paul_orders": {"target_oid": "my_oid"},
"skill_positions": ["BTC"],
"target_account_value_at_setup": 102000,
"risk_action": "liquidate",
"lang": "zh"
}
Language rule: detect language from the user's setup command. Store in state.json as lang: "zh" or lang: "en". All notifications and reports follow that language. User can switch anytime by saying "report in English" or "以后用中文汇报".
Real-time (on change only):
[时间] 同步完成:新增 X 笔,取消 X 笔,调整 X 笔仓位[time] Synced: +X orders, −X cancelled, X positions adjustedDaily (UTC 00:00):
Weekly (Sunday UTC 00:00):
⚠️ Copy trading carries risk. Past performance ≠ future results.
min_order_size)HyperliquidClient from skills/hyperliquid/client.py for all HL callsszDecimals from HL meta API (POST /info with {"type":"meta"}). Compute min_size = 10 ** (-szDecimals). Always use max(scaled_size, min_size). Do not hardcode per-coin values — the meta response is the source of truth.get_account_state before confirmingtarget_account_value_at_setup in state at initialization.skill_positions / paul_orders) are never touched by the sync loop.| File | Purpose |
|------|---------|
| scripts/setup.py | One-time initialization, confirmation, deposit, initial mirror |
| scripts/sync.py | Sync loop — called by scheduled task every N minutes |
| references/api.md | HL API notes and client method reference |
tools
TQX (tqx.trade) HK/US stock quant workflow via tqx-cli: cross-sectional factor analysis, event-driven strategy backtests on the panda_backtest engine, and agent-driven automated paper trading. Use when the user wants to run factor IC/IR analysis, backtest a Python trading strategy on Hong Kong or US stocks, or set up agent-automated trading (e.g. "backtest a moving-average strategy on AAPL", "analyze a momentum factor on HK stocks", "let the agent trade my paper account").
tools
中学物理实验教学参赛方案套件。包含四个完整实验(单摆测g、声悬浮测声速、向心力定量演示仪、电磁阻尼定量研究),每套含固件源码、3D打印图纸、教学PPT、教学文稿、采购清单、调试手册、视频分镜脚本、模拟器。Use when a teacher/student needs a complete, classroom-ready physics experiment package for competition or teaching.
development
End-to-end blog management for AI agents. Write, import, build, preview, and publish articles using the blog template. Covers draft workflow, article import, SEO, OG images, and deployment.
development
ESP8266/ESP32 + 磁簧开关/霍尔传感器 单摆测重力加速度实验套件。 硬件搭建→固件烧录→数据采集→Web仪表盘→g值计算→教学文档,一站式完成。 Use when the user wants to build a pendulum g-measurement experiment, measure gravity with a micro-controller, or needs a complete physics experiment package with hardware + firmware + dashboard + teaching materials.