web3-foundry

Generate Foundry-based tests and deployment scripts for Ethereum smart contracts.

9|1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/sablier-labs/agent-skills --skill web3-foundry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web3-foundry
Source: https://github.com/sablier-labs/agent-skills/tree/main/skills/web3-foundry
Command: npx skills add https://github.com/sablier-labs/agent-skills --skill web3-foundry

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write Foundry-based tests and deployment scripts for Ethereum contracts, reducing boilerplate and increasing test coverage.

Core Features & Use Cases

  • Foundry-based test templates for integration, fuzz, invariant, and fork tests
  • Guidance for deployment scripts and test structure in tests/ and scripts/
  • Use case: When building smart contract ecosystems, quickly scaffold reliable tests and reproducible deployments.

Quick Start

Use the Foundry skill to generate a test skeleton for a deposit function that asserts balance changes and emits events.

Frequently Asked Questions about web3-foundry

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

FAQPage Schema
How do I write Foundry tests for Solidity smart contracts?

Generate Foundry fuzz tests for Solidity smart contracts by using this Skill to scaffold test skeletons in the tests/ directory, reducing boilerplate for property-based testing.

How do I generate deployment scripts for Ethereum smart contracts?

Generate deployment scripts for Ethereum smart contracts by using this Skill to produce reproducible Foundry deployment script templates within the scripts/ directory.

What is the best way to structure invariant and fork tests in Foundry?

The best way to structure invariant and fork tests in Foundry is to use standard Solidity test patterns generated by this Skill, which scaffolds reusable test skeletons for complex scenarios.

Do I need standard Solidity test patterns to use the web3-foundry skill?

Yes, you need standard Solidity test patterns and Foundry tooling installed, as the Skill requires these to produce test skeletons, cheat sheets, and deployment scripts correctly.

Can I scaffold integration tests and deployment scripts together for a smart contract ecosystem?

You can scaffold integration tests and deployment scripts together by using this Skill to generate templates across both tests/ and scripts/ directories, ensuring reliable tests and reproducible deployments.