immutable-constants

Community

Gas-smart Solidity: use immutable and constants.

Authorccashwell
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This guide clarifies when to use constant, immutable, or storage variables in Solidity to optimize gas and ensure correct deployment behavior.

Core Features & Use Cases

  • Provides rules of thumb for choosing between constant, immutable, and storage based on compile-time versus deploy-time values.
  • Includes practical examples for configuration addresses, chain IDs, and numerical constants.
  • Covers naming conventions and constructor initialization patterns to maximize gas efficiency.

Quick Start

Show examples of constant and immutable declarations in Solidity with best-practice patterns.

Dependency Matrix

Required Modules

None required

Components

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: immutable-constants
Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#immutable-constants

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.