Agent skill

Moonpay Swap Tokens

by moonpay in moonpay/skills

Swap tokens on the same chain or bridge tokens across chains.

MITAuto-check passed

Install Moonpay Swap Tokens

skills CLI
$ npx skills add moonpay/skills --skill moonpay-swap-tokens -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install moonpay/skills moonpay-swap-tokens --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/moonpay-swap-tokens .claude/skills/moonpay-swap-tokens && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
moonpay-swap-tokens
GitHub stars
113
Token cost
~734 tokens
SKILL.md length
208 words
Files
1
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Swap tokens on the same chain or bridge tokens across chains.

  • Works in 6 steps: Resolves wallet name → address → Builds unsigned transaction via… → If ERC20 token needs approval, sends an… → …
  • The user wants to swap
  • SKILL.md covers Goal, Commands, Examples and Supported chains, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Moonpay Swap Tokens is an agent skill from moonpay/skills. Swap tokens on the same chain or bridge tokens across chains. Use when the user wants to swap, bridge, or move tokens.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Solana, Ethereum and Circle USDC. The repository describes itself as: Skills for AI agents to move money — on-ramps, swaps, wallets, deposits, and more via the MoonPay CLI. The licence is MIT.

When your agent uses it

  • The user wants to swap

Example prompts

  • “/moonpay-swap-tokens”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Resolves wallet name → address
  2. Builds unsigned transaction via swaps.xyz (handles decimal conversion)
  3. If ERC20 token needs approval, sends an approve transaction first, then re-builds
  4. Signs locally — private key never leaves the machine
  5. Broadcasts to the network
  6. Registers for tracking

What it can do on your machine

Read from SKILL.md and the folder at commit aa672ab. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Moonpay Swap Tokens loads about 734 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 208 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~734

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from moonpay/skills at commit aa672ab, republished under its MIT licence (© moonpay). 208 words, ~734 tokens.

