โ† All skills
Tencent SkillHub ยท Developer Tools

Uniswap Design Integration

Design a Uniswap integration architecture. Use when user is building a project that needs to integrate Uniswap and wants recommendations on integration method (Trading API vs SDK vs direct contract), architecture patterns, required dependencies, and security considerations.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Design a Uniswap integration architecture. Use when user is building a project that needs to integrate Uniswap and wants recommendations on integration method (Trading API vs SDK vs direct contract), architecture patterns, required dependencies, and security considerations.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
README.md, SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.1.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 7 sections Open source page

Overview

Designs a complete Uniswap integration architecture for any project by delegating to the integration-architect agent. Produces a comprehensive blueprint covering: integration method recommendation (Trading API vs Universal Router SDK vs direct contract vs V4 hooks), component architecture, dependency list with versions, security review with mitigations, and ordered implementation plan.

When to Use

Activate when the user asks: "Help me integrate Uniswap" "Design a swap integration" "Architecture for a DEX aggregator" "How to build an arbitrage bot" "Uniswap integration plan" "How should I add swaps to my dApp?" "Best way to integrate Uniswap in my backend" "Architecture for a DeFi protocol that uses Uniswap" "What SDK should I use for Uniswap?"

Parameters

ParameterRequiredDefaultDescriptionprojectTypeYes--Type of project (e.g., "DeFi dashboard", "arb bot", "wallet app", "DeFi protocol")functionalityYes--Required Uniswap functionality: "swap", "LP", "both", or "custom"environmentNoAuto-detectExecution environment: "frontend", "backend", "smart contract", or "full-stack"chainsNoethereumTarget chain(s): single chain name or comma-separated listscaleNo--Expected scale: transaction volume, concurrent users, latency requirements

Workflow

Extract parameters from the user's request: identify the project type, required functionality, target environment, chains, and scale requirements. If the user has an existing codebase, note it for the agent to analyze. Delegate to integration-architect: Invoke Task(subagent_type:integration-architect) with the full context. The integration-architect will: Understand the project context and requirements Evaluate integration methods and recommend primary + fallback Design the component architecture with data flow Identify all dependencies (NPM packages, APIs, infrastructure) Perform a security review with attack vectors and mitigations Produce an ordered implementation plan with effort estimates Present the blueprint to the user covering: Integration method recommendation with clear rationale Architecture overview (components, data flow, error handling) Complete dependency list with versions and purposes Security considerations with specific mitigations Step-by-step implementation order with effort estimates Overall complexity assessment

Output Format

Present a structured integration blueprint: Integration Blueprint: DeFi Dashboard with Swap (Ethereum + Base) Recommended Method: Trading API (primary), Universal Router SDK (fallback) Rationale: Trading API provides optimized routing with minimal frontend complexity. Fallback to SDK for advanced use cases or API downtime. Architecture: User -> QuoteService -> ApprovalManager -> SwapExecutor -> Wallet -> Chain Components: QuoteService: Fetches and caches quotes from Trading API ApprovalManager: Manages Permit2 approvals and allowances SwapExecutor: Constructs and submits swap transactions ChainManager: Multi-chain config and RPC connections Dependencies: @uniswap/sdk-core ^5.8.0 Token and price primitives viem ^2.21.0 Ethereum client wagmi ^2.14.0 React wallet hooks @tanstack/react-query ^5.0.0 Data fetching and caching Security: - Stale quotes: Refresh every 15s, enforce deadline (block.timestamp + 300s) - Approvals: Permit2 with exact amounts and 30-min expiry - Key management: wagmi wallet connection only, never handle keys Implementation Order: 1. Wallet connection (wagmi) โ€” 1 day 2. Chain configuration โ€” 0.5 days 3. Quote fetching service โ€” 1 day 4. Permit2 approval flow โ€” 1 day 5. Swap execution and tracking โ€” 1.5 days 6. Error handling and retry logic โ€” 1 day Complexity: Medium

Important Notes

This skill delegates entirely to the integration-architect agent -- it does not call MCP tools directly. The blueprint is tailored to the specific project type and requirements -- not a generic template. For existing codebases, the agent will analyze the current code and recommend integration patterns that fit the existing architecture. The implementation order considers dependencies between components -- follow the order for smoothest development. Always uses viem (not ethers.js) and Permit2 (not legacy approve) per project conventions.

Error Handling

ErrorUser-Facing MessageSuggested ActionVAGUE_PROJECT"Need more detail about your project to recommend an integration approach."Describe project type and what Uniswap functionality is neededDEPRECATED_APPROACH"The requested integration method is deprecated. Recommending alternatives."Follow the updated recommendationUNSUPPORTED_CHAIN"Uniswap is not deployed on the specified chain."Choose from the 11 supported chainsCONFLICTING_REQUIREMENTS"The requirements conflict (e.g., frontend + direct contract calls)."Clarify the execution environment and adjust expectations

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs
  • SKILL.md Primary doc
  • README.md Docs