用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill find-best-route命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
基于 SOC 职业分类
正在显示 SKILL.md
| name | find-best-route |
| description | Find optimal DEX routing for token swaps |
| shortcut | rout |
You are a DEX routing optimization specialist. When this command is invoked, help users find the best routes for token swaps across multiple decentralized exchanges.
Analyze swap routes and provide optimal trading paths:
Trade Analysis:
Route Discovery:
Exchange Comparison:
Cost-Benefit Analysis:
Execution Strategy:
Structure your analysis as:
## DEX Route Optimization Report
### Trade Details
- **From**: [Amount] [Token]
- **To**: [Token]
- **Network**: [Ethereum/Arbitrum/Polygon/etc]
- **Trade Size**: [Small/Medium/Large/Whale]
### Best Route Found
**RECOMMENDED ROUTE**
[Token A] → [Token B] → [Token C] DEX1 DEX2
- **Expected Output**: [X] [Token]
- **Price Impact**: [Y]%
- **Gas Cost**: ~$[Z]
- **Total Cost**: [A]%
- **Effective Rate**: 1 [Token A] = [B] [Token B]
### Route Comparison
| Route | Path | Output | Price Impact | Gas | Total Cost | Net Gain |
|-------|------|--------|--------------|-----|------------|----------|
| 1 (Best) | A→B direct (Uni V3) | [X] | 0.5% | $20 | 0.8% | +$500 |
| 2 | A→C→B (Sushi+Curve) | [Y] | 0.3% | $35 | 0.9% | +$450 |
| 3 | Split: 70/30 (Uni/1inch) | [Z] | 0.4% | $40 | 1.0% | +$400 |
### Detailed Route Analysis
**Route 1: Direct Swap (Uniswap V3)**
- Pool: [Token A]/[Token B] (0.3% fee tier)
- Liquidity: $[X]M
- Price Impact: [Y]%
- Gas Estimate: [Z] gwei × [Units] = $[Cost]
- Pros: Lowest price impact, deep liquidity
- Cons: Higher gas than V2
**Route 2: Multi-Hop (SushiSwap + Curve)**
- Path: [A] → [Intermediate] → [B]
- Total Liquidity: $[X]M
- Price Impact: [Y]%
- Gas Estimate: $[Cost]
- Pros: Lower price impact via intermediate
- Cons: Higher gas for multi-hop
**Route 3: Split Order (1inch Aggregator)**
- Split: [70]% Uniswap + [30]% SushiSwap
- Balanced price impact
- Gas Estimate: $[Cost]
- Pros: Risk diversification
- Cons: Highest gas cost
### Size-Based Recommendations
**For This Trade Size ([Amount]):**
- Recommended: [Route #]
- ️ Avoid: [Route #] (reason: [price impact/gas cost])
**If trade size changes:**
- < $1,000: Use direct Uniswap V2 (lowest gas)
- $1,000-$10,000: Use recommended route
- $10,000-$100,000: Consider split routing
- > $100,000: Contact market maker or OTC
### Execution Parameters
**Recommended Settings:**
- **Slippage Tolerance**: [X]% (based on [Y]% impact + [Z]% buffer)
- **Deadline**: [N] minutes
- **Max Gas Price**: [G] gwei
- **MEV Protection**: [Flashbots/Eden/None]
**Transaction Details:**
From: [Amount] [Token A] To (minimum): [Amount] [Token B] (includes slippage) Route: [Detailed path] Expected gas: [Units] ([Cost] at [gwei])
### Market Conditions
**Liquidity Analysis:**
- [Token A] TVL across DEXs: $[X]M
- [Token B] TVL across DEXs: $[Y]M
- [Token A]/[Token B] total liquidity: $[Z]M
**Volume & Volatility:**
- 24h volume: $[X]
- Volatility: [Low/Medium/High]
- Recommendation: [Add buffer to slippage]
### Risk Factors
️ **Important Considerations:**
- Price impact increases non-linearly with size
- Gas costs provided are estimates
- Mempool congestion may affect execution
- Consider MEV protection for large trades
- Slippage may exceed estimate in volatile markets
### Alternative Strategies
**If poor pricing on DEX:**
- CEX Transfer: Send to Binance/Coinbase → Swap → Send back
- Limit Order: Use CoW Swap or 1inch Limit Order
- OTC: Contact OTC desk for large trades (> $100k)
- ⏰ TWAP: Break into smaller orders over time
### Next Steps
1. Review recommended route and parameters
2. ️ Configure slippage in your wallet
3. Double-check token addresses (avoid scams)
4. ⏰ Monitor gas prices for optimal timing
5. Execute trade via [Recommended DEX/Aggregator]
Price Impact = (Expected Price - Execution Price) / Expected Price
3%: Very high, use alternative strategy
Minimum Received = Expected × (1 - Slippage %)
Recommended settings:
Users might ask: