skills/gate-exchange-pay/SKILL.md
Gate Pay payment execution skill. Use when the user asks to pay with Gate Pay, complete a merchant charge, or satisfy pay-first flows (e.g. HTTP 402). Triggers on 'Gate Pay', 'complete payment', 'pay for order'. Requires prior Gate payment authorization.
npx skillsauth add gate/gate-skills gate-exchange-payInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
⚠️ 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
This document is for end users and agents: in scenarios where payment is required first and the user has already chosen a payment method and selected Gate Pay, use this capability to complete the charge and output a receipt by calling Exchange MCP tool cex_pay_create_ai_order_pay.
Before invoking this Skill, the user must have completed Gate account payment-related authorization. If not, guide them through Gate account authorization before charging.
Use the user's language for receipts, pre-charge summaries, failures, and short confirmations. If the conversation mixes languages, follow the language of their payment or receipt request; keep one receipt in one language unless they switch.
cex_pay_create_ai_order_pay are satisfied (per MCP inputSchema); if anything is missing, complete it before paying.Gate Pay is Gate's digital asset payment solution that enables users to pay for merchant orders using their Gate account balance. It supports pay-first flows (HTTP 402 protocol) where payment is required before accessing resources.
| Tool name | Purpose | Type |
|-----------|---------|------|
| cex_pay_create_ai_order_pay | Debit the user's Gate Pay payment account for a merchant order | Write |
Note: If there is no order-status query tool available and the user only asks whether they paid, explain the limitation; do not charge again as a substitute for querying.
Read and strictly follow references/mcp.md, then execute this skill's Gate Pay charge workflow.
SKILL.md keeps payment intent routing, product boundaries, and user-facing policy.references/mcp.md is the authoritative MCP execution layer for charge inputs, confirmation gates, and failure fallback.Action: Validate that all preconditions are met before proceeding.
Key data to extract:
order_id, amount, currencyDecision: If any required input is missing → ask user to provide complete details. If authorization is incomplete → guide authorization flow. Otherwise proceed to Step 1.
Action: Ensure user clearly intends to execute payment.
Key data to extract:
Decision: If user intent is unclear or negative → do not proceed with payment. If intent is clear → proceed to Step 2.
Action: Display key charge details for user verification. This is informational and does not require an explicit forced confirmation step. It does not replace Step 1: calling the payment tool still requires the clear payment intent established there (see Safety Rules).
Key data to extract:
Output format:
Planned charge
Merchant order ID: {order_id}
Amount due: {amount} {currency}
Payment method: Gate Pay
Decision: Proceed to Step 3 after displaying details when Step 1's payment-intent gate is satisfied; the optional display is for transparency only.
Action: Call Exchange MCP tool cex_pay_create_ai_order_pay with validated parameters.
Call cex_pay_create_ai_order_pay with:
order_id: Merchant order identifieramount: Payment amountcurrency: Payment currencyinputSchemaKey data to extract:
Decision: If payment succeeds → proceed to Step 4 with success receipt. If payment fails → proceed to Step 4 with failure handling.
Action: Report payment result to user in their language (per Language section).
Success path: Output receipt using Report Template format (see Report Template section).
Failure path: Provide user-friendly error explanation without exposing internal error codes or stack traces (see Error Handling section).
| Condition | Status | Meaning |
|-----------|--------|---------|
| Payment inputs complete + user selected Gate Pay + user intent clear + authorization valid | Execute | Proceed with payment execution via cex_pay_create_ai_order_pay |
| Missing order_id, amount, or currency | Block | Ask user to provide complete payment details from merchant order page |
| User has not selected Gate Pay | Block | This skill does not apply; other payment methods are out of scope |
| User intent unclear or user declines | Block | Do not initiate payment; wait for clear confirmation or handle cancellation |
| Authorization missing, expired, or invalid | Block | Guide user to complete Gate account payment authorization first |
| User only asks payment status (no query tool available) | Inform | Explain limitation; do not charge again to infer status |
| Payment API returns success | Report | Output success receipt with transaction details (localized) |
| Payment API returns failure | Report | Output failure explanation in user's language with actionable guidance |
Use field labels in the user's language (see Language section). Template shape (English labels shown as reference):
✅ Payment Success
Merchant order ID: {order_id}
Amount paid: {amount} {currency}
Payment status: {status_text_matching_payment_result}
Payment time: {timestamp; include timezone or follow product rules}
Payment method: Gate Pay
⚠️ Important: Digital asset transactions are generally irreversible. Please verify the transaction details above.
Voucher handling: If the successful payment response includes voucher-style fields (final names per spec, e.g., prepayId), downstream steps may use them to fetch resources from the merchant. This skill does not fetch resources; voucher fields should be preserved for external use if applicable.
Use the user's language (see Language section). Provide specific, actionable guidance based on error type:
Template:
❌ Payment Failed
Reason: {user_friendly_explanation}
Suggested action: {actionable_next_step}
Do not: Expose internal error codes, stack traces, or raw API responses to the user.
Before calling any payment-related tools, follow the Agent and MCP usage rules shipped with this product, and comply with exchange-runtime-rules.md.
Reviewer-oriented scenario templates (happy path, errors, localization, and safety edges) live in references/scenarios.md in this skill directory. Use that file for parity checks against this SKILL; do not treat the path as a Skills Hub hyperlink.
| Error Type | Condition | User Message (Template) | Recommended Action | |------------|-----------|-------------------------|-------------------| | Insufficient balance | Payment API returns balance insufficient error | "Payment failed: Your Gate Pay balance is insufficient for this payment. Please top up your account and try again." | Guide user to deposit funds or use alternative payment method | | Authorization expired/invalid | API indicates authorization is missing, expired, or invalid | "Payment failed: Your Gate payment authorization has expired or is invalid. Please complete Gate account authorization again." | Guide user through Gate account payment authorization flow | | Order not found | API indicates order_id does not exist or cannot be found | "Payment failed: The order ID is invalid or no longer valid. Please verify the order details with the merchant and try again." | Ask user to obtain valid order information from merchant | | Order expired | API indicates order has expired or payment window closed | "Payment failed: This order has expired and can no longer be paid. Please place a new order with the merchant." | Suggest user to create new order or contact merchant for replacement | | Duplicate payment | Business logic detects duplicate charge attempt for same order | "This order has already been paid. Please check your payment history or contact support if you believe this is incorrect." | Do not initiate duplicate charge; explain limitation | | Invalid parameters | Missing required fields or invalid format | "Payment cannot be processed: Some required information is missing or invalid. Please provide complete order details (order ID, amount, currency)." | Ask user to provide complete and valid payment parameters | | Network/system error | API timeout, connection failure, or unspecified system error | "Payment failed due to a temporary system issue. Please try again in a few moments or contact support if the problem persists." | Suggest retry later; do not expose technical error details |
General rules:
This skill processes user payment data through the Gate MCP. All data is transmitted directly to the Gate API for payment execution.
Data handling statement:
Age restriction: This skill is intended for users aged 18 or above with full civil capacity, consistent with Gate's platform requirements.
⚠️ Important notices for Gate Pay users:
Risk of loss: Paying with digital assets involves financial risk; you may lose the amounts debited if the order or merchant context is wrong. Verify every detail before authorizing a charge.
Transaction irreversibility: Digital asset transactions are generally irreversible. Once a Gate Pay payment is successfully executed, it cannot be undone. Please carefully verify all order details (merchant, amount, currency) before confirming payment.
Not investment advice: This skill provides payment execution functionality only. Any payment decisions are the user's sole responsibility. This does not constitute investment, financial, tax, or legal advice.
Regulatory compliance: Users must ensure their use of Gate Pay complies with applicable laws and regulations in their jurisdiction. Gate operates under licenses in multiple jurisdictions. Users are responsible for understanding and complying with local payment and digital asset regulations.
Merchant responsibility: Gate Pay facilitates payment to third-party merchants. Gate is not responsible for merchant products, services, delivery, refunds, or disputes. Users should verify merchant legitimacy before making payments.
AI output disclaimer: AI-assisted payment processing is for convenience only and does not constitute any representation, warranty, or guarantee by Gate regarding payment success, merchant reliability, or transaction outcomes.
This skill follows a streamlined confirmation model for payment execution:
cex_pay_create_ai_order_pay, verify user has completed Gate payment authorizationtools
Exchange listing tracker. Use this skill whenever the user asks about exchange listing, delisting, or maintenance announcements. Trigger phrases include: any new coins listed recently, what did Binance list, new listings, delisted. MCP tools: news_feed_get_exchange_announcements, info_coin_get_coin_info, info_marketsnapshot_get_market_snapshot.
testing
Event attribution and explanation. Use this skill ONLY when the user's query is exclusively about the reason behind a price move with no other analysis dimensions. Trigger phrases: why did X crash, what just happened, why is it pumping, what caused. If the query ALSO mentions fundamentals, risk check, technicals, or any other analysis dimension, use gate-info-research instead — it handles multi-dimension queries in a single unified report.
tools
Community sentiment via Gate-News MCP, X/Twitter-first. Use for social discussion, KOL takes, or opinion on a coin or topic. Triggers: what does the community think about ETH, Twitter or X sentiment, what are people saying, KOL opinions. Reddit, Discord, Telegram when search_ugc is available; until then label output as X/Twitter-only. Tools: news_feed_search_x, news_feed_get_social_sentiment.
testing
News briefing. Use this skill ONLY when the user's query is exclusively about recent news or headlines with no other analysis dimensions. Trigger phrases: what happened recently, today's highlights, crypto news, any new updates. If the query ALSO mentions coin analysis, risk check, technicals, or any other analysis dimension, use gate-info-research instead — it handles multi-dimension queries in a single unified report.