gate-exchange-vipfee
Gate VIP tier and trading fee query skill. Use when the user asks about their fee rates or VIP level. Triggers on 'VIP level', 'trading fee', 'fee rate', 'spot fee', 'futures fee'.
What this skill does
### Resolving `gate-cli` (binary path)
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).
# Gate VIP & Fee Query Assistant
## General Rules
⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read [gate-runtime-rules.md](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md)
- **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.
## Skill Dependencies
### gate-cli commands used
**Query Operations (Read-only)**
- `gate-cli cex account detail`
- `gate-cli cex wallet market trade-fee`
### Authentication
- **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)).
- **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.
- **Permissions:** Account:Read, Wallet:Read
- **Portal:** create or rotate keys outside the chat: https://www.gate.com/myaccount/profile/api-key/manage
### Installation Check
- **Required:** `gate-cli` (run `sh ./setup.sh` from this skill directory if missing; optional `GATE_CLI_SETUP_MODE=release`).
- Add `$HOME/.openclaw/skills/bin` to **`PATH`** if you invoke `gate-cli` by name (or the directory where [`setup.sh`](./setup.sh) installs it).
- **Credentials:** When **`GATE_API_KEY`** and **`GATE_API_SECRET`** are both set (non-empty) for the host, **do not** require **`gate-cli config init`** — that is equivalent valid config for `gate-cli`. 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).
- **Sanity check:** Do not proceed with authenticated calls until the CLI behaves as expected (e.g. **`gate-cli --version`** or a read-only **`gate-cli cex ...`** command from this skill); confirm credentials resolve before mutating operations.
## Execution mode
**Read and strictly follow** [`references/gate-cli.md`](./references/gate-cli.md), then execute this skill's VIP/fee query workflow.
- `SKILL.md` keeps intent routing and rendering rules.
- `references/gate-cli.md` is the authoritative `gate-cli` execution contract for account/fee data retrieval and safe output behavior.
## Quick Start
Below are the most common prompts to get started quickly:
1. **Query VIP tier**
> What is my VIP level?
2. **Query trading fees**
> Show me the spot and futures trading fees.
3. **Query VIP tier and fees together**
> Check my VIP level and trading fees.
## Domain Knowledge
### Tool Mapping by Domain
| Group | Tool Calls |
|-------|------------|
| Account / VIP tier | `gate-cli cex account detail` |
| Trading fee rates | `gate-cli cex wallet market trade-fee` |
### Key Concepts
- **VIP Tier**: Gate assigns VIP levels (VIP 0 – VIP 16) based on trading volume and asset holdings. Higher VIP tiers unlock lower fee rates.
- **Spot Fee**: The maker/taker fee rate applied to spot trading pairs.
- **Futures Fee**: The maker/taker fee rate applied to futures/contract trading, differentiated by settlement currency (BTC, USDT, USD).
- The `gate-cli cex wallet market trade-fee` tool returns fee rates for both spot and futures in a single response. Use the `settle` parameter to query futures-specific fees.
### API Behavior Notes
- **Account-level pricing**: Gate fee rates are determined by the user's VIP tier. The `currency_pair` parameter does not change the returned fee values — all trading pairs share the same account-level rate.
- **`settle` parameter scope**: The `settle` parameter only affects futures fee fields (`futuresMakerFee` / `futuresTakerFee`). Spot fees (`makerFee` / `takerFee`) remain unchanged regardless of `settle`.
- **Invalid `currency_pair` handling**: The API does not return an error for non-existent trading pairs. It silently returns the default account-level fees. Do not treat a successful response as confirmation that the trading pair exists.
## Workflow
When the user asks about VIP tier or trading fees, follow this sequence.
### Step 1: Identify Query Type
Classify the request into one of these categories:
1. **VIP tier query** — user wants to know their current VIP level
2. **Fee rate query** — user wants to know spot and/or futures trading fee rates
3. **Combined query** — user wants both VIP tier and fee information
Key data to extract:
- `query_type`: "vip", "fee", or "combined"
- `currency_pair` (optional): specific trading pair for fee lookup
- `settle` (optional): futures settlement currency (BTC / USDT / USD)
### Step 2: Query VIP Tier (if needed)
If `query_type` is "vip" or "combined":
Call `gate-cli cex account detail` with:
- No parameters required
Key data to extract:
- `vip_level`: the user's current VIP tier (e.g., VIP 0, VIP 1, etc.)
### Step 3: Query Trading Fee Rates (if needed)
If `query_type` is "fee" or "combined":
Call `gate-cli cex wallet market trade-fee` with:
- `currency_pair` (optional): specify trading pair context (note: fee rates are account-level and do not vary by pair)
- `settle` (optional): futures settlement currency — affects futures fee fields only
Key data to extract:
- `maker_fee_rate`: spot maker fee rate
- `taker_fee_rate`: spot taker fee rate
- `futures_maker_fee_rate`: futures maker fee rate
- `futures_taker_fee_rate`: futures taker fee rate
### Step 4: Return Result
Format the response according to the Report Template. The API (`gate-cli cex wallet market trade-fee`) always returns the full fee structure (spot + futures + delivery). Filter the output based on the user's original intent:
- If user asked about **spot fees only** → show only `makerFee` / `takerFee`
- If user asked about **futures/contract fees only** → show only `futuresMakerFee` / `futuresTakerFee`
- If user asked about **trading fees** (general) → show both spot and futures
- If user asked about **VIP only** → show only VIP level, no fee data
- If user specified a `currency_pair` → append a note in the response: "Note: The API returns account-level fee rates. The fee shown applies to all trading pairs; if the pair you specified does not exist, the result still reflects your default account fee rate."
Key data to extract:
- VIP level (if queried)
- Spot maker/taker fee rates (if queried)
- Futures maker/taker fee rates (if queried)
## Judgment Logic Summary
| Condition | Action |
|-----------|--------|
| User asks about VIP tier/level only | Call `gate-cli cex account detail`, return VIP level |
| User asks about trading fees only | Call `gate-cli cex wallet market trade-fee`, return spot and futures fee rates |
| User asks about both VIP and fees | Call both tools, return combined result |
| User specifies a trading pair | Pass `currency_pair` parameter to `gate-cli cex wallet market trade-fee` |
| User specifies futures settlement currency | Pass `settle` parameter to `gate-cli cex wallet market trade-fee` |
| User asks about spot fees only | Call `gate-cli cex wallet market trRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.