Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mev

Skill by alsk1992

Protects trades from MEV attacks such as sandwich attacks and front-running. It covers Ethereum through Flashbots and MEV Blocker, and Solana through Jito. It is for traders who want protected swaps and checks on past or planned trades.

  • Score 82
  • 3.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mev

Built from the published package, never by AI.

git clone --depth 1 https://github.com/alsk1992/CloddsBot /tmp/CloddsBot && mkdir -p ~/.claude/skills && cp -r /tmp/CloddsBot/src/skills/bundled/mev ~/.claude/skills/mev

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mev in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

MEV protection is a skill for AI assistants that guards trades against MEV attacks such as sandwich attacks and front-running. It offers chat commands such as /mev enable and /mev level, plus a TypeScript API imported from clodds/mev. Protection levels (aggressive, standard and minimal) set whether a private mempool is used, whether only bundles are submitted, and the maximum slippage.

Ethereum trades can be sent through Flashbots Protect or MEV Blocker, and Solana trades through Jito bundles. The API can also analyze a past transaction for attacks and simulate MEV risk before a trade. It suits people who swap tokens and want to reduce losses from sandwich attacks and front-running.

Written from the project's SKILL.md and checked against it.

What it can do

  • /mev enable and /mev disableTurns MEV protection on or off from the chat.
  • /mev levelSets the protection level to aggressive, standard or minimal.
  • /mev providerChooses Flashbots or MEV Blocker for Ethereum trades.
  • /mev check <tx-hash>Checks whether a transaction was attacked.
  • /mev simulate <order>Simulates the MEV risk of an order.
  • executeProtectedRuns a protected EVM trade and returns the transaction hash and estimated savings.
  • analyzeTransactionReports attack type, attacker, estimated loss and related frontrun and backrun transactions.
  • simulateRiskReturns a low, medium or high MEV risk level with a recommendation.

What you need

  • The clodds package, imported from clodds/mev

Try asking

  • Enable MEV protection with the aggressive level for my next swap.
  • Simulate the MEV risk of swapping 50000 USDC for PEPE.
  • Check whether transaction 0x... was hit by a sandwich attack.

Good to know

  • Savings, loss and risk figures are estimates returned by the API.
  • Ethereum providers are Flashbots and MEV Blocker. Solana uses Jito.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: src/skills/bundled/mev/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • index.ts3 KB

Alternatives to mev

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

mev: common questions

Which chains does it protect?

Ethereum is covered through Flashbots Protect or MEV Blocker, and Solana through Jito. The source also lists L2s, which use native sequencer protection.

Can it check a trade that already happened?

Yes. analyzeTransaction checks a past transaction and reports the attack type, attacker, estimated loss, and frontrun and backrun transactions.

What protection levels are available?

Aggressive, standard and minimal. Each level sets private mempool use, bundle-only submission and a maximum slippage value.

How do I install mev?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mev free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mev safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mev?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

Add to stack

Loading.