·solidity-debug
</>

solidity-debug

[AUTO-INVOKE] MUST be invoked when debugging failed on-chain transactions. Covers transaction receipt analysis, gas diagnosis, calldata decoding, revert reason extraction, and state verification using cast. Trigger: any task involving failed tx analysis, revert debugging, or on-chain transaction troubleshooting.

36Installs·2Trend·@0xlayerghost

Installation

$npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-debug

How to Install solidity-debug

Quickly install solidity-debug AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-debug
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: 0xlayerghost/solidity-agent-kit.

SKILL.md

View raw

| status | 0 = 失败, 1 = 成功 | | gasUsed | 实际消耗的 gas | | logs | 空数组 [] = 交易 revert,无事件发出 | | to | 目标合约地址 |

| gas | 发送方设置的 gas limit | | input | 调用的 calldata(函数选择器 + 参数编码) | | from / to | 发送方和目标合约 | | value | 发送的原生代币数量 |

| gasUsed / gas ≈ 100%(如 999,472 / 1,000,000) | Out of Gas (OOG) | 提高 gas limit 或用 ethestimateGas | | gasUsed 远低于 gas limit(如 50,000 / 1,000,000) | Revert | 需获取 revert reason,见 Step 6 | | gasUsed 正常但 status=0 | 内部调用失败 | 检查余额、授权、内部 call 返回值 | | 交易根本没上链 | Nonce/Gas Price 问题 | 检查 pending 队列 |

[AUTO-INVOKE] MUST be invoked when debugging failed on-chain transactions. Covers transaction receipt analysis, gas diagnosis, calldata decoding, revert reason extraction, and state verification using cast. Trigger: any task involving failed tx analysis, revert debugging, or on-chain transaction troubleshooting. Source: 0xlayerghost/solidity-agent-kit.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-debug
Category
</>Dev Tools
Verified
First Seen
2026-02-19
Updated
2026-03-10

Browse more skills from 0xlayerghost/solidity-agent-kit

Quick answers

What is solidity-debug?

[AUTO-INVOKE] MUST be invoked when debugging failed on-chain transactions. Covers transaction receipt analysis, gas diagnosis, calldata decoding, revert reason extraction, and state verification using cast. Trigger: any task involving failed tx analysis, revert debugging, or on-chain transaction troubleshooting. Source: 0xlayerghost/solidity-agent-kit.

How do I install solidity-debug?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-debug Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/0xlayerghost/solidity-agent-kit