foundry

Compile, test, and fuzz smart contracts with Foundry's Forge.

4|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/hairyf/blockchain-skills --skill foundry-hairyf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundry
Source: https://github.com/hairyf/blockchain-skills/tree/main/skills/foundry
Command: npx skills add https://github.com/hairyf/blockchain-skills --skill foundry-hairyf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive toolkit for Ethereum development, streamlining the process of building, testing, debugging, and deploying smart contracts.

Core Features & Use Cases

  • Development & Testing: Compile, test, and fuzz smart contracts with Forge.
  • Local EVM: Run a local Ethereum node with Anvil for rapid development and debugging.
  • Contract Interaction: Interact with the EVM, encode/decode ABIs, and query chain data using Cast.
  • Use Case: A developer needs to quickly test a new Solidity function locally. They can use Anvil to spin up a local node, write a simple test in Forge, and use Cast to inspect the state before and after the test.

Quick Start

Use the foundry skill to compile the contracts in the current directory.

Frequently Asked Questions about foundry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test and fuzz Solidity smart contracts locally?

Test and fuzz Solidity smart contracts locally by compiling them with Forge, which facilitates building, testing, and debugging workflows. It supports executing property-based fuzzing to uncover edge cases in contract logic.

Can I run a local EVM node for rapid smart contract debugging?

Run a local EVM node for rapid smart contract debugging using Anvil. It provides a local Ethereum execution environment to deploy contracts and inspect state changes during development.

How do I interact with EVM chain data and encode ABIs?

Interact with EVM chain data and encode or decode ABIs using Cast. It facilitates querying chain state and sending transactions to inspect contract behavior before and after execution.

Does Foundry support invariant testing and gas reporting for EVM development?

Foundry supports advanced EVM development features including invariant testing and gas reporting. These functionalities help identify broken protocol invariants and optimize smart contract execution costs.

What is the best way to compile and deploy smart contracts using EVM tooling?

Compile and deploy smart contracts using Forge, an EVM tooling component designed for building and deploying. It streamlines the workflow from contract compilation to test execution and final deployment.