Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

gate-exchange-subaccount门交换子账户

Agent Skill

gate-exchange-subaccount 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,188

周安装

49

GitHub Stars

26

下载量

388
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gate-exchange-subaccount(门交换子账户)
来源仓库:https://github.com/gate/gate-skills
仓库路径:skills/gate-exchange-subaccount
安装命令:
npx skills add https://github.com/gate/gate-skills --skill gate-exchange-subaccount
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gate/gate-skills --skill gate-exchange-subaccount

简介

gate-exchange-subaccount 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理的任务场景。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 当前无额外功能说明,建议进一步查阅来源仓库获取详细文档和使用示例。

SKILL.md

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 §4 (or gate-runtime-rules.md §4).

Gate Exchange Sub-Account Skill

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

  • 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 sub-account get
  • gate-cli cex sub-account list
  • gate-cli cex sub-account lock
  • gate-cli cex sub-account unlock

Execution Operations (Write)

  • gate-cli cex sub-account create

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).
  • 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: Sa:Write
  • 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 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, then execute this skill's sub-account workflow.

  • SKILL.md keeps intent routing and permission boundaries.
  • references/gate-cli.md is the authoritative gate-cli execution contract for create/lock/unlock confirmation gates and status verification.

Prerequisites

  • MCP Dependency: Requires gate-mcp to be installed.
  • Authentication: All sub-account operations require API key authentication with main-account privileges.
  • Permission: The current user must be a main account holder to manage sub-accounts.

Available MCP Tools

ToolAuthDescription
gate-cli cex sub-account getYesGet details of a specific sub-account by user ID
gate-cli cex sub-account listYesList all sub-accounts under the main account
gate-cli cex sub-account createYesCreate a new normal sub-account
gate-cli cex sub-account lockYesLock a sub-account to disable login and trading
gate-cli cex sub-account unlockYesUnlock a previously locked sub-account

Workflow

Step 1: Identify User Intent

Parse the user's message to determine which sub-account operation they need.

Key data to extract:

  • intent: One of query_status, list_all, create, lock, unlock
  • user_id: Sub-account UID (required for query_status, lock, unlock)
  • login_name: Desired username (for create, may need to ask user)

Intent detection rules:

Signal KeywordsIntent
"status of sub-account", "sub-account UID {id}", "check sub-account"query_status
"all sub-accounts", "list sub-accounts", "my sub-accounts", "which sub-accounts"list_all
"create sub-account", "new sub-account", "add sub-account"create
"lock sub-account", "disable sub-account", "freeze sub-account"lock
"unlock sub-account", "enable sub-account", "unfreeze sub-account"unlock

Step 2: Execute by Intent

Case A: Query Sub-Account Status (query_status)

Call gate-cli cex sub-account get with:

  • user_id: The sub-account UID provided by the user

Key data to extract:

  • login_name: Sub-account username
  • remark: Sub-account remark/note
  • state: Account state (normal / locked)
  • type: Account type (normal / pool)
  • create_time: Account creation timestamp

Present the sub-account details in a structured format.

Case B: List All Sub-Accounts (list_all)

Call gate-cli cex sub-account list with:

  • type: "0" (normal sub-accounts only)

Key data to extract:

  • For each sub-account: user_id, login_name, remark, state, create_time

Present results as a table with username, UID, remark (if any), and current status.

Case C: Create Sub-Account (create)

Pre-check: Call gate-cli cex sub-account list with type: "0" to get the current list of normal sub-accounts. Check if the user can still create more sub-accounts based on the returned count.

If creation is available:

  1. Ask the user to provide a login name for the new sub-account
  2. Optionally collect: email, remark
  3. Confirm all details with the user before proceeding
  4. Call gate-cli cex sub-account create with:
  • login_name: User-provided login name (required)
  • email: User-provided email (optional)
  • remark: User-provided remark (optional)
  1. Present the newly created sub-account details

Key data to extract:

  • user_id: Newly created sub-account UID
  • login_name: Confirmed username
  • state: Should be "normal"

Important: Only normal sub-accounts can be created through this skill.

Case D: Lock Sub-Account (lock)

  1. Validate that user_id is provided; if not, ask the user
  2. Call gate-cli cex sub-account get with user_id to verify the sub-account exists and belongs to the main account
  3. If the sub-account is already locked, inform the user and stop
  4. Confirm with the user: "Are you sure you want to lock sub-account {user_id} ({login_name})? This will disable login and trading for this sub-account."
  5. On confirmation, call gate-cli cex sub-account lock with:
  • user_id: The sub-account UID
  1. Report the result

