Skip to content
Skill

Swap planner

Plans token swaps on Uniswap across chains and builds pre-filled swap links

Swap planner is an open-source agent skill for finance and payments. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
236
Last commit
License
MIT
Listing updated

Similar skills

About Swap planner

This skill turns a swap request into a Uniswap interface link with the input token, output token, amount and chain filled in. Before building the link, it checks that token addresses exist as contracts through a direct RPC call, and it can look up current pool prices and liquidity from DexScreener to estimate the output.

When the user wants ideas rather than a known token, the skill runs keyword searches on DexScreener and falls back to web search, since the API has no trending feed. Tokens found through web search are treated as unverified: the skill flags them, shows their source, and asks for explicit confirmation before creating a link. Low-liquidity, very young or micro-cap tokens trigger extra warnings, and the skill gives a risk level based on market cap, pool size, volume and contract age.

The skill expects an AI agent with shell and web access, the jq and curl tools, and optionally Foundry's cast for contract checks. It ships reference files for chain IDs, RPC endpoints and common token addresses, and it defaults to 0.5% slippage in the generated link.

When your agent uses it

This skill should be used when the user asks to "swap tokens", "trade ETH for USDC", "exchange tokens on Uniswap", "buy tokens", "sell tokens", "convert ETH to stablecoins", "find memecoins", "discover tokens", "research tokens", "tokens to buy", "find tokens to swap", "what should I buy", or mentions swapping, trading, researching, discovering, buying, or exchanging tokens on any Uniswap-supported chain. Supports both known token swaps and token discovery workflows (discovery uses keyword search and web search — there is no live "trending" feed). Generates deep links to execute swaps in the Uniswap interface.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (24 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the uniswap-driver plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Uniswap/uniswap-ai
/plugin install uniswap-driver@uniswap-ai

Or copy only this skill to ~/.claude/skills/swap-planner:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/swap-planner &&
cp -R "$tmp/packages/plugins/uniswap-driver/skills/swap-planner" ~/.claude/skills/swap-planner &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/swap-planner inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/swap-planner to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/swap-planner &&
cp -R "$tmp/packages/plugins/uniswap-driver/skills/swap-planner" ~/.agents/skills/swap-planner &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/swap-planner inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/swap-planner to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/swap-planner &&
cp -R "$tmp/packages/plugins/uniswap-driver/skills/swap-planner" ~/.cursor/skills/swap-planner &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/swap-planner inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Uniswap/uniswap-ai.git --path packages/plugins/uniswap-driver/skills/swap-planner

Or copy the folder to ~/.gemini/skills/swap-planner yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/swap-planner:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/swap-planner &&
cp -R "$tmp/packages/plugins/uniswap-driver/skills/swap-planner" ~/.copilot/skills/swap-planner &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/swap-planner inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git

Then copy uniswap-ai/packages/plugins/uniswap-driver/skills/swap-planner into your agent's skills folder as swap-planner. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Swap link generation
Builds a Uniswap interface URL with chain, tokens and amount pre-filled for review.
On-chain contract check
Confirms token addresses hold contract code through an eth_getCode RPC call.
Price and liquidity lookup
Pulls pool price, liquidity and 24-hour volume from DexScreener to estimate output.
Keyword token discovery
Searches DexScreener by keyword to surface Uniswap pairs on a chosen chain.
Risk flags for tokens
Warns on low liquidity, young contracts, micro-caps and possible honeypots before linking.
Unverified token safeguards
Labels web-found tokens as unverified and requires user confirmation before proceeding.

Good for

  • Swap ETH for USDC on Base through Uniswap
  • Build a Uniswap link to buy WBTC on Arbitrum
  • Check whether a token address is a live contract before trading
  • Find Uniswap pairs matching a keyword like ai agent on Base
  • Estimate the output of a swap using current pool liquidity

Swap planner FAQ

What does the skill need to run?

It needs the Read, Glob, Grep, curl, jq and web search tools. Foundry's cast is optional and only used for contract code checks.

Does Swap planner execute trades?

No. It builds a Uniswap interface link and tries to open it in the browser, and the user confirms the trade in Uniswap.

Which chains are supported?

Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, Celo, Blast, Zora, World Chain and Unichain.

Is there a trending token feed?

No. The DexScreener public API has no trending endpoint, so discovery relies on keyword search and web search.

What slippage does the link use?

The generated link uses Uniswap's default of 0.5%, and users can adjust it in the interface.

How do I install Swap planner in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/swap-planner to use it in all your projects, or to .claude/skills/swap-planner in one project. Or install the uniswap-driver plugin, which includes it: /plugin marketplace add Uniswap/uniswap-ai, then /plugin install uniswap-driver@uniswap-ai.

Does Swap planner run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Swap planner?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Swap planner?

The closest alternatives to Swap planner are Liquidity planner, Swap integration, Swap tokens, Copy trade and Index bot.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Uniswap/uniswap-ai

  1. Guides your agent through configuring Uniswap CCA token auction contract parameters

    • Open source
    • 236 GitHub stars
    • Finance and payments
  2. Guides an agent through deploying Uniswap CCA auction contracts via the factory

    • Open source
    • 236 GitHub stars
    • Developer tools
  3. Plans Uniswap liquidity positions and generates pre-filled position deep links

    • Open source
    • 236 GitHub stars
    • Finance and payments
  4. Guides an agent to scaffold Uniswap v4 hook contracts via the OpenZeppelin Wizard MCP

    • Open source
    • 236 GitHub stars
    • Developer tools
  5. Security checklists and vulnerability patterns for building Uniswap v4 hooks safely

    • Open source
    • 236 GitHub stars
    • Developer tools
  6. Collects and validates Uniswap v4 permissioned pool parameters into a deploy-ready JSON

    • Open source
    • 236 GitHub stars
    • Developer tools