swapper-integration
БесплатноБез исполняемых скриптовНе проверенIntegrate new DEX aggregators, swappers, or bridge protocols (like Bebop, Portals, Jupiter, 0x, 1inch, etc.) into ShapeShift Web. Activates when user wants to…
от Microck★ 417 звёзд на GitHubОб этом скилле
Swapper Integration Skill
You are helping integrate a new DEX aggregator, swapper, or bridge into ShapeShift Web. This skill guides you through the complete process from research to testing.
When This Skill Activates
Use this skill when the user wants to:
- "Integrate [SwapperName] swapper"
- "Add support for [Protocol]"
- "Implement [DEX] integration"
- "Add [Aggregator] as a swapper"
Overview
ShapeShift Web supports multiple swap aggregators through a unified swapper interface located in packages/swapper/src/swappers/. Each swapper follows consistent patterns, but has variations based on its type (EVM, Solana, cross-chain, gasless, etc.).
Your task: Research existing swappers to understand patterns, then adapt them for the new integration.
Workflow
Phase 1: Information Gathering
Before starting implementation, collect ALL required information from the user.
Use the AskUserQuestion tool to interactively gather this information with structured prompts.
Ask the user for:
API Documentation
- Link to official API documentation (main docs)
- Link to Swagger/OpenAPI specification (separate link, if available)
- API base URL
- Authentication method (API key? signature? none?)
- If API key needed: Obtain production API key to add to
.env.base - Rate limiting details
Supported Networks
- Which blockchains (Ethereum, Polygon, Arbitrum, Solana, etc.)?
- Any network-specific limitations?
- Chain naming convention (e.g., "ethereum" vs "1" vs "mainnet")
API Behavior
- CRITICAL: How does slippage work? (percentage like 1=1%? decimal like 0.01=1%? basis points like 100=1%?)
- Does it require checksummed addresses?
- How are native tokens handled? (special marker address? omit field?)
- Minimum/maximum trade amounts?
- Quote expiration time?
Brand Assets
- Official swapper name (exact capitalization)
- Logo/icon file or link (PNG preferred, 128x128 or larger)
- Brand colors (optional)
Reference Materials (helpful but optional)
- Example integrations on GitHub
- Sample curl requests + responses from their dApp
- Known quirks or gotchas
- Community/support contact
Action: Stop and gather this information before proceeding. Missing details cause bugs later.
Phase 2: Research & Understanding
IMPORTANT: Don't guess at implementation details. Research thoroughly before coding.
Step 0: Study the API Documentation
Before looking at code, understand the swapper's API:
Read the official docs (link from Phase 1)
- How does the API work?
- What endpoints are available?
- What's the request/response format?
- Any special requirements or quirks?
Study the Swagger/OpenAPI spec (if available)
- Exact request parameters
- Response schema
- Error formats
- Example requests/responses
Key things to verify:
- How is slippage formatted in requests?
- Are addresses checksummed in examples?
- How are native tokens represented?
- What does a successful quote response look like?
- What error responses can occur?
Try making a test curl request if possible to see real responses.
Step 1: Explore Existing Swappers
Now that you understand the API, see how existing swappers work:
Step 1: Explore the swappers directory
# List all existing swappers
ls packages/swapper/src/swappers/
You'll see swappers like:
- BebopSwapper
- ZrxSwapper
- CowSwapper
- PortalsSwapper
- JupiterSwapper
- ThorchainSwapper
- And others...
Step 2: Identify similar swappers
Based on what you gathered in Phase 1, determine which swapper type yours is:
EVM Single-Hop (most common):
- Same-chain swaps only
- Standard transaction signing
- Examples: BebopSwapper, ZrxSwapper, PortalsSwapper
Gasless / Order-Based:
- Sign message instead of transaction
- No gas fees
- Examples: CowSwapper
Solana-Only:
- Solana ecosystem
- Different execution model
- Examples: JupiterSwapper
Cross-Chain / Multi-Hop:
- Bridge or cross-chain swaps
- May have multiple steps
- Examples: ThorchainSwapper, ChainflipSwapper
Bridge-Specific:
- Focus on bridging, not swapping
- Examples: ArbitrumBridgeSwapper, RelaySwapper
Step 3: Study similar swappers
Pick 2-3 similar swappers and read their implementations:
# Example: If building an EVM aggregator, study these:
@packages/swapper/src/swappers/BebopSwapper/BebopSwapper.ts
@packages/swapper/src/swappers/BebopSwapper/endpoints.ts
@packages/swapper/src/swappers/BebopSwapper/types.ts
@packages/swapper/src/swappers/BebopSwapper/INTEGRATION.md
@packages/swapper/src/swappers/ZrxSwapper/ZrxSwapper.ts
@packages/swapper/src/swappers/PortalsSwapper/PortalsSwapper.ts
Pay attention to:
- File structure
- How they call their APIs
- How they handle errors
- How they calculate rates and fees
- Special handling (checksumming, hex conversion, etc.)
Установить swapper-integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGrepGlobBash(yarn test:*)Bash(yarn lint:*)Bash(yarn type-check)Bash(yarn build:*)Вложенные файлы
FAQ
Что делает скилл swapper-integration?
Integrate new DEX aggregators, swappers, or bridge protocols (like Bebop, Portals, Jupiter, 0x, 1inch, etc.) into ShapeShift Web. Activates when user wants to add, integrate, or implement support for a new swapper. Guides through research, implementation, and testing following established patterns.
Как установить скилл swapper-integration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл swapper-integration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub