Xpersona
G

Gate Flash Swap Skill

CLAWHUB · Unverified

Gate Flash Swap skill. Use when the user asks to instantly convert or exchange cryptocurrencies without placing an order book trade. Triggers on 'flash swap'...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s172g4d1dcv6ccs6desbb2xw1583qza9:gate-exchange-flashswap
  1. Install using `clawhub skill install s172g4d1dcv6ccs6desbb2xw1583qza9:gate-exchange-flashswap` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/gate-exchange/gate-exchange-flashswap before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-gate-exchange-gate-exchange-flashswap/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

131,053 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: gate-exchange-flashswap
version: "2026.3.23-1"
updated: "2026-03-23"
description: "Gate Flash Swap skill. Use when the user asks to instantly convert or exchange cryptocurrencies without placing an order book trade. Triggers on 'flash swap', 'convert USDT to BTC', 'swap multiple coins'."
---

# Gate Flash Swap

## 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 call MCP tools explicitly listed in this skill.** Tools not documented here must NOT be called, even if they
  exist in the MCP server.

---

## MCP Dependencies

### Required MCP Servers
| MCP Server | Status |
|------------|--------|
| Gate (main) | ✅ Required |

### MCP Tools Used

**Query Operations (Read-only)**

- cex_fc_get_fc_order
- cex_fc_list_fc_currency_pairs
- cex_fc_list_fc_orders
- cex_fc_preview_fc_multi_currency_many_to_one_order
- cex_fc_preview_fc_multi_currency_one_to_many_order
- cex_fc_preview_fc_order_v1

**Execution Operations (Write)**

- cex_fc_create_fc_multi_currency_many_to_one_order
- cex_fc_create_fc_multi_currency_one_to_many_order
- cex_fc_create_fc_order_v1

### Authentication
- API Key Required: Yes (see skill doc/runtime MCP deployment)
- Permissions: Fc:Write
- Get API Key: https://www.gate.io/myaccount/profile/api-key/manage

### Installation Check
- Required: Gate (main)
- Install: Run installer skill for your IDE
  - Cursor: `gate-mcp-cursor-installer`
  - Codex: `gate-mcp-codex-installer`
  - Claude: `gate-mcp-claude-installer`
  - OpenClaw: `gate-mcp-openclaw-installer`

## MCP Mode

**Read and strictly follow** [`references/mcp.md`](./references/mcp.md), then execute this skill's flashswap workflow.

- `SKILL.md` keeps routing and scenario boundaries.
- `references/mcp.md` is the authoritative MCP execution layer for preview/create sequencing, confirmation gates, and degraded handling.

## Trigger Conditions

This Skill is activated when the user's request matches any of the following:
- Wants to swap/convert/exchange one cryptocurrency for another
- Wants to buy multiple cryptocurrencies at once using one currency (e.g. "buy 1u BTC, 2u ETH")
- Wants to sell multiple cryptocurrencies into one target currency (e.g. "sell 1 BTC, 2 ETH for USDT")
- Asks which currencies support flash swap
- Asks about minimum/maximum swap amounts or limits
- Requests flash swap order history or specific order details
- Uses keywords: "flash swap", "convert", "quick exchange", "swap", "instant swap"

## Quick Start

Common usage examples:

1. **One-to-one swap**: "Sell 1 BTC for USDT"
2. **Buy multiple coins**: "Buy 1u BTC, 2u ETH, 3u SOL"
3. **Sell multiple coins**: "Sell 1 BTC, 2 ETH, 3 SOL for USDT"
4. **Check pairs**: "Show me flash swap supported pairs"
5. **Order history**: "Show me my fl

README.md

# Gate Flash Swap Skill

## Overview

Gate Flash Swap Skill provides comprehensive flash swap capabilities for the Gate Exchange. It supports three swap modes — one-to-one, one-to-many, and many-to-one — covering the full lifecycle of previewing quotes, executing swaps, querying supported pairs, and tracking order history.

### Core Capabilities

