foundry-solidity

Build and test Solidity smart contracts using Foundry tooling.

32|2|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/tenequm/claude-plugins --skill foundry-solidity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundry-solidity
Source: https://github.com/tenequm/claude-plugins/tree/main/foundry-solidity/skill
Command: npx skills add https://github.com/tenequm/claude-plugins --skill foundry-solidity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Learn to build, test, and deploy Ethereum smart contracts using Foundry tooling (Forge, Cast, Anvil, Chisel) for fast, deterministic development.

Core Features & Use Cases

  • Forge build and test workflows
  • Script-driven deployments and verifications
  • Cast for on-chain interactions and debugging

Quick Start

forge init my-project; forge build; forge test; forge script ... --broadcast

Frequently Asked Questions about foundry-solidity

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

FAQPage Schema
How do I build and test Solidity smart contracts with Foundry?

Foundry provides Forge for building and testing Solidity contracts. Initialize a project with `forge init`, write tests in `*.t.sol` files, then run `forge test` to execute unit, fuzz, and invariant tests with deterministic, fast execution.

Can I deploy and verify smart contracts using Foundry scripts?

Yes. Foundry supports script-driven deployments through `*.s.sol` files and `forge script` commands. Execute scripts with `--broadcast` to deploy contracts on-chain and verify them automatically.

What's the difference between Forge, Cast, and Anvil in Foundry?

Forge compiles and tests Solidity contracts. Cast interacts with on-chain data and sends transactions for debugging. Anvil provides a local EVM node for testing and development without external dependencies.

How do I configure Foundry projects and manage dependencies?

Foundry uses `foundry.toml` for project configuration, including compiler settings, dependencies, and test parameters. This replaces traditional configuration files and integrates all project setup in one place.

Do I need prior experience with Solidity to use Foundry?

Basic Solidity knowledge is helpful but not required. Foundry's documentation and test patterns guide you through contract development. Start with `forge init` and examples to learn incrementally.

Can Foundry test contracts against live Ethereum state?

Yes. Forge supports fork testing, allowing you to run tests against mainnet or testnet state. This validates contract behavior in realistic network conditions without deploying to live networks.