·solidity-testing
</>

solidity-testing

0xlayerghost/solidity-agent-kit

[自動呼叫] 必須在寫入或修改任何測試檔案 (*.t.sol) 之前呼叫。涵蓋測試結構、命名約定、覆蓋率要求、模糊測試和 Foundry 作弊代碼。觸發器:涉及建立、編輯或執行 Solidity 測試的任何任務。

9安裝·0熱度·@0xlayerghost

安裝

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

SKILL.md

| Happy path | Standard input → expected output, correct state changes | | Permission checks | Unauthorized caller → vm.expectRevert with correct error | | Boundary conditions | Zero values, max values (type(uint256).max), off-by-one | | Failure scenarios | Every require / revert / custom error path |

| State changes | Storage updates, balance changes, event emissions (vm.expectEmit) | | Edge cases | Empty arrays, duplicate calls, self-transfers |

| vm.prank(addr) | Next call from addr | | vm.startPrank(addr) | All calls from addr until vm.stopPrank() | | vm.warp(timestamp) | Set block.timestamp | | vm.roll(blockNum) | Set block.number | | vm.deal(addr, amount) | Set ETH balance | | vm.expectRevert(error) | Next call must revert with specific error |

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-testing
分類
</>開發工具
認證
收錄時間
2026-02-17
更新時間
2026-02-18

快速解答

什麼是 solidity-testing?

[自動呼叫] 必須在寫入或修改任何測試檔案 (*.t.sol) 之前呼叫。涵蓋測試結構、命名約定、覆蓋率要求、模糊測試和 Foundry 作弊代碼。觸發器:涉及建立、編輯或執行 Solidity 測試的任何任務。 來源:0xlayerghost/solidity-agent-kit。

如何安裝 solidity-testing?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

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

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-17