solidity-coding
Installation
SKILL.md
Solidity Coding
Write Solidity that compiles under the project's pinned toolchain, follows its conventions, and passes its lint gate.
Ground Rules
- Read
foundry.toml,remappings.txt, and the nearestAGENTS.mdbefore writing code. The pinnedsolcand the effective EVM version decide which features exist: transient storage andmcopyneed Cancun or later, andtransientstate variables also need solc 0.8.28 or later. Whenevm_versionis unset, Foundry's default applies; read it withforge config | grep evm_version. - Treat the defaults below as fallbacks. Existing code and repository instructions win; match the surrounding file when they disagree.
- Let
forge fmt, Solhint, and Prettier own formatting. Run them instead of hand-formatting.