skills-store

Original🇺🇸 English
Translated

This is the main on-chain DeFi skill. Use it for ALL of the following: Strategy discovery: 'how to make money on-chain', 'any profitable strategies', '链上有什么赚钱机会', '有什么盈利机会', '有什么套利机会', '怎么赚钱', '有什么好的策略', '帮我理财', '有什么收益机会', 'yield opportunities', 'how to earn', 'investment strategy', 'DeFi 策略推荐', '有什么自动化策略', 'automated strategies', 'passive income on-chain'. Capability discovery: '你能做什么', '你有什么能力', '你支持什么', '有什么技能', '都有什么功能', '支持哪些策略', '支持哪些 skill', 'what skills are available', 'what can you do', 'what strategies do you support', 'show me all strategies', 'list all skills'. Aave V3 lending: 'Aave', 'supply to Aave', 'deposit into Aave', 'withdraw from Aave', 'Aave APY', 'Aave markets', 'lending rates', 'health factor', 'borrow on Aave', 'repay Aave', 'DeFi lending', 'Aave V3'. Morpho lending: 'Morpho', 'Morpho Blue', 'MetaMorpho vaults', 'Morpho lending rates', 'Morpho markets', 'deposit into Morpho', 'withdraw from Morpho', 'Morpho positions', 'ERC-4626 vaults'. Uniswap swaps: 'Uniswap', 'swap on Uniswap', 'Uniswap V3 swap', 'Uniswap quote', 'swap WETH for USDC on Uniswap', 'trade tokens on Uniswap', 'Uniswap fee tiers', 'on-chain token swap', 'concentrated liquidity swap'. Hyperliquid trading: 'Hyperliquid', 'perpetual futures', 'open a long position', 'short BTC', 'check my perp positions', 'funding rate', 'Hyperliquid orderbook', 'spot trade on Hyperliquid', 'set leverage', 'perp trading'. Ethena staking: 'Ethena', 'sUSDe', 'USDe staking', 'sUSDe yield', 'sUSDe APY', 'stake USDe', 'unstake sUSDe', 'Ethena balance', 'sUSDe exchange rate', 'cooldown period'. Polymarket: 'prediction markets', 'event betting', 'what are the odds', 'bet on', 'buy Yes/No shares', 'Polymarket positions', 'prediction market prices', 'Polymarket'. Kalshi: 'Kalshi', 'US prediction markets', 'regulated event contracts', 'Kalshi positions', 'Kalshi balance', 'federally authorized prediction markets'. Also activates when the skill has just been installed and the user has not yet chosen a direction.

4installs
Added on

NPX Install

npx skill4agent add purong-huang-1121/skills-store skills-store

On-Chain Strategy Composer

Helps users discover and launch built-in automated strategies. This skill contains no CLI commands — it guides users to choose a strategy and then hands off to the corresponding skill.

Post-Install Welcome & Capability Discovery

Trigger

Activate this section when ANY of the following is true:
  • The skill was just installed (user ran
    /install dapp-composer
    or equivalent) and hasn't asked a specific question yet
  • User asks "你能做什么", "你有什么能力", "支持哪些策略", "有什么 skill", "what can you do", "what skills are available", "show me all strategies", or any similar capability/discovery query
  • User asks "都有哪些插件", "都有什么功能", "你支持什么"

Response

Present the following welcome message:
你好!除了内置的链上操作能力,我们还提供 5 个自动化策略——
帮你真正实现链上躺赚,无需手动盯盘:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  🤖 推荐安装:自动化策略技能
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  A. USDC 智能调仓             ⭐ 低风险 · 稳定收益
     分类:DeFi · 套利  |  作者:徐易朗 (yilang.xu@okg.com)
     自动在 Aave/Compound/Morpho 间轮动最高收益
     预估年化 3%~8%,稳定币无币价风险,全自动守护进程

  B. ETH/USDC 网格交易         ⭐⭐ 中低风险 · 震荡收益
     分类:DeFi · 交易  |  作者:单杰 (jie.shan@okg.com)
     震荡行情自动低买高卖
     预估年化 10%~30%,自适应波动率,Base 链极低 gas

  C. SOL 涨幅榜狙击            ⭐⭐⭐ 高风险 · SOL 动量
     分类:MEME交易  |  作者:Suning Yao (suning.yao@okg.com)
     新币上榜自动买入,跌出自动卖出
     25 项安全检查 + 6 层退出机制

  D. SOL 聪明钱跟单            ⭐⭐⭐ 高风险 · 聪明钱
     分类:MEME交易  |  作者:Ray Zhou & Cai Shuai
     跟随 SmartMoney/KOL/Whale 信号
     多重风控 + Session 连亏熔断保护

  E. SOL Memepump 扫描         ⭐⭐⭐ 高风险 · Meme 动量
     分类:MEME交易  |  作者:Victor Lee (victor.lee@okg.com)
     捕捉 Pump.fun 迁移后动量爆发
     三重信号共振,30min 最大持仓保护

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

告诉我你感兴趣的策略,我来帮你安装(支持同时安装多个)。

─────────────────────────────────────────────────────
已内置协议操作(直接告诉我想用哪个即可):
Aave 借贷 · Morpho · Uniswap swap · Hyperliquid 合约
Ethena sUSDe · Polymarket · Kalshi
After presenting the welcome message, wait for the user's response. Do NOT immediately ask follow-up questions — let the user lead.

Pre-flight Checks

Run once per session before executing any
plugin-store
command. Do not echo routine output to the user.
bash
which plugin-store
  • Not found → install:
    bash
    curl -sSL https://raw.githubusercontent.com/purong-huang-1121/skills-store/main/install.sh | sh
  • Check for updates: Read
    ~/.cargo/bin/.skills-store/last_check
    and compare with current timestamp:
    bash
    cached_ts=$(cat ~/.cargo/bin/.skills-store/last_check 2>/dev/null || true)
    now=$(date +%s)
    • If
      cached_ts
      is non-empty and
      (now - cached_ts) < 43200
      (12 hours), skip the update.
    • Otherwise, run the installer to check for updates.

Skill Routing

安装后 / 能力查询

  • User just installed this skill, or asks "你能做什么", "有什么技能", "支持哪些策略", "what can you do", "list skills"Show Post-Install Welcome (see above)

dApp 平台(已内置,直接执行 skills-store 命令)

  • User asks about Aave (存款、借贷、利率) → see [Aave V3 CLI Reference] below, run
    skills-store aave
  • User asks about Morpho (vault、借贷) → see [Morpho CLI Reference] below, run
    skills-store morpho
  • User asks about Uniswap (换币、swap、报价) → see [Uniswap CLI Reference] below, run
    skills-store uniswap
  • User asks about Hyperliquid (永续合约、funding rate、现货) → see [Hyperliquid CLI Reference] below, run
    skills-store hyperliquid
  • User asks about Ethena (sUSDe、质押、收益) → see [Ethena CLI Reference] below, run
    skills-store ethena
  • User asks about Polymarket (预测市场、下注) → see [Polymarket CLI Reference] below, run
    skills-store polymarket
  • User asks about Kalshi (合规预测市场) → see [Kalshi CLI Reference] below, run
    skills-store kalshi

自动化策略

  • User asks about grid trading specifically → use
    skills-store grid
  • User asks about USDC yield / auto-rebalance specifically → use
    skills-store auto-rebalance

策略安装(重要)

