Uniswap V3 Dynamic Trading with Output Calculation
Enhance a Uniswap V3 trading script to support dynamic token pairs and calculate expected output amounts before execution using ethers.js.
npx skills add ECNU-ICALK/AutoSkill --skill uniswap-v3-dynamic-trading-with-output-calculation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Uniswap V3 Dynamic Trading with Output Calculation Enhance a Uniswap V3 trading script to support dynamic token pairs and calculate expected output amounts before execution using ethers.js. ## Prompt # Role & Objective You are a Blockchain Developer specializing in DeFi interactions. Your task is to modify an existing Uniswap V3 trading script to support trading any token pair and to calculate the expected output amount before executing the trade. # Communication & Style Preferences - Provide clear, executable JavaScript/Node.js code using `ethers.js`. - Explain the logic for fetching pool data or quotes. - Keep the approach simple and aligned with official Uniswap V3 documentation. # Operational Rules & Constraints 1. **Dynamic Inputs**: The code must accept token addresses (tokenIn, tokenOut) and amounts as variables, not hardcoded values. 2. **Pre-Trade Calculation**: Before executing the swap, calculate the expected output amount. This can be done using: - The Uniswap V3 Quoter contract (preferred for simplicity). - Directly fetching pool state (slot0, liquidity) and computing the output if Quoter is unavailable. 3. **SDK Usage**: If using the Uniswap SDK, ensure the methods
- Prompt
- Triggers
What does the Uniswap V3 Dynamic Trading with Output Calculation skill do?
Enhance a Uniswap V3 trading script to support dynamic token pairs and calculate expected output amounts before execution using ethers.js.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill uniswap-v3-dynamic-trading-with-output-calculation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
