CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

contracts-mev-sandwich

MEV sandwich attacks — front-run + back-run a victim swap on Uniswap V2/V3, Curve, Balancer; mempool monitoring via Flashbots / private RPC, slippage tolerance exploitation, JIT liquidity sandwich, multi-block MEV.

Quality

71%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

Fix and improve this skill with Tessl

tessl review fix ./packages/decepticon/decepticon/skills/standard/contracts/mev-sandwich/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

61%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-organized, appropriately lean guide whose main weaknesses are incomplete executable guidance (pseudocode detection/JIT sections, unconstructed attacker transactions) and a missing simulation/validation checkpoint before bundle submission. Structure and conciseness are solid.

Suggestions

Add executable victim-detection code (real mempool filtering for swapExactTokensForTokens/exactInputSingle and the slippage-vs-gas profitability check) instead of comment-only pseudocode.

Insert an explicit numbered workflow with a validation step: simulate the bundle (e.g., fb.simulate()) and verify profitability before sendRawBundle, with a fix-and-retry loop on simulation failure.

Show how attackerTx1/attackerTx2 amounts are computed (front-run size, expected back-run proceeds) or point to a reference file with the full working bot.

DimensionReasoningScore

Conciseness

Sections are compact with lean code blocks and no padding explaining concepts Claude already knows; the one-line sandwich definition is justified. Not 5 because a few sentences (e.g., in 'OPSEC / ethics / legal' and 'Common pitfalls') restate what code comments and earlier sections already convey.

4 / 5

Actionability

The Flashbots JS bundle-submission snippet is near-executable, but the detection section is comment-only pseudocode ('Filter for Uniswap V2 swapExactTokensForTokens...'), the JIT section is pure comment pseudocode, and the core attacker transactions (attackerTx1/attackerTx2, including the swap-amount math) are never constructed. This matches the anchor 'pseudocode instead of executable code; missing key details' rather than the mostly-executable anchor 4.

3 / 5

Workflow Clarity

An implied sequence (detect → construct → submit) is legible via section ordering, but steps are not explicitly numbered and there are no validation checkpoints — critically, no simulate-before-send step (e.g., Flashbots simulate()) for an operation that spends real gas and capital, which the rubric caps at 3. Not 2 because the sequence itself is clear and the pitfalls/defenses sections add process guidance.

3 / 5

Progressive Disclosure

No bundle files exist and the ~105-line body is organized into clear, well-scoped sections (detect, construct, JIT, multi-block, defenses, pitfalls, tooling, OPSEC, references) with content appropriately placed for a single-file skill. Not 5 because it exceeds the under-50-line simple-skill exception and topics like Flashbots API usage or tooling setup would naturally belong in one-level-deep reference files.

4 / 5

Total

14

/

20

Passed

Description

70%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A highly specific, keyword-dense description that clearly communicates a narrow MEV domain with named platforms and techniques. Its main defect is the complete absence of 'when to use' trigger guidance, which caps completeness, plus a few missing natural trigger synonyms.

Suggestions

Add an explicit trigger clause, e.g. 'Use when the user asks about MEV, sandwich attacks, front-running/back-running swaps, or DEX slippage exploitation.'

Include common unhyphenated synonyms users type, such as 'frontrunning', 'backrunning', and 'searcher', directly in the description.

DimensionReasoningScore

Specificity

Lists several concrete, named actions ('front-run + back-run a victim swap on Uniswap V2/V3, Curve, Balancer', 'mempool monitoring via Flashbots / private RPC', 'JIT liquidity sandwich', 'multi-block MEV'), but they are noun fragments rather than complete capability phrases and detection/simulation is not explicitly framed as an action — minor gaps keep it below the comprehensive anchor 5.

4 / 5

Completeness

The 'what' is clear and concrete, but there is no 'Use when...' clause or any equivalent explicit trigger guidance in the description, which the rubric explicitly caps at 3. It is not 2 because the 'what' half is strong, and not 4 because 'when' is entirely absent rather than merely implicit.

3 / 5

Trigger Term Quality

Good natural keyword coverage ('MEV sandwich', 'front-run', 'back-run', 'Uniswap', 'slippage', 'Flashbots'), but misses common variations users actually say such as 'frontrunning'/'frontrun' (unhyphenated), 'backrunning', and 'searcher' (which appears only in metadata, not the description).

4 / 5

Distinctiveness Conflict Risk

A clear niche (MEV sandwiching on named DEXes and relays) with distinct trigger terms; minimal realistic overlap with other skills.

5 / 5

Total

16

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository

PurpleAILAB/Decepticon

Path

packages/decepticon/decepticon/skills/standard/contracts/mev-sandwich/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.