1---2name: foundry3description: Foundry — Forge, Cast, Anvil, Chisel; EVM tooling, cheatcodes, scripting, lint, debugging.4---56> Skill based on Foundry (foundry-rs/foundry), generated 2026-02-09. User docs: https://getfoundry.sh, book: https://book.getfoundry.sh78Foundry is a fast, portable Ethereum dev toolkit (Rust): **Forge** (build, test, fuzz, deploy), **Cast** (EVM interaction), **Anvil** (local node), **Chisel** (Solidity REPL). This skill focuses on agent capabilities — architecture, cheatcodes, scripting, debugging, custom networks, and the linter — from the in-repo dev docs.910## Core References1112| Topic | Description | Reference |13|-------|-------------|-----------|14| Architecture | evm, config, cli crates; where cheatcodes and CLI live | [core-architecture](references/core-architecture.md) |15| Cheatcodes | Vm address, Inspector, adding cheatcodes, Cheatcode trait, JSON spec | [core-cheatcodes](references/core-cheatcodes.md) |16| Config | foundry.toml, profiles, compiler, paths, remappings | [core-config](references/core-config.md) |17| Project layout | forge init, src, test, script, lib | [core-project-layout](references/core-project-layout.md) |1819## Features2021| Topic | Description | Reference |22|-------|-------------|-----------|23| Forge build & test | forge build, forge test, snapshot, gas report, fuzz | [features-forge-build-test](references/features-forge-build-test.md) |24| Forge fmt | forge fmt, [fmt] config, --check | [features-forge-fmt](references/features-forge-fmt.md) |25| Contract size | forge build --sizes, 24KB limit | [features-contract-size](references/features-contract-size.md) |26| Forge install | forge install, remappings, lib layout | [features-forge-install](references/features-forge-install.md) |27| Scripting | forge script flow, broadcast, resume, nonce, multi-chain | [features-scripting](references/features-scripting.md) |28| Testing patterns | vm.prank, expectRevert, expectEmit, forge-std Test | [features-testing-patterns](references/features-testing-patterns.md) |29| Coverage & verify | forge coverage, forge verify-contract | [features-coverage-verify](references/features-coverage-verify.md) |30| Invariant testing | invariant_* functions, runs, depth, stateful fuzz | [features-invariant](references/features-invariant.md) |31| Fork testing | createSelectFork, selectFork, activeFork, multi-fork | [features-fork-testing](references/features-fork-testing.md) |32| FFI & signing | vm.ffi, vm.sign, EIP-712 helpers | [features-ffi-signatures](references/features-ffi-signatures.md) |33| State cheatcodes | vm.deal, vm.mockCall, vm.etch | [features-state-cheatcodes](references/features-state-cheatcodes.md) |34| Cast | cast call, send, ABI encode/decode, chain queries | [features-cast](references/features-cast.md) |35| Anvil | Local node, fork, pre-funded accounts, block time | [features-anvil](references/features-anvil.md) |36| Chisel | Solidity REPL for snippets and quick checks | [features-chisel](references/features-chisel.md) |37| Debugging | RUST_LOG, tracing filters for forge/cast/anvil | [features-debugging](references/features-debugging.md) |38| Custom Networks | Custom precompiles, evm-networks crate | [features-networks](references/features-networks.md) |39| Lint (forge lint) | Early/late passes, adding lint rules, testing | [features-lint](references/features-lint.md) |4041## Best Practices4243| Topic | Description | Reference |44|-------|-------------|-----------|45| Testing | Test layout, naming, isolation, CI patterns | [best-practices-testing](references/best-practices-testing.md) |46| Scripting | Broadcast, verify, resume, keys, multi-chain | [best-practices-scripting](references/best-practices-scripting.md) |4748## External Links4950- [Foundry Docs](https://getfoundry.sh)51- [Foundry Book](https://book.getfoundry.sh)52- [foundry-rs/foundry GitHub](https://github.com/foundry-rs/foundry)53- [Cheatcodes reference](https://book.getfoundry.sh/cheatcodes)