·solidity-debug
</>

solidity-debug

[AUTO-INVOKE] 调试失败的链上交易时必须调用。涵盖交易收据分析、气体诊断、呼叫数据解码、恢复原因提取以及使用强制转换的状态验证。触发器:涉及失败的交易分析、恢复调试或链上交易故障排除的任何任务。

36安装·2热度·@0xlayerghost

安装

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

如何安装 solidity-debug

通过命令行快速安装 solidity-debug AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-debug
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:0xlayerghost/solidity-agent-kit。

SKILL.md

查看原文

| 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] 调试失败的链上交易时必须调用。涵盖交易收据分析、气体诊断、呼叫数据解码、恢复原因提取以及使用强制转换的状态验证。触发器:涉及失败的交易分析、恢复调试或链上交易故障排除的任何任务。 来源:0xlayerghost/solidity-agent-kit。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-debug
分类
</>开发工具
认证
收录时间
2026-02-19
更新时间
2026-03-10

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

快速解答

什么是 solidity-debug?

[AUTO-INVOKE] 调试失败的链上交易时必须调用。涵盖交易收据分析、气体诊断、呼叫数据解码、恢复原因提取以及使用强制转换的状态验证。触发器:涉及失败的交易分析、恢复调试或链上交易故障排除的任何任务。 来源:0xlayerghost/solidity-agent-kit。

如何安装 solidity-debug?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-debug 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

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