tevm-events

Trace EVM opcode-level events to debug contract execution and gas usage.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/cyotee/crane --skill tevm-events
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tevm-events
Source: https://github.com/cyotee/crane/tree/main/.claude/skills/tevm-events
Command: npx skills add https://github.com/cyotee/crane --skill tevm-events

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Monitor and debug EVM execution at opcode level to identify bugs, optimize gas usage, and validate contract behavior.

Core Features & Use Cases

  • EVM event tracing across steps, contract deployments, and message boundaries.
  • Real-time observations of opcode, gas, memory, stack, and call depth during execution.
  • Use Case: profiling gas costs or diagnosing reverts by stepping through instructions.

Quick Start

Observe and trace a contract deployment with onStep and onAfterMessage handlers to inspect opcode behavior.

Frequently Asked Questions about tevm-events

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace EVM execution step-by-step to debug a smart contract?

Trace EVM execution step-by-step by subscribing to opcode-level events like onStep to inspect gas, memory, stack, and call depth during contract execution for debugging workflows.

Can I profile gas usage by inspecting opcodes during Solidity contract execution?

Profile gas usage by subscribing to onStep events to observe real-time gas consumption and opcode behavior during EVM execution, enabling precise gas cost profiling and optimization.

What EVM events are needed to monitor contract deployments and message boundaries?

Monitoring contract deployments and message boundaries requires a client capable of subscribing to onStep, onNewContract, onBeforeMessage, and onAfterMessage events to trace execution accurately.

How does opcode-level tracing help diagnose Ethereum smart contract reverts?

Opcode-level tracing diagnoses reverts by stepping through individual EVM instructions, allowing you to inspect memory and stack states at the exact point where execution fails.

Do I need a specific client to use opcode-level event tracing for Ethereum?

Opcode-level event tracing requires a client capable of subscribing to onStep, onNewContract, onBeforeMessage, and onAfterMessage events to monitor EVM execution in real-time.

What is the best way to debug Ethereum contract behavior using EVM events?

Debug Ethereum contract behavior by tracing EVM execution with onStep and onAfterMessage handlers, validating contract behavior through real-time opcode, gas, and call depth observations.