solidity-testing
✓[自动调用] 必须在写入或修改任何测试文件 (*.t.sol) 之前调用。涵盖测试结构、命名约定、覆盖率要求、模糊测试和 Foundry 作弊代码。触发器:涉及创建、编辑或运行 Solidity 测试的任何任务。
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