$npx -y skills add gate/gate-skills --skill gate-exchange-earnGate Smart Earn (L2) via gate-cli: Simple Earn, dual products, staking, yield compare, idle-fund ideas, subscribe/redeem with confirmation. Use this skill whenever the user asks about earn APY, flexible or fixed earn, dual investment, staking rewards, positions, or earn subscribe
| 1 | # Gate Smart Earn Assistant |
| 2 | |
| 3 | ## General Rules |
| 4 | |
| 5 | 本 L2 Skill 遵循公共运行时规则文件: |
| 6 | |
| 7 | → [gate-runtime-rules.md](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md)(Gate Skills 通用运行时规则:CLI / 凭证检查、授权验证、版本检查) |
| 8 | |
| 9 | → [gate-skills-disambiguation.md](https://github.com/gate/gate-skills/blob/master/skills/gate-skills-disambiguation.md)(L1/L2 Skill 路由消歧规则) |
| 10 | |
| 11 | ⚠️ STOP — You MUST read and strictly follow **both** documents above before proceeding. |
| 12 | Do NOT select or call any tool until all rules are read. These rules have the highest priority. |
| 13 | - **Only use the `gate-cli` commands explicitly listed in this skill.** Commands not documented here must NOT be run for these workflows, even if other interfaces expose them. |
| 14 | |
| 15 | --- |
| 16 | |
| 17 | ## Regulatory and safety notices |
| 18 | |
| 19 | - This skill is intended for users aged 18 or above with full civil capacity. |
| 20 | - Digital asset products involve significant risk and may result in partial or total loss. Yields are indicative, not guaranteed. |
| 21 | - The above is for informational purposes only and does not constitute investment, financial, tax, or legal advice. AI-assisted outputs are for general information only and do not constitute any representation, warranty, or guarantee by Gate. |
| 22 | - Users must comply with the laws and regulations of their jurisdiction. Gate operates under licenses in multiple jurisdictions; see https://www.gate.com/gategroup/legal/licenses for the Gate licenses page. |
| 23 | - This skill processes user prompts and queries; operational data is sent to the Gate API through `gate-cli` on the user-controlled host. Do not paste API secrets into chat. |
| 24 | |
| 25 | ## Skill Dependencies |
| 26 | |
| 27 | - **Before any `gate-cli` invocation:** ensure `gate-cli` is installed. Let `GATE_CLI_BIN="${GATE_OPENCLAW_SKILLS_BIN:-$HOME/.openclaw/skills/bin}/gate-cli"`. If **`[ ! -x "$GATE_CLI_BIN" ]`** (and `command -v gate-cli` also fails if you rely on `PATH`), **run** `setup.sh` (e.g. `sh ./setup.sh` from this skill directory), then re-check. **Do not** continue with authenticated earn reads or writes until `gate-cli` runs successfully (e.g. `gate-cli --version`). |
| 28 | - **No MCP servers** are required; execution is **`gate-cli` only** for the commands listed below and in `references/gate-cli.md`. |
| 29 | |
| 30 | ### gate-cli commands used |
| 31 | |
| 32 | **Query operations (read-only)** |
| 33 | |
| 34 | - `gate-cli cex earn uni rate` |
| 35 | - `gate-cli cex earn uni currency` |
| 36 | - `gate-cli cex earn uni records` |
| 37 | - `gate-cli cex earn uni interest` |
| 38 | - `gate-cli cex earn uni interest-records` |
| 39 | - `gate-cli cex earn fixed products` |
| 40 | - `gate-cli cex earn fixed products-asset` |
| 41 | - `gate-cli cex earn fixed lends` |
| 42 | - `gate-cli cex earn dual plans` |
| 43 | - `gate-cli cex earn dual orders` |
| 44 | - `gate-cli cex earn dual balance` |
| 45 | - `gate-cli cex earn staking find` |
| 46 | - `gate-cli cex earn staking assets` |
| 47 | - `gate-cli cex earn staking awards` |
| 48 | - `gate-cli cex earn staking orders` |
| 49 | - `gate-cli cex spot account list` |
| 50 | - `gate-cli cex spot account get` |
| 51 | - `gate-cli info compliance check-token-security` |
| 52 | |
| 53 | **Execution operations (write; Action Draft + explicit Y required)** |
| 54 | |
| 55 | - `gate-cli cex earn uni lend` (with `--json` for lend/redeem semantics per CLI help) |
| 56 | - `gate-cli cex |