# Build Uniswap Workflows with Ape

Uniswap automation is difficult because routing, token indexing, and account setup vary by network. This skill guides Claude, Codex, and Claude Code to use Ape and uniswap-sdk with current documentation.

## Install

```bash
npx skillstore add apeworx/uniswap
```

## Metadata

- - Slug: apeworx-uniswap
- - Version: 1.0.0
- - Author: ApeWorX
- - GitHub username: ApeWorX
- - License: MIT
- - Repository: https://github.com/ApeWorX/skills/tree/main/protocols/uniswap
- - Ref: main
- - Supported tools: Claude, Codex, Claude Code
- - Risk level: medium
- - Risk factors: network
- - Quality score: 72
- - Public page: https://skillstore.pages.dev/skills/apeworx-uniswap
- - Manifest: https://skillstore.pages.dev/api/skills/apeworx-uniswap/manifest

## Capabilities

- Guides Python code generation for uniswap-sdk workflows.
- Prompts agents to fetch current Ape and SDK documentation before coding.
- Helps identify network, token, and routing inputs before implementation.
- Explains pair indexing with uni.index or uni.install for Silverback usage.
- Encourages price checks and small test swaps before larger trades.
- Describes using liquid route intermediates such as wrapped native tokens and stablecoins.

## Use Cases

- Prototype a Swap Script: Create a Python plan for indexing pairs, checking a price, and preparing a cautious Uniswap swap.
- Plan Route Discovery: Compare token route inputs across networks and choose likely liquid intermediates before writing code.
- Design a Silverback Integration: Outline how a bot should use uniswap-sdk indexing and routing instead of custom Uniswap logic.

## Prompt Templates

### Identify Setup Requirements

```
Use the Uniswap skill to list the Ape, ape-tokens, account, and network details needed before I write a Uniswap script.
```

### Draft a Price Query Workflow

```
Use the Uniswap skill to plan a Python workflow that indexes pairs and checks the price between two tokens on my chosen network.
```

### Prepare a Cautious Swap Plan

```
Use the Uniswap skill to draft a swap implementation plan that checks price, estimates a route, and asks for confirmation before any transaction.
```

### Design Silverback Routing Logic

```
Use the Uniswap skill to design a Silverback bot workflow that keeps Uniswap pair data indexed and routes swaps through liquid intermediates.
```

## Limitations

- Does not include executable helper scripts or packaged Python modules.
- Requires configured Ape accounts and installed token lists.
- Depends on external documentation being reachable and current.
- Does not remove the financial risk of live blockchain trading.

## Best Practices

- Fetch current Ape, ape-tokens, and uniswap-sdk documentation before generating implementation details.
- Use read-only price and route checks before asking the user to approve any transaction.
- Start new or large trade workflows with a small test swap.

## Anti Patterns

- Do not sign or broadcast swaps without explicit user confirmation.
- Do not assume token addresses or route intermediates are the same on every network.
- Do not replace uniswap-sdk routing with custom swap logic unless the user requires it.

## Security Audit

- - Safe to publish: true
- - Audited at: 2026-06-28T09:49:23.079\+00:00
- - Summary: Static command-execution and weak-cryptography findings are false positives caused by Markdown inline code and blockchain terminology in SKILL.md. The real risks are external documentation fetching and guidance for live Uniswap trading, which can move user assets if used without confirmation.

## Stats

- - Views: 173
- - Downloads: 5
- - Favorites: 0
- - Popularity score: 0