当用户表达想要使用某个策略时(如"我要用网格交易"、"安装聪明钱跟单"、"我想试试涨幅榜狙击"、"我要用A和C"等),直接执行对应的安装命令,无需再次询问确认:
用户意图执行命令
USDC 智能调仓 / auto-rebalance
npx skills add purong-huang-1121/skills-store --skill strategy-auto-rebalance
ETH/USDC 网格交易 / grid
npx skills add purong-huang-1121/skills-store --skill strategy-grid-trade
SOL 涨幅榜狙击 / ranking sniper
npx skills add purong-huang-1121/skills-store --skill strategy-ranking-sniper
SOL 聪明钱跟单 / signal tracker
npx skills add purong-huang-1121/skills-store --skill strategy-signal-tracker
SOL Memepump 扫描 / memepump
npx skills add purong-huang-1121/skills-store --skill strategy-memepump-scanner
如果用户想安装多个策略,用空格分隔 skill 名称:
bash
npx skills add purong-huang-1121/skills-store --skill strategy-grid-trade strategy-signal-tracker
如果 skill 已存在,直接使用
--yes
覆盖安装,无需询问用户:
bash
npx skills add purong-huang-1121/skills-store --skill strategy-grid-trade --yes

安装后:提示配置环境变量(重要)

安装命令执行完毕后,必须告知用户需要创建
.env
文件并配置对应的环境变量,否则策略无法运行。根据用户安装的策略展示对应的 example:

USDC 智能调仓(strategy-auto-rebalance)
bash
# ~/.cargo/bin/.env(推荐,所有策略共用)
EVM_PRIVATE_KEY=0x你的私钥

# 可选:Telegram 通知
TELEGRAM_BOT_TOKEN=你的BotToken
TELEGRAM_CHAT_ID=你的ChatID

ETH/USDC 网格交易(strategy-grid-trade)
bash
# ~/.cargo/bin/.env(推荐,所有策略共用)
# OKX API(用于报价和交易执行)
OKX_API_KEY=你的APIKey
OKX_SECRET_KEY=你的SecretKey
OKX_PASSPHRASE=你的Passphrase

# EVM 钱包(Base 链)
EVM_PRIVATE_KEY=0x你的私钥

# 可选
BASE_RPC_URL=你的自定义RPC(默认使用公共节点)
TELEGRAM_BOT_TOKEN=你的BotToken
TELEGRAM_CHAT_ID=你的ChatID

SOL 涨幅榜狙击(strategy-ranking-sniper)
bash
# ~/.cargo/bin/.env(推荐,所有策略共用)
# Solana 钱包
SOLANA_PRIVATE_KEY=你的Base58私钥

# OKX API
OKX_API_KEY=你的APIKey
OKX_SECRET_KEY=你的SecretKey
OKX_PASSPHRASE=你的Passphrase

# 可选
TELEGRAM_BOT_TOKEN=你的BotToken
TELEGRAM_CHAT_ID=你的ChatID

SOL 聪明钱跟单(strategy-signal-tracker)
bash
# ~/.cargo/bin/.env(推荐,所有策略共用)
# Solana 钱包
SOLANA_PRIVATE_KEY=你的Base58私钥

# OKX API
OKX_API_KEY=你的APIKey
OKX_SECRET_KEY=你的SecretKey
OKX_PASSPHRASE=你的Passphrase

# 可选
TELEGRAM_BOT_TOKEN=你的BotToken
TELEGRAM_CHAT_ID=你的ChatID

SOL Memepump 扫描(strategy-memepump-scanner)
bash
# ~/.cargo/bin/.env(推荐,所有策略共用)
# Solana 钱包
SOLANA_PRIVATE_KEY=你的Base58私钥

# OKX API
OKX_API_KEY=你的APIKey
OKX_SECRET_KEY=你的SecretKey
OKX_PASSPHRASE=你的Passphrase

# 可选
TELEGRAM_BOT_TOKEN=你的BotToken
TELEGRAM_CHAT_ID=你的ChatID

展示完对应的
.env
示例后,提示用户:
配置完成后,在 .env 所在目录运行策略命令即可。
如需帮助,直接告诉我你遇到的问题。
重要:安装后需要重启 Claude
如果用户使用的是 Claude 桌面版(Claude Desktop),安装完成后必须提醒:
✅ 安装完成!

⚠️  请重启 Claude 桌面版,新安装的策略 skill 才会生效。
重启后重新打开对话,即可开始使用。
如果用户使用的是 Claude Code(命令行),无需重启,skill 立即生效。

策略发现(本 skill)

  • User asks "有什么赚钱/盈利/套利机会" or general strategy discovery → use this skill

Entry Point: Strategy Discovery

Trigger

User says: "链上有什么赚钱机会", "有什么盈利机会", "有什么套利机会", "有什么好的策略", "how to earn on-chain", "any profitable strategies", "帮我理财", "yield opportunities", "automated strategies"

Step 1: Present Built-in Strategies and Supported Platforms

Present the two automated strategies and the supported dApp ecosystem:
目前内置了 6 个策略(3 个 EVM + 3 个 Solana):

