What problem does it solve? LLMs frequently produce outdated or incorrect Foundry usage — wrong deployment patterns, confused cast commands, stale assertion syntax, and missing configuration for common errors like "stack too deep". This Skill provides current, correct guidance for the entire Foundry workflow: forge (build/test), cast (chain interaction), anvil (local node), and chisel (REPL) on any EVM chain. ## Core Features & Use Cases - Testing Patterns: Complete templates for unit, fuzz, invariant, and fork tests, including cheatcode usage (vm.prank, vm.deal, vm.expectRevert, snapshots) and handler-based invariant design with ghost variables. - Deployment & Verification: Production-grade forge script workflows with broadcast artifacts, CREATE2 deterministic deployment, hardware wallet support, resume-after-failure, and Etherscan verification. - Chain Interaction & Debugging: Full cast command reference for reading state, sending transactions, ABI encoding/decoding, plus troubleshooting guides for compilation errors, RPC rate limiting, and gas issues. - Use Case: You need to test a vault contract against real mainnet USDC state. Use the fork testing patterns to impersonate a whale account, pin a block number for determinism, and verify balances — then deploy with a scripted, verified broadcast. ## Quick Start Ask the agent to scaffold a new Foundry project with testing and deployment configuration using the foundry skill.