[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7796KBB7CJYMMAGDA6GDRK1":3,"skill-same:01M7796KBB7CJYMMAGDA6GDRK1":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7796KBB7CJYMMAGDA6GDRK1","cross-chain-arbitrage-cn",null,"跨链套利 | Cross-Chain Arbitrage. Uniswap 跨链套利机会 | Uniswap cross-chain arbitrage. 发现不同链上的价格差异 | Find price differences across chains. 触发词：跨链、套利、Uniswap、arbitrage.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcross-chain-arbitrage-cn\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cross-chain-arbitrage-cn\ndescription: \"跨链套利 | Cross-Chain Arbitrage. Uniswap 跨链套利机会 | Uniswap cross-chain arbitrage. 发现不同链上的价格差异 | Find price differences across chains. 触发词：跨链、套利、Uniswap、arbitrage.\"\nmetadata:\n  openclaw:\n    emoji: ⛓️\n    fork-of: \"https:\u002F\u002Fclawhub.ai\"\n---\n  assesses risk, and executes if profitable. Uses ERC-7683 for cross-chain\n  settlement. Supports scan-only mode for research without execution.\nmodel: opus\nallowed-tools:\n  - Task(subagent_type:opportunity-scanner)\n  - Task(subagent_type:risk-assessor)\n  - Task(subagent_type:cross-chain-executor)\n  - Task(subagent_type:portfolio-analyst)\n  - mcp__uniswap__check_safety_status\n  - mcp__uniswap__get_agent_balance\n---\n\n# Cross-Chain Arbitrage\n\n## Overview\n\nThis skill automates the discovery and execution of cross-chain arbitrage opportunities -- finding price differences for the same token across Uniswap deployments on different chains and profiting from the spread. It handles the entire pipeline: scanning prices across 11 chains, calculating all-in costs, risk assessment, cross-chain execution via ERC-7683, and profit reporting.\n\n**Why this is 10x better than doing it manually:**\n\n1. **Simultaneous multi-chain price scanning**: Manually checking ETH prices on Ethereum, Base, Arbitrum, Optimism, Polygon, and 6 other chains takes significant effort. The opportunity-scanner does this across all supported chains in seconds.\n2. **All-in cost calculation**: The most common arbitrage mistake is ignoring costs. This skill itemizes every cost component (source gas, bridge fee, destination gas, slippage on both sides) and only presents opportunities that are profitable *after* all costs.\n3. **Time-sensitivity awareness**: Arbitrage opportunities are ephemeral -- they can disappear in seconds. The skill warns about this throughout and moves quickly, but honestly flags when an opportunity may have closed by the time the user confirms.\n4. **Risk-gated execution**: Before any capital moves, the risk-assessor evaluates bridge risk, execution risk, and liquidity. A VETO stops the pipeline.\n5. **Scan-only mode**: Not ready to execute? Use scan-only mode to just see what opportunities exist without committing capital.\n\n## When to Use\n\nActivate when the user says anything like:\n\n- \"Find ETH arbitrage across chains\"\n- \"Cross-chain arb opportunities\"\n- \"Are there any price differences for WETH across chains?\"\n- \"Profit from price differences\"\n- \"Scan for arbitrage on Base vs Ethereum\"\n- \"Is there an arb opportunity for USDC?\"\n- \"Cross-chain arbitrage with $5K\"\n- \"Just scan for arb -- don't execute\" (scan-only mode)\n\n**Do NOT use** when the user wants a same-chain swap (use `execute-swap`), wants to bridge without arbitrage (use `bridge-tokens`), or wants general LP yield opportunities (use `scan-opportunities` or `find-yield`).\n\n## Parameters\n\n| Parameter     | Required | Default         | How to Extract                                                  |\n| ------------- | -------- | --------------- | --------------------------------------------------------------- |\n| token         | No       | Top 5 tokens    | Token to check: \"WETH\", \"USDC\", or scan top tokens by default  |\n| chains        | No       | all             | Chains to scan: \"all\", or specific list like \"ethereum, base\"   |\n| minProfit     | No       | 0.5%            | Minimum net profit threshold after ALL costs                    |\n| maxAmount     | No       | --              | Maximum capital to deploy per opportunity                       |\n| riskTolerance | No       | moderate        | \"conservative\", \"moderate\", \"aggressive\"                        |\n| mode          | No       | execute         | \"execute\" (full pipeline) or \"scan\" (scan-only, no execution)   |\n\nIf `mode` is \"scan\" or the user says \"just scan\" \u002F \"don't execute\" \u002F \"show me opportunities\", skip Steps 3-4 and only present the opportunity report.\n\n## Workflow\n\n```\n                     CROSS-CHAIN ARBITRAGE PIPELINE\n  ┌─────────────────────────────────────────────────────────────────────┐\n  │                                                                     │\n  │  Step 1: SCAN (opportunity-scanner)                                 │\n  │  ├── Compare token prices across all chains                         │\n  │  ├── Calculate gross profit for each discrepancy                    │\n  │  ├── Itemize ALL costs (gas, bridge, slippage)                      │\n  │  ├── Filter: only net profit > minProfit                            │\n  │  └── Output: Ranked Arbitrage Opportunities                         │\n  │          │                                                          │\n  │          ▼                                                          │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  SCAN-ONLY MODE?                                  │              │\n  │  │  Yes → Present report, STOP.                      │              │\n  │  │  No  → Continue to Step 2.                        │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼ USER SELECTION                                           │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  Present opportunities to user.                   │              │\n  │  │  User picks which opportunity to execute.         │              │\n  │  │  WARN: \"Opportunity may expire before execution.\" │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 2: RISK CHECK (risk-assessor)                                 │\n  │  ├── Evaluate bridge risk (mechanism, settlement time)              │\n  │  ├── Evaluate execution risk (slippage, speed)                      │\n  │  ├── Evaluate liquidity on both chains                              │\n  │  ├── Decision: APPROVE \u002F VETO \u002F HARD_VETO                          │\n  │  └── Output: Risk Assessment                                        │\n  │          │                                                          │\n  │          ▼ CONDITIONAL GATE                                         │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  APPROVE → Proceed with confirmation              │              │\n  │  │  VETO \u002F HARD_VETO → STOP with report              │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼ USER CONFIRMATION                                        │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  \"Execute this arb? Opportunity may have shifted  │              │\n  │  │   since scan. Confirm to proceed.\"                │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 3: EXECUTE (cross-chain-executor)                             │\n  │  ├── Buy on cheaper chain                                           │\n  │  ├── Bridge to expensive chain via ERC-7683                         │\n  │  ├── Monitor bridge settlement                                      │\n  │  ├── (Sell on expensive chain if needed)                            │\n  │  └── Output: Execution Report                                       │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 4: REPORT (portfolio-analyst)                                 │\n  │  ├── Calculate actual profit\u002Floss after all costs                   │\n  │  ├── Compare to projected profit                                    │\n  │  └── Output: P&L Report                                             │\n  │                                                                     │\n  └─────────────────────────────────────────────────────────────────────┘\n```\n\n### Step 0: Pre-Flight\n\nBefore starting:\n\n1. Check safety status via `mcp__uniswap__check_safety_status`.\n2. Check wallet balances via `mcp__uniswap__get_agent_balance` on relevant chains.\n3. If wallet has no funds, stop and inform the user.\n\n### Step 1: Scan Opportunities (opportunity-scanner)\n\nDelegate to `Task(subagent_type:opportunity-scanner)` with:\n\n```\nScan for cross-chain arbitrage opportunities:\n- Token: {token or \"top 5 tokens by volume: WETH, USDC, USDT, WBTC, DAI\"}\n- Chains: {chains or \"all supported chains\"}\n- Type: \"arb\" (arbitrage only)\n- Minimum net profit: {minProfit}%\n\nFor each price discrepancy found, calculate and itemize:\n1. Gross price difference (%)\n2. Source chain gas cost (USD)\n3. Bridge fee (USD)\n4. Destination chain gas cost (USD)\n5. Slippage estimate on both sides (USD)\n6. NET profit after ALL costs (USD and %)\n\nOnly include opportunities where net profit > {minProfit}% after all costs.\nRank by net profit. Include time sensitivity assessment for each opportunity.\n```\n\n**Present to user:**\n\n```text\nStep 1: Arbitrage Scan Complete\n\n  Token: WETH\n  Chains scanned: 8 (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, Avalanche, Blast)\n\n  Opportunities found: 2 (after filtering by {minProfit}% min net profit)\n\n  #  Route                     Gross    Costs         Net Profit  Time Sensitivity\n  1  WETH: Arbitrum → Optimism  0.8%    $12 total     $33 (0.66%) EPHEMERAL\n     ├── Source gas:   $0.50\n     ├── Bridge fee:   $2.00\n     ├── Dest gas:     $0.50\n     └── Slippage:     $9.00 (both sides)\n\n  2  WETH: Base → Polygon       0.6%    $8 total      $22 (0.44%) EPHEMERAL\n     ├── Source gas:   $0.10\n     ├── Bridge fee:   $3.00\n     ├── Dest gas:     $1.50\n     └── Slippage:     $3.40 (both sides)\n\n  WARNING: Arbitrage opportunities are ephemeral. These prices were captured at\n  {timestamp} and may change by the time you confirm execution. The actual profit\n  may differ from the estimates above.\n\n  No opportunities found for: USDC, USDT, WBTC, DAI (spreads \u003C {minProfit}% after costs)\n```\n\n**If mode is \"scan\"**, stop here:\n\n```text\nArbitrage Scan Report (scan-only mode)\n\n  {same opportunity table as above}\n\n  To execute an opportunity, run: \"Cross-chain arb, execute opportunity #1\"\n  Note: Opportunities are time-sensitive and may no longer be available.\n```\n\n**If mode is \"execute\"**, ask the user which opportunity to pursue.\n\n### Step 2: Risk Assessment (risk-assessor)\n\nDelegate to `Task(subagent_type:risk-assessor)` with the selected opportunity:\n\n```\nEvaluate risk for this cross-chain arbitrage:\n\nOperation: cross-chain arbitrage\nToken: {token}\nSource chain: {source_chain}\nDestination chain: {dest_chain}\nAmount: {amount or maxAmount}\nRisk tolerance: {riskTolerance}\n\nOpportunity details (from opportunity-scanner):\n- Gross spread: {gross_pct}%\n- Estimated net profit: {net_profit_usd} ({net_pct}%)\n- Cost breakdown: {full cost itemization}\n- Time sensitivity: ephemeral\n\nEvaluate:\n1. Bridge risk (settlement mechanism, historical reliability, available liquidity)\n2. Execution risk (can the arb close before we complete? slippage may increase)\n3. Liquidity risk (sufficient depth on both chains for the trade size)\n4. Smart contract risk (pool ages and versions on both chains)\n\nKey concern: arbitrage opportunities are time-sensitive. Factor in the risk that\nthe price discrepancy may close during bridge settlement (typically 1-10 minutes).\n```\n\n**Conditional gate:**\n\n| Decision        | Action                                                                     |\n| --------------- | -------------------------------------------------------------------------- |\n| **APPROVE**     | Present risk summary, proceed to user confirmation                         |\n| **COND. APPROVE** | Show conditions (e.g., \"reduce size\"). Ask user.                        |\n| **VETO**        | **STOP.** Opportunity too risky at this size\u002Ftolerance. Show details.       |\n| **HARD_VETO**   | **STOP.** Bridge liquidity insufficient or critical risk. Non-negotiable.  |\n\n**User confirmation (with time-sensitivity warning):**\n\n```text\nStep 2: Risk Assessment Passed\n\n  Decision: APPROVE\n  Composite Risk: MEDIUM\n  Bridge Risk: LOW (ERC-7683, established mechanism)\n  Execution Risk: MEDIUM (arb may close during 2-5 min settlement)\n  Liquidity: LOW (deep pools on both chains)\n\n  Execute Arbitrage?\n    Route:    Buy WETH on Arbitrum → Bridge → (Sell on Optimism)\n    Amount:   $5,000\n    Est. Profit: $33 (0.66%) after all costs\n    Settlement: ~2-5 minutes\n\n    IMPORTANT: This opportunity was scanned at {timestamp} ({N} seconds ago).\n    The price discrepancy may have changed. Actual profit may differ from estimate.\n\n  Proceed? (yes\u002Fno)\n```\n\n### Step 3: Execute (cross-chain-executor)\n\nDelegate to `Task(subagent_type:cross-chain-executor)` with:\n\n```\nExecute this cross-chain arbitrage:\n\nLeg 1 (source chain):\n- Chain: {source_chain}\n- Action: Buy {token} (swap {capital_token} → {token})\n- Amount: {amount}\n- Pool: {best pool on source chain}\n\nLeg 2 (bridge):\n- Bridge {token} from {source_chain} to {dest_chain}\n- Mechanism: ERC-7683\n\nLeg 3 (destination chain — if needed):\n- Chain: {dest_chain}\n- Action: Sell {token} (swap {token} → {capital_token}) — only if the user\n  wants to realize profit immediately. Otherwise, hold the {token} on dest chain.\n\nRisk assessment: APPROVED, composite {risk_level}\nTime sensitivity: HIGH — execute as quickly as possible.\n\nMonitor bridge settlement and report progress. If bridge takes longer than\nexpected, warn about potential profit erosion.\n```\n\n**Present progress updates during execution:**\n\n```text\nStep 3: Executing Arbitrage...\n\n  [1\u002F3] Buying WETH on Arbitrum...\n        Bought 2.55 WETH for $5,000 USDC — Tx: 0x...\n  [2\u002F3] Bridging WETH to Optimism via ERC-7683...\n        Order ID: 0x... — Monitoring settlement...\n        Status: PENDING (elapsed: 45s, expected: 2-5 min)\n        Status: PENDING (elapsed: 2m 15s)\n        Status: SETTLED (elapsed: 3m 02s) — 2.55 WETH received on Optimism\n  [3\u002F3] Holding WETH on Optimism (no sell leg — same token, profit realized)\n        ✓ Arbitrage complete\n```\n\n### Step 4: Report (portfolio-analyst)\n\nDelegate to `Task(subagent_type:portfolio-analyst)` with:\n\n```\nReport on the result of this cross-chain arbitrage:\n\nExecution details:\n- Token: {token}\n- Source: {source_chain} — bought at ${source_price}\n- Destination: {dest_chain} — current price ${dest_price}\n- Amount: {amount}\n- Bridge order: {order_id}\n- Transactions: {tx_hashes}\n\nCalculate:\n1. Actual gross profit (price difference realized)\n2. All actual costs (gas, bridge fees, slippage — from execution receipts)\n3. Net profit\u002Floss\n4. Comparison to projected profit from scan\n5. Portfolio impact\n```\n\n**Present final result:**\n\n```text\nStep 4: Arbitrage Report\n\n  Route:        WETH: Arbitrum → Optimism\n  Amount:       2.55 WETH ($5,000)\n\n  Profit & Loss:\n    Gross spread:     $40.00 (0.80%)\n    Source gas:        -$0.45\n    Bridge fee:        -$1.80\n    Dest gas:          -$0.00 (held, no sell)\n    Slippage:          -$7.50\n    ─────────────────────────\n    Net profit:        $30.25 (0.61%)\n\n  vs. Projected:     $33.00 (0.66%) — actual was 8% less due to slippage\n\n  Timing:\n    Scan to execution: 45 seconds\n    Bridge settlement:  3 min 02 sec\n    Total elapsed:      3 min 47 sec\n\n  Portfolio Impact:\n    WETH on Optimism:  2.55 WETH ($5,030.25)\n    Net gain:          $30.25\n\n  ──────────────────────────────────────\n  Pipeline Summary\n  ──────────────────────────────────────\n  Scan:       2 opportunities found, #1 selected\n  Risk:       APPROVED (MEDIUM)\n  Execution:  Buy → Bridge → Hold (3 min 47 sec total)\n  Result:     +$30.25 net profit (0.61%)\n```\n\n## Output Format\n\n### Successful Execution\n\n```text\nCross-Chain Arbitrage Complete\n\n  Route:    {token}: {source_chain} -> {dest_chain}\n  Amount:   ${amount}\n  Net P&L:  +${net_profit} ({net_pct}%)\n  Time:     {total_elapsed}\n\n  Cost Breakdown:\n    Gas: ${gas}  Bridge: ${bridge_fee}  Slippage: ${slippage}\n\n  Pipeline: Scan -> Risk -> Execute -> Report (all passed)\n```\n\n### Scan-Only Report\n\n```text\nCross-Chain Arbitrage Scan\n\n  Scanned: {n_tokens} tokens across {n_chains} chains\n  Found: {n_opportunities} opportunities (> {minProfit}% net profit)\n\n  {opportunity table}\n\n  To execute: \"Cross-chain arb, execute opportunity #N\"\n```\n\n### Vetoed\n\n```text\nCross-Chain Arbitrage -- Risk Vetoed\n\n  Opportunity: {token} {source} -> {dest} ({gross_spread}% gross)\n  Risk: VETOED — {reason}\n\n  {risk dimension details}\n\n  Pipeline: Scan -> Risk (VETOED) -- No execution.\n```\n\n## Important Notes\n\n- **Arbitrage opportunities are ephemeral.** By the time the user reads the scan results and confirms, the price discrepancy may have closed. The skill warns about this prominently and does not guarantee profits.\n- **All-in cost calculation is critical.** Never present gross spread as profit. Always itemize and subtract: source gas, bridge fee, destination gas, slippage on both sides. An opportunity showing 0.8% gross might be 0.2% net (or even negative).\n- **Bridge settlement time is the main risk.** During the 1-10 minute bridge settlement, the price on the destination chain can move, eliminating or even reversing the profit. The risk-assessor factors this in.\n- **Scan-only mode is the safe default.** If unsure whether the user wants to execute, default to scan-only. They can always say \"execute #1\" afterward.\n- **Not every scan will find opportunities.** Well-arbitraged tokens (WETH, USDC) rarely have spreads > 0.5% after costs. Set expectations accordingly.\n- **Gas costs matter more for small amounts.** A $100 arb with $15 in total costs is barely profitable. Warn about this for small trade sizes.\n- **This is NOT risk-free.** Despite the word \"arbitrage,\" cross-chain arb carries real risk: bridge failure, price movement during settlement, smart contract risk. Always present it as a risky activity.\n\n## Error Handling\n\n| Error                            | User-Facing Message                                                              | Suggested Action                          |\n| -------------------------------- | -------------------------------------------------------------------------------- | ----------------------------------------- |\n| No opportunities found           | \"No arb opportunities above {minProfit}% net profit across {chains}.\"            | Lower minProfit or try different tokens   |\n| Opportunity expired              | \"Price discrepancy has closed since scan. Opportunity no longer profitable.\"      | Re-scan for fresh opportunities           |\n| Risk-assessor VETO               | \"Risk assessment vetoed: {reason}.\"                                              | Try smaller amount or different route     |\n| Risk-assessor HARD_VETO          | \"Blocked: {reason}. Bridge liquidity may be insufficient.\"                       | Cannot proceed with this opportunity      |\n| Bridge failed                    | \"Bridge operation failed. Funds should remain on {source_chain}.\"                | Check source wallet balance               |\n| Bridge stuck                     | \"Bridge settlement delayed ({elapsed} vs {expected}). Monitoring...\"             | Wait or check order ID manually           |\n| Source chain swap failed          | \"Failed to buy {token} on {source_chain}: {reason}.\"                            | Check balance and gas                     |\n| Insufficient balance             | \"Not enough {token} on {source_chain}: have ${X}, need ${Y}.\"                   | Reduce amount or bridge funds first       |\n| Safety limit exceeded            | \"Trade amount exceeds safety spending limits.\"                                   | Reduce amount or adjust limits            |\n| Wallet not configured            | \"No wallet configured for transactions.\"                                         | Set up wallet with setup-agent-wallet     |\n| User declines confirmation       | \"Arbitrage cancelled. Scan results shown above for reference.\"                   | No action needed                          |\n| Profit less than projected       | \"Actual profit (${X}) was less than projected (${Y}) due to price movement.\"     | Expected for ephemeral opportunities      |\n| Negative profit (loss)           | \"This trade resulted in a loss of ${X} due to price movement during settlement.\" | Inherent risk of cross-chain arbitrage    |\n","assesses risk, and executes if profitable. Uses ERC-7683 for cross-chain\n  settlement. Supports scan-only mode for research without execution.\nmodel: opus\nallowed-tools:\n  - Task(subagent_type:opportunity-scanner)\n  - Task(subagent_type:risk-assessor)\n  - Task(subagent_type:cross-chain-executor)\n  - Task(subagent_type:portfolio-analyst)\n  - mcp__uniswap__check_safety_status\n  - mcp__uniswap__get_agent_balance\n---\n\n# Cross-Chain Arbitrage\n\n## Overview\n\nThis skill automates the discovery and execution of cross-chain arbitrage opportunities -- finding price differences for the same token across Uniswap deployments on different chains and profiting from the spread. It handles the entire pipeline: scanning prices across 11 chains, calculating all-in costs, risk assessment, cross-chain execution via ERC-7683, and profit reporting.\n\n**Why this is 10x better than doing it manually:**\n\n1. **Simultaneous multi-chain price scanning**: Manually checking ETH prices on Ethereum, Base, Arbitrum, Optimism, Polygon, and 6 other chains takes significant effort. The opportunity-scanner does this across all supported chains in seconds.\n2. **All-in cost calculation**: The most common arbitrage mistake is ignoring costs. This skill itemizes every cost component (source gas, bridge fee, destination gas, slippage on both sides) and only presents opportunities that are profitable *after* all costs.\n3. **Time-sensitivity awareness**: Arbitrage opportunities are ephemeral -- they can disappear in seconds. The skill warns about this throughout and moves quickly, but honestly flags when an opportunity may have closed by the time the user confirms.\n4. **Risk-gated execution**: Before any capital moves, the risk-assessor evaluates bridge risk, execution risk, and liquidity. A VETO stops the pipeline.\n5. **Scan-only mode**: Not ready to execute? Use scan-only mode to just see what opportunities exist without committing capital.\n\n## When to Use\n\nActivate when the user says anything like:\n\n- \"Find ETH arbitrage across chains\"\n- \"Cross-chain arb opportunities\"\n- \"Are there any price differences for WETH across chains?\"\n- \"Profit from price differences\"\n- \"Scan for arbitrage on Base vs Ethereum\"\n- \"Is there an arb opportunity for USDC?\"\n- \"Cross-chain arbitrage with $5K\"\n- \"Just scan for arb -- don't execute\" (scan-only mode)\n\n**Do NOT use** when the user wants a same-chain swap (use `execute-swap`), wants to bridge without arbitrage (use `bridge-tokens`), or wants general LP yield opportunities (use `scan-opportunities` or `find-yield`).\n\n## Parameters\n\n| Parameter     | Required | Default         | How to Extract                                                  |\n| ------------- | -------- | --------------- | --------------------------------------------------------------- |\n| token         | No       | Top 5 tokens    | Token to check: \"WETH\", \"USDC\", or scan top tokens by default  |\n| chains        | No       | all             | Chains to scan: \"all\", or specific list like \"ethereum, base\"   |\n| minProfit     | No       | 0.5%            | Minimum net profit threshold after ALL costs                    |\n| maxAmount     | No       | --              | Maximum capital to deploy per opportunity                       |\n| riskTolerance | No       | moderate        | \"conservative\", \"moderate\", \"aggressive\"                        |\n| mode          | No       | execute         | \"execute\" (full pipeline) or \"scan\" (scan-only, no execution)   |\n\nIf `mode` is \"scan\" or the user says \"just scan\" \u002F \"don't execute\" \u002F \"show me opportunities\", skip Steps 3-4 and only present the opportunity report.\n\n## Workflow\n\n```\n                     CROSS-CHAIN ARBITRAGE PIPELINE\n  ┌─────────────────────────────────────────────────────────────────────┐\n  │                                                                     │\n  │  Step 1: SCAN (opportunity-scanner)                                 │\n  │  ├── Compare token prices across all chains                         │\n  │  ├── Calculate gross profit for each discrepancy                    │\n  │  ├── Itemize ALL costs (gas, bridge, slippage)                      │\n  │  ├── Filter: only net profit > minProfit                            │\n  │  └── Output: Ranked Arbitrage Opportunities                         │\n  │          │                                                          │\n  │          ▼                                                          │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  SCAN-ONLY MODE?                                  │              │\n  │  │  Yes → Present report, STOP.                      │              │\n  │  │  No  → Continue to Step 2.                        │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼ USER SELECTION                                           │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  Present opportunities to user.                   │              │\n  │  │  User picks which opportunity to execute.         │              │\n  │  │  WARN: \"Opportunity may expire before execution.\" │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 2: RISK CHECK (risk-assessor)                                 │\n  │  ├── Evaluate bridge risk (mechanism, settlement time)              │\n  │  ├── Evaluate execution risk (slippage, speed)                      │\n  │  ├── Evaluate liquidity on both chains                              │\n  │  ├── Decision: APPROVE \u002F VETO \u002F HARD_VETO                          │\n  │  └── Output: Risk Assessment                                        │\n  │          │                                                          │\n  │          ▼ CONDITIONAL GATE                                         │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  APPROVE → Proceed with confirmation              │              │\n  │  │  VETO \u002F HARD_VETO → STOP with report              │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼ USER CONFIRMATION                                        │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  \"Execute this arb? Opportunity may have shifted  │              │\n  │  │   since scan. Confirm to proceed.\"                │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 3: EXECUTE (cross-chain-executor)                             │\n  │  ├── Buy on cheaper chain                                           │\n  │  ├── Bridge to expensive chain via ERC-7683                         │\n  │  ├── Monitor bridge settlement                                      │\n  │  ├── (Sell on expensive chain if needed)                            │\n  │  └── Output: Execution Report                                       │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 4: REPORT (portfolio-analyst)                                 │\n  │  ├── Calculate actual profit\u002Floss after all costs                   │\n  │  ├── Compare to projected profit                                    │\n  │  └── Output: P&L Report                                             │\n  │                                                                     │\n  └─────────────────────────────────────────────────────────────────────┘\n```\n\n### Step 0: Pre-Flight\n\nBefore starting:\n\n1. Check safety status via `mcp__uniswap__check_safety_status`.\n2. Check wallet balances via `mcp__uniswap__get_agent_balance` on relevant chains.\n3. If wallet has no funds, stop and inform the user.\n\n### Step 1: Scan Opportunities (opportunity-scanner)\n\nDelegate to `Task(subagent_type:opportunity-scanner)` with:\n\n```\nScan for cross-chain arbitrage opportunities:\n- Token: {token or \"top 5 tokens by volume: WETH, USDC, USDT, WBTC, DAI\"}\n- Chains: {chains or \"all supported chains\"}\n- Type: \"arb\" (arbitrage only)\n- Minimum net profit: {minProfit}%\n\nFor each price discrepancy found, calculate and itemize:\n1. Gross price difference (%)\n2. Source chain gas cost (USD)\n3. Bridge fee (USD)\n4. Destination chain gas cost (USD)\n5. Slippage estimate on both sides (USD)\n6. NET profit after ALL costs (USD and %)\n\nOnly include opportunities where net profit > {minProfit}% after all costs.\nRank by net profit. Include time sensitivity assessment for each opportunity.\n```\n\n**Present to user:**\n\n```text\nStep 1: Arbitrage Scan Complete\n\n  Token: WETH\n  Chains scanned: 8 (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, Avalanche, Blast)\n\n  Opportunities found: 2 (after filtering by {minProfit}% min net profit)\n\n  #  Route                     Gross    Costs         Net Profit  Time Sensitivity\n  1  WETH: Arbitrum → Optimism  0.8%    $12 total     $33 (0.66%) EPHEMERAL\n     ├── Source gas:   $0.50\n     ├── Bridge fee:   $2.00\n     ├── Dest gas:     $0.50\n     └── Slippage:     $9.00 (both sides)\n\n  2  WETH: Base → Polygon       0.6%    $8 total      $22 (0.44%) EPHEMERAL\n     ├── Source gas:   $0.10\n     ├── Bridge fee:   $3.00\n     ├── Dest gas:     $1.50\n     └── Slippage:     $3.40 (both sides)\n\n  WARNING: Arbitrage opportunities are ephemeral. These prices were captured at\n  {timestamp} and may change by the time you confirm execution. The actual profit\n  may differ from the estimates above.\n\n  No opportunities found for: USDC, USDT, WBTC, DAI (spreads \u003C {minProfit}% after costs)\n```\n\n**If mode is \"scan\"**, stop here:\n\n```text\nArbitrage Scan Report (scan-only mode)\n\n  {same opportunity table as above}\n\n  To execute an opportunity, run: \"Cross-chain arb, execute opportunity #1\"\n  Note: Opportunities are time-sensitive and may no longer be available.\n```\n\n**If mode is \"execute\"**, ask the user which opportunity to pursue.\n\n### Step 2: Risk Assessment (risk-assessor)\n\nDelegate to `Task(subagent_type:risk-assessor)` with the selected opportunity:\n\n```\nEvaluate risk for this cross-chain arbitrage:\n\nOperation: cross-chain arbitrage\nToken: {token}\nSource chain: {source_chain}\nDestination chain: {dest_chain}\nAmount: {amount or maxAmount}\nRisk tolerance: {riskTolerance}\n\nOpportunity details (from opportunity-scanner):\n- Gross spread: {gross_pct}%\n- Estimated net profit: {net_profit_usd} ({net_pct}%)\n- Cost breakdown: {full cost itemization}\n- Time sensitivity: ephemeral\n\nEvaluate:\n1. Bridge risk (settlement mechanism, historical reliability, available liquidity)\n2. Execution risk (can the arb close before we complete? slippage may increase)\n3. Liquidity risk (sufficient depth on both chains for the trade size)\n4. Smart contract risk (pool ages and versions on both chains)\n\nKey concern: arbitrage opportunities are time-sensitive. Factor in the risk that\nthe price discrepancy may close during bridge settlement (typically 1-10 minutes).\n```\n\n**Conditional gate:**\n\n| Decision        | Action                                                                     |\n| --------------- | -------------------------------------------------------------------------- |\n| **APPROVE**     | Present risk summary, proceed to user confirmation                         |\n| **COND. APPROVE** | Show conditions (e.g., \"reduce size\"). Ask user.                        |\n| **VETO**        | **STOP.** Opportunity too risky at this size\u002Ftolerance. Show details.       |\n| **HARD_VETO**   | **STOP.** Bridge liquidity insufficient or critical risk. Non-negotiable.  |\n\n**User confirmation (with time-sensitivity warning):**\n\n```text\nStep 2: Risk Assessment Passed\n\n  Decision: APPROVE\n  Composite Risk: MEDIUM\n  Bridge Risk: LOW (ERC-7683, established mechanism)\n  Execution Risk: MEDIUM (arb may close during 2-5 min settlement)\n  Liquidity: LOW (deep pools on both chains)\n\n  Execute Arbitrage?\n    Route:    Buy WETH on Arbitrum → Bridge → (Sell on Optimism)\n    Amount:   $5,000\n    Est. Profit: $33 (0.66%) after all costs\n    Settlement: ~2-5 minutes\n\n    IMPORTANT: This opportunity was scanned at {timestamp} ({N} seconds ago).\n    The price discrepancy may have changed. Actual profit may differ from estimate.\n\n  Proceed? (yes\u002Fno)\n```\n\n### Step 3: Execute (cross-chain-executor)\n\nDelegate to `Task(subagent_type:cross-chain-executor)` with:\n\n```\nExecute this cross-chain arbitrage:\n\nLeg 1 (source chain):\n- Chain: {source_chain}\n- Action: Buy {token} (swap {capital_token} → {token})\n- Amount: {amount}\n- Pool: {best pool on source chain}\n\nLeg 2 (bridge):\n- Bridge {token} from {source_chain} to {dest_chain}\n- Mechanism: ERC-7683\n\nLeg 3 (destination chain — if needed):\n- Chain: {dest_chain}\n- Action: Sell {token} (swap {token} → {capital_token}) — only if the user\n  wants to realize profit immediately. Otherwise, hold the {token} on dest chain.\n\nRisk assessment: APPROVED, composite {risk_level}\nTime sensitivity: HIGH — execute as quickly as possible.\n\nMonitor bridge settlement and report progress. If bridge takes longer than\nexpected, warn about potential profit erosion.\n```\n\n**Present progress updates during execution:**\n\n```text\nStep 3: Executing Arbitrage...\n\n  [1\u002F3] Buying WETH on Arbitrum...\n        Bought 2.55 WETH for $5,000 USDC — Tx: 0x...\n  [2\u002F3] Bridging WETH to Optimism via ERC-7683...\n        Order ID: 0x... — Monitoring settlement...\n        Status: PENDING (elapsed: 45s, expected: 2-5 min)\n        Status: PENDING (elapsed: 2m 15s)\n        Status: SETTLED (elapsed: 3m 02s) — 2.55 WETH received on Optimism\n  [3\u002F3] Holding WETH on Optimism (no sell leg — same token, profit realized)\n        ✓ Arbitrage complete\n```\n\n### Step 4: Report (portfolio-analyst)\n\nDelegate to `Task(subagent_type:portfolio-analyst)` with:\n\n```\nReport on the result of this cross-chain arbitrage:\n\nExecution details:\n- Token: {token}\n- Source: {source_chain} — bought at ${source_price}\n- Destination: {dest_chain} — current price ${dest_price}\n- Amount: {amount}\n- Bridge order: {order_id}\n- Transactions: {tx_hashes}\n\nCalculate:\n1. Actual gross profit (price difference realized)\n2. All actual costs (gas, bridge fees, slippage — from execution receipts)\n3. Net profit\u002Floss\n4. Comparison to projected profit from scan\n5. Portfolio impact\n```\n\n**Present final result:**\n\n```text\nStep 4: Arbitrage Report\n\n  Route:        WETH: Arbitrum → Optimism\n  Amount:       2.55 WETH ($5,000)\n\n  Profit & Loss:\n    Gross spread:     $40.00 (0.80%)\n    Source gas:        -$0.45\n    Bridge fee:        -$1.80\n    Dest gas:          -$0.00 (held, no sell)\n    Slippage:          -$7.50\n    ─────────────────────────\n    Net profit:        $30.25 (0.61%)\n\n  vs. Projected:     $33.00 (0.66%) — actual was 8% less due to slippage\n\n  Timing:\n    Scan to execution: 45 seconds\n    Bridge settlement:  3 min 02 sec\n    Total elapsed:      3 min 47 sec\n\n  Portfolio Impact:\n    WETH on Optimism:  2.55 WETH ($5,030.25)\n    Net gain:          $30.25\n\n  ──────────────────────────────────────\n  Pipeline Summary\n  ──────────────────────────────────────\n  Scan:       2 opportunities found, #1 selected\n  Risk:       APPROVED (MEDIUM)\n  Execution:  Buy → Bridge → Hold (3 min 47 sec total)\n  Result:     +$30.25 net profit (0.61%)\n```\n\n## Output Format\n\n### Successful Execution\n\n```text\nCross-Chain Arbitrage Complete\n\n  Route:    {token}: {source_chain} -> {dest_chain}\n  Amount:   ${amount}\n  Net P&L:  +${net_profit} ({net_pct}%)\n  Time:     {total_elapsed}\n\n  Cost Breakdown:\n    Gas: ${gas}  Bridge: ${bridge_fee}  Slippage: ${slippage}\n\n  Pipeline: Scan -> Risk -> Execute -> Report (all passed)\n```\n\n### Scan-Only Report\n\n```text\nCross-Chain Arbitrage Scan\n\n  Scanned: {n_tokens} tokens across {n_chains} chains\n  Found: {n_opportunities} opportunities (> {minProfit}% net profit)\n\n  {opportunity table}\n\n  To execute: \"Cross-chain arb, execute opportunity #N\"\n```\n\n### Vetoed\n\n```text\nCross-Chain Arbitrage -- Risk Vetoed\n\n  Opportunity: {token} {source} -> {dest} ({gross_spread}% gross)\n  Risk: VETOED — {reason}\n\n  {risk dimension details}\n\n  Pipeline: Scan -> Risk (VETOED) -- No execution.\n```\n\n## Important Notes\n\n- **Arbitrage opportunities are ephemeral.** By the time the user reads the scan results and confirms, the price discrepancy may have closed. The skill warns about this prominently and does not guarantee profits.\n- **All-in cost calculation is critical.** Never present gross spread as profit. Always itemize and subtract: source gas, bridge fee, destination gas, slippage on both sides. An opportunity showing 0.8% gross might be 0.2% net (or even negative).\n- **Bridge settlement time is the main risk.** During the 1-10 minute bridge settlement, the price on the destination chain can move, eliminating or even reversing the profit. The risk-assessor factors this in.\n- **Scan-only mode is the safe default.** If unsure whether the user wants to execute, default to scan-only. They can always say \"execute #1\" afterward.\n- **Not every scan will find opportunities.** Well-arbitraged tokens (WETH, USDC) rarely have spreads > 0.5% after costs. Set expectations accordingly.\n- **Gas costs matter more for small amounts.** A $100 arb with $15 in total costs is barely profitable. Warn about this for small trade sizes.\n- **This is NOT risk-free.** Despite the word \"arbitrage,\" cross-chain arb carries real risk: bridge failure, price movement during settlement, smart contract risk. Always present it as a risky activity.\n\n## Error Handling\n\n| Error                            | User-Facing Message                                                              | Suggested Action                          |\n| -------------------------------- | -------------------------------------------------------------------------------- | ----------------------------------------- |\n| No opportunities found           | \"No arb opportunities above {minProfit}% net profit across {chains}.\"            | Lower minProfit or try different tokens   |\n| Opportunity expired              | \"Price discrepancy has closed since scan. Opportunity no longer profitable.\"      | Re-scan for fresh opportunities           |\n| Risk-assessor VETO               | \"Risk assessment vetoed: {reason}.\"                                              | Try smaller amount or different route     |\n| Risk-assessor HARD_VETO          | \"Blocked: {reason}. Bridge liquidity may be insufficient.\"                       | Cannot proceed with this opportunity      |\n| Bridge failed                    | \"Bridge operation failed. Funds should remain on {source_chain}.\"                | Check source wallet balance               |\n| Bridge stuck                     | \"Bridge settlement delayed ({elapsed} vs {expected}). Monitoring...\"             | Wait or check order ID manually           |\n| Source chain swap failed          | \"Failed to buy {token} on {source_chain}: {reason}.\"                            | Check balance and gas                     |\n| Insufficient balance             | \"Not enough {token} on {source_chain}: have ${X}, need ${Y}.\"                   | Reduce amount or bridge funds first       |\n| Safety limit exceeded            | \"Trade amount exceeds safety spending limits.\"                                   | Reduce amount or adjust limits            |\n| Wallet not configured            | \"No wallet configured for transactions.\"                                         | Set up wallet with setup-agent-wallet     |\n| User declines confirmation       | \"Arbitrage cancelled. Scan results shown above for reference.\"                   | No action needed                          |\n| Profit less than projected       | \"Actual profit (${X}) was less than projected (${Y}) due to price movement.\"     | Expected for ephemeral opportunities      |\n| Negative profit (loss)           | \"This trade resulted in a loss of ${X} due to price movement during settlement.\" | Inherent risk of cross-chain arbitrage    |\n",{"name":5,"metadata":24,"description":7},{"openclaw":25},{"emoji":26,"fork-of":27},"⛓️","https:\u002F\u002Fclawhub.ai","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fc\u002Fcross-chain-arbitrage-cn",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill cross-chain-arbitrage-cn",{"tool":43,"command":44},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill cross-chain-arbitrage-cn",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill cross-chain-arbitrage-cn","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcross-chain-arbitrage-cn\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]