Key data to extract:

  • Lock operation success/failure status

Case E: Unlock Sub-Account (unlock)

  1. Validate that user_id is provided; if not, ask the user
  2. Call gate-cli cex sub-account get with user_id to verify the sub-account exists and is currently locked
  3. If the sub-account is already unlocked/normal, inform the user and stop
  4. Confirm with the user: "Are you sure you want to unlock sub-account {user_id} ({login_name})?"
  5. On confirmation, call gate-cli cex sub-account unlock with:
  • user_id: The sub-account UID
  1. Report the result

Key data to extract:

  • Unlock operation success/failure status

Step 3: Format and Respond

Present results using the Report Template below. Always include relevant context and next-step suggestions.

Judgment Logic Summary

ConditionAction
User asks for a specific sub-account status with UIDRoute to Case A: query_status
User asks to see all sub-accountsRoute to Case B: list_all
User wants to create a new sub-accountRoute to Case C: create
User wants to lock a sub-account with UIDRoute to Case D: lock
User wants to unlock a sub-account with UIDRoute to Case E: unlock
UID not provided for operations requiring itAsk user for the sub-account UID
Login name not provided for creationAsk user for a login name
Sub-account already in target state (lock/unlock)Inform user, no action needed
API returns authentication errorPrompt user to log in
API returns permission errorInform user that main account privileges are required
Sub-account does not exist or does not belong to userInform user the UID is invalid

Report Template

Query Status Response

Sub-Account Details
---
Username: {login_name}
UID: {user_id}
Status: {state}
Type: {type}
Remark: {remark or "N/A"}
Created: {create_time}

List All Sub-Accounts Response

Your Sub-Accounts
---
| # | Username | UID | Status | Remark |
|---|----------|-----|--------|--------|
| 1 | {login_name} | {user_id} | {state} | {remark or "-"} |
| 2 |... |... |... |... |

Total: {count} sub-account(s)

Create Sub-Account Response

Sub-Account Created Successfully
---
Username: {login_name}
UID: {user_id}
Status: Normal
Remark: {remark or "N/A"}

Note: Only normal sub-accounts can be created through this interface.

Lock/Unlock Response

Sub-Account {Action} Successfully
---
Username: {login_name}
UID: {user_id}
Previous Status: {previous_state}
Current Status: {new_state}

Domain Knowledge

  • A main account on Gate can create multiple sub-accounts for asset isolation, strategy separation, or team management.
  • Sub-accounts share the main account's KYC verification but have independent trading and wallet capabilities.
  • Locking a sub-account disables both login and trading; the assets remain safe but inaccessible until unlocked.
  • There are two types of sub-accounts: normal (type=0) and pool (type=1). This skill only supports creating normal sub-accounts.
  • Sub-account creation requires a unique login name. Email and remark are optional.

Safety Rules

  • Write operations (gate-cli cex sub-account create, gate-cli cex sub-account lock, gate-cli cex sub-account unlock): Always require explicit user confirmation before execution. Never auto-execute.
  • UID validation: Before lock/unlock, always verify the sub-account exists and belongs to the current main account.
  • State check: Before lock/unlock, check current state to avoid redundant operations.
  • No sensitive data exposure: Never expose API keys, internal endpoint URLs, or raw error traces.
  • Normal sub-accounts only: Creation is restricted to normal sub-accounts (type=0). Do not attempt to create pool sub-accounts.

Error Handling

ConditionResponse
Auth endpoint returns "not login""Please log in to your Gate account first."
User is not a main account"Sub-account management requires main account privileges. Please switch to your main account."
Sub-account UID not found"Sub-account with UID {user_id} was not found. Please verify the UID and try again."
Sub-account does not belong to user"This sub-account does not belong to your main account."
Sub-account already locked"Sub-account {user_id} is already locked. No action needed."
Sub-account already unlocked"Sub-account {user_id} is already in normal (unlocked) state. No action needed."
Create sub-account fails (limit reached)"You have reached the maximum number of sub-accounts. Please contact support if you need more."
Create sub-account fails (duplicate name)"The login name '{login_name}' is already taken. Please choose a different name."
Unknown error"An error occurred while processing your request. Please try again later."

Prompt Examples & Scenarios

See scenarios.md for full prompt examples and expected behaviors.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.34%
按下载量换算133

Claude

30.76%
按下载量换算119

Cursor

16.98%
按下载量换算66

Gemini CLI

8.93%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills