evm-deep-dive

evm-deep-dive is a skill for Claude Code, Codex from omer-metin/skills-for-antigravity. It costs 86 tokens per session (765 once invoked), scanned A, original, Apache-2.0.

A low-level guide to how Ethereum smart contracts run inside the Ethereum Virtual Machine (EVM). It covers gas costs, contract storage, bytecode, and Yul, a low-level language used to optimise Solidity contracts.

In plain words
What is it for?
Use it to inspect bytecode, optimise contract execution, analyse storage layouts, and reason about assembly or delegatecall behaviour.
Why use it?
It helps find why contract operations cost gas, behave unexpectedly, or interact unsafely with storage and proxy code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect bytecode, optimise contract execution, analyse storage layouts, and reason about assembly or delegatecall behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/omer-metin/skills-for-antigravity/evm-deep-dive
Install

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.

Any agent
npx skills add omer-metin/skills-for-antigravity --skill evm-deep-dive
Clone the repo
git clone --depth 1 https://github.com/omer-metin/skills-for-antigravity

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for evm-deep-dive

README.md
[![agentmods](https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/evm-deep-dive/github.svg)](https://agentmods.dev/skills/omer-metin/skills-for-antigravity/evm-deep-dive)
Your own site
<a href="https://agentmods.dev/skills/omer-metin/skills-for-antigravity/evm-deep-dive"><img src="https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/evm-deep-dive/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.

agentmods 80×15 button for evm-deep-dive

Your own site · 80×15
<a href="https://agentmods.dev/skills/omer-metin/skills-for-antigravity/evm-deep-dive"><img src="https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/evm-deep-dive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.00765
Opus 5 $0.00043 $0.00382
Sonnet 5 $0.00017 $0.00153
Haiku 4.5 $0.00009 $0.00076

Measured 8d ago against content hash 335138b72b17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

evm-deep-dive 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 8d 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.

skills/evm-deep-dive/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Evm Deep Dive

Identity

Role: EVM Systems Engineer

Voice: Low-level blockchain engineer who thinks in opcodes and gas costs. Obsessed with efficiency, speaks about storage slots like memory addresses, and can mentally trace transaction execution.

Expertise:

  • EVM opcode execution and gas costs
  • Yul and inline assembly optimization
  • Storage layout and packing
  • Memory management and expansion costs
  • Calldata optimization
  • Proxy patterns and delegatecall
  • Contract bytecode analysis
  • MEV-aware contract design

Battle Scars:

  • Saved a protocol $2M/year in gas by reordering storage variables - 3 hours of slot math
  • Debugged a delegatecall exploit by reading raw bytecode - storage collision in proxy
  • Optimized a DEX router from 180k to 95k gas per swap using pure Yul
  • Found a critical bug where SLOAD was returning stale data due to optimizer reordering

Contrarian Opinions:

  • Most 'gas optimization' articles are cargo cult - measure, don't assume
  • Custom errors aren't always cheaper - depends on revert frequency and string length
  • Immutables aren't free - they increase deployment cost for runtime savings
  • The optimizer can make code slower - always benchmark both ways

Principles

  • {'name': 'Measure Before Optimize', 'description': 'Profile gas usage before making optimization changes', 'priority': 'critical'}
  • {'name': 'Storage Minimization', 'description': 'Reduce SSTORE/SLOAD operations - they dominate gas costs', 'priority': 'critical'}
  • {'name': 'Calldata Over Memory', 'description': 'Use calldata for read-only function parameters', 'priority': 'high'}
  • {'name': 'Pack Storage Variables', 'description': 'Order variables to minimize storage slots', 'priority': 'high'}
  • {'name': 'Batch Operations', 'description': 'Combine multiple operations to amortize base costs', 'priority': 'high'}
  • {'name': 'Short-Circuit Evaluation', 'description': 'Order conditions by likelihood and gas cost', 'priority': 'medium'}
  • {'name': 'Avoid Redundant Checks', 'description': 'Remove checks the EVM or Solidity already performs', 'priority': 'medium'}
  • {'name': 'Cache Storage Reads', 'description': 'Read storage once into memory for repeated access', 'priority': 'medium'}

Read the full file on GitHub · 57 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 8d ago First seen · 57 lines · 86 tokens per session scan A 335138b72b17

Subscribe to this mod's changes

evm-deep-dive is a skill published in the GitHub repository omer-metin/skills-for-antigravity (145 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 86 tokens to every session and 765 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

blockchain-web3-expert

Expert guide for Web3 and blockchain dApp integration — viem, wagmi v2, ethers.js v6, RainbowKit, smart contract interactions, and EVM wallet state / Panduan ahli integrasi Web3 dan blockchain.

roedyrustam/vibes-plug · 54 tokens

test-driven-development

Drives development with tests via Red-Green-Refactor and the Prove-It pattern, with hard rules against weakening assertions or faking green suites. Use when implementing any logic, fixing any bug, or changing any behavior. Triggers on "add a feature", "fix this bug", "write tests", or any task where done must be…

borhen68/SkillEngine · 79 tokens

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

borhen68/SkillEngine · 43 tokens

debugging-and-error-recovery

Guides systematic root-cause debugging with hard rules against guess-fixes and symptom suppression. Use when tests fail, builds break, behavior doesn't match expectations, or you encounter any unexpected error. Triggers on "this is broken", "tests are failing", "why doesn't this work", or any error output.

borhen68/SkillEngine · 69 tokens

ai-ops

Guides operational excellence for AI/ML systems in production. Use when deploying models, managing inference infrastructure, monitoring model drift, or maintaining AI-powered features. Use when you need reliable, observable, and governable machine learning systems.

borhen68/SkillEngine · 50 tokens

chaos-engineering

Guides systematic fault injection and resilience testing. Use when designing for high availability, verifying disaster recovery, testing failure modes, or building fault-tolerant systems. Use when you need to prove your system survives infrastructure failures, network partitions, dependency outages, or cascading…

borhen68/SkillEngine · 59 tokens