Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

crypto-com-app

БесплатноЗапускает вложенные скриптыНе проверен

Execute crypto trades (buy, sell, swap, exchange), manage cash deposits and withdrawals, and query account balances, market prices, and transaction history…

crypto-comот crypto-com★ 24 звезды на GitHub

Об этом скилле

Skill: crypto-com-app

Agent Capability Requirements

This skill requires your agent platform to support the following capabilities. If your platform lacks any required capability, the skill will not function.

Capability Required Details
Shell command execution Yes Must be able to run npx tsx ./scripts/... and capture stdout
Environment variables Yes Must read CDC_API_KEY and CDC_API_SECRET from the shell environment
JSON parsing Yes Must parse structured JSON from script stdout to extract fields
Multi-turn conversation Yes Trading uses a quote → confirm flow that spans multiple user turns
Persistent memory No Used for confirmation_required preference. If unsupported, default to always confirming trades
Elapsed-time awareness No Used to check quote expiry (countdown field). If unsupported, always attempt confirmation and handle invalid_quotation errors gracefully

CRITICAL: How This Skill Works

You MUST use the TypeScript scripts for ALL API interactions. NEVER call the API directly with curl, fetch, or any other HTTP method.

The scripts handle request signing, error handling, and response formatting. If you bypass them:

  • The request will fail (missing HMAC signature)
  • The response won't be filtered or structured

For every user request, find the matching command below and run it via npx tsx. Read the JSON output. Act on it.

Configurations

  • BASE_URL: https://wapi.crypto.com
  • CDC_API_KEY: {{env.CDC_API_KEY}}
  • CDC_API_SECRET: {{env.CDC_API_SECRET}}
  • CONFIRMATION_REQUIRED: {{memory.confirmation_required}} (Default: true)
  • SKILL_DIR: The directory containing this SKILL.md file. Resolve it from the path you loaded this file from (e.g. if you read /home/user/skills/crypto-com-app/SKILL.md, then SKILL_DIR is /home/user/skills/crypto-com-app).

Environment Setup

  • Both CDC_API_KEY and CDC_API_SECRET must be set as environment variables before use.

  • Before running any script, check whether both variables are set by running:

    echo "CDC_API_KEY=${CDC_API_KEY:+set}" "CDC_API_SECRET=${CDC_API_SECRET:+set}"
    

    If either prints empty instead of set, prompt the user:

    "Your API credentials are not configured. Please set them in your terminal before I can proceed:

    export CDC_API_KEY="your-api-key"
    export CDC_API_SECRET="your-api-secret"
    

    You can generate an API key at https://help.crypto.com/en/articles/13843786-api-key-management. Let me know once you've set them."

    Then stop and wait for the user to confirm before retrying.

  • If a script returns a MISSING_ENV error, treat it the same way: prompt the user to set the variables and wait.

Script Commands

ALL API interactions MUST go through these scripts. They handle signing, execution, filtering, and error formatting. Run the appropriate command below via shell, then parse the JSON output.

Prerequisite: npx tsx (Node.js 18+ required; tsx is fetched automatically by npx).

Important: All script paths below use $SKILL_DIR as a placeholder for this skill's root directory. Resolve it from the path you loaded this SKILL.md from, or cd into the skill directory and use ./scripts/... as the path. Either approach works.

Account Commands

# Filtered non-zero balances (scope: fiat | crypto | all)
npx tsx $SKILL_DIR/scripts/account.ts balances [fiat|crypto|all]

# Single token balance lookup
npx tsx $SKILL_DIR/scripts/account.ts balance <SYMBOL>

# Weekly trading limit
npx tsx $SKILL_DIR/scripts/account.ts trading-limit

# Find funded source wallets for a trade type
npx tsx $SKILL_DIR/scripts/account.ts resolve-source <purchase|sale|exchange>

# Kill switch — revoke API key
npx tsx $SKILL_DIR/scripts/account.ts revoke-key

Trade Commands

Trading follows a two-step flow: get a quotation first, then confirm the order.

# Step 1 — Get quotation (type: purchase | sale | exchange)
npx tsx $SKILL_DIR/scripts/trade.ts quote <type> '<json-params>'
# Returns: {"ok": true, "data": {"id": "<quotation-id>", "from_amount": {...}, "to_amount": {...}, "countdown": 15, ...}}

# Step 2 — Confirm order: pass the data.id from Step 1 as <quotation-id>
npx tsx $SKILL_DIR/scripts/trade.ts confirm <type> <quotation-id>

# View recent transactions
npx tsx $SKILL_DIR/scripts/trade.ts history

How to map user intent to trade type:

User says Trade type From To
"Buy CRO with 100 USD" purchase USD (fiat) CRO (crypto)
"Sell 0.1 BTC" sale BTC (crypto) USD (fiat)
"Swap 0.1 BTC to ETH" exchange BTC (crypto) ETH (crypto)

Quotation JSON params by trade type:

Type JSON fields
purchase {"from_currency":"USD","to_currency":"CRO","from_amount":"100"} or use to_amount instead
sale `{"from_cur
Полный SKILL.md на GitHub

Установить crypto-com-app в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_meta.jsonreferences/errors.mdscripts/account.tsscripts/coins.tsscripts/fiat.tsscripts/lib/api.tsscripts/lib/output.tsscripts/trade.ts

FAQ

Что делает скилл crypto-com-app?

Execute crypto trades (buy, sell, swap, exchange), manage cash deposits and withdrawals, and query account balances, market prices, and transaction history via the Crypto.com APP API. View weekly trading limits, portfolio positions, bank accounts, and payment networks. Use when the user wants to trade cryptocurrency, deposit or withdraw cash, check bank account details, view deposit instructions, or manage fiat wallet operations. Supports BTC, ETH, CRO, and 200+ tokens across fiat and crypto wallets.

Как установить скилл crypto-com-app?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл crypto-com-app запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить crypto-com-app с