Provides pragmatic patterns, examples, and checklists for testing Ethereum smart contracts with Foundry. Covers unit tests, fuzz testing, fork testing against real protocol contracts, and invariant testing to surface economic failures. Includes sample test code and a pre-deploy checklist.
Use this skill when writing or reviewing tests for Solidity contracts — especially when you need to test integrations (Uniswap/Aave), fuzz inputs, or assert invariants across random sequences. Ideal for CI test suites and pre-deploy safety checks.
Useful for developer-focused agents and CI automation that can run Foundry (forge) in CI environments; agent outputs are mostly actionable test code and checklists.
This skill has not been reviewed by our automated audit pipeline yet.