┌─────────────────────────────────────────────────────────────────────┐
│  A. USDC 智能调仓 (Auto-Rebalance)                                 │
│     分类:DeFi · 套利  |  作者:徐易朗 (yilang.xu@okg.com)         │
│                                                                     │
│  自动在 Aave V3、Compound V3、Morpho 三个协议之间寻找最优 USDC      │
│  收益率,检测到利差超过阈值时自动调仓。                              │
│                                                                     │
│  ● 支持链:Base、Ethereum                                          │
│  ● 收益来源:借贷协议存款利息                                       │
│  ● 风险等级:⭐ 低(纯稳定币,无币价风险)                          │
│  ● 预估年化:3%~8%(取决于市场利率)                                │
│  ● 运行方式:后台守护进程,定时检查 + 自动执行                      │
│  ● 特点:TVL 安全监控、Gas 熔断、Telegram 通知                      │
├─────────────────────────────────────────────────────────────────────┤
│  B. ETH/USDC 网格交易 (Grid Trading)                                │
│     分类:DeFi · 交易  |  作者:单杰 (jie.shan@okg.com)             │
│                                                                     │
│  基于 EMA 动态网格,在价格波动中自动低买高卖,赚取网格利润。         │
│  通过 OKX DEX 聚合器执行链上 swap。                                  │
│                                                                     │
│  ● 支持链:Base                                                     │
│  ● 交易对:ETH/USDC                                                │
│  ● 风险等级:⭐⭐ 中低(持有 ETH 有币价风险,网格对冲部分波动)      │
│  ● 预估年化:10%~30%(取决于市场波动率,震荡行情最佳)              │
│  ● 运行方式:后台守护进程,默认每 60 秒执行一次(可通过               │
│    skills-store grid set --key tick_interval_secs --value N 调整)      │
│  ● 特点:自适应波动率、风控熔断、仓位限制、失败重试                  │
├─────────────────────────────────────────────────────────────────────┤
│  C. 稳定币杠杆循环 (Aave Leverage Loop)                              │
│                                                                     │
│  在 Aave V3 上循环执行 USDC 存款→借款→再存款,赚取存借利差。         │
│  全程 USDC,无币价风险,利差通过杠杆放大约 2.4 倍。                  │
│                                                                     │
│  ● 支持链:Ethereum、Polygon、Arbitrum、Base                        │
│  ● 收益来源:Aave 存款利率 - 借款利率 × 杠杆倍数                    │
│  ● 风险等级:⭐ 低(纯稳定币,需关注利差反转和健康因子)             │
│  ● 预估年化:5%~15%(取决于存借利差和循环轮数)                      │
│  ● 运行方式:AI 引导逐步执行(非自动守护进程)                       │
│  ● 特点:健康因子监控、利差反转告警、一键去杠杆退出                  │
├─────────────────────────────────────────────────────────────────────┤
│                                                                     │
│  ═══════════════ Solana Meme 策略(依赖线上 plugin-store)══════════════ │
│                                                                     │
├─────────────────────────────────────────────────────────────────────┤
│  D. SOL 涨幅榜狙击 (Ranking Sniper)                                  │
│     分类:MEME交易  |  作者:Suning Yao (suning.yao@okg.com)        │
│                                                                     │
│  实时监控 Solana 涨幅榜 Top 20,新币上榜自动买入、跌出自动卖出。     │
│  不预判哪个币能涨,而是吃上榜后的那一段动量。                        │
│                                                                     │
│  ● 支持链:Solana                                                   │
│  ● 收益来源:涨幅榜动量跟踪                                         │
│  ● 风险等级:⭐⭐⭐ 高(Meme 币高波动)                              │
│  ● 运行方式:后台守护进程,每 10 秒轮询                              │
│  ● 风控:25 项链上安全检查 + Momentum Score 评分 + 6 层退出机制       │
│  ● 特点:排名退出 > 硬止损 > 快速止损 > 追踪止损 > 时间止损 > 梯度止盈│
│  ● 依赖:skills-store (token-ranking, token-advanced-info, holder,      │
│          current-price, quote, swap)                                 │
├─────────────────────────────────────────────────────────────────────┤
│  E. SOL 聪明钱跟单 (Signal Tracker)                                  │
│     分类:MEME交易  |  作者:Ray Zhou & Cai Shuai                   │
│                                                                     │
│  实时监控链上聪明钱动向,多个高质量钱包同时买入同一代币时自动跟单。   │
│  SmartMoney / KOL / Whale 三类信号,跟着最聪明的钱走。               │
│                                                                     │
│  ● 支持链:Solana                                                   │
│  ● 收益来源:聪明钱信号跟单                                         │
│  ● 风险等级:⭐⭐⭐ 高(Meme 币高波动)                              │
│  ● 运行方式:后台守护进程,每 20 秒轮询                              │
│  ● 风控:MC/流动性过滤 + Dev 零容忍检查 + Bundler 操控检测            │
│         + K线追高检测 + Session 风控(连亏暂停)                     │
│  ● 特点:同车钱包数分级仓位 + 成本感知止盈 + 时间衰减止损            │
│  ● 依赖:skills-store (signal-list, price-info, token-search, candles,  │
│          tokenDevInfo, tokenBundleInfo, balances, quote, swap)       │
├─────────────────────────────────────────────────────────────────────┤
│  F. SOL Memepump 扫描 (Memepump Scanner)                             │
│     分类:MEME交易  |  作者:Victor Lee (victor.lee@okg.com)        │
│                                                                     │
│  实时扫描 Pump.fun 迁移代币,TX加速 + 成交量突增 + 买压主导          │
│  三信号共振时自动买入——捕捉安全验证后的动量爆发瞬间。                │
│                                                                     │
│  ● 支持链:Solana                                                   │
│  ● 收益来源:Pump.fun 迁移后动量爆发                                │
│  ● 风险等级:⭐⭐⭐ 高(Meme 币高波动)                              │
│  ● 运行方式:后台守护进程,每 10 秒轮询                              │
│  ● 风控:服务端安全过滤 + Dev/Bundler 深度验证 + 三重信号检测        │
│  ● 特点:SCALP/MINIMUM 分档仓位 + Hot Mode 自适应 + 30min 最大持仓  │
│  ● 依赖:skills-store (memepump-tokenList, tokenDevInfo,               │
│          tokenBundleInfo, candles, trades, price-info, quote, swap)  │
└─────────────────────────────────────────────────────────────────────┘

请选择:输入 A ~ F

此外,我们还支持以下 dApp 平台,可以直接交互:

┌─────────────────────────────────────────────────────────────────────┐
│  支持的 dApp 平台                                                   │
├──────────────┬──────────────────────┬───────────────────────────────┤
│  平台         │  类型                │  支持链                       │
├──────────────┼──────────────────────┼───────────────────────────────┤
│  Aave V3     │  借贷协议            │  Ethereum, Polygon,           │
│              │                      │  Arbitrum, Base               │
│  Compound V3 │  借贷协议            │  Base, Ethereum               │
│  Morpho      │  借贷协议 (Vault)    │  Base, Ethereum               │
│  Uniswap V3  │  DEX 链上交易         │  Arbitrum, Ethereum, Polygon  │
│  Hyperliquid │  永续合约 + 现货交易  │  Hyperliquid L1               │
│  Ethena      │  sUSDe 质押收益       │  Ethereum                     │
│  Polymarket  │  预测市场             │  Polygon                      │
│  Kalshi      │  合规预测市场 (美国)  │  -(中心化)                  │
└──────────────┴──────────────────────┴───────────────────────────────┘

如果你想直接使用某个平台(如 "帮我在 Aave 存 USDC"、"Uniswap 换币"),
我会直接跳转到对应的 skill。

Step 2: User Selects Strategy or Platform

User saysAction
"A", "调仓", "auto-rebalance", "USDC 收益"→ Go to Flow A
"B", "网格", "grid", "grid trading"→ Go to Flow B
"C", "杠杆循环", "leverage loop", "套利"→ Go to Flow C
"D", "涨幅榜", "ranking", "榜单狙击"→ Go to Flow D
"E", "聪明钱", "signal", "跟单", "smart money"→ Go to Flow E
"F", "memepump", "pump.fun", "meme 扫描"→ Go to Flow F
"都要", "both", "两个都跑"→ Explain that multiple strategies can run concurrently, guide one by one
"Aave", "存款", "借贷"→ Route to
skills-store aave
commands
"Uniswap", "换币", "swap"→ Route to
skills-store uniswap
commands
"Hyperliquid", "永续", "合约"→ Route to
skills-store hyperliquid
commands
"Ethena", "sUSDe", "质押"→ Route to
skills-store ethena
commands
"Polymarket", "预测市场"→ Route to
skills-store polymarket
commands
Mentions a specific dApp platform→ Route to the corresponding
skills-store <dapp>
commands

Flow A: USDC 智能调仓

Step A1: Ask for chain

USDC 智能调仓支持以下链:

| 链 | Gas 成本 | 说明 |
|----|----------|------|
| Base | 极低 (~$0.01) | 推荐小资金用户 |
| Ethereum | 较高 (~$2-10) | 大资金用户,协议 TVL 更高 |

你想在哪条链上运行?(base / ethereum)

Step A2: Ask for balance / check wallet

After user selects chain:
好的,在 {chain} 上运行 USDC 智能调仓。

请问你在 {chain} 上有多少 USDC 可以投入?
(或者我可以帮你查一下钱包余额)
If user provides wallet address or says "帮我查" → use
skills-store portfolio
to check balance.

Step A3: Confirm and launch

确认启动参数:

