Correct
cursor/plugins
Find the mistakes agents keep repeating in this repo and make each one impossible.
Proper use of immutable and constant variables for gas savings and correctness.
$ npx skills add ccashwell/evm-cortex --skill immutable-constants -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex immutable-constants --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/immutable-constants .claude/skills/immutable-constants && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "immutable-constants" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/immutable-constants into .claude/skills/immutable-constants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immutable-constants", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ccashwell/evm-cortex/tree/main/skills/immutable-constantsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ccashwell/evm-cortex --skill immutable-constants -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex immutable-constants --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/immutable-constants .agents/skills/immutable-constants && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "immutable-constants" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/immutable-constants into .agents/skills/immutable-constants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immutable-constants", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill immutable-constants -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex immutable-constants --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/immutable-constants .cursor/skills/immutable-constants && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "immutable-constants" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/immutable-constants into .cursor/skills/immutable-constants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immutable-constants", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ccashwell/evm-cortex.git --path skills/immutable-constants--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ccashwell/evm-cortex --skill immutable-constants -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex immutable-constants --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/immutable-constants .gemini/skills/immutable-constants && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "immutable-constants" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/immutable-constants into .gemini/skills/immutable-constants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immutable-constants", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ccashwell/evm-cortex immutable-constantsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ccashwell/evm-cortex --skill immutable-constants -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/immutable-constants .github/skills/immutable-constants && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "immutable-constants" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/immutable-constants into .github/skills/immutable-constants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immutable-constants", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill immutable-constants -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ccashwell/evm-cortex immutable-constants --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/immutable-constants .opencode/skills/immutable-constants && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "immutable-constants" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/immutable-constants into .opencode/skills/immutable-constants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immutable-constants", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
immutable-constantsProper use of immutable and constant variables for gas savings and correctness.
Immutable Constants is an agent skill from ccashwell/evm-cortex. Proper use of immutable and constant variables for gas savings and correctness. Use when deploying contracts with fixed configuration, optimizing gas, or deciding between constant, immutable, and storage variables.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.
Read from SKILL.md and the folder at commit f8f3301. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are solidity).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Immutable Constants loads about 1.5k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 300 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 300 words, ~1,531 tokens.
.claude/skills/immutable-constants/SKILL.md (or your agent's skills folder).| Type | Set At | Stored In | SLOAD Cost | Use Case |
|---|---|---|---|---|
constant | Compile time | Bytecode (inlined) | 0 gas | Known at write time: math constants, hashes, selectors |
immutable | Deploy time (constructor) | Bytecode (appended) | 0 gas | Known at deploy: addresses, chain IDs, config |
| Storage | Runtime | Storage slot | 2,100 cold / 100 warm | Must change after deployment |
Must be known at compile time. Value is inlined everywhere it's used.
contract Constants {
// Numeric constants
uint256 public constant MAX_BPS = 10_000;
uint256 public constant WAD = 1e18;
uint256 public constant RAY = 1e27;
uint256 public constant PRECISION = 1e18;
// Hash constants — computed at compile time
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
// EIP-712 type hashes
bytes32 public constant PERMIT_TYPEHASH = keccak256(
"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
);
// EIP-1967 slots
bytes32 internal constant _IMPLEMENTATION_SLOT =
bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1);
// Selector constants
bytes4 public constant TRANSFER_SELECTOR = IERC20.transfer.selector;
}uint256, int256, bool, address, bytes1-bytes32)keccak256() of literal valuesconstant: values depending on runtime state, block.timestamp, msg.senderSet once in the constructor, stored in bytecode. Cannot be changed after deployment.
contract ImmutableConfig {
address public immutable WETH;
address public immutable FACTORY;
address public immutable ORACLE;
uint256 public immutable DEPLOYMENT_CHAIN_ID;
uint256 public immutable CREATED_AT;
uint8 public immutable UNDERLYING_DECIMALS;
constructor(
address weth,
address factory,
address oracle,
address underlying
) {
if (weth == address(0)) revert ZeroAddress();
if (factory == address(0)) revert ZeroAddress();
if (oracle == address(0)) revert ZeroAddress();
WETH = weth;
FACTORY = factory;
ORACLE = oracle;
DEPLOYMENT_CHAIN_ID = block.chainid;
CREATED_AT = block.timestamp;
UNDERLYING_DECIMALS = IERC20Metadata(underlying).decimals();
}
}address, uint*, int*, bool, bytes1-bytes32immutable: string, bytes, arrays, structs, mappingscontract GasComparison {
// Storage: 2,100 gas cold SLOAD, 100 gas warm SLOAD
address public storageVar;
// Immutable: 0 gas — loaded from bytecode via PUSH32
address public immutable immutableVar;
// Constant: 0 gas — inlined at every usage site
uint256 public constant CONSTANT_VAR = 42;
constructor(address _addr) {
storageVar = _addr;
immutableVar = _addr;
}
// Reading storageVar: ~2,100 gas (cold) or ~100 gas (warm)
// Reading immutableVar: ~3 gas (PUSH32)
// Reading CONSTANT_VAR: ~3 gas (PUSH32, inlined)
}For a function that reads an address 3 times:
// BAD: string constant — still uses dynamic encoding
string public constant NAME = "MyProtocol";
// GOOD: bytes32 constant — fixed size, cheaper to read and compare
bytes32 public constant NAME = "MyProtocol";
// Converting bytes32 to string (offchain or in rare onchain cases)
function nameAsString() external pure returns (string memory) {
return string(abi.encodePacked(NAME));
}// Constants: UPPER_SNAKE_CASE
uint256 public constant MAX_SUPPLY = 1_000_000e18;
// Immutables: UPPER_SNAKE_CASE (they're functionally constant post-deploy)
address public immutable TREASURY;
// Storage variables: camelCase
uint256 public totalDeposited;Immutables are stored in bytecode, not storage. In upgradeable proxies, the proxy reads the implementation's bytecode. This means immutables can be used in implementations — they're set in the implementation's constructor (which runs at deployment, not through the proxy).
contract VaultImplementation is Initializable {
// These are set when the implementation contract is deployed
address public immutable WETH;
address public immutable FACTORY;
constructor(address weth, address factory) {
WETH = weth;
FACTORY = factory;
_disableInitializers();
}
function initialize(address admin) external initializer {
// Storage variables set here (via proxy's storage)
__Ownable_init(admin);
}
}constantimmutableconstant and immutablebytes32 preferred over string for short constant strings© ccashwell, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/immutable-constants of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Immutable Constants next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Immutable Constants this skillccashwell/evm-cortex | 131 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Correctcursor/plugins | 10k | 3 repos | ~612 | Automated safety check: Pass | None | |
| CorrectionNxcoreAI/EverRoom | 3k | — | ~290 | Automated safety check: Pass | Custom licence | |
| Immutable Patternsthedaviddias/Front-End-Checklist | 74k | — | ~505 | Automated safety check: Pass | MIT | |
| Context Savegarrytan/gstack | 136k | — | ~9.7k | Automated safety check: Notes | MIT | |
| Save As PDFasgeirtj/system_prompts_leaks | 69k | — | ~2.3k | Automated safety check: Pass | CC0-1.0 |
cursor/plugins
Find the mistakes agents keep repeating in this repo and make each one impossible.
NxcoreAI/EverRoom
Compute Room overview corrections—citation corrections as per-claim edits and general corrections as a single proposal.
thedaviddias/Front-End-Checklist
A skill your agent uses when reviewing scripts, client components, bundles, or runtime behavior related to Prefer immutable data patterns.
garrytan/gstack
Captures git state, decisions made and remaining work so that a later session can resume the task without losing context.
asgeirtj/system_prompts_leaks
Print-ready PDF export
AgriciDaniel/claude-obsidian
Files a specific answer, decision or insight you point to in a conversation as one reviewed note in your Obsidian vault, and only when you ask for it.
ccashwell/evm-cortex
A skill your agent uses when preparing for a security audit, performing reconnaissance on a new codebase, or creating a protocol overview.
ccashwell/evm-cortex
A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.
ccashwell/evm-cortex
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
ccashwell/evm-cortex
A skill your agent uses when running a local Ethereum node with Anvil.
ccashwell/evm-cortex
A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.
ccashwell/evm-cortex
A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.
Proper use of immutable and constant variables for gas savings and correctness. Immutable Constants is an agent skill from ccashwell/evm-cortex. Proper use of immutable and constant variables for gas savings and correctness.
Immutable Constants fits situations like: deploying contracts with fixed configuration; deciding between constant; storage variables.
Run `npx skills add ccashwell/evm-cortex --skill immutable-constants -a claude-code`. Or copy the skill folder (skills/immutable-constants in ccashwell/evm-cortex) into .claude/skills/immutable-constants in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill immutable-constants -a codex`. Or copy the skill folder (skills/immutable-constants in ccashwell/evm-cortex) into .agents/skills/immutable-constants in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ccashwell/evm-cortex --skill immutable-constants -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/immutable-constants, .gemini/skills/immutable-constants, .github/skills/immutable-constants and .opencode/skills/immutable-constants in your project.
SKILL.md names no scripts, command-line tools or credentials: Immutable Constants is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Immutable Constants is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Immutable Constants: Correct (cursor/plugins, 10k stars), Correction (NxcoreAI/EverRoom, 3k stars), Immutable Patterns (thedaviddias/Front-End-Checklist, 74k stars) and Context Save (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ccashwell (a GitHub user) maintains it in ccashwell/evm-cortex, which has 131 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on September 30, 2026.
Source: ccashwell/evm-cortex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.