cyotee/cyotee-claude-plugins/0x-settler-integrate-swap
Claude Code and agent skill by cyotee/cyotee-claude-plugins
- community
Checking that the SKILL.md file is still in the repository.
Implement swaps against 0x Settler multicalls: taker flow, Permit2/AllowanceHolder VIP funding, action ordering, minOut, blocked targets, meta-txn and intent modes. Use when building a router, DEX aggregator client, or smart contract that settles via 0x Settler.
Install
npx vskill@latest install cyotee/cyotee-claude-plugins/0x-settler-integrate-swapSKILL.md
The same SKILL.md was published earlier as cyotee/cyotee-claude-plugins/0x-settler-integrate-swap.
Integrate swaps with 0x Settler
Conceptual overview
Settler is a non-custodial multicall settler: sell tokens enter via a VIP transfer (Permit2 or AllowanceHolder), middle actions route through DEX/RFQ adapters, and the user receives buyToken subject to minOut. Do not treat it as a long-term custody vault.
Happy path (taker / msg.sender is payer)
Implementation checklist
- [ ] Resolve Settler address from Deployer feature registry (taker feature id typically
2);ownerOfrevert ⇒ feature paused - [ ] Prefer typed VIP actions over open BASIC when possible
- [ ] Encode sell amount; optional proportional
~amount < 10000= bps of balance (taker / intent-bridge only — not meta Feature 3) - [ ] Set minOut on buy token; never rely on Settler holding residual for later
- [ ] Chain-specific blocked BASIC targets: always exclude Permit2, AllowanceHolder, and documented extras
Funding modes
| Mode | How funds enter | Integrator notes | |
|---|---|---|---|
| Permit2 VIP | User signs Permit2; Settler pulls | Use skill:permit2-signature-transfer / allowance flow | |
| AllowanceHolder | User AH.exec with empty Permit2 sig, nonce 0 | Deadline checked in Settler; AH keys (operator, owner, token) | |
| Meta-txn | Relayer submits; witness binds actions + slippage | First action must VIP-spend and clear witness | |
| Intent | Solver allowlist; witness binds slippage only | Solver cannot change signed Slippage fields |
See also: skill:0x-settler-settlement-auth (security model of locks).
Action composition rules
- VIP first when using meta/witness binding.
- Callbacks (UniV3, etc.): Settler sets
operatorto the pool; only that operator may trigger pay. - BASIC: arbitrary call + optional amount patch + max approve — only to allowed targets; residual approve is a UX/security footgun for users.
- Bridges (Across/LZ/CCIP/Relay): often override amount to full Settler balance; nested SETTLER_SWAP must hit Deployer-registered Settler.
- RFQ: maker Permit2 witness must bind token, amount, counterparty, partialFill.
Client-side pseudo-flow (taker)
Footguns for integrators
| Footgun | Correct behavior | |
|---|---|---|
| BASIC to Permit2/AH | Blocked or catastrophic; never encode | |
| Meta without leading VIP | Witness never clears; spend fails / auth broken | |
| Assuming stuck dust is recoverable | User self-risk; not protocol custody | |
| Wrong feature ID / paused Deployer | Preflight ownerOf(featureId) | |
| Intent solver rewriting slip | Must respect signed Slippage |
Testing
- Unit: mock Permit2 pull + single-hop VIP + minOut boundary
- Fork: real pool CREATE2 address for UniV3 VIP on target chain
- Meta: relayer cannot change action list without invalidating witness
- Negative: BASIC to Permit2 reverts / is rejected
See also
skill:0x-settler-settlement-auth— auth/locks securityskill:permit2-allowance-flow,skill:permit2-signature-transfer- security-research patterns:
programs/immunefi-0x-settler/notes/patterns-for-skills.md
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/0x-settler/skills/0x-settler-integrate-swap/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cyotee/cyotee-claude-plugins/0x-settler-integrate-swap)