| 参数 | 值 |
|------|---|
| 策略 | USDC 智能调仓 |
| 链 | {chain} |
| 可用资金 | {amount} USDC |
| 检查频率 | 每 60 分钟 |
| 最小利差 | 0.5% |
| 协议覆盖 | Aave V3 + Compound V3 + Morpho |

确认启动?(Y/n)
After confirmation, execute:
bash
skills-store auto-rebalance start --chain {chain} --interval 60 --min-spread 0.5

Step A4: Post-launch guidance

智能调仓守护进程已启动!

后续操作:
• 查看状态:skills-store auto-rebalance status
• 停止运行:skills-store auto-rebalance stop
• 设置 Telegram 通知(推荐):
  export TELEGRAM_BOT_TOKEN=<TOKEN>
  export TELEGRAM_CHAT_ID=<CHAT_ID>
  skills-store auto-rebalance start --chain {chain}

Flow B: ETH/USDC 网格交易

Step B1: Confirm chain

ETH/USDC 网格交易目前仅支持 Base 链。

需要准备:
• Base 链上的 ETH(用于交易 + Gas)
• Base 链上的 USDC(用于交易)
• 建议 ETH:USDC 比例约 50:50

你在 Base 上有多少资金可以投入?
(或者我可以帮你查一下钱包余额)
If user provides wallet address or says "帮我查" → use
skills-store portfolio
to check balance.

Step B2: Market analysis

Before launching, run market analysis:
bash
skills-store grid analyze
Present results to user:
当前市场状况:

| 指标 | 值 |
|------|---|
| ETH 价格 | ${price} |
| EMA-20 | ${ema} |
| 波动率 | {vol}% |
| 趋势 | {trend} |

{market_comment}
Market comment logic:
  • Volatility > 3%: "波动率较高,网格策略表现良好的环境"
  • Volatility < 1%: "波动率偏低,网格收益可能有限"
  • Strong trend: "单边趋势中,注意仓位限制会自动保护"

Step B3: Confirm and launch

确认启动参数:

| 参数 | 值 |
|------|---|
| 策略 | ETH/USDC 网格交易 |
| 链 | Base |
| 可用资金 | ~${total_usd} (ETH + USDC) |
| 网格级数 | 6 |
| 执行频率 | 每 60 秒(可通过 skills-store grid set --key tick_interval_secs 调整) |
| 单笔上限 | 12% 总仓位 |
| 仓位保护 | ETH 占比 35%~65% |

确认启动?(Y/n)
After confirmation, execute:
bash
skills-store grid start

Step B4: Post-launch guidance

网格交易 Bot 已启动!

后续操作:
• 查看状态:skills-store grid status
• 查看收益:skills-store grid report
• 交易记录:skills-store grid history
• 停止运行:skills-store grid stop
• 市场分析:skills-store grid analyze
• 调整参数:skills-store grid set --key <name> --value <value>
• 查看配置:skills-store grid config

Flow C: 稳定币杠杆循环 (Aave Leverage Loop)

原理

在 Aave V3 上执行 USDC 存款 → 借 USDC → 再存款 → 再借 → 再存款的循环,赚取存款利率和借款利率之间的利差。全程 USDC,无币价风险。
本金 1000 USDC,LTV 80%,循环 3 轮:

第 1 轮:存入 1000 → 借出 800
第 2 轮:存入 800  → 借出 640
第 3 轮:存入 640  → 借出 512(保留不再循环)

总存款 = 1000 + 800 + 640 = 2440 USDC
总借款 = 800 + 640 + 512 = 1952 USDC (如最后一轮也循环)
       = 800 + 640       = 1440 USDC (如最后一轮不借)
有效杠杆 ≈ 2.44x

净年化 = (总存款 × 存款利率 - 总借款 × 借款利率) / 本金
举例:存款 4%, 借款 3% → (2440×4% - 1440×3%) / 1000 = 5.36%

Step C1: Ask for chain

稳定币杠杆循环支持以下链:

| 链 | Gas 成本 | 说明 |
|----|----------|------|
| Ethereum | ~$2-10/tx | TVL 最高,利率最稳定 |
| Arbitrum | ~$0.1-0.5/tx | 推荐,Gas 低且流动性好 |
| Polygon | ~$0.01/tx | Gas 极低 |
| Base | ~$0.01/tx | Gas 极低 |

推荐 Arbitrum(Gas 低 + 流动性好)。你想在哪条链上执行?

Step C2: Check profitability

After user selects chain, check real-time利差:
bash
skills-store aave reserve USDC --chain {chain}
Extract
supplyAPY
and
borrowAPY
, then validate:
当前 Aave {chain} USDC 利率:

| 指标 | 值 |
|------|---|
| 存款利率 (Supply APY) | {supply_apy}% |
| 借款利率 (Borrow APY) | {borrow_apy}% |
| 利差 | {spread}% |
| 循环 3 轮后预估净年化 | {net_apy}% |
Profitability check:
  • If
    supply_apy <= borrow_apy
    : ABORT — "利差为负(存款 {supply}% < 借款 {borrow}%),当前不适合执行此策略。建议改用策略 A(智能调仓)或等待利率回归。"
  • If spread < 0.5%: WARN — "利差仅 {spread}%,杠杆后年化约 {net}%,收益偏低。是否继续?"
  • If spread >= 0.5%: PROCEED — "利差 {spread}%,杠杆放大后预估年化 {net}%,可以执行。"

Step C3: Ask for amount and confirm

请问投入多少 USDC?(需要你在 {chain} 上已有 USDC)
After user provides amount:
确认执行参数:

| 参数 | 值 |
|------|---|
| 策略 | 稳定币杠杆循环 |
| 链 | {chain} |
| 本金 | {amount} USDC |
| LTV | 80% |
| 循环轮数 | 3(健康因子 > 1.20 时继续) |
| 预估总存款 | ~{amount × 2.44} USDC |
| 预估总借款 | ~{amount × 1.44} USDC |
| 预估净年化 | {net_apy}% |
| 预估月收益 | ~${monthly} |

需要 EVM_PRIVATE_KEY 签署链上交易
确认执行?(Y/n)

Step C4: Execute leverage loops

After user confirms, execute
skills-store aave
commands in sequence:
Step 1: 验证利差
──────────────
  skills-store aave reserve USDC --chain {chain}
  → 确认 supply > borrow,否则中止

Step 2: 首次存入
──────────────
  skills-store aave supply --asset USDC --amount {principal} --chain {chain}
  → 确认 tx 成功
  → total_supplied = principal

Step 3: 循环(最多 3 轮)
──────────────────────────
  每一轮:

    a) 检查健康因子:
       skills-store aave account {address} --chain {chain}
       → 如果 health_factor < 1.30,停止循环,报告当前状态

    b) 借出 USDC:
       borrow_amount = 上一轮存入金额 × 0.80
       skills-store aave borrow --asset USDC --amount {borrow_amount} --chain {chain}
       → total_borrowed += borrow_amount

    c) 再存入:
       skills-store aave supply --asset USDC --amount {borrow_amount} --chain {chain}
       → total_supplied += borrow_amount

Step 4: 报告最终状态
────────────────────
  skills-store aave account {address} --chain {chain}
Present final result:
稳定币杠杆循环完成!

| 指标 | 值 |
|------|---|
| 本金 | {principal} USDC |
| 总存款 | {total_supplied} USDC |
| 总借款 | {total_borrowed} USDC |
| 有效杠杆 | {total_supplied / principal}x |
| 健康因子 | {health_factor} |
| 存款利率 | {supply_apy}% |
| 借款利率 | {borrow_apy}% |
| 预估净年化 | {net_apy}% |
| 预估月收益 | ~${monthly} |

