Back to skills
SKILL.md
082 Claude C7da34ef
ASecurityThis plugin provides comprehensive guidance for integrating Uniswap swaps into frontends, backends, and smart contracts. It supports the Trading API, Universal Router SDK, and direct smart contract integration.
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Works with
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 082-claude_c7da34ef --agent claude-codeAre you the author of 082 Claude C7da34ef?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-082-claude-c7da34ef)# CLAUDE.md - uniswap-trading Plugin
## Overview
This plugin provides comprehensive guidance for integrating Uniswap swaps into frontends, backends, and smart contracts. It supports the Trading API, Universal Router SDK, and direct smart contract integration.
## Plugin Components
### Skills (./skills/)
- **swap-integration**: Comprehensive guide for integrating Uniswap swaps via Trading API, Universal Router SDK, or direct smart contract calls. Covers frontend hooks, backend scripts, Solidity integrations, Permit2 patterns, ERC-4337 smart account integration, L2 WETH handling, rate limiting, and troubleshooting.
### Agents (./agents/)
- **swap-integration-expert**: Expert agent for complex Uniswap swap integration questions, Trading API debugging, Universal Router encoding, Permit2 patterns, ERC-4337 smart account integration, and L2-specific patterns.
## File Structure
```text
uniswap-trading/
├── .claude-plugin/
│ └── plugin.json
├── agents/
│ └── swap-integration-expert.md
├── skills/
│ └── swap-integration/
│ ├── SKILL.md
│ └── references/
│ └── advanced-patterns.md
├── project.json
├── package.json
├── CLAUDE.md
└── README.md
```
## Integration Methods
1. **Trading API** (Recommended for most use cases)
- REST API at `https://trade-api.gateway.uniswap.org/v1`
- Handles routing optimization automatically
- 3-step flow: check_approval -> quote -> swap
2. **Universal Router SDK**
- Direct SDK usage with `@uniswap/universal-router-sdk`
- Full control over transaction construction
- Command-based architecture
3. **Direct Smart Contract Integration**
- Solidity contracts calling Universal Router
- For on-chain integrations and DeFi composability
## Supported Chains
Ethereum (1), Optimism (10), BNB (56), Unichain (130), Polygon (137), X Layer (196), zkSync (324), World Chain (480), Soneium (1868), Base (8453), Arbitrum (42161), Celo (42220), Avalanche (43114), Blast (81457), Zora (7777777), Monad (143)
## Related Plugins
- **uniswap-viem**: Foundational EVM blockchain integration using viem/wagmi (prerequisite knowledge)
- **uniswap-hooks**: Uniswap v4 hook development with security-first approach
## Key References
- Trading API: `https://trade-api.gateway.uniswap.org/v1`
- Universal Router: `github.com/Uniswap/universal-router`
- SDKs: `@uniswap/universal-router-sdk`, `@uniswap/v3-sdk`, `@uniswap/sdk-core`
- Permit2: Token approval infrastructure
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.