Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nirholas/three.ws --skill mev-protection-guidegit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/mev-protection-guide)<a href="https://agentmods.dev/skills/nirholas/three.ws/mev-protection-guide"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/mev-protection-guide/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nirholas/three.ws/mev-protection-guide"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/mev-protection-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.01255 |
| Opus 5.5 | $0.00021 | $0.00502 |
| Sonnet 5.5 | $0.00010 | $0.00251 |
| Haiku 4.5 | $0.00005 | $0.00126 |
Grade A, and why
mev-protection-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MEV Protection Guide
MEV (Maximal Extractable Value) is profit that block builders and searchers extract by reordering, including, or excluding transactions. Understanding MEV helps protect your users' trades.
Types of MEV
1. Sandwich Attacks
The most common MEV attack on DEX swaps:
1. Attacker sees your swap in mempool
2. Attacker buys before you (frontrun) → pushes price up
3. Your swap executes at a worse price
4. Attacker sells after you (backrun) → profits from the price difference
Who gets hurt: Anyone swapping on DEXs with high slippage tolerance Typical loss: 0.3–2% of trade value
2. Frontrunning
A searcher copies your profitable transaction and submits it first with higher gas:
- Arbitrage opportunities
- NFT mints
- Liquidation calls
3. Backrunning
Searcher submits a transaction immediately after yours to capture resulting arbitrage:
- After large swaps (price impact creates arb opportunity)
- After oracle updates
- After liquidations
4. Just-In-Time (JIT) Liquidity
A sophisticated attack on V3 pools:
- Searcher adds concentrated liquidity just before your swap
- Your swap pays fees to the searcher's position
- Searcher removes liquidity immediately after
5. Time-Bandit Attacks
Block proposers reorganize past blocks to capture MEV. Rare but possible with proof-of-stake.
Protection Strategies
For Users
| Strategy | Protection Level | Tradeoff |
|---|---|---|
| Low slippage (0.5%) | Medium | May fail on volatile tokens |
| Private mempool | High | May have slight delay |
| DEX aggregator | Medium–High | Best price routing |
| Limit orders | High | No immediate execution |
1. Use Low Slippage Tolerance
Set slippage to 0.5% or lower. This limits how much the price can move against you, making sandwich attacks unprofitable.
Caution: Too-low slippage on volatile tokens may cause transactions to fail.
2. Private Transaction Submission
Send transactions through private mempools that hide them from searchers:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 147 lines · 52 tokens per session scan A b1f15c72c860
mev-protection-guide is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 1,255 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
mev-protection-guide compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mev-protection-guidenirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 52 | Claude Code, Codex |
| pay-x402-servicenirholas/x402-payments-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 51 | Claude Code |
| granite-pay-per-callnirholas/ibm-x402-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 49 | Claude Code |
| pumpfun-token-researchnirholas/pumpfun-claims-bot | Skill | 25 | 11d ago | none | A | 59 | Claude Code |
| jupiter-vrfdinternet-court/internet-court-skill | Skill | 7.2k | 6d ago | none | A | 45 | Claude Code |
| vybe-token-market-intelvybenetwork/solana-mcp-vybe | Skill | 3.2k | 4d ago | none | A | 60 | Claude Code, Codex |
| solana-security-reviewYD811/potbot-v2 | Skill | 22 | 3d ago | MIT | A | 75 | Claude Code, Codex |