Download SKILL.mdSave it as .claude/skills/moonpay-swap-tokens/SKILL.md (or your agent's skills folder).
name
moonpay-swap-tokens
description
Swap tokens on the same chain or bridge tokens across chains. Use when the user wants to swap, bridge, or move tokens.
tags
trading

Swap or bridge tokens

Goal

Swap tokens on the same chain, or bridge tokens across chains. Two commands:

  • mp token swap — same chain, different tokens
  • mp token bridge — cross chain

Both build via swaps.xyz, sign locally, broadcast, and register for tracking.

Commands

Swap (same chain)
bash
mp token swap \
  --wallet <wallet-name> \
  --chain <chain> \
  --from-token <token-address> \
  --from-amount <amount> \
  --to-token <token-address>

Supports exact-out: use --to-amount instead of --from-amount.

Bridge (cross chain)
bash
mp token bridge \
  --from-wallet <wallet-name> \
  --from-chain <chain> \
  --from-token <token-address> \
  --from-amount <amount> \
  --to-chain <chain> \
  --to-token <token-address> \
  --to-wallet <wallet-name>  # optional, defaults to from-wallet

Supports exact-out: use --to-amount instead of --from-amount.

Examples

Same-chain swap (SOL → USDC on Solana)
bash
mp token swap \
  --wallet main --chain solana \
  --from-token So11111111111111111111111111111111111111111 \
  --from-amount 0.1 \
  --to-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Cross-chain bridge (ETH → USDC.e on Polygon)
bash
mp token bridge \
  --from-wallet funded --from-chain ethereum \
  --from-token 0x0000000000000000000000000000000000000000 \
  --from-amount 0.003 \
  --to-chain polygon \
  --to-token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
ERC20 swap (auto-approves if needed)
bash
mp token swap \
  --wallet funded --chain polygon \
  --from-token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 \
  --from-amount 5 \
  --to-token 0x0000000000000000000000000000000000000000

Supported chains

solana, ethereum, base, polygon, arbitrum, optimism, bnb, avalanche, bitcoin (bridges only)

How it works

  1. Resolves wallet name → address
  2. Builds unsigned transaction via swaps.xyz (handles decimal conversion)
  3. If ERC20 token needs approval, sends an approve transaction first, then re-builds
  4. Signs locally — private key never leaves the machine
  5. Broadcasts to the network
  6. Registers for tracking

token swap calls token bridge under the hood with from-chain = to-chain.

Tips

  • If the user provides token names/symbols, resolve to addresses with mp token search --query "USDC" --chain solana
  • Check balances first with mp token balance list --wallet <address> --chain <chain>
  • Native tokens use 0x0000000000000000000000000000000000000000 (EVM) or So11111111111111111111111111111111111111111 (Solana)
  • moonpay-discover-tokens — Search for token addresses
  • moonpay-check-wallet — Check balances before swapping
  • moonpay-auth — Set up wallets for signing

© moonpay, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/moonpay-swap-tokens of moonpay/skills.

Open the folder on GitHubat commit aa672ab

Compare with similar skills

Moonpay Swap Tokens next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Moonpay Swap Tokens compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Moonpay Swap Tokens this skillmoonpay/skills113—~734Automated safety check: PassMIT
Minara Crypto Trading and WalletMinara-AI/minara-skills362—~5.7kAutomated safety check: PassNone
Bridge Tokenscirclefin/skills155—~4.5kAutomated safety check: NotesApache-2.0
Payram Crypto PaymentsPayRam/payram-mcp158—~2kAutomated safety check: NotesNone
SymbiosisBankrBot/skills1.2k—~1.4kAutomated safety check: PassNone
Bridgealsk1992/CloddsBot3k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Minara Crypto Trading and Wallet

    Minara-AI/minara-skills

    Drives the Minara CLI for crypto swaps, perps, limit orders, wallet transfers, deposits and withdrawals, plus AI market analysis.

    362 GitHub stars~5.7k tokensUpdated 24 days ago
    Business, Finance & HRAuto-check passed
  • Bridge Tokens

    circlefin/skills

    Build browser or server token bridging across chains with Circle App Kit or standalone Bridge Kit.

    155 GitHub stars~4.5k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Payram Crypto Payments

    PayRam/payram-mcp

    Self-hosted crypto and stablecoin payment gateway. An agent skill from PayRam/payram-mcp.

    158 GitHub stars~2k tokensUpdated 2 days ago
    Backend & APIsAuto-check: notes
  • Symbiosis

    BankrBot/skills

    Cross-chain token swaps across 54+ blockchains via Symbiosis protocol.

    1.2k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Bridge

    alsk1992/CloddsBot

    Cross-chain token transfers using Wormhole and CCTP. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~1.3k tokensUpdated 8 days ago
    Auto-check passed
  • Use Usdc

    circlefin/skills

    USDC is Circle's stablecoin deployed across multiple blockchain ecosystems including EVM chains (Ethereum, Base, Arbitrum, Polygon, Arc) and Solana.

    155 GitHub stars~2.4k tokensUpdated yesterday
    Backend & APIsAuto-check: notes

More from moonpay/skills

All 39 skills in this repo
  • A skill your agent uses when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features.

    113 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Alchemy API

    moonpay/skills

    Integrates Alchemy blockchain APIs using an API key. An agent skill from moonpay/skills.

    113 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Allium Onchain Data

    moonpay/skills

    Query blockchain data via Allium APIs. An agent skill from moonpay/skills.

    113 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Corbits Marketplace

    moonpay/skills

    Paid API marketplace for AI agents via Corbits. An agent skill from moonpay/skills.

    113 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Dune Analytics

    moonpay/skills

    Blockchain analytics via Dune REST API — execute DuneSQL queries against live on-chain data, discover decoded contract tables, and monitor credit usage.

    113 GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Moonpay Auth

    moonpay/skills

    Set up the MoonPay CLI, authenticate, and manage local wallets.

    113 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Moonpay Swap Tokens

What does Moonpay Swap Tokens do?

Swap tokens on the same chain or bridge tokens across chains. Moonpay Swap Tokens is an agent skill from moonpay/skills. Swap tokens on the same chain or bridge tokens across chains.

When should I use Moonpay Swap Tokens?

Moonpay Swap Tokens fits situations like: the user wants to swap.

How do I install Moonpay Swap Tokens in Claude Code?

Run `npx skills add moonpay/skills --skill moonpay-swap-tokens -a claude-code`. Or copy the skill folder (skills/moonpay-swap-tokens in moonpay/skills) into .claude/skills/moonpay-swap-tokens in your project. Claude Code loads it when a task matches its description.

How do I install Moonpay Swap Tokens in Codex?

Run `npx skills add moonpay/skills --skill moonpay-swap-tokens -a codex`. Or copy the skill folder (skills/moonpay-swap-tokens in moonpay/skills) into .agents/skills/moonpay-swap-tokens in your project. Codex loads it when a task matches its description.

Can I use Moonpay Swap Tokens in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add moonpay/skills --skill moonpay-swap-tokens -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/moonpay-swap-tokens, .gemini/skills/moonpay-swap-tokens, .github/skills/moonpay-swap-tokens and .opencode/skills/moonpay-swap-tokens in your project.

What does Moonpay Swap Tokens need to run?

SKILL.md names no scripts, command-line tools or credentials: Moonpay Swap Tokens is instructions for the agent only.

Does Moonpay Swap Tokens access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Moonpay Swap Tokens safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Moonpay Swap Tokens use?

Moonpay Swap Tokens is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Moonpay Swap Tokens use?

About 734 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Moonpay Swap Tokens?

Skills that share tags, products or a category with Moonpay Swap Tokens: Minara Crypto Trading and Wallet (Minara-AI/minara-skills, 362 stars), Bridge Tokens (circlefin/skills, 155 stars), Payram Crypto Payments (PayRam/payram-mcp, 158 stars) and Symbiosis (BankrBot/skills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Moonpay Swap Tokens?

moonpay (a GitHub organization) maintains it in moonpay/skills, which has 113 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on September 10, 2026.

Source: moonpay/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.