agentsclimarketplace

Skill 15 mev protection

Skill vaquarkhan/web3-agent-skills/skills/skill-15-mev-protection

Production-grade Agent Skills for Web3 AI agents: 15 workflows, 6 MCP servers, DeFi/NFT/compliance guardrails, and VS Code/JetBrains installers.

Install
npx -y skills add vaquarkhan/web3-agent-skills --skill skill-15-mev-protection

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.

What its author says it does

Copied from the file, not written here

Protects transactions from MEV via Flashbots, intent-based trading, sandwich attack mitigation, and TWAP orders. Use for high-value swaps, liquidations, or any MEV-exposed on-chain activity.

SKILL.md

2.6 KB, as published. Nobody here has run it

MEV Protection

When to Use

  • Executing swaps > $1,000 on public mempools
  • Protecting against sandwich attacks
  • Submitting liquidation transactions
  • Implementing TWAP/VWAP execution strategies
  • Using intent-based protocols (CoW Swap, UniswapX)

Prerequisites

  • MCP: blockchain-rpc-server, price-feed-server
  • Skill-12 for private tx submission

MEV Attack Vectors

AttackMechanismMitigation
SandwichFront-run buy + back-run sellPrivate mempool, slippage limits
FrontrunningCopy profitable tx with higher gasFlashbots bundle, commit-reveal
BackrunningArbitrage after your txAccept (usually harmless)
JIT LiquidityTemporary LP around your swapTWAP, smaller chunks

Workflow

1. Private Transaction Submission

Ethereum (Flashbots Protect):

RPC: https://rpc.flashbots.net
  • No revert protection by default — add X-Flashbots-Signature for bundles
  • Transactions not visible in public mempool

MEV-Share: Share MEV refund with searchers while maintaining privacy.

2. Intent-Based Trading

ProtocolChainMechanism
CoW SwapEthereumBatch auctions, MEV redistribution
UniswapXMultiDutch auctions, filler network
1inch FusionMultiResolver competition

Prefer intent-based routing for trades > $10,000.

3. TWAP Execution

For large orders splitting across time:

chunkSize = totalAmount / numChunks
interval = totalDuration / numChunks
  1. Split order into N equal chunks
  2. Execute each via private RPC with randomized timing (±10%)
  3. Monitor cumulative slippage vs benchmark price
  4. Pause if cumulative slippage exceeds threshold

4. Slippage Configuration

Trade SizeRecommended SlippageMethod
< $1K0.5%Public or private
$1K–$10K0.5–1%Private mempool
$10K–$100KTWAP 5–10 chunksIntent or Flashbots
> $100KTWAP + intent protocolCoW/UniswapX

Pre-Execution

  • Private RPC configured for target chain
  • Slippage and deadline set on swap params
  • Simulation confirms no revert
  • User confirmed if trade > $10,000

References

  • references/flashbots-setup.md
  • references/intent-protocols.md

Keep looking

Skills are one crate of 328,083. 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.