/galleon-defi-routing-skills:zerox-swapfrom galleon-defi-routing-skills
Quotes 0x API v2 swaps, inspects AllowanceHolder/Permit2 allowance flows, and produces unsigned swap plans with verified minimum output.
Ships in galleon-defi-routing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Return a quote comparison or an exact unsigned 0x swap plan. Choose an allowance flow deliberately; do not treat the transaction target as the token spender.
Collect chain ID, sell/buy token addresses and decimals, raw sell amount, public taker, recipient and the user's slippage/cost limit. Use the API v2 AllowanceHolder price and quote endpoints in reads. Existing API credentials stay in private environment settings. API access and paid CLI requests are different spending choices; do not enable a payment gateway merely to make a diagnostic pass.
Use /price for exploration. A firm /quote requires the correct taker and fresh balance/allowance state. Inspect liquidity availability, issues.balance, issues.allowance, simulationIncomplete, route, fee fields, expected buyAmount and minBuyAmount. Missing liquidity, unsupported token behavior or incomplete simulation is a concrete gap, not a successful quote.
For AllowanceHolder resolve the returned allowance spender against current official deployment records. For Permit2 inspect typed data, amount, nonce, spender, domain and deadline independently. Never approve Settler. Verify transaction.to, data, native value and chain against the quoted intent; execution target and approval target can differ.
Return finite allowance needs and an unsigned handoff with exact minimum output, costs, recipient and quote age. After any changed amount, token, chain or approval state, refresh the quote; signatures and calldata are bound to the reviewed terms. Do not inject affiliate fees or a surplus recipient.
A quote, successful simulation or send response is not a fill. For a submitted swap inspect the original receipt and sell/buy token deltas at the correct recipient, including actual native gas. On timeout retain the original hash and inspect it before any retry. On 401/403 report missing access; on rate limits respect retry-after rather than changing auth or payment scope.
Synthetic quote sells 100 USDC, expects 0.040 WETH and requires at least 0.0398 WETH. The allowance spender is AllowanceHolder while calldata targets Settler. Return those as separate identities, a 0.0398-WETH floor and finite 100-USDC allowance need. A proposal to approve Settler must be rejected before any wallet handoff.
Primary documentation and source reviewed 2026-10-25; no account authorization, signing or financial action was tested. Read recipes and current primary sources ship with this skill. Recheck supported deployments and schemas before a consequential handoff. Research adds no permission to trade, transfer, vote or change account authority.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
0x-api, dex-swap, allowance-holder, permit2, unsigned-transaction
npx claudepluginhub galleonlabs/crypto-defi-skills --plugin galleon-defi-routing-skills10 skills in this plugin
/across-bridgeUse when comparing Across Swap API routes, inspecting exactInput versus minOutput, or reconciling deposit fills, embedded actions and refunds./circle-cctpUse when tracking a Circle CCTP USDC burn, attestation and destination mint, including domain IDs, finality and failed-mint recovery./cow-orderUse when comparing a CoW Protocol quote, reviewing a signed-intent boundary, or reconciling order UID, partial fills, expiry and cancellation.Other plugins' skills for the same job