Uniswap Cross Chain Swap

Execute a cross-chain token swap via Uniswap's bridge infrastructure. Handles quoting, safety validation, bridge monitoring, and destination confirmation. Use when the user wants to swap tokens across different chains.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 608 · 3 current installs · 3 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The skill's name, description, and declared allowed tools (mcp__uniswap__getSupportedChains, mcp__uniswap__getTokenInfo, and delegation to a cross-chain executor subagent) align with a cross‑chain swapping purpose. However, the skill claims to 'execute' swaps but does not describe where signing credentials, wallet connections, or RPC endpoints come from — a necessary capability for on‑chain execution. This could be legitimate if the delegated cross-chain-executor subagent handles signing, but that relationship is not documented here.
Instruction Scope
SKILL.md stays narrowly scoped: it validates chains/tokens, extracts parameters, and delegates the 7‑step workflow to Task(subagent_type:cross-chain-executor). It does not instruct the agent to read files, environment variables, or unrelated system state. Concern: there are no instructions about acquiring user wallet consent, connecting a signer, or handling private keys — yet the skill promises to perform transactions and bridge monitoring.
Install Mechanism
There is no install spec in the registry (instruction-only), which is lower risk. However, README contains example install commands that would pull code from a GitHub path or via 'clawhub' using npx. That suggests external code may be available and installable even though no install spec is declared — a discrepancy worth reviewing before running those install commands.
!
Credentials
The skill declares no required environment variables or credentials, yet it intends to execute on‑chain operations (send transactions, monitor bridges). Executing swaps requires signing credentials (private key, wallet connection, or external signer) and possibly RPC node endpoints; the lack of any declared mechanism for signing or credential use is a proportionality/omission concern. It's unclear whether the delegated subagent will prompt for secrets, use platform-managed keys, or require the user to paste private keys — each has different security implications.
Persistence & Privilege
always is false, there are no requested config paths, and the skill is user-invocable with normal autonomous invocation allowed. Nothing here indicates elevated or persistent privileges beyond the platform defaults.
What to consider before installing
This skill claims to execute cross‑chain swaps but does not explain how transactions will be signed or where code runs. Before installing or using it: (1) Ask the author how signing is performed — is it via a browser wallet popup, an external signer, or must you supply private keys/keys as environment variables? Never paste private keys into a skill. (2) If you plan to install code referenced in the README, review that GitHub repository thoroughly — installing code from unknown repositories can execute arbitrary code. (3) Verify the implementation of the delegated 'cross-chain-executor' subagent (it likely performs the actual on‑chain work) and ensure it does not request unnecessary credentials or persist them. (4) Prefer solutions that use non‑custodial, user-driven signing (wallet popup or hardware wallet) and explicit, documented RPC/provider configuration. If the author cannot clarify where signing happens or demands private keys without a secure, documented flow, do not proceed.

Like a lobster shell, security has layers — review code before you run it.

Current versionv0.1.0
Download zip
latestvk97ehemhtqfam988tepry06h1n80xw2x

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Cross-Chain Swap

Overview

Executes a cross-chain token swap — swapping a token on one chain for a different (or same) token on another chain. Delegates the full workflow to the cross-chain-executor agent, which handles quoting, route evaluation, safety checks, bridge monitoring, and destination confirmation.

When to Use

Activate when the user asks:

  • "Swap ETH on Arbitrum for USDC on Base"
  • "Cross-chain swap"
  • "Buy USDC on Optimism using ETH from mainnet"
  • "Move my ETH from Ethereum to Arbitrum and convert to USDC"
  • "Swap tokens across chains"
  • "Exchange X on chain A for Y on chain B"

Parameters

ParameterRequiredDefaultDescription
tokenInYesInput token symbol or address on source chain
tokenOutYesOutput token symbol or address on destination chain
amountYesAmount to swap (human-readable, e.g., "1.5" or "1000")
sourceChainYesSource chain name (e.g., "ethereum", "arbitrum")
destChainYesDestination chain name (e.g., "base", "optimism")
slippageNoautoSlippage tolerance (e.g., "0.5" for 0.5%)
recipientNoSame walletRecipient address on destination chain

Workflow

  1. Extract parameters from the user's request. Identify:

    • Which token they want to send and on which chain.
    • Which token they want to receive and on which chain.
    • The amount to swap.
    • Resolve ambiguous chain references (e.g., "mainnet" = "ethereum").
  2. Validate inputs:

    • Verify both chains are supported via mcp__uniswap__getSupportedChains.
    • Verify tokens exist on their respective chains via mcp__uniswap__getTokenInfo.
    • If source and destination chain are the same: redirect to execute-swap skill instead.
  3. Delegate to cross-chain-executor: Invoke Task(subagent_type:cross-chain-executor) with:

    • tokenIn, tokenOut, amount, sourceChain, destChain, slippage, recipient.
    • The agent handles the full 7-step workflow: quote, risk assessment, safety check, execution, bridge monitoring, confirmation, and reporting.
  4. Present results: Format the execution report for the user, highlighting:

    • Amounts sent and received.
    • Total fees (gas + bridge).
    • Settlement time.
    • Any warnings from safety or risk checks.

Output Format

Cross-Chain Swap Complete

  Source:      1.5 ETH on Ethereum
  Destination: 2,850.25 USDC on Base
  Fees:        $3.50 (gas: $2.50, bridge: $1.00)
  Settlement:  2 min 35 sec

  Source Tx:   0xabc...123
  Bridge ID:   0x789...abc
  Dest Tx:     0xdef...456

  Risk: LOW | Safety: APPROVED

Important Notes

  • Cross-chain swaps involve bridge operations that take time to settle (typically 1-10 minutes).
  • The skill will monitor the bridge and report status updates during settlement.
  • Bridge fees and slippage apply in addition to normal swap fees.
  • If the bridge gets stuck, the executor will escalate with recovery instructions.

Error Handling

ErrorUser-Facing MessageSuggested Action
Unsupported chain"Chain [name] is not supported for cross-chain swaps."Check supported chains
Same chain"Source and destination are the same chain. Use a regular swap."Use execute-swap skill
Safety veto"This swap was blocked by safety checks: [reason]."Reduce amount or check token
Risk veto"Risk assessment vetoed: [reason]."Choose a different route or amount
Bridge stuck"Bridge settlement is taking longer than expected."Wait or check order ID manually
Bridge failed"Bridge operation failed. Funds should remain on source chain."Check source wallet balance
Insufficient balance"Not enough [token] on [chain] to execute this swap."Check balance and reduce amount

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…