emblem-token-swap
Acerca de
Esta habilidad permite a los desarrolladores ejecutar intercambios de tokens y puentes de activos entre cadenas a través de seis blockchains principales mediante la integración EmblemAI/ChangeNow. Optimiza automáticamente las rutas de intercambio y gestiona transacciones entre cadenas. Úsala cuando tu aplicación necesite intercambiar, canjear o conectar criptomonedas de manera programática.
Instalación rápida
Claude Code
Recomendadonpx skills add EmblemCompany/Agent-skills -a claude-code/plugin add https://github.com/EmblemCompany/Agent-skillsgit clone https://github.com/EmblemCompany/Agent-skills.git ~/.claude/skills/emblem-token-swapCopia y pega este comando en Claude Code para instalar esta habilidad
Documentación
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
splBuyIntentfor 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:
- Tool name — specify the exact tool for reliable routing
- Amount — dollar value or token quantity
- Source token — what you're swapping from
- 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:
- Show you the swap details (amount, route, estimated output)
- Wait for your approval before executing
- 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
Repositorio GitHub
Habilidades relacionadas
llamaguard
OtroLlamaGuard es el modelo de Meta de 7-8B parámetros para moderar las entradas y salidas de LLM en seis categorías de seguridad como violencia y discurso de odio. Ofrece una precisión del 94-95% y puede implementarse usando vLLM, Hugging Face o Amazon SageMaker. Utiliza esta skill para integrar fácilmente filtrado de contenido y barreras de seguridad en tus aplicaciones de IA.
cost-optimization
OtroEsta Skill de Claude ayuda a los desarrolladores a optimizar los costes en la nube mediante el ajuste de tamaño de recursos, estrategias de etiquetado y análisis de gastos. Proporciona un marco para reducir los gastos en la nube e implementar una gobernanza de costes en AWS, Azure y GCP. Úsala cuando necesites analizar los costes de infraestructura, ajustar el tamaño de los recursos o cumplir con restricciones presupuestarias.
quantizing-models-bitsandbytes
OtroEsta habilidad cuantiza LLMs a precisión de 8 o 4 bits utilizando bitsandbytes, logrando una reducción de memoria del 50-75% con pérdida mínima de precisión. Es ideal para ejecutar modelos más grandes en memoria GPU limitada o para acelerar la inferencia, admitiendo formatos como INT8, NF4 y FP4. La habilidad se integra con HuggingFace Transformers y permite entrenamiento QLoRA y optimizadores de 8 bits.
dispatching-parallel-agents
OtroEsta Skill de Claude despliega múltiples agentes para investigar y solucionar 3 o más problemas independientes de forma concurrente. Está diseñada para escenarios que involucran fallos no relacionados que pueden resolverse sin estado compartido o dependencias. Su capacidad principal es la resolución paralela de problemas, asignando un agente por cada dominio problemático independiente para maximizar la eficiencia.
