Apply this skill when working on Solidity projects using the Foundry toolkit. This includes setting up new projects, writing unit and integration tests, performing fuzz and invariant testing, simulating mainnet conditions via fork testing, and managing deployments using Solidity scripts.
Initialize a project with forge init. Manage dependencies using forge install / . Configure foundry.toml for remappings, optimizer settings, and EVM versions. Use remappings.txt to simplify imports (e.g., @openzeppelin/=lib/openzeppelin-contracts/contracts/).
Tests should inherit from forge-std/Test.sol. Use setUp() for state initialization.
Foundry-Entwicklungsworkflow für Solidity Smart Contracts. Zur Verwendung beim Bauen, Testen oder Bereitstellen mit Foundry (Schmieden, Guss, Amboss). Behandelt Projekteinrichtung, Foundry.toml-Konfiguration, Testmuster, Fuzz-Tests, Invariantentests, Fork-Tests, Cheatcodes, Bereitstellungsskripte und Debugging. Wird bei Aufgaben ausgelöst, die Forge-Build, Forge-Test, Forge-Skript, Guss, Amboss oder Foundry-basierte Solidity-Entwicklung umfassen. Quelle: whackur/solidity-agent-toolkit.