/tevm:tevm-debuggingfrom tevm
Debug transactions with EVM tracing, gas profiling, and error handling. Use when investigating contract behavior or test failures.
Ships in tevm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
const trace = { steps: [], errors: [] }
const result = await client.tevmCall({
to: contractAddress,
data: '0x...',
onStep: (step, next) => {
trace.steps.push({
pc: step.pc,
opcode: step.opcode.name,
stack: step.stack.map(s => s.toString(16)),
depth: step.depth
})
next?.()
},
onAfterMessage: (result, next) => {
if (result.execResult.exceptionError) {
trace.errors.push({
error: result.execResult.exceptionError.error,
returnData: result.execResult.returnValue.toString('hex')
})
}
next?.()
}
})
const profile = {
opcodes: new Map(),
totalGas: 0n,
storageWrites: 0,
storageReads: 0
}
await client.tevmCall({
to: contractAddress,
data: '0x...',
onStep: (step, next) => {
const opName = step.opcode.name
// Track storage operations
if (opName === 'SSTORE') profile.storageWrites++
if (opName === 'SLOAD') profile.storageReads++
// Track gas by opcode
const gasCost = BigInt(step.opcode.fee)
const stats = profile.opcodes.get(opName) || { count: 0, gas: 0n }
stats.count++
stats.gas += gasCost
profile.opcodes.set(opName, stats)
profile.totalGas += gasCost
next?.()
}
})
console.log('Storage writes:', profile.storageWrites)
console.log('Gas by opcode:', profile.opcodes)
const result = await client.tevmCall({
to: contractAddress,
data: '0x...',
onAfterMessage: (result, next) => {
const err = result.execResult.exceptionError
if (!err) return next?.()
switch (err.error) {
case 'revert':
console.log('Reverted:', result.execResult.returnValue)
break
case 'out of gas':
console.log('Out of gas')
break
case 'invalid opcode':
console.log('Invalid opcode')
break
}
next?.()
}
})
// Check result
if (!result.errors && result.execResult.exceptionError) {
console.log('Failed:', result.execResult.exceptionError.error)
}
// Set next block timestamp
await client.setNextBlockTimestamp(Date.now() + 3600000) // 1 hour ahead
// Mine block with that timestamp
await client.mine({ blocks: 1 })
// Jump forward (via setAccount)
await client.setAccount({
address: '0x...', // special timestamp address
balance: BigInt(futureTimestamp)
})
// Save state
const snap1 = await client.snapshot()
// Make changes
await contract.transfer(to, amount)
// Check state
const balance = await contract.balances(user)
// Revert if needed
await client.revert({ id: snap1 })
const vm = await client.getVm()
const result = await vm.runTx({
tx,
block,
skipNonce: true,
skipBalance: true
})
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/tevm-account-managementGet and set account state including balances, nonces, and storage. Use when manipulating EVM state for testing./tevm-actionsCore Tevm actions for contract calls, mining, and state manipulation. Use when executing EVM operations with Tevm./tevm-contract-deploymentDeploy contracts using ethers ContractFactory with Tevm. Use when deploying contracts in tests or local development./tevm-eventsEVM step-by-step tracing for debugging contract execution. Use when debugging contracts or profiling gas usage./tevm-overviewLightweight EVM that runs in the browser. Use for local blockchain testing, contract debugging, and fork testing./tevm-setupInitialize Tevm clients for in-memory or fork mode. Use when setting up Tevm for testing or local development.tevm@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin tevm2 plugins ship this exact skill · first indexed Jul 20, 2026