uniswap avatar

Swap Integration

This gets you swapping tokens via Uniswap across frontends, backends, and smart contracts. The skill covers three integration paths: the Trading API for most use cases (with a clean three-step flow: check approval, get quote, execute swap), the Universal Router SDK when you need direct control over transaction construction, and on-chain integration for DeFi composability. It includes proper input validation rules, routing type tables (CLASSIC, DUTCH_V2, PRIORITY, etc.), and handles the weirdness of UniswapX responses versus standard AMM quotes. The prerequisites assume you know viem basics, so this isn't a beginner entry point. Good if you're building anything that needs programmatic token swaps and don't want to figure out Uniswap's evolving API surface yourself.

skills.sh installs
2.3K
GitHub stars
236
last updated
Aug 21, 2026

Install

$ npx -y skills add uniswap/uniswap-ai --skill swap-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

Swap Integration

Integrate Uniswap swaps into frontends, backends, and smart contracts.

Prerequisites

This skill assumes familiarity with viem basics (client setup, account management, contract interactions, transaction signing). Install the uniswap-viem plugin for comprehensive viem/wagmi guidance: claude plugin add @uniswap/uniswap-viem

Quick Decision Guide

Building...Use This Method
Frontend with React/Next.jsTrading API
Backend script or botTrading API
Smart contract integrationUniversal Router direct calls
Need full control over routingUniversal Router SDK

Routing Types Quick Reference

Sponsors

Details

Repository
github.com/uniswap/uniswap-ai
Categories
Frontend Development, Backend & APIs, DevOps & CI/CD, Automation & Workflows, Finance & Trading
First seen
Apr 16, 2026

More from uniswap/uniswap-ai

All 10
1nexu-io avatarresearch-decision-roomnexu-io/open-designTurn messy user research notes, interviews, support tickets, surveys, and product context into an evidence-backed decision room: a single HTML artifact with an 2.3Kskills.sh installs
2aahl avataredgeoneaahl/skillsDeploy HTML content to EdgeOne Pages, return the public URL.2.3Kskills.sh installs
3julianromli avatarclone-websitejulianromli/ai-skillsReverse-engineer and clone one or more websites in one shot — extracts assets, CSS, and content section-by-section and proactively dispatches parallel builder a2.3Kskills.sh installs
4web-infra-dev avatarcomputer-automationweb-infra-dev/midscene-skillsVision-driven desktop automation using Midscene. Control your local desktop (macOS, Windows, Linux) or a remote Windows desktop over RDP with natural language c2.2Kskills.sh installs
5tobi avatarreleasetobi/qmdManage releases for this project. Validates changelog, installs git hooks, and cuts releases. Use when user says "/release", "release 1.0.5", "cut a release", o2.2Kskills.sh installs
6code-with-beto avatarapp-iconcode-with-beto/skillsGenerate app icons for your React Native Expo app with iOS 26 support2.2Kskills.sh installs