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.
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/mevRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/alsk1992/CloddsBot /tmp/CloddsBot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/CloddsBot/src/skills/bundled/mev ~/.gemini/antigravity-cli/skills/mevAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
