What problem does it solve? Adding token swap functionality to an application requires handling routing optimization, token approvals, Permit2 signatures, quote freshness, and chain-specific quirks. This Skill provides the complete integration patterns for Uniswap swaps so developers avoid common pitfalls like malformed /swap request bodies, CORS failures, and on-chain reverts. ## Core Features & Use Cases - Trading API Integration: Implements the 3-step flow (check_approval, quote, swap) with correct request formatting, Permit2 handling, and routing-type-aware response parsing for CLASSIC and UniswapX orders. - Universal Router SDK & Smart Contracts: Generates direct on-chain integration code using @uniswap/universal-router-sdk with command encoding for v2, v3, and v4 swaps. - Production Hardening: Covers browser polyfills, CORS proxy configuration for Vite/Next.js/Vercel, pre-broadcast transaction validation, rate-limit backoff, and L2 WETH unwrapping. - Use Case: A developer building a React frontend on Base asks to add a USDC-to-WETH swap widget; the Skill produces the proxied API calls, quote display logic, Permit2 signing flow, and transaction submission with user confirmation. ## Quick Start Ask the assistant to integrate a Uniswap token swap into your app, specifying the tokens, chain, and whether it is a frontend, backend script, or smart contract.