agentsclimarketplace

Arbitrage analysis

Skill 0xendale/evm-agent-toolkit/skills/arbitrage-analysis

Use when analyzing EVM/DeFi arbitrage opportunities — cross-DEX spot spreads, triangular cycles, stablecoin depegs, or MEV/price dislocation — or when the user wants opportunities quantified net of fees, gas, and slippage. Analysis only, not trade execution.From its SKILL.md

Install
npx -y skills add 0xendale/evm-agent-toolkit --skill arbitrage-analysis

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.4 KB, as published. Nobody here has run it

Arbitrage Analysis

Overview

Surface and quantify price-dislocation opportunities across venues, net of fees, gas, and slippage. This is an analysis skill: it produces an opportunity ledger, it does not execute trades.

The Iron Rule: never call a route profitable without subtracting fees, gas, AND slippage. A gross spread is not profit. Report the size band where net profit is positive, or say there is none.

When to Use

  • Screening DeFi venues for cross-DEX, triangular, or stablecoin-depeg arbitrage
  • Symptoms: "is there an arb here?", spread/MEV/price-dislocation questions, quantifying an opportunity net of cost

Do NOT use for: security audits (use vulnerability-scanning) or gas optimization (use gas-optimization). Do NOT treat its output as trade authorization.

Workflow

Four reasoning steps, in order.

  1. Seek — From the pool/pair/quote inputs, detect dislocations against the thresholds in reference/strategies.md. List candidates with venues and observed spread.
  2. Innovate — Propose a concrete route per candidate (the leg sequence and venues).
  3. Execute — Compute net_bps = spread_bps - fee_bps - gas_cost_bps - slippage_bps - validator_bribe_bps for the specific trade size. In competitive L1 environments, bribes can consume 90-95% of gross profit. Factor in Maximal Arbitrage Value (MAV) for AMMs. Keep only routes with net_bps > 0; record the viable size band. When an MCP server is available: use evm_simulate_transaction to read live pool quotes, evm_trace_call to dry-run a route leg and read its gas cost from the trace, and evm_decode_calldata to classify competing pending transactions.
  4. Manage — Emit the opportunity ledger: route, gross spread, each cost component, net bps, viable size band, and the reality caveats (MEV, depth, staleness).

Quick Reference

StrategyMin spread (bps)Net rule
Cross-DEX spot30spread - fee - gas - slippage > 0
Triangular45round-trip net > 0 across 3 legs
Stable depeg15net > 0 after fee+gas+slippage

Model and caveats: reference/strategies.md. Heuristics and Network Frictions: reference/patterns.md.

Common Mistakes

  • Reporting gross spread as profit. Subtract fee + gas + slippage, always.
  • Ignoring slippage / pool depth. A spread that's profitable at small size inverts at large size.
  • Presenting analysis as executable certainty. Spreads are contested by MEV and may close before inclusion.
  • Conflating atomic and non-atomic MEV. Atomic executes risk-free; non-atomic carries high execution risk due to latency.
  • Ignoring builder bribes. On Ethereum L1, searchers often pay 90-95% of their arbitrage profits to validators/builders.

Red Flags — STOP

  • "The spread is 50 bps so it's profitable" → subtract all costs and slippage.
  • "It's profitable" with no size band → report where net_bps > 0.
  • "Execute this trade" → out of scope; this skill only analyzes.
  • Omitting validator bribes from the cost basis when analyzing competitive L1 MEV.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.