| Capability | Description | MCP Tools |
|------------|-------------|-----------|
| One-to-One Swap | Preview and execute a single currency swap (e.g. BTC → USDT) | `cex_fc_preview_fc_order_v1`, `cex_fc_create_fc_order_v1` |
| One-to-Many Swap | Swap one currency into multiple targets (e.g. USDT → BTC + ETH + SOL) | `cex_fc_preview_fc_multi_currency_one_to_many_order`, `cex_fc_create_fc_multi_currency_one_to_many_order` |
| Many-to-One Swap | Swap multiple currencies into one target (e.g. BTC + ETH + SOL → USDT) | `cex_fc_preview_fc_multi_currency_many_to_one_order`, `cex_fc_create_fc_multi_currency_many_to_one_order` |
| Pair Query | Query supported flash swap currency pairs and limits | `cex_fc_list_fc_currency_pairs` |
| Order History | Query flash swap order list with filters | `cex_fc_list_fc_orders` |
| Order Detail | Query a single flash swap order by ID | `cex_fc_get_fc_order` |

## Architecture

This Skill uses **Standard Architecture**, with all logic centralized in `SKILL.md`.

```
skills/gate-exchange-flashswap/
├── SKILL.md                    # AI Agent runtime instructions
├── README.md                   # Human-readable documentation
├── CHANGELOG.md                # Version change log
└── references/
    └── scenarios.md            # Scenario examples and prompt samples
```

**Workflow**:

1. Identify user intent (swap mode or query type)
2. For swaps: Pre-validate amount → Preview quote → Show to user → Confirm → Create order
3. For queries: Call the corresponding query tool and format results

## Usage

Trigger phrase examples:
- "Sell 1 BTC for USDT"
- "Buy 1u BTC, 2u ETH, 3u SOL"
- "Sell 1 BTC, 2 ETH, 3 SOL for USDT"
- "Show me flash swap supported pairs"
- "Query my flash swap orders"
- "Check flash swap order 122136 details"

## MCP Tools

| Tool | Type | Auth Required | Description |
|------|------|---------------|-------------|
| `cex_fc_preview_fc_order_v1` | Preview | Yes | One-to-one swap quote preview |
| `cex_fc_create_fc_order_v1` | Create | Yes | One-to-one swap order creation (requires `quote_id`) |
| `cex_fc_preview_fc_multi_currency_one_to_many_order` | Preview | Yes | One-to-many swap quote preview |
| `cex_fc_create_fc_multi_currency_one_to_many_order` | Create | Yes | One-to-many swap order creation |
| `cex_fc_preview_fc_multi_currency_many_to_one_order` | Preview | Yes | Many-to-one swap quote preview |
| `cex_fc_create_fc_multi_currency_many_to_one_order` | Create | Yes | Many-to-one swap order creation |
| `cex_fc_list_fc_currency_pairs` | Query | No | List supported flash swap pairs and limits |
| `cex_fc_list_fc_orders` | Query | Yes | Query flash swap order his

_meta.json

{
  "ownerId": "kn74x9hm07phcw70v30nff2x2h82t09z",
  "slug": "gate-exchange-flashswap",
  "version": "1.0.2",
  "publishedAt": 1775115214723
}

references/mcp.md

---
name: gate-exchange-flashswap-mcp
version: "2026.3.30-1"
updated: "2026-03-30"
description: "MCP execution specification for Flash Swap: pair capability query, quote preview, one-to-one and multi-currency order placement, and order tracking."
---

# Gate FlashSwap MCP Specification

## 1. Scope and Trigger Boundaries

In scope:
- Supported pair query
- Swap preview/quote query
- Flash swap order placement (single and multi-currency forms)
- Order/history/detail query

Out of scope:
- Spot orderbook trading
- DEX on-chain swaps

## 2. MCP Detection and Fallback

Detection:
1. Verify Gate MCP exposes `cex_fc_preview_fc_order_v1` and `cex_fc_create_fc_order_v1`.
2. Probe with pair list endpoint.

Fallback:
- If write endpoints unavailable, downgrade to query/preview only.
- If MCP/auth fails, return setup/auth guidance.

## 3. Authentication

- API key required for user order operations.

## 4. MCP Resources

No mandatory MCP resources.

## 5. Tool Calling Specification

### 5.1 Read tools

- `cex_fc_list_fc_currency_pairs`
- `cex_fc_preview_fc_order_v1`
- `cex_fc_preview_fc_multi_currency_one_to_many_order`
- `cex_fc_preview_fc_multi_currency_many_to_one_order`
- `cex_fc_list_fc_orders`
- `cex_fc_get_fc_order`

### 5.2 Write tools

