gas-optimization-foundry
OfficialMeasure gas, optimize Foundry builds.
Authoridchain-world
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Reduces gas costs in Solidity Foundry projects by enforcing a measurement-first workflow that captures before/after diffs to validate gains.
Core Features & Use Cases
- Enforces a measurement-first approach with forge snapshot, diff, and gas reporting to drive evidence-based optimizations.
- Guides developers on where to apply optimizations (struct packing, immutables, calldata usage) to reduce gas costs in hot paths.
- Example: When refactoring a hot function, use the baseline/diff workflow to quantify savings and validate improvements.
Quick Start
Run a baseline with forge snapshot, then iterate with diff and gas-report results to confirm improvements.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gas-optimization-foundry Download link: https://github.com/idchain-world/id-agents/archive/main.zip#gas-optimization-foundry Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.