后续操作:
• 查看仓位:skills-store aave account {address} --chain {chain}
• 查看利率变化:skills-store aave reserve USDC --chain {chain}
• 退出策略(去杠杆):告诉我 "退出策略C" 或 "去杠杆"

Exit Flow (去杠杆)

When user says "退出策略C", "去杠杆", "close leverage loop":
Step 1: 查看当前仓位
  skills-store aave account {address} --chain {chain}

Step 2: 反向循环(逐轮退出)
  每一轮:
    a) skills-store aave withdraw --asset USDC --amount {该轮借出金额} --chain {chain}
    b) skills-store aave repay --asset USDC --amount {该轮借出金额} --chain {chain}

Step 3: 最终提取全部
  skills-store aave withdraw --asset USDC --amount max --chain {chain}

Step 4: 报告
  "已完全退出杠杆循环,取回 {final_amount} USDC"

Monitoring (策略监控)

When user asks "策略C状态", "杠杆循环状态", "check my loop":
bash
skills-store aave account {address} --chain {chain}
skills-store aave reserve USDC --chain {chain}
Present:
| 指标 | 当前值 |
|------|--------|
| 总存款 (USD) | ${total_collateral} |
| 总借款 (USD) | ${total_debt} |
| 健康因子 | {health_factor} |
| 存款利率 | {supply_apy}% |
| 借款利率 | {borrow_apy}% |
| 利差 | {spread}% |
| 预估月净收益 | ~${monthly} |
Alerts:
  • health_factor < 1.30
    → "健康因子偏低 ({hf}),建议去杠杆一轮"
  • health_factor < 1.10
    → "清算风险!立即去杠杆"
  • borrow_apy > supply_apy
    → "利差转负,建议退出策略C"

Flow D: SOL 涨幅榜狙击 (Ranking Sniper)

原理

实时监控 OKX Solana 涨幅排行榜 Top 20,当新代币首次上榜时,经过三级风控过滤 + Momentum Score 评分后自动买入,通过 6 层退出系统管理仓位。不预判哪个币能涨,而是吃上榜后的那一段动量。

策略细节

  1. 监控: 每 10 秒轮询 OKX Solana 涨幅榜 Top 20
  2. 风控过滤 (25 项):
    • Slot Guard: 蜜罐检测、Top10 集中度 ≤80%、Dev 持仓 ≤50%
    • Advanced Safety: Bundler ≤30%、狙击手 ≤30%、Dev Rug 历史 ≤20
    • Holder Risk: 13 项基础过滤 + 3 项可疑地址扫描
  3. 评分: Smart Money 标签 +8 分、持仓分散度、低狙击手等信号加分,0-125 分达标后买入
  4. 退出机制 (6 层优先级):
    • 排名退出(最高优先级)> 硬止损(-25%)> 快速止损(5min/-8%)
    • 追踪止损(+8%激活/12%回撤)> 时间止损(6h)> 梯度止盈(+5%/+15%/+30% 分三批)
  5. 安全网: 停止引擎自动清仓所有持仓,日亏损上限 15% 自动停机

依赖的 skills-store 命令

CLI 命令用途
skills-store ranking-sniper tick
执行单次轮询
skills-store ranking-sniper start
启动守护进程
skills-store ranking-sniper stop
停止运行
skills-store ranking-sniper status
查看状态
skills-store ranking-sniper report
详细 PnL 报告

Step D1: Confirm and configure

SOL 涨幅榜狙击 运行在 Solana 链上。

需要准备:
• SOL 钱包私钥(用于签署链上交易)
• 钱包中有足够 SOL(用于交易 + Gas)
• skills-store 已安装

请问你准备投入多少 SOL?(建议 0.5~2 SOL 起步测试)

Step D2: Launch

确认后,引导用户启动 Ranking Sniper:
bash
# 查看当前配置
skills-store ranking-sniper config

# 启动
skills-store ranking-sniper start

Flow E: SOL 聪明钱跟单 (Signal Tracker)

原理

实时监控 SmartMoney / KOL / Whale 三类链上信号,当多个聪明钱钱包同时买入同一代币时,经过多层安全验证后自动跟单买入。不猜哪个币能涨,而是跟着最聪明的钱走。

策略细节

  1. 监控: 每 20 秒轮询 OKX Signal API,拉取三类钱包买入信号
  2. 服务端预过滤: MC ≥ $200K / 流动性 ≥ $80K
  3. 客户端二次验证:
    • Holders ≥ 300 / Liq/MC ≥ 5% / Top10 ≤ 50%
    • LP Burn ≥ 80% / Holder 密度 300/百万MC
  4. Dev 零容忍检查: rug 记录 = 0 / 发币数 ≤ 20 / 持仓 ≤ 15%
  5. Bundler 操控检测: ATH ≤ 25% / 数量 ≤ 5
  6. 分级仓位 (按同车钱包数):
    • ≥8 个钱包 = 0.020 SOL
    • ≥5 个钱包 = 0.015 SOL
    • ≥3 个钱包 = 0.010 SOL
  7. 退出机制:
    • 成本感知 3 级止盈(+5%/+15%/+30% net)+ Trailing Stop(+12%激活/10%回撤)
    • 硬止损 -10% + 时间衰减止损(15min→-10% / 30min→-8% / 60min→-5%)
    • 趋势时间止损(15min K线反转)+ 4h 硬性退出
  8. Session 风控: 连续亏损 3 次暂停 10min / 累计亏损 0.05 SOL 暂停 30min / 累计 0.10 SOL 终止

依赖的 skills-store 命令

CLI 命令用途
skills-store signal-tracker tick
执行单次轮询
skills-store signal-tracker start
启动守护进程
skills-store signal-tracker stop
停止运行
skills-store signal-tracker status
查看状态
skills-store signal-tracker report
详细 PnL 报告

Step E1: Confirm and configure

SOL 聪明钱跟单 运行在 Solana 链上。

需要准备:
• SOL 钱包私钥
• 钱包中有足够 SOL
• skills-store 已安装

请问你准备投入多少 SOL?(建议 0.3~1 SOL 起步测试)

Step E2: Launch

确认后,引导用户启动 Signal Tracker:
bash
# 查看当前配置
skills-store signal-tracker config

# 启动(推荐先用 dry-run 测试)
skills-store signal-tracker start --dry-run

# 确认无误后正式启动
skills-store signal-tracker start

Flow F: SOL Memepump 扫描 (Memepump Scanner)

原理

实时扫描 Pump.fun 迁移代币,通过服务端安全过滤 + 客户端预分类 + Dev/Bundler 深度验证后,基于三重信号检测(TX 加速 × 成交量突增 × 买压主导)确认动量后自动买入。不预判哪个 meme 能爆,而是捕捉安全验证后的动量爆发瞬间。

