# Swap planner

> Swap planner is an open-source agent skill for finance and payments. Plans token swaps on Uniswap across chains and builds pre-filled swap links. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Uniswap/uniswap-ai/tree/main/packages/plugins/uniswap-driver/skills/swap-planner
- **Repository:** https://github.com/uniswap/uniswap-ai
- **GitHub stars:** 236
- **License:** MIT
- **Skill name:** swap-planner
- **Collection:** https://github.com/Uniswap/uniswap-ai
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Uniswap/uniswap-ai/tree/HEAD/packages/plugins/uniswap-driver/skills/swap-planner)
- [Asks for: Read, Glob, Grep, Bash(curl:*), Bash(jq:*), Bash(cast:*), Bash(xdg-open:*), Bash(open:*)…](https://github.com/Uniswap/uniswap-ai/blob/HEAD/packages/plugins/uniswap-driver/skills/swap-planner/SKILL.md)
- [License: MIT](https://github.com/Uniswap/uniswap-ai/tree/HEAD/packages/plugins/uniswap-driver/skills/swap-planner)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Liquidity planner](https://ai-powered.com/skills/liquidity-planner): Liquidity planner is an open-source agent skill for finance and payments.
- [Swap integration](https://ai-powered.com/skills/swap-integration): Swap integration is an open-source agent skill for finance and payments.
- [Swap tokens](https://ai-powered.com/skills/swap-tokens): Swap tokens is an open-source agent skill for finance and payments.
- [Copy trade](https://ai-powered.com/skills/copy-trade): Copy trade is an open-source agent skill for finance and payments.
- [Index bot](https://ai-powered.com/skills/index-bot): Index bot is an open-source agent skill for finance and payments.
- [Trust wallet API](https://ai-powered.com/skills/trust-wallet-api): Trust wallet API is an open-source agent skill for finance and payments.
- [Pump swap SDK](https://ai-powered.com/skills/pump-swap-sdk): Pump swap SDK is an open-source agent skill for finance and payments.
- [Dca bot](https://ai-powered.com/skills/dca-bot): Dca bot is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/swap-planner
