← 返回 Skills 市场
yoyoemily

Crypto Swap

作者 yoyoemily · GitHub ↗ · v1.3.0 · MIT-0
cross-platform ⚠ suspicious
170
总下载
0
收藏
0
当前安装
15
版本数
在 OpenClaw 中安装
/install crypto-swap
功能描述
Lightning-fast crypto swaps. 240+ coins, best rates, done in minutes. Chat, CLI, or web — however you prefer.
使用说明 (SKILL.md)

Crypto Swap Skill (LightningEX)

A versatile cryptocurrency swap service powered by LightningEX API with three interaction modes:

  • Chat Mode: Natural language conversation for swaps and queries
  • CLI Mode: Command-line interface for scripting and automation
  • UI Mode: Web-based DeFi interface for visual trading

Quick Start

Chat Mode (Default)

Simply talk to perform exchanges:

Exchange & Rates:

  • "Swap 100 USDT to ETH"
  • "What's the exchange rate for BTC to USDT?"
  • "Exchange rate for 100 USDT (TRC20) to USDT (BEP20)"

Explore:

  • "Show me supported tokens"
  • "List all currencies"
  • "What networks does USDT support?"

Order Management:

  • "Check order status I1Y0××××"
  • "Monitor order I1Y0××××"
  • "Where is my order?"

Cross-chain Swaps:

  • "Swap USDT from Tron to BSC"
  • "Bridge ETH from Ethereum to Arbitrum"
  • "Convert BTC to SOL"

CLI Mode

Prerequisite: Install the CLI tool globally:

npm install -g crypto-swap

Run the CLI:

# Start interactive wizard (default)
crypto-swap

# Show all available commands
crypto-swap --help

# List supported currencies
crypto-swap currencies

# List supported currency-network pairs
crypto-swap pair-list --send USDT --receive USDT
crypto-swap pair-list --send USDT --receive USDT --send-network TRX

# Get pair info
crypto-swap pair --send USDT --receive USDT --send-network TRX --receive-network BSC

# Check exchange rate
crypto-swap rate --send USDT --receive USDT --send-network TRX --receive-network BSC --amount 100

# Check order status
crypto-swap status --id I1Y0...

# Monitor order until complete
crypto-swap monitor --id I1Y0...

UI Mode

# Launch web UI (default port 8080, auto-assign if occupied)
crypto-swap ui

Files

This skill contains the following files:

  • swap.js - Main CLI script (~1000 lines, open source)
  • package.json - Package metadata
  • SKILL.md - This documentation
  • LICENSE - MIT License
  • README.md - Package readme
  • assets/ - Web UI assets (HTML/CSS/JS)

Author: @yoyoemily
Repository: https://github.com/yoyoemily/crypto-swap
License: MIT

安全使用建议
This package appears to implement a crypto swap CLI and web UI that talks to the LightningEX API — that is consistent with its description. However, the registry entry lacks a verified homepage/source despite README claims of a GitHub repo, and npm packages can execute arbitrary code at install time. Before installing or running this skill: 1) Verify the package on the npm registry and that the repository (github.com/yoyoemily/crypto-swap) exists and matches the published package; 2) Inspect package.json for postinstall scripts and review source (swap.js and package dependencies) locally; 3) Prefer installing in a sandbox or container (not with sudo globally) to inspect behavior; 4) When using the UI/CLI, expect network calls to api.lightningex.io — do not supply private keys or secrets to the tool; 5) If you plan to move real funds, cross-check the service reputation and endpoint TLS fingerprints, and consider using a small test transaction first.
能力评估
Purpose & Capability
Name/description, required binary (crypto-swap), SKILL.md instructions, and included JS/UI files all align with a command-line + web UI crypto swap tool backed by LightningEX API. However, registry metadata shows no homepage/source while README and SKILL.md claim a GitHub repo (https://github.com/yoyoemily/crypto-swap) — this mismatch is unexpected and worth verifying.
Instruction Scope
Runtime instructions are limited to installing and running the crypto-swap binary (npm install -g crypto-swap, run crypto-swap commands, launch UI). The included front-end code only contacts api.lightningex.io for currency lists, pair info, rates, and order operations — behavior consistent with the described purpose and not asking the agent to read unrelated local files or secrets.
Install Mechanism
Install uses npm (package: crypto-swap) which is a common mechanism for CLIs but has moderate risk because npm packages can include postinstall scripts and arbitrary code. No install URL or pinned release host is provided in the registry metadata. Given the missing homepage/source in the registry, verify the npm package content and package.json (postinstall scripts, dependencies, binaries) before global installation.
Credentials
The skill declares no required environment variables, no config paths, and no credentials. The front-end makes network calls to api.lightningex.io (expected for a swap service). There are no hidden requests for unrelated secrets or access to other services in the provided files.
Persistence & Privilege
The skill is not forced-always, does not request elevated system-wide privileges in metadata, and its install is the normal global npm CLI pattern. It does not declare modifications to other skills or system agent settings in the provided materials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install crypto-swap
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /crypto-swap 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.0
LightningEX integration with chat, CLI, and web UI modes
v1.2.2
Minify swap.js to reduce file size for better display
v1.2.1
Fix path traversal vulnerability in cmdUI function
v1.2.0
Fix metadata to standard OpenClaw JSON format with openclaw key
v1.1.2
Fix metadata format, add install field for proper registry integration
v1.1.1
Fix metadata consistency, remove unnecessary files, align package.json and SKILL.md files list
v1.1.0
Fix Usage description in swap.js, include SKILL.md in package
v1.0.10
Fix help examples, add complete CLI commands to SKILL.md
v1.0.7
Rename package to crypto-swap, command changed to crypto-swap
v1.0.6
Add metadata declaring Node.js and network requirements
v1.0.5
Add author info, homepage, LICENSE, and file listing for transparency
v1.0.4
Add repository and author metadata
v1.0.3
Simplify CLI documentation, unify command format to node swap.js
v1.0.1
Add security and transparency notice
v1.0.0
Initial release: Lightning-fast crypto swaps with 240+ coins, chat/CLI/web modes
元数据
Slug crypto-swap
版本 1.3.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 15
常见问题

Crypto Swap 是什么?

Lightning-fast crypto swaps. 240+ coins, best rates, done in minutes. Chat, CLI, or web — however you prefer. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 170 次。

如何安装 Crypto Swap?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install crypto-swap」即可一键安装,无需额外配置。

Crypto Swap 是免费的吗?

是的,Crypto Swap 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Crypto Swap 支持哪些平台?

Crypto Swap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Crypto Swap?

由 yoyoemily(@yoyoemily)开发并维护,当前版本 v1.3.0。

💬 留言讨论