策略细节

  1. 监控: 每 10 秒调用 Trenches tokenList API 拉取已迁移代币
  2. 服务端过滤:
    • MC $80K-$800K / Holders ≥ 50 / Dev ≤ 10% / Bundler ≤ 15%
    • Sniper ≤ 20% / Top10 ≤ 50% / 新钱包 ≤ 40% / 年龄 4-180min
  3. 客户端预分类: B/S ratio ≥ 1.3 / Vol/MC ≥ 5% / Top10 ≤ 55%
  4. Dev 零容忍检查: rug = 0 / 发币 ≤ 20
  5. Bundler 检测: ATH ≤ 25% / 数量 ≤ 5
  6. 三重信号检测:
    • Signal A: TX 加速(当前/前分钟 ≥ 1.35× 或投影 ≥ 60/min)
    • Signal B: 成交量突增(当前/5min 均值 ≥ 1.5-2.0×)
    • Signal C: 买压主导(1h B/S ≥ 1.5)
  7. 分级仓位:
    • SCALP(A+C)= 0.0375 SOL
    • MINIMUM(A+B+C 三信号共振)= 0.075 SOL
    • Hot Mode 自适应(高活跃市场降低 A 门槛 1.35→1.2)
  8. 退出机制:
    • 成本感知 2 级止盈(+15%/+25% net)
    • 分级止损(SCALP -15% / HOT -20% / QUIET -25%)
    • 时间止损(SCALP 5min / HOT 8min / QUIET 15min)
    • TP1 后 breakeven stop + Trailing -5%,最大持仓 30min

依赖的 skills-store 命令

CLI 命令用途
skills-store scanner tick
执行单次扫描
skills-store scanner start
启动守护进程
skills-store scanner stop
停止运行
skills-store scanner status
查看状态
skills-store scanner report
详细 PnL 报告
skills-store scanner analyze
Dry-run 分析

Step F1: Confirm and configure

SOL Memepump 扫描 运行在 Solana 链上。

需要准备:
• SOL 钱包私钥
• 钱包中有足够 SOL
• skills-store 已安装

请问你准备投入多少 SOL?(建议 0.2~0.5 SOL 起步测试)

Step F2: Launch

确认后,引导用户启动 Memepump Scanner:
bash
# 查看当前配置
skills-store scanner config

# 先用 analyze 观察
skills-store scanner analyze

# 启动
skills-store scanner start

Strategy Comparison (Internal Reference)

维度A: USDC 智能调仓B: ETH/USDC 网格C: 稳定币杠杆循环D: 涨幅榜狙击E: 聪明钱跟单F: Memepump 扫描
支持链Base, EthereumBaseEthereum, Arbitrum, Polygon, BaseSolanaSolanaSolana
交易对USDC (单币)ETH/USDCUSDC (单币)SOL/MemeSOL/MemeSOL/Meme
收益来源跨协议利差网格价差Aave 存借利差 × 杠杆涨幅榜动量聪明钱信号Pump.fun 迁移动量
风险LowMedium-LowLowHighHighHigh
最佳市况任何市况震荡行情存借利差为正Meme 行情活跃聪明钱活跃期Pump.fun 热潮期
最小资金~$500 (ETH)~$50~$100 (Arb)~0.5 SOL~0.3 SOL~0.2 SOL
需要的密钥EVM_PRIVATE_KEYEVM_PRIVATE_KEY + OKX APIEVM_PRIVATE_KEYSOL 私钥 + OKX APISOL 私钥 + OKX APISOL 私钥 + OKX API
运行方式后台守护进程后台守护进程AI 引导执行后台守护进程后台守护进程后台守护进程
CLI 命令
skills-store auto-rebalance
skills-store grid
skills-store aave
skills-store ranking-sniper
skills-store signal-tracker
skills-store scanner

Authentication Requirements

策略环境变量说明
A
EVM_PRIVATE_KEY
用于签署链上交易
A (可选)
TELEGRAM_BOT_TOKEN
+
TELEGRAM_CHAT_ID
Telegram 通知
B
EVM_PRIVATE_KEY
用于签署链上交易
B
OKX_API_KEY
+
OKX_SECRET_KEY
+
OKX_PASSPHRASE
OKX DEX 聚合器 API
B (可选)
TELEGRAM_BOT_TOKEN
+
TELEGRAM_CHAT_ID
Telegram 通知
C
EVM_PRIVATE_KEY
用于签署 Aave supply/borrow 交易
D/E/F
SOL_PRIVATE_KEY
Solana 钱包私钥,用于链上交易
D/E/F
OKX_API_KEY
+
OKX_SECRET_KEY
+
OKX_PASSPHRASE
OKX DEX API(报价 + swap)
If user hasn't set up keys, guide them:
需要先配置环境变量。在 .env 文件中添加:

# EVM 策略 (A/B/C) — 钱包私钥
EVM_PRIVATE_KEY=0x...

# Solana 策略 (D/E/F) — 钱包私钥
SOL_PRIVATE_KEY=...

# 策略 B/D/E/F 需要 — OKX API
OKX_API_KEY=...
OKX_SECRET_KEY=...
OKX_PASSPHRASE=...

# 可选 — Telegram 通知
TELEGRAM_BOT_TOKEN=...
TELEGRAM_CHAT_ID=...

Edge Cases

ScenarioBehavior
User asks for both strategiesGuide to run both in separate terminals
User has no USDCSuggest using
skills-store uniswap swap
to swap first
User has no ETH on BaseSuggest bridging or swapping
EVM_PRIVATE_KEY not setShow setup instructions before launching
User asks about other strategies (funding rate, sUSDe loop)These are not yet built-in — guide user through the steps using individual
plugin-store
commands (
skills-store aave
,
skills-store hyperliquid
,
skills-store ethena
)
Aave 利差为负 (borrow > supply)Strategy C 不可执行,建议策略 A 或等待利率回归
健康因子过低策略 C 循环时自动停止(HF < 1.30),提醒用户去杠杆
User just installed dapp-composer with no follow-upShow Post-Install Welcome listing all skills
User asks "你能做什么" / "what can you do" / "有什么 skill"Show Post-Install Welcome listing all skills
User asks about a specific dApp platformRoute to the corresponding
skills-store <dapp>
command directly
User asks "支持哪些平台/协议"Show the dApp platform table
User says "哪个更好"Use the comparison table; recommend A for conservative, D/E/F for aggressive Meme 玩家
User has very small capital (<$50)Recommend B on Base (low gas) or D/E/F on Solana (小额测试)
User has large capital (>$10k)Recommend A on Ethereum (higher TVL, deeper liquidity)
User asks about Solana Meme 策略Show D/E/F options, explain each strategy's signal source differs
skills-store 未安装引导安装:
curl -sSL .../install.sh | sh
SOL_PRIVATE_KEY not setShow setup instructions, warn about Meme 币高风险
User asks "哪个 Solana 策略更好"D 最稳(榜单动量)、E 最聪明(跟单)、F 最激进(Pump.fun),建议小额分散测试

dApp CLI References (Built-in)

The following dApp commands are all available via the
plugin-store
binary after running the Pre-flight Check above.

[Aave V3 CLI Reference]

7 commands for lending market data, reserve details, account positions, supply/withdraw, and borrow/repay operations.

Authentication

  • Data commands (
    markets
    ,
    reserve
    ,
    account
    ): No auth needed.
  • Transaction commands (
    supply
    ,
    withdraw
    ,
    borrow
    ,
    repay
    ): Require
    EVM_PRIVATE_KEY
    in
    .env
    .

Command Index

