$npx -y skills add gate/gate-skills --skill gate-exchange-autoinvestThe fast auto-invest function of Gate Exchange Earn. Use this skill whenever you need to create, update, stop, or top up invest plans and to query supported coins, minimum amounts, records, orders, and plan detail. Trigger phrases include \"auto-invest\", \"DCA\", \"dollar cost a
| 1 | ### Resolving `gate-cli` (binary path) |
| 2 | |
| 3 | Resolve **`gate-cli`** in order: **(1)** **`command -v gate-cli`** and **`gate-cli --version`** succeeds; **(2)** **`${HOME}/.local/bin/gate-cli`** if executable; **(3)** **`${HOME}/.openclaw/skills/bin/gate-cli`** if executable. Canonical rules: [`exchange-runtime-rules.md`](https://github.com/gate/gate-skills/blob/master/skills/exchange-runtime-rules.md) §4 (or [`gate-runtime-rules.md`](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md) §4). |
| 4 | |
| 5 | |
| 6 | # gate-exchange-autoinvest |
| 7 | |
| 8 | The fast auto-invest (DCA) function of Gate Exchange Earn, supporting create, update, stop plans, and query related information. |
| 9 | |
| 10 | ## General Rules |
| 11 | |
| 12 | ⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding. |
| 13 | Do NOT select or call any tool until all rules are read. These rules have the highest priority. |
| 14 | → Read [`exchange-runtime-rules.md`](https://github.com/gate/gate-skills/blob/master/skills/exchange-runtime-rules.md) first (mirror: [`exchange-runtime-rules.md` on GitHub](https://github.com/gate/gate-skills/blob/master/skills/exchange-runtime-rules.md)). |
| 15 | - **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. |
| 16 | |
| 17 | ## Skill Dependencies |
| 18 | |
| 19 | ### Authentication |
| 20 | - **Interactive file setup:** when **`GATE_API_KEY`** and **`GATE_API_SECRET`** are **not** both set on the host, run **`gate-cli config init`** to complete the wizard for API key, secret, profiles, and defaults (see [gate-cli](https://github.com/gate/gate-cli)). |
| 21 | - **Env / flags:** **`gate-cli config init`** is **not** required when credentials are already supplied — e.g. **both** **`GATE_API_KEY`** and **`GATE_API_SECRET`** set on the host, or **`--api-key`** / **`--api-secret`** where supported — never ask the user to paste secrets into chat. |
| 22 | - **Permissions:** Earn (auto-invest) access as required by your API key and deployment. |
| 23 | - **Portal:** create or rotate keys outside the chat: https://www.gate.com/myaccount/profile/api-key/manage |
| 24 | |
| 25 | ### Installation Check |
| 26 | - **Required:** `gate-cli` (install from [gate-cli releases](https://github.com/gate/gate-cli/releases) or via your environment’s Gate MCP / skills installer). |
| 27 | - Add the directory containing **`gate-cli`** to **`PATH`** when invoking by name. |
| 28 | - **Credentials:** When **`GATE_API_KEY`** and **`GATE_API_SECRET`** are both set (non-empty) for the host, **do not** require **`gate-cli config init`**. When **both** are unset or empty, **remind** the operator to run **`gate-cli config init`** **or** to configure **`GATE_API_KEY`** / **`GATE_API_SECRET`** in the **matching skill** from the skill library (never ask the user to paste secrets into chat). |
| 29 | - **Sanity check:** Confirm the CLI works (e.g. **`gate-cli --version`** or a read-only earn/auto-invest query from this skill) before plan mutations. |
| 30 | |
| 31 | ## Risk Disclaimer |
| 32 | |
| 33 | **Digital Asset Trading Risk Statement**: |
| 34 | Digital asset trading carries significant risks. Prices are subject to high volatility and market manipulation. Past performance is not indicative of future results. This skill provides informational tools only and does not constitute investment advice. Users are sole |