What problem does it solve? Solidity contracts often waste gas through inefficient storage writes, redundant reads, unpacked structs, and suboptimal compiler patterns, driving up deployment and transaction costs for users. This Skill provides a structured checklist of 80+ techniques to audit and refactor contracts for lower gas usage. ## Core Features & Use Cases - Storage Optimization: Avoid zero-to-one writes, cache storage reads, pack slots and structs, and use constant/immutable variables to eliminate expensive SLOADs and SSTOREs. - Compiler & Assembly Tuning: Apply unchecked math, named returns, branchless operations, and targeted inline assembly for hot paths. - Design-Level Savings: Evaluate architectural alternatives like ERC1155 vs ERC721, UUPS vs Transparent proxies, merkle trees vs ECDSA signatures, and multicall batching. - Use Case: A developer preparing for a Code4rena audit hands over an AMM contract; the Skill walks through storage, calldata, cross-contract, and deployment references to produce a prioritized list of gas savings with tradeoffs. ## Quick Start Review my Solidity contract for gas optimization opportunities and list the highest-impact changes with estimated savings.