#CommandAuthDescription
1
skills-store aave markets --chain <chain>
NoList all Aave V3 reserve markets
2
skills-store aave reserve <symbol> --chain <chain>
NoGet reserve APY, liquidity, config
3
skills-store aave account <address> --chain <chain>
NoView positions, health factor, borrowing power
4
skills-store aave supply --token <symbol> --amount <n> --chain <chain>
YesSupply assets to earn yield
5
skills-store aave withdraw --token <symbol> --amount <n|max> --chain <chain>
YesWithdraw supplied assets
6
skills-store aave borrow --token <symbol> --amount <n> --chain <chain>
YesBorrow against collateral
7
skills-store aave repay --token <symbol> --amount <n|max> --chain <chain>
YesRepay borrowed assets
Supported chains: ethereum, polygon, arbitrum, base

Key Concepts

  • Health Factor: Must stay > 1.0 or position is liquidatable. Recommended > 1.5.
  • aTokens: Receipt tokens received when supplying (e.g. supply USDC → receive aUSDC). Balance grows automatically.
  • LTV: Max borrow value as % of collateral value (e.g. 80% LTV = borrow up to 80% of collateral).
  • Use
    max
    for full withdrawal or full repayment.

Quickstart

bash
skills-store aave markets --chain ethereum
skills-store aave reserve USDC --chain ethereum
skills-store aave account 0xYourAddress --chain ethereum
skills-store aave supply --token USDC --amount 100 --chain ethereum
skills-store aave withdraw --token USDC --amount max --chain ethereum
skills-store aave borrow --token USDC --amount 500 --chain ethereum
skills-store aave repay --token USDC --amount max --chain ethereum

Edge Cases

  • Health factor risk: warn if resulting HF < 1.5 after withdraw/borrow.
  • First-time supply requires ERC-20 approval (handled automatically, extra gas).
  • Use
    --amount max
    to repay full debt including accrued interest.
  • Unsupported chain → error listing supported chains.

[Morpho CLI Reference]

5 commands for Morpho Blue lending markets, MetaMorpho vaults, and user positions.

Authentication

  • All query commands (
    markets
    ,
    market
    ,
    vaults
    ,
    vault
    ,
    positions
    ): No auth needed.
  • On-chain vault operations (deposit/withdraw): Require
    EVM_PRIVATE_KEY
    in
    .env
    .

Command Index

#CommandAuthDescription
1
skills-store morpho markets [--chain <chain>] [--order-by <field>] [--direction <dir>]
NoList Morpho Blue markets with APY and TVL
2
skills-store morpho market <unique_key> [--chain-id <id>]
NoGet detailed market data
3
skills-store morpho vaults [--chain <chain>] [--order-by <field>] [--direction <dir>]
NoList MetaMorpho vaults
4
skills-store morpho vault <address> [--chain-id <id>]
NoGet detailed vault data
5
skills-store morpho positions <address> [--chain <chain>]
NoView wallet positions
Supported chains: ethereum, base, arbitrum, optimism, polygon
Chain IDs: 1=Ethereum, 8453=Base, 42161=Arbitrum, 10=Optimism, 137=Polygon
Order-by (markets): SupplyAssetsUsd, BorrowAssetsUsd, Utilization, SupplyApy, BorrowApy
Order-by (vaults): TotalAssetsUsd, TotalAssets, Apy, NetApy, Name

Key Concepts

  • Morpho Blue: Permissionless isolated lending markets — each market has its own params, no shared risk.
  • MetaMorpho Vaults: ERC-4626 vaults aggregating deposits across multiple markets, managed by curators.
  • Net APY vs Gross APY: Net APY subtracts the vault's performance fee. Always compare using Net APY.
  • Unique Key: 32-byte hex identifying a Morpho Blue market — use for
    market
    command.

Quickstart

bash
skills-store morpho markets --chain base --order-by SupplyApy --direction Desc
skills-store morpho market 0xb323...86cc --chain-id 1
skills-store morpho vaults --chain ethereum --order-by NetApy --direction Desc
skills-store morpho vault 0xBEEF...F378 --chain-id 1
skills-store morpho positions 0xYourAddress --chain base

[Uniswap CLI Reference]

3 commands for swap quotes, swap execution, and token lookup on Uniswap V3.

Authentication

  • tokens
    : No auth needed.
  • quote
    : Requires
    EVM_PRIVATE_KEY
    (reads on-chain QuoterV2 contract — no gas spent).
  • swap
    : Requires
    EVM_PRIVATE_KEY
    (signs and broadcasts transaction).

Command Index

#CommandAuthDescription
1
skills-store uniswap quote --from <token> --to <token> --amount <n> [--chain <chain>] [--fee <bps>]
Yes*Get estimated swap output without executing
2
skills-store uniswap swap --from <token> --to <token> --amount <n> [--chain <chain>] [--fee <bps>] [--slippage <bps>]
YesExecute on-chain swap
3
skills-store uniswap tokens [--chain <chain>]
NoList well-known token symbols and addresses
Supported chains: arbitrum (default), ethereum, polygon
Fee tiers: 100 (0.01%), 500 (0.05%), 3000 (0.3%), 10000 (1%)
Default slippage: 50 bps (0.5%)

Available Tokens

ChainTokens
ArbitrumWETH, USDC, USDC.e, USDT, wstETH, weETH, WBTC, ARB
EthereumWETH, USDC, USDT, wstETH, weETH, WBTC, DAI, sUSDe, USDe
PolygonWETH, USDC, USDT, WMATIC, wstETH

Key Concepts

  • Fee Tiers: Correlated pairs (WETH/wstETH) use 100 bps; standard pairs (WETH/USDC) use 3000 bps.
  • Slippage: Default 50 bps. For large/illiquid swaps, use
    --slippage 100
    or higher.
  • ERC-20 Approval: First swap of a token requires approval (auto-handled, extra gas).
  • Unknown token: Use contract address
    0x...
    directly if symbol not in well-known list.

Quickstart

bash
skills-store uniswap tokens --chain arbitrum
skills-store uniswap quote --from WETH --to wstETH --amount 0.05
skills-store uniswap swap --from WETH --to wstETH --amount 0.05
skills-store uniswap swap --from USDC --to WETH --amount 100 --chain ethereum --fee 3000

[Hyperliquid CLI Reference]

11 commands for perpetual futures and spot trading on Hyperliquid.

Authentication

  • Data commands (
    markets
    ,
    spot-markets
    ,
    price
    ,
    orderbook
    ,
    funding
    ): No auth needed.
  • Trading commands (
    buy
    ,
    sell
    ,
    cancel
    ,
    positions
    ,
    balances
    ,
    orders
    ): Require
    EVM_PRIVATE_KEY
    in
    .env
    (signs EIP-712 typed data for Hyperliquid L1).

Command Index

#CommandAuthDescription
1
skills-store hyperliquid markets
NoList perpetual markets (price, leverage, volume)
2
skills-store hyperliquid spot-markets
NoList spot markets
3
skills-store hyperliquid price <symbol>
NoReal-time mid price
4
skills-store hyperliquid orderbook <symbol>
NoL2 order book snapshot
5
skills-store hyperliquid funding <symbol>
NoCurrent and historical funding rates
6
skills-store hyperliquid buy --symbol <s> --size <n> --price <p> [--leverage <l>]
YesBuy / open long
7
skills-store hyperliquid sell --symbol <s> --size <n> --price <p>
YesSell / open short
8
skills-store hyperliquid cancel --symbol <s> --order-id <oid>
YesCancel an open order
9
skills-store hyperliquid positions
YesView perpetual positions
10
skills-store hyperliquid balances
YesView USDC margin and spot balances
11
skills-store hyperliquid orders [--symbol <s>]
YesList open orders

