solidity-coding
✓[自动调用] 必须在编写或修改任何 Solidity 合约(.sol 文件)之前调用。涵盖编译指示版本、命名约定、项目布局、OpenZeppelin 库选择标准、Chainlink 集成和反模式。触发器:涉及创建、编辑或检查 .sol 源文件的任何任务。
SKILL.md
| Contract / Library | PascalCase | MyToken, StakingPool | | Interface | I + PascalCase | IMyToken, IStakingPool | | State variable / Function | lowerCamelCase | totalSupply, claimDividend | | Constant / Immutable | UPPERSNAKECASE | MAXSUPPLY, ROUTERADDRESS | | Event | PascalCase (past tense) | TokenTransferred, PoolCreated |
| Custom Error | PascalCase | InsufficientBalance, Unauthorized | | Function parameter | prefix for setter | function setFee(uint256 fee) |
| Cross-contract constants | Place in src/common/Const.sol | | Interface definitions | Place in src/interfaces/I .sol, separate from implementation | | Simple on-chain queries | Use cast call or cast send | | Complex multi-step operations | Use forge script |
[自动调用] 必须在编写或修改任何 Solidity 合约(.sol 文件)之前调用。涵盖编译指示版本、命名约定、项目布局、OpenZeppelin 库选择标准、Chainlink 集成和反模式。触发器:涉及创建、编辑或检查 .sol 源文件的任何任务。 来源:0xlayerghost/solidity-agent-kit。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-coding- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-17
- 更新时间
- 2026-02-18
快速解答
什么是 solidity-coding?
[自动调用] 必须在编写或修改任何 Solidity 合约(.sol 文件)之前调用。涵盖编译指示版本、命名约定、项目布局、OpenZeppelin 库选择标准、Chainlink 集成和反模式。触发器:涉及创建、编辑或检查 .sol 源文件的任何任务。 来源:0xlayerghost/solidity-agent-kit。
如何安装 solidity-coding?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/0xlayerghost/solidity-agent-kit --skill solidity-coding 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/0xlayerghost/solidity-agent-kit
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-17