cyotee/cyotee-claude-plugins/0x-settler-integrate-swap

Claude Code and agent skill by cyotee/cyotee-claude-plugins

Trust tier 3
  • community
Source check pending

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-swap

SKILL.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)

text
1. User ERC20-approves Permit2 (or uses AllowanceHolder exec)
2. User (or router) calls Settler with:
- VIP action 0: transfer sellToken → Settler (Permit2 or AH)
- Action 1..n: swaps (UniV3 VIP, RFQ, BASIC to allowed targets, …)
- Final: send remaining buyToken to recipient ≥ minOut
3. Transient payer/operator/witness locks clear by end of tx
Implementation checklist
  • [ ] Resolve Settler address from Deployer feature registry (taker feature id typically 2); ownerOf revert ⇒ 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

ModeHow funds enterIntegrator notes
Permit2 VIPUser signs Permit2; Settler pullsUse skill:permit2-signature-transfer / allowance flow
AllowanceHolderUser AH.exec with empty Permit2 sig, nonce 0Deadline checked in Settler; AH keys (operator, owner, token)
Meta-txnRelayer submits; witness binds actions + slippageFirst action must VIP-spend and clear witness
IntentSolver allowlist; witness binds slippage onlySolver cannot change signed Slippage fields

See also: skill:0x-settler-settlement-auth (security model of locks).

Action composition rules

  1. VIP first when using meta/witness binding.
  2. Callbacks (UniV3, etc.): Settler sets operator to the pool; only that operator may trigger pay.
  3. BASIC: arbitrary call + optional amount patch + max approve — only to allowed targets; residual approve is a UX/security footgun for users.
  4. Bridges (Across/LZ/CCIP/Relay): often override amount to full Settler balance; nested SETTLER_SWAP must hit Deployer-registered Settler.
  5. RFQ: maker Permit2 witness must bind token, amount, counterparty, partialFill.

Client-side pseudo-flow (taker)

text
// Pseudocode — adapt to chain ABI / SDK
actions = [
encodeTransferFromVIP(sellToken, amount), // Permit2 or AH
encodeUniswapV3VIP(path, …), // or other adapters
]
call Settler.execute(actions, buyToken, minOut, recipient)
// require buyToken.balanceOf(recipient) increased ≥ minOut (or use return data if ABI exposes)

Footguns for integrators

FootgunCorrect behavior
BASIC to Permit2/AHBlocked or catastrophic; never encode
Meta without leading VIPWitness never clears; spend fails / auth broken
Assuming stuck dust is recoverableUser self-risk; not protocol custody
Wrong feature ID / paused DeployerPreflight ownerOf(featureId)
Intent solver rewriting slipMust 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 security
  • skill: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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cyotee/cyotee-claude-plugins/0x-settler-integrate-swap/badge)](https://verified-skill.com/skills/cyotee/cyotee-claude-plugins/0x-settler-integrate-swap)

Something wrong with this skill or its page? Tell us.