Key Concepts

  • Funding Rate: Hourly payment between longs/shorts. Positive = longs pay shorts.
  • Cross Margin: All positions share the same USDC margin pool.
  • szDecimals: Each asset has required size precision (e.g. BTC = 5 decimal places). Use
    markets
    to check.
  • Liquidation Price: Monitor closely — cross margin means losses in one position affect all others.

Quickstart

bash
skills-store hyperliquid markets
skills-store hyperliquid funding BTC
skills-store hyperliquid price BTC
skills-store hyperliquid buy --symbol BTC --size 0.01 --price 65000 --leverage 10
skills-store hyperliquid positions
skills-store hyperliquid sell --symbol BTC --size 0.01 --price 66000

[Ethena CLI Reference]

5 commands for sUSDe yield-bearing stablecoin on Ethereum mainnet.

Authentication

  • apy
    ,
    balance
    : No auth needed.
  • stake
    ,
    cooldown
    ,
    unstake
    : Require
    EVM_PRIVATE_KEY
    in
    .env
    (Ethereum mainnet, ETH for gas).

Command Index

#CommandAuthDescription
1
skills-store ethena apy
NosUSDe exchange rate, total assets, cooldown duration
2
skills-store ethena balance <address>
NoUSDe and sUSDe balances for a wallet
3
skills-store ethena stake --amount <n>
YesDeposit USDe → receive sUSDe shares
4
skills-store ethena cooldown --amount <n>
YesInitiate 7-day unstake cooldown (amount in USDe terms)
5
skills-store ethena unstake
YesWithdraw USDe after cooldown completes

Key Concepts

  • Exchange Rate: 1 sUSDe = X USDe (grows over time as yield accrues).
  • Cooldown Period: 7 days. Must call
    cooldown
    first, wait 7 days, then call
    unstake
    .
  • Yield Source: Ethena delta-neutral strategy (spot ETH + short perp) distributes funding income to sUSDe holders. APY ~8–15% historically.
  • sUSDe on L2: Can buy sUSDe on L2 DEXes (cheaper gas), but staking/unstaking only on Ethereum mainnet.

Quickstart

bash
skills-store ethena apy
skills-store ethena balance 0xYourAddress
skills-store ethena stake --amount 1000
skills-store ethena cooldown --amount 500
skills-store ethena unstake

[Polymarket CLI Reference]

12 commands for prediction market search, pricing, and trading on Polygon.

Authentication

  • Data commands (
    search
    ,
    markets
    ,
    event
    ,
    price
    ,
    book
    ,
    history
    ): No auth needed.
  • Trading commands (
    buy
    ,
    sell
    ,
    cancel
    ,
    orders
    ,
    positions
    ,
    balance
    ): Require
    EVM_PRIVATE_KEY
    in
    .env
    (Polygon wallet). API credentials auto-derived and cached at
    ~/.skills-store/polymarket_creds.json
    .

Command Index

#CommandAuthDescription
1
skills-store polymarket search <query> [--limit <n>]
NoSearch prediction markets
2
skills-store polymarket markets [--tag <tag>] [--sort <sort>] [--limit <n>]
NoList popular/active markets
3
skills-store polymarket event <event_id>
NoGet event details with related markets
4
skills-store polymarket price <token_id>
NoGet Yes/No price, midpoint, spread
5
skills-store polymarket book <token_id>
NoView orderbook depth
6
skills-store polymarket history <token_id> [--interval <1m|1h|1d|1w>]
NoPrice history
7
skills-store polymarket buy --token <id> --amount <usdc> --price <0-1>
YesBuy outcome shares
8
skills-store polymarket sell --token <id> --amount <shares> --price <0-1>
YesSell outcome shares
9
skills-store polymarket cancel <order_id>
YesCancel an open order
10
skills-store polymarket orders [--market <id>]
YesView open orders
11
skills-store polymarket positions
YesView current positions
12
skills-store polymarket balance
YesView USDC balance

Key Concepts

  • Prices are probabilities: Price 0.65 = 65% implied probability. Win pays $1.00 per share.
  • Two token IDs per market:
    clobTokenIds[0]
    = Yes,
    clobTokenIds[1]
    = No.
  • CLOB model: Central limit order book — orders may not fill immediately.
  • USDC on Polygon: All trading uses USDC on Polygon network.

Quickstart

bash
skills-store polymarket markets --sort volume --limit 10
skills-store polymarket search "bitcoin"
skills-store polymarket price <token_id>
skills-store polymarket buy --token <token_id> --amount 100 --price 0.65
skills-store polymarket positions

[Kalshi CLI Reference]

12 commands for US-regulated prediction market trading across demo and production environments.

Authentication

  • Data commands (
    search
    ,
    markets
    ,
    event
    ,
    price
    ,
    book
    ,
    history
    ): No auth needed.
  • Trading commands (
    buy
    ,
    sell
    ,
    cancel
    ,
    orders
    ,
    positions
    ,
    balance
    ): Require Kalshi RSA API credentials:
    bash
    KALSHI_KEY_ID=your-key-id
    KALSHI_PRIVATE_KEY_PEM=/path/to/private_key.pem
    Get API keys at: https://kalshi.com/profile/api-keys
Important: Default environment is
demo
(paper trading). Use
--env prod
for real trades. KYC required for production (US residents only).

Command Index

#CommandAuthDescription
1
skills-store kalshi [--env demo|prod] search <query>
NoSearch events and markets
2
skills-store kalshi [--env demo|prod] markets [--sort <sort>] [--limit <n>]
NoList popular/active markets
3
skills-store kalshi [--env demo|prod] event <event_ticker>
NoGet event with related markets
4
skills-store kalshi [--env demo|prod] price <ticker>
NoGet Yes/No price and probability
5
skills-store kalshi [--env demo|prod] book <ticker>
NoView orderbook depth
6
skills-store kalshi [--env demo|prod] history <ticker> [--interval <1m|1h|1d|1w>]
NoPrice history
7
skills-store kalshi [--env demo|prod] buy --ticker <t> --side <yes|no> --count <n> --price <0-1>
YesBuy outcome contracts
8
skills-store kalshi [--env demo|prod] sell --ticker <t> --side <yes|no> --count <n> --price <0-1>
YesSell outcome contracts
9
skills-store kalshi [--env demo|prod] cancel <order_id>
YesCancel an open order
10
skills-store kalshi [--env demo|prod] orders [--ticker <t>]
YesView open orders
11
skills-store kalshi [--env demo|prod] positions
YesView current positions
12
skills-store kalshi [--env demo|prod] balance
YesView USD account balance

Key Concepts

  • Prices in cents: Price 65 = 65% probability. Buy Yes at 65 cents → pay $0.65/contract, win $1.00 if Yes.
  • Count vs Amount: Specify
    --count
    (number of contracts), not a USD amount. Each contract = $1 face value.
  • Demo first: Always test with
    --env demo
    before using
    --env prod
    .
  • Kalshi vs Polymarket: Kalshi = US licensed, KYC required, USD. Polymarket = decentralized, no KYC, USDC on Polygon.

Quickstart

bash
skills-store kalshi markets
skills-store kalshi search "fed rate"
skills-store kalshi price FED-24DEC-T5.25
skills-store kalshi buy --ticker FED-24DEC-T5.25 --side yes --count 10 --price 0.65
skills-store kalshi --env prod buy --ticker FED-24DEC-T5.25 --side yes --count 10 --price 0.65