[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758GN5KC8PR5NA96FNHNVZN":3,"skill-same:01M758GN5KC8PR5NA96FNHNVZN":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M758GN5KC8PR5NA96FNHNVZN","routing-dex-trades",null,"Route trades across multiple DEXs to find optimal prices with minimal slippage and gas costs.\nUse when comparing DEX prices, finding optimal swap routes, analyzing price impact, splitting large orders, or assessing MEV risk.\nTrigger with phrases like \"find best swap\", \"compare DEX prices\", \"route trade\", \"optimal swap route\", \"split order\", \"DEX aggregator\", \"check slippage\", or \"MEV protection\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: routing-dex-trades\ndescription: |\n  Route trades across multiple DEXs to find optimal prices with minimal slippage and gas costs.\n  Use when comparing DEX prices, finding optimal swap routes, analyzing price impact, splitting large orders, or assessing MEV risk.\n  Trigger with phrases like \"find best swap\", \"compare DEX prices\", \"route trade\", \"optimal swap route\", \"split order\", \"DEX aggregator\", \"check slippage\", or \"MEV protection\".\n\nallowed-tools: Read, Write, Edit, Grep, Glob, Bash(crypto:dex-*)\nversion: 1.0.0\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\nlicense: MIT\ncompatible-with: claude-code, codex, openclaw\n---\n# Routing DEX Trades\n\n## Contents\n\n[Overview](#overview) | [Prerequisites](#prerequisites) | [Instructions](#instructions) | [Output](#output) | [Error Handling](#error-handling) | [Examples](#examples) | [Resources](#resources)\n\n## Overview\n\nOptimal trade routing across decentralized exchanges by aggregating quotes from 1inch, Paraswap, and 0x. Discovers multi-hop routes, calculates split orders for large trades, and assesses MEV risk to minimize slippage and gas costs.\n\n## Prerequisites\n\n1. Install Python 3.9+ with `httpx`, `pydantic`, and `rich` packages\n2. Verify network access to aggregator APIs (1inch, Paraswap, 0x)\n3. Optionally add API keys for 1inch and 0x (higher rate limits)\n4. Copy settings: `cp ${CLAUDE_SKILL_DIR}\u002Fconfig\u002Fsettings.yaml.example ${CLAUDE_SKILL_DIR}\u002Fconfig\u002Fsettings.yaml`\n\n## Instructions\n\n1. Get a quick quote for the single best price with gas cost and effective rate:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 1.0\n   ```\n2. Compare all DEXs to see quotes ranked by effective rate (after gas):\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 5.0 --compare\n   ```\n3. Analyze multi-hop routes to compare direct vs. multi-hop (2-3 pools) with hop-by-hop breakdown:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 10.0 --routes\n   ```\n4. Split large orders ($10K+) across multiple DEXs to minimize total price impact:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 100.0 --split\n   ```\n5. Assess MEV risk (sandwich attack risk score: LOW\u002FMEDIUM\u002FHIGH) before executing:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 50.0 --mev-check\n   ```\n6. Run full analysis combining all features for comprehensive output:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 25.0 --full --output json\n   ```\n\n## Output\n\n- **Quick Quote**: Best price, output amount, gas cost, recommended venue\n- **Comparison**: All venues ranked by effective rate with price impact and gas\n- **Route Analysis**: Direct vs. multi-hop with hop-by-hop breakdown\n- **Split Mode**: Optimal allocation percentages with dollar savings vs. single-venue\n- **MEV Assessment**: Risk score, exposure estimate, protection recommendations\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md` for detailed output examples.\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| API Rate Limited | Too many requests | Wait 60s or add API key for higher limits |\n| Quote Expired | Stale price data | Refresh before execution; quotes valid ~30s |\n| No Route Found | Low liquidity token | Try larger DEXs or reduce trade size |\n| Network Timeout | Aggregator down | Retry or check aggregator status page |\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Ferrors.md` for comprehensive error handling.\n\n## Examples\n\n**Compare prices for a 5 ETH swap:**\n```bash\npython ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 5.0 --compare\n```\n\n**Find optimal split for a large order:**\n```bash\npython ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 100.0 --split\n```\n\n**Check MEV risk before executing:**\n```bash\npython ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 50.0 --mev-check\n```\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fexamples.md` for multi-hop discovery and MEV-protected execution examples.\n\n## Resources\n\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md` - Trade size guide, split optimization, MEV scoring, API config\n- [1inch API](https:\u002F\u002Fdocs.1inch.io\u002F) - Primary aggregator\n- [Paraswap API](https:\u002F\u002Fdevelopers.paraswap.network\u002F) - Secondary aggregator\n- [0x API](https:\u002F\u002F0x.org\u002Fdocs\u002Fapi) - Third aggregator\n- [Flashbots Protect](https:\u002F\u002Fdocs.flashbots.net\u002Fflashbots-protect\u002Foverview) - MEV protection\n","# Routing DEX Trades\n\n## Contents\n\n[Overview](#overview) | [Prerequisites](#prerequisites) | [Instructions](#instructions) | [Output](#output) | [Error Handling](#error-handling) | [Examples](#examples) | [Resources](#resources)\n\n## Overview\n\nOptimal trade routing across decentralized exchanges by aggregating quotes from 1inch, Paraswap, and 0x. Discovers multi-hop routes, calculates split orders for large trades, and assesses MEV risk to minimize slippage and gas costs.\n\n## Prerequisites\n\n1. Install Python 3.9+ with `httpx`, `pydantic`, and `rich` packages\n2. Verify network access to aggregator APIs (1inch, Paraswap, 0x)\n3. Optionally add API keys for 1inch and 0x (higher rate limits)\n4. Copy settings: `cp ${CLAUDE_SKILL_DIR}\u002Fconfig\u002Fsettings.yaml.example ${CLAUDE_SKILL_DIR}\u002Fconfig\u002Fsettings.yaml`\n\n## Instructions\n\n1. Get a quick quote for the single best price with gas cost and effective rate:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 1.0\n   ```\n2. Compare all DEXs to see quotes ranked by effective rate (after gas):\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 5.0 --compare\n   ```\n3. Analyze multi-hop routes to compare direct vs. multi-hop (2-3 pools) with hop-by-hop breakdown:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 10.0 --routes\n   ```\n4. Split large orders ($10K+) across multiple DEXs to minimize total price impact:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 100.0 --split\n   ```\n5. Assess MEV risk (sandwich attack risk score: LOW\u002FMEDIUM\u002FHIGH) before executing:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 50.0 --mev-check\n   ```\n6. Run full analysis combining all features for comprehensive output:\n   ```bash\n   python ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 25.0 --full --output json\n   ```\n\n## Output\n\n- **Quick Quote**: Best price, output amount, gas cost, recommended venue\n- **Comparison**: All venues ranked by effective rate with price impact and gas\n- **Route Analysis**: Direct vs. multi-hop with hop-by-hop breakdown\n- **Split Mode**: Optimal allocation percentages with dollar savings vs. single-venue\n- **MEV Assessment**: Risk score, exposure estimate, protection recommendations\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md` for detailed output examples.\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| API Rate Limited | Too many requests | Wait 60s or add API key for higher limits |\n| Quote Expired | Stale price data | Refresh before execution; quotes valid ~30s |\n| No Route Found | Low liquidity token | Try larger DEXs or reduce trade size |\n| Network Timeout | Aggregator down | Retry or check aggregator status page |\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Ferrors.md` for comprehensive error handling.\n\n## Examples\n\n**Compare prices for a 5 ETH swap:**\n```bash\npython ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 5.0 --compare\n```\n\n**Find optimal split for a large order:**\n```bash\npython ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 100.0 --split\n```\n\n**Check MEV risk before executing:**\n```bash\npython ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdex_router.py ETH USDC 50.0 --mev-check\n```\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fexamples.md` for multi-hop discovery and MEV-protected execution examples.\n\n## Resources\n\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md` - Trade size guide, split optimization, MEV scoring, API config\n- [1inch API](https:\u002F\u002Fdocs.1inch.io\u002F) - Primary aggregator\n- [Paraswap API](https:\u002F\u002Fdevelopers.paraswap.network\u002F) - Secondary aggregator\n- [0x API](https:\u002F\u002F0x.org\u002Fdocs\u002Fapi) - Third aggregator\n- [Flashbots Protect](https:\u002F\u002Fdocs.flashbots.net\u002Fflashbots-protect\u002Foverview) - MEV protection\n",{"name":5,"author":24,"license":15,"version":25,"description":26,"allowed-tools":27,"compatible-with":28},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Route trades across multiple DEXs to find optimal prices with minimal slippage and gas costs.\nUse when comparing DEX prices, finding optimal swap routes, analyzing price impact, splitting large orders, or assessing MEV risk.\nTrigger with phrases like \"find best swap\", \"compare DEX prices\", \"route trade\", \"optimal swap route\", \"split order\", \"DEX aggregator\", \"check slippage\", or \"MEV protection\".\n","Read, Write, Edit, Grep, Glob, Bash(crypto:dex-*)","claude-code, codex, openclaw","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill routing-dex-trades",{"tool":41,"command":42},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill routing-dex-trades",{"tool":44,"command":45},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill routing-dex-trades","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002FSKILL.md",true,[49,55,59,63,67,71,75,81,85,89,93,97],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"ARD.md","REFERENCE","参考文档",21728,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002FARD.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"config\u002Fsettings.yaml",2900,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Fconfig\u002Fsettings.yaml",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"PRD.md",8194,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002FPRD.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ferrors.md",4662,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Freferences\u002Ferrors.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fexamples.md",8583,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Freferences\u002Fexamples.md",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fimplementation.md",3123,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Freferences\u002Fimplementation.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fdex_router.py","SCRIPT","脚本",10002,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Fscripts\u002Fdex_router.py",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fformatters.py",18743,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Fscripts\u002Fformatters.py",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fmev_assessor.py",14216,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Fscripts\u002Fmev_assessor.py",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fquote_fetcher.py",16772,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Fscripts\u002Fquote_fetcher.py",{"path":94,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Froute_optimizer.py",11062,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Fscripts\u002Froute_optimizer.py",{"path":98,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fsplit_calculator.py",11839,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Frouting-dex-trades\u002Fscripts\u002Fsplit_calculator.py",[102,109,116,123,130,138],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":134,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]