Loading...
Loading...
Compare original and translation side by side
gate-cligate-cligate-cligate-cligate-cligate-cliGATE_CLI_BIN="${GATE_OPENCLAW_SKILLS_BIN:-$HOME/.openclaw/skills/bin}/gate-cli"[ ! -x "$GATE_CLI_BIN" ]command -v gate-cliPATHsetup.shsh ./setup.shgate-cligate-cli --versiongate-clireferences/gate-cli.mdgate-cligate-cliGATE_CLI_BIN="${GATE_OPENCLAW_SKILLS_BIN:-$HOME/.openclaw/skills/bin}/gate-cli"[ ! -x "$GATE_CLI_BIN" ]PATHcommand -v gate-clisetup.shsh ./setup.shgate-cligate-cli --versiongate-clireferences/gate-cli.mdgate-cli cex earn uni rategate-cli cex earn uni currencygate-cli cex earn uni recordsgate-cli cex earn uni interestgate-cli cex earn uni interest-recordsgate-cli cex earn fixed productsgate-cli cex earn fixed products-assetgate-cli cex earn fixed lendsgate-cli cex earn dual plansgate-cli cex earn dual ordersgate-cli cex earn dual balancegate-cli cex earn staking findgate-cli cex earn staking assetsgate-cli cex earn staking awardsgate-cli cex earn staking ordersgate-cli cex spot account listgate-cli cex spot account getgate-cli info compliance check-token-securitygate-cli cex earn uni lend--jsongate-cli cex earn uni change--jsongate-cli cex earn fixed create--jsongate-cli cex earn dual placegate-cli cex earn staking swapgate-cli cex earn uni rategate-cli cex earn uni currencygate-cli cex earn uni recordsgate-cli cex earn uni interestgate-cli cex earn uni interest-recordsgate-cli cex earn fixed productsgate-cli cex earn fixed products-assetgate-cli cex earn fixed lendsgate-cli cex earn dual plansgate-cli cex earn dual ordersgate-cli cex earn dual balancegate-cli cex earn staking findgate-cli cex earn staking assetsgate-cli cex earn staking awardsgate-cli cex earn staking ordersgate-cli cex spot account listgate-cli cex spot account getgate-cli info compliance check-token-securitygate-cli cex earn uni lend--jsongate-cli cex earn uni change--jsongate-cli cex earn fixed create--jsongate-cli cex earn dual placegate-cli cex earn staking swapGATE_API_KEYGATE_API_SECRETgate-cli config initGATE_API_KEYGATE_API_SECRET--api-key--api-secretGATE_API_KEYGATE_API_SECRETgate-cli config initGATE_API_KEYGATE_API_SECRET--api-key--api-secretgate-clisetup.shsetup.sh$HOME/.openclaw/skills/bin/gate-cliPATHgate-cligate-clisetup.shsetup.sh$HOME/.openclaw/skills/bin/gate-cligate-cliPATHreferences/gate-cli.mdSKILL.mdreferences/gate-cli.mdgate-clireferences/gate-cli.mdSKILL.mdreferences/gate-cli.mdgate-cli| Logical module | Role in this L2 skill |
|---|---|
| Simple Earn (flexible/fixed) | Product discovery, rates, positions, subscribe/redeem |
| Dual-currency (dual) | Plans, orders, balances, placement |
| Staking | Discover products, positions, rewards, participate |
| Spot account (subset) | Available balance checks before subscribe flows |
| Token security (info) | Optional risk signal when comparing products for a coin |
| 逻辑模块 | 在本L2 Skill中的作用 |
|---|---|
| Simple Earn(灵活/定期) | 产品发现、利率查询、持仓查看、申购/赎回 |
| 双币产品(dual) | 方案查询、订单查看、余额查询、下单 |
| 质押 | 产品发现、持仓查看、奖励查询、参与质押 |
| 现货账户(子集) | 申购流程前的可用余额检查 |
| 代币安全(info) | 对比某一币种的产品时提供可选风险信号 |
| Signal | Dimension | Typical triggers | CLI subset (union with others) |
|---|---|---|---|
| S1 | Earn products | earn, Simple Earn, dual, staking, fixed, flexible | |
| S2 | Yield, risk, compare | APY, APR, risk, which is better, compare; product-side 收益 (what products or markets pay—rates, tiers, “这个产品收益怎么样”) | |
| S3 | Positions and PnL | my earn, how much earned, positions, history; 持仓 收益 (accrued interest/rewards on my holdings, earn PnL and history) | |
| S4 | Subscribe, redeem, configure | subscribe, redeem, join, auto renew, participate | balance reads then |
| 信号 | 维度 | 典型触发词 | CLI子集(与其他信号的并集) |
|---|---|---|---|
| S1 | 理财产品 | earn、Simple Earn、dual、staking、fixed、flexible | |
| S2 | 收益率、风险、对比 | APY、APR、风险、哪个更好、对比;产品收益(指产品或标的的收益率——利率、层级、“这个产品收益怎么样”) | |
| S3 | 持仓与盈亏 | 我的理财、赚了多少、持仓、历史;持仓收益(用户现有持仓产生的累计利息/奖励、理财盈亏及历史,“我赚了多少”) | |
| S4 | 申购、赎回、配置 | 申购、赎回、加入、自动续期、参与 | 余额读取后执行 |
gate-exchange-spotgate-exchange-spotnow − 90 daysnow--from--touni interest-recordsuni recordsuni interest-recordsuni recordsnow − 90 daysnow--from--toproduct_typecurrencyamounttermdaysrisk_preferenceproduct_typecurrencyamounttermdaysrisk_preferencegate-cli cex spot account listgate-cli cex spot account getreferences/gate-cli.md--helpgate-cli cex spot account listgate-cli cex spot account getreferences/gate-cli.md--helpgate-cli cex earn uni lendgate-cli cex earn uni changegate-cli cex earn fixed creategate-cli cex earn dual placegate-cli cex earn staking swapgate-cli cex earn uni lendgate-cli cex earn uni changegate-cli cex earn fixed creategate-cli cex earn dual placegate-cli cex earn staking swap| Case | User intent | Core decision | Tool sequence (abbrev.) |
|---|---|---|---|
| 1 | Idle capital, low risk, best earn mix | Rank conservative products across types | Parallel: |
| 2 | Compare dual vs staking for a coin | Compare APR, lock/exercise narrative, optional | |
| 3 | Portfolio review and better products | Positions then market scan | |
| 4 | Staking detail and participate | Explain terms then optional | |
| 5 | Auto renew / roll strategy | Identify renewable rows then | Position reads → draft → |
| 6 | Flexible rate and min rate | Quote flexible parameters | |
| 7 | Fixed products for asset sorted by yield | List and sort fixed offers | |
| 8 | Staking discovery high yield | List and sort staking | |
| 9 | Dual plans filter (e.g. sell-high BTC) | Filter plans by currency and product type | |
| 10 | Cross-type APR comparison | Side-by-side table with footnotes on methodology | |
| 11 | Separate PnL by earn type | No cross-section totals unless asked; default window ~last 3 months ( | Sum/fetch per bucket: |
| 12 | Subscribe flexible (e.g. USDT) | Balance + rules then lend | spot balance + |
| 13 | Subscribe fixed term | Pick tenor from products | |
| 14 | Redeem flexible slice | Check redeemable then redeem | |
| 15 | Dual settled history | Filter settled dual orders and summarize by currency | |
| 案例 | 用户意图 | 核心决策 | 工具序列(缩写) |
|---|---|---|---|
| 1 | 闲置资金、低风险、最优理财组合 | 对各类保守型产品进行排名 | 并行执行: |
| 2 | 对比某一币种的双币产品与质押 | 对比APR、锁仓/行权说明,可选执行 | |
| 3 | 持仓回顾与更优产品推荐 | 先查看持仓再扫描市场 | |
| 4 | 质押详情与参与质押 | 说明条款后可选执行 | |
| 5 | 自动续期/滚动策略 | 识别可续期持仓,用户确认后执行 | 持仓读取 → 生成草案 → 确认Y后执行 |
| 6 | 灵活理财利率与最低利率 | 报价灵活理财参数 | |
| 7 | 按收益率排序的某一币种定期理财产品 | 列出并排序定期产品 | |
| 8 | 高收益质押产品发现 | 列出并排序质押产品 | |
| 9 | 双币方案筛选(如高价卖出BTC) | 按币种和产品类型筛选方案 | |
| 10 | 跨类型APR对比 | 生成带方法说明脚注的并排表格 | |
| 11 | 按理财类型拆分盈亏 | 除非用户要求,否则不生成跨类别总计;默认数据范围为过去约90天( | 按类别汇总/获取:灵活理财使用带时间过滤的 |
| 12 | 申购灵活理财(如USDT) | 余额检查+规则验证后执行申购 | 现货余额检查 + |
| 13 | 申购定期理财 | 从产品中选择期限 | |
| 14 | 赎回部分灵活理财 | 检查可赎回额度后执行赎回 | |
| 15 | 双币产品结算历史 | 筛选已结算双币订单并按币种汇总 | |
| Condition | Action |
|---|---|
| Query contains 收益 | Classify 产品收益 → S2 only (that angle); 持仓收益 → S3 only (that angle); never activate both S2 and S3 solely from the same undifferentiated 收益 mention |
| User asks for earn yields, products, or comparisons without subscribe/redeem | S1/S2/S3 only; read documented |
| User asks to subscribe, redeem, join staking, place dual, or change auto renew | Activate S4; complete reads then Action Draft; no write without Y |
| User mixes trading (“market buy BTC”) with earn | Route trading to spot/trading skills; handle earn portions only if clearly separable |
| Skip or label “risk data unavailable”; do not block read-only browsing solely for that |
| User wants bucketed earn PnL | Use Case 11 pattern; separate sections; default data scope = ~last 90 days unless user asks for all-time |
| Stale or ambiguous confirmation | Re-issue Action Draft; do not execute writes |
| Multi-step writes (e.g. redeem then subscribe) | Require separate confirmation per write leg |
| 条件 | 操作 |
|---|---|
| 查询包含收益 | 分类为产品收益→仅激活S2;持仓收益→仅激活S3;不得仅因同一未区分的「收益」提及同时激活S2和S3 |
| 用户询问理财收益率、产品或对比,未提及申购/赎回 | 仅激活S1/S2/S3;执行已记录的 |
| 用户要求申购、赎回、参与质押、下单双币产品或更改自动续期 | 激活S4;完成读操作后生成操作草案;无Y确认则不执行写入 |
| 用户混合交易(如“市价买入BTC”)与理财请求 | 将交易请求路由至现货/交易类Skill;仅处理可明确分离的理财部分 |
| 跳过该操作或标注“风险数据不可用”;不得仅因该问题阻止只读浏览 |
| 用户要求按类别拆分理财盈亏 | 使用案例11的模式;分章节展示;默认数据范围为过去约90天,除非用户要求全历史数据 |
| 确认信息过期或模糊 | 重新生成操作草案;不执行写入操作 |
| 多步写入操作(如赎回后申购) | 每一步写入操作都需单独确认 |
undefinedundefined| Item | Value |
|---|---|
| Scenario | {case_name} |
| Product | {product_type} |
| Currency | {currency} |
| Status | {status} |
| Key metrics | {apr_or_amounts} |
Example `decision_text`:
- `Action Draft: Flexible USDT earn, amount 2000 USDT, indicative APR {x}%, risks: floating yield. Reply Y to confirm or N to cancel.`
- `Read-only summary: top fixed USDT terms sorted by APR (see table). No subscription executed.`
- `Not executed: available balance below requested amount.`| 项目 | 数值 |
|---|---|
| 场景 | {case_name} |
| 产品 | {product_type} |
| 币种 | {currency} |
| 状态 | {status} |
| 核心指标 | {apr_or_amounts} |
示例`decision_text`:
- `操作草案:USDT灵活理财,金额2000 USDT,指示性APR {x}%,风险:收益率浮动。回复Y确认或N取消。`
- `只读汇总:按APR排序的USDT定期顶级产品(见表格)。未执行申购操作。`
- `未执行:可用余额低于请求金额。`| Error type | Typical cause | Handling strategy |
|---|---|---|
| Insufficient balance | Not enough spot available for subscription | Show shortfall; suggest lower amount or funding |
| Product unavailable | Tenor sold out or currency unsupported | Explain; refresh product list |
| Auth or permission failure | Key missing earn or spot read scope | Stop writes; guide credential and scope fix |
| Missing confirmation | User did not send Y | Keep draft pending; reads only |
| Stale confirmation | Parameters changed since Y | Invalidate; re-draft |
| CLI partial failure | One parallel read fails | Continue other dimensions; label gaps |
| Write failure | Exchange rejects order | No auto-retry; show message; suggest App/Web |
| 错误类型 | 典型原因 | 处理策略 |
|---|---|---|
| 余额不足 | 申购所需现货余额不足 | 显示缺口;建议降低金额或充值 |
| 产品不可用 | 期限售罄或币种不支持 | 说明原因;刷新产品列表 |
| 认证或权限失败 | 密钥缺失理财或现货读权限 | 停止写入操作;指导用户修复凭证和权限 |
| 缺少确认 | 用户未发送Y | 保留草案等待确认;仅执行读操作 |
| 确认信息过期 | 确认后参数已变更 | 作废原确认;重新生成草案 |
| CLI部分失败 | 某一并行读操作失败 | 继续执行其他维度的操作;标注缺失的数据 |
| 写入失败 | 交易所拒绝订单 | 不自动重试;显示错误信息;建议使用App/Web端 |
dual place--format jsondual place--format json