zaryab2000

20 mods across 1 repository, 7 stars between them.

zaryab2000/decipher-gas-optimizoor

Plugin Claude Code

Analyzes Solidity smart contracts for gas inefficiencies. Detects storage packing gaps, loop anti-patterns, custom error opportunities, visibility mismatches, unchecked arithmetic, calldata vs memory decisions, and deployment cost issues. Enforces gas regression detection on every file save via forge integration.

7 6mo ago A tokens not measured original MIT

gas-optimizer

04

zaryab2000/decipher-gas-optimizoor

Agent

Deep gas optimization audit agent for Foundry-based Solidity codebases. Runs a comprehensive multi-file analysis covering all 11 skill domains (storage layout, loops, calldata, deployment, type optimization, custom errors, compiler optimizer, immutable/constant, unchecked arithmetic, visibility, event logging). Use…

7 6mo ago A 95 tokens original MIT

explain

08

zaryab2000/decipher-gas-optimizoor

Command

Explain the EVM mechanic behind a specific gas optimization pattern with exact cost numbers, before/after code, and when NOT to apply it.

7 6mo ago A 0 tokens original MIT

watch

09

zaryab2000/decipher-gas-optimizoor

Command

Toggle real-time gas annotation mode. When active, Claude appends a gas impact note after every Solidity edit it makes in the current session.

7 6mo ago A 0 tokens original MIT

calldata

10

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects calldata inefficiencies in Solidity external functions: memory instead of calldata for array and struct parameters, smaller types with masking overhead for computation-only parameters, and multiple bool parameters that could be packed into a bitmap. Use when writing or reviewing external function signatures in…

7 6mo ago A 86 tokens original MIT

compiler-optimizer

11

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Analyzes foundry.toml optimizer configuration for Foundry-based Solidity projects. Detects suboptimal optimizerruns settings relative to contract call frequency, missing viair flag for complex contracts, and outdated Solidity versions missing built-in optimizer gains. Covers CO-001 (optimizerruns tuning), CO-002…

7 6mo ago A 113 tokens original MIT

custom-errors

12

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects all require() with string messages and revert("string") calls in Solidity contracts and converts them to custom errors. Never allows string-based reverts to pass without flagging. Covers CE-001 (require with string → custom error), CE-002 (revert string → custom error), CE-003 (parameterless errors that should…

7 6mo ago A 97 tokens original MIT

deployment

13

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects deployment cost inefficiencies in Solidity: factory patterns that deploy full contracts when ERC-1167 minimal proxies would suffice, non-payable admin functions with unnecessary ETH check overhead, dead code paths inflating bytecode, and opportunities for vanity addresses via CREATE2 for high-frequency…

7 6mo ago A 107 tokens original MIT

event-logging

14

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects storage writes used for off-chain-only historical data and recommends replacing them with event emission. Also identifies events missing indexed parameters on filterable fields. LOG1 costs 375 gas vs cold SSTORE 22,100 gas for off-chain data. Covers EV-001 (storage → events for historical data) and EV-002…

7 6mo ago A 97 tokens original MIT

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects state variables that should be declared constant or immutable in Solidity contracts. Constant for compile-time-known values (inlined by compiler, zero runtime cost), immutable for constructor-set-once values (baked into bytecode, 3 gas per read vs 2100 gas cold SLOAD). Covers IC-001 (constant for literal…

7 6mo ago A 111 tokens original MIT

loop-optimization

16

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects loop gas inefficiencies in Solidity contracts: uncached array length in loop conditions, storage variable reads inside loop bodies, unprotected loop counters without unchecked, post-increment usage, do-while opportunities, and short-circuit ordering. Use when writing or reviewing for/while loops in…

7 6mo ago A 103 tokens original MIT

storage-layout

17

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects storage slot inefficiencies in Solidity contracts: struct packing gaps, suboptimal field ordering, mapping-vs-array tradeoffs, SSTORE2 for large static data, transient storage for within-transaction state, and batch mutation patterns. Use when writing or reviewing struct definitions, state variable…

7 6mo ago A 130 tokens original MIT

type-optimization

18

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects type-related gas inefficiencies in Solidity: small integer types with masking overhead for computation-only variables (use uint256 instead), string state variables that should be bytes32 for fixed short identifiers, multiple standalone bool state variables that should be a uint256 bitmap, and unnecessary type…

7 6mo ago A 91 tokens original MIT

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Identifies arithmetic operations in Solidity where overflow or underflow is provably impossible and wraps them in unchecked {} blocks to eliminate Solidity 0.8+ overflow guard opcodes (30 gas per operation). Covers UA-001 (general unchecked arithmetic with proven bounds) and UA-002 (post-comparison unchecked…

7 6mo ago A 100 tokens original MIT

visibility

20

zaryab2000/decipher-gas-optimizoor

Skill Claude CodeCodex

Detects public functions that could be external and explicit getters that duplicate auto-generated Solidity getters. external functions skip the internal entry point and enable calldata for array/struct parameters, saving 24+ gas per call for simple types and thousands for arrays. Covers VI-001 (public → external when…

7 6mo ago A 88 tokens original MIT