- `cex_fc_create_fc_order_v1`
- `cex_fc_create_fc_multi_currency_one_to_many_order`
- `cex_fc_create_fc_multi_currency_many_to_one_order`

## 6. Execution SOP (Non-Skippable)

1. Confirm swap intent and form (1:1 / 1:many / many:1).
2. Validate pair support and amount bounds.
3. Call corresponding preview endpoint first.
4. Present **Swap Draft** with expected exchange amounts and limits.
5. Require explicit confirmation before create endpoint.
6. Execute order and verify status with order query tool.

## 7. Output Templates

```markdown
## FlashSwap Draft
- Mode: {one_to_one_or_multi}
- Sell: {asset_and_amount}
- Buy: {asset_and_amount}
- Quote Summary: {preview_result}
- Risk: quote may change before execution.
Reply "Confirm swap" to execute.
```

```markdown
## FlashSwap Result
- Status: {success_or_failed}
- Order ID: {order_id}
- Filled: {filled_summary}
- Notes: {error_or_followup}
```

## 8. Safety and Degradation Rules

1. Always preview before create.
2. Never execute create endpoints without explicit immediate confirmation.
3. If preview/create mismatch occurs, re-preview and re-confirm.
4. Keep unsupported pairs and limit violations explicit.
5. Preserve API failures and avoid fabricated execution outcomes.

references/scenarios.md

# Flash Swap Scenarios

## Scenario 1: Query Supported Pairs and Swap Limits

**Context**: The user wants to explore which currency pairs are available for flash swap, or check the minimum/maximum amounts for a specific currency.

**Prompt Examples**:
- "Show me all flash swap supported pairs"
- "Can I flash swap BTC for USDT? What are the limits?"
- "What is the minimum amount to flash swap ETH?"
- "List flash swap pairs for SOL"

**Expected Behavior**:
1. Identify intent as "list_pairs"
2. Call `cex_fc_list_fc_currency_pairs` with optional currency filter
3. If no filter and result is large, summarize total count and show a sample of 20 pairs
4. If filtered by currency, show all matching pairs with min/max amounts
5. Present results in a formatted table

## Scenario 2: Query Flash Swap Order History and Details

**Context**: The user wants to review their flash swap transaction records or look up a specific order by ID.

**Prompt Examples**:
- "Show me my recent flash swap orders"
- "Query my successful flash swap orders"
- "Check flash swap order 122136 details"
- "Show me failed flash swap orders"

**Expected Behavior**:
1. Identify intent as "list_orders" or "get_order"
2. For order list: validate status if provided (only 1 or 2), call `cex_fc_list_fc_orders` with filters
3. For single order: extract order_id, call `cex_fc_get_fc_order`
4. Present results in a formatted table or detail view
5. If order not found (404), inform the user and suggest checking the ID

**Unexpected Behavior**:
- If the user provides an invalid status value, inform them only 1 (success) and 2 (failed) are accepted
- If order_id is not provided for a detail query, prompt the user or suggest using the order list first

## Scenario 3: One-to-One Flash Swap

**Context**: The user wants to convert one cryptocurrency to another, for example selling 1 BTC for USDT. The full flow requires previewing the quote first, then confirming and creating the order.

**Prompt Examples**:
- "Sell 1 BTC for USDT"
- "I want to swap 100 USDT to ETH"
- "Convert 0.5 ETH to BTC"
- "Flash swap 1000 USDT for SOL"

**Expected Behavior**:
1. Identify intent as "one_to_one" with sell_asset, buy_asset, and sell_amount or buy_amount
2. Call `cex_fc_preview_fc_order_v1` with the extracted parameters
3. Present the preview to the user showing quote_id, exchange rate, amounts, and valid_timestamp
4. Wait for user confirmation
5. Call `cex_fc_create_fc_order_v1` with the quote_id and amounts from the preview
6. Present the created order with order ID, status, and executed rate

**Unexpected Behavior**:
- If the preview returns an error, inform the user and suggest adjusting the amount or trying a different pair
- If the create returns code 1052 (quote expired), re-run the preview and try again

## Scenario 4: One-to-Many Flash Swap

**Context**: The user wants to use a single currency (typically USDT) to buy multiple target cryptocurrencies in one operation. Each target has its own amount.

**Prompt E

Sponsored

Ads related to Gate Flash Swap Skill and adjacent AI workflows.