#601

Global Rank · of 601 Skills

emblem-token-swap AI Agent Skill

View Source: emblemcompany/agent-skills

Critical

Installation

npx skills add emblemcompany/agent-skills --skill emblem-token-swap

2.0K

Installs

Emblem Token Swap

Guided token swapping powered by EmblemAI. Swap tokens on Solana, Ethereum, Base, BSC, Polygon, and Hedera with automatic routing. Cross-chain bridging via ChangeNow.

Requires: npm install -g @emblemvault/agentwallet


What This Skill Can Do

Chain Quote Tool Swap Tool Balance Tool Token Search
Solana splBuyIntent (quote mode) splBuyIntent (swap mode) solanaBalances findSolanaSwapToken
Ethereum ethSwapQuote ethSwap ethGetBalances searchCryptoByName
Base baseSwapQuote baseSwap baseGetBalances searchEvmTokensBirdeye
BSC bscSwapQuote bscSwap bscGetBalances searchEvmTokensBirdeye
Polygon polygonSwapQuote polygonSwap polygonGetBalances searchEvmTokensBirdeye
Hedera hederaTokensSwapQuote hederaTokensSwap hederaGetBalances hederaFindTokens
Cross-chain getChangeNowSwapQuote swapUsingChangeNow getChangeNowSupportedCurrencies

Notes

  • Solana uses splBuyIntent for both quotes and execution — it handles token lookup by name/symbol/CA and flexible amounts ($USD, SOL, or token quantity)
  • EVM chains (Ethereum, Base, BSC, Polygon) route through automatic DEX aggregation
  • Cross-chain bridges via ChangeNow support 500+ currencies
  • Bitcoin has balance support (getBTCBalances) but no on-chain swap tools — use ChangeNow for BTC bridges

Quick Start

npm install -g @emblemvault/agentwallet

# Solana swap (uses splBuyIntent)
emblemai --agent --profile default -m "Use splBuyIntent to swap 5 SOL for USDC on Solana"

# Cross-chain bridge (uses ChangeNow)
emblemai --agent --profile default -m "Use getChangeNowSwapQuote to get a quote for bridging 0.05 ETH from Ethereum to SOL on Solana"

Trigger phrases:

  • "Swap SOL to USDC"
  • "Exchange ETH for USDT"
  • "Convert my tokens"
  • "Bridge tokens to Base"

Workflow: Safe Token Swap

Step 1: Check Balance

Confirm you have enough of the source token.

emblemai --agent --profile default -m "Use solanaBalances to show my Solana token balances"

Step 2: Get a Quote

Preview the swap before executing.

emblemai --agent --profile default -m "Use splBuyIntent to get a quote for swapping 5 SOL to USDC"

Step 3: Execute the Swap

emblemai --agent --profile default -m "Use splBuyIntent to swap 5 SOL for USDC on Solana"

Safe mode requires your confirmation before executing.

Step 4: Verify

Confirm the new balance.

emblemai --agent --profile default -m "Use solanaBalances to show my updated balances"

Swap Patterns

Solana Swaps

# By token amount
emblemai --agent --profile default -m "Use splBuyIntent to swap 0.5 SOL for USDC"

# By dollar amount
emblemai --agent --profile default -m "Use splBuyIntent to swap $20 of SOL for JUP"

# By token name
emblemai --agent --profile default -m "Use splBuyIntent to swap 100 USDC for BONK"

EVM Swaps

# Ethereum
emblemai --agent --profile default -m "Use ethSwapQuote to get a quote for swapping 0.01 ETH to USDC, then use ethSwap to execute"

# Base
emblemai --agent --profile default -m "Use baseSwapQuote to quote 0.005 ETH to USDC on Base"

# BSC
emblemai --agent --profile default -m "Use bscSwapQuote to quote 0.1 BNB to USDT on BSC"

# Polygon
emblemai --agent --profile default -m "Use polygonSwapQuote to quote 10 POL to USDC on Polygon"

Hedera Swaps

emblemai --agent --profile default -m "Use hederaTokensSwapQuote to get a quote for 100 HBAR to USDC, then use hederaTokensSwap to execute"

Cross-Chain Bridge

emblemai --agent --profile default -m "Use getChangeNowSwapQuote to quote bridging 0.1 ETH to SOL"
emblemai --agent --profile default -m "Use getChangeNowSupportedCurrencies to show available bridge currencies"

Communication Rules

Always include these in swap requests:

  1. Tool name — specify the exact tool for reliable routing
  2. Amount — dollar value or token quantity
  3. Source token — what you're swapping from
  4. Target token — what you're swapping to
Bad Good
"swap sol usdc" "Use splBuyIntent to swap 5 SOL for USDC"
"buy eth" "Use ethSwap to swap 100 USDC to ETH on Ethereum"
"bridge" "Use getChangeNowSwapQuote to bridge 0.05 ETH to SOL"

Safety

All swaps require explicit user confirmation (safe mode). The agent will:

  1. Show you the swap details (amount, route, estimated output)
  2. Wait for your approval before executing
  3. Report the transaction result

Never bypasses confirmation for any value-moving operation.


Helper Script

bash scripts/swap-helper.sh

See scripts/swap-helper.sh for an interactive swap walkthrough.


Links

Installs

Installs 2.0K
Global Rank #601 of 601

Security Audit

ath Safe
socket Critical
Alerts: 1 Score: 90
snyk Medium
EU EU-Hosted Inference API

Power your AI Agents with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

How to use this skill

1

Install emblem-token-swap by running npx skills add emblemcompany/agent-skills --skill emblem-token-swap in your project directory. Run the install command above in your project directory. The skill file will be downloaded from GitHub and placed in your project.

2

No configuration needed. Your AI agent (Claude Code, Cursor, Windsurf, etc.) automatically detects installed skills and uses them as context when generating code.

3

The skill enhances your agent's understanding of emblem-token-swap, helping it follow established patterns, avoid common mistakes, and produce production-ready output.

What you get

Skills are plain-text instruction files — not executable code. They encode expert knowledge about frameworks, languages, or tools that your AI agent reads to improve its output. This means zero runtime overhead, no dependency conflicts, and full transparency: you can read and review every instruction before installing.

Compatibility

This skill works with any AI coding agent that supports the skills.sh format, including Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider, and other tools that read project-level context files. Skills are framework-agnostic at the transport level — the content inside determines which language or framework it applies to.

Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.

EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Customer Support