lifi-cross-chain

Installation
SKILL.md

LI.FI Cross-chain

Produce a route comparison with a minimum destination amount and a source-to-destination evidence ledger. For an already submitted route, begin with its source hash and status; do not fetch a new transfer as a recovery action.

Quote one exact intent

Collect source/destination chain IDs, exact token addresses, raw input amount, sender, recipient, slippage fraction, maximum cost and deadline. Resolve destination gas needs separately from the bridged token. A USDC receipt cannot pay native gas by itself.

Use the official /v1/quote recipe in recipes. Quote returns one executable Step with transactionRequest; broader /advanced/routes comparison yields route steps whose transaction data must be obtained through /advanced/stepTransaction when ready. Do not assume a route list already contains executable calldata or precompute later steps from stale balances.

Record quote ID, tool/bridge, included steps, action, estimate.toAmount, toAmountMin, feeCosts, gasCosts and executionDuration. LI.FI slippage is a fraction: 0.005 means 0.5%. Compare routes for the same assets, recipient, amount and quote window. Compare raw minimum amounts only when destination token and decimals match. Do not subtract fees already reflected in minimum output twice; account separately for extra source/destination native gas.

Inspect the handoff

Verify action.fromAddress, toAddress, token/chain identities and returned transaction target/value/data. Check chainId and chain-native gas balance, simulation and quoted allowance. estimate.approvalAddress is a spender hint requiring verified protocol/deployment checks, not permission for unlimited approval. transactionRequest.to and approval spender need not be the same address.

Use existing official SDK/UI or an authorized wallet tool for requested execution; this skill supplies no signer. Return unsigned terms for research/planning. Exact authority must cover recipient, spend, route, slippage and expiry. If construction or approval changes those terms, re-evaluate before any send. Persist source hash/route ID before waiting for settlement.

Reconcile until a meaningful terminal outcome

Installs
3
GitHub Stars
11
First Seen
Oct 31, 2026