Gas optimization plugins for Foundry-based Solidity projects — automated regression detection, 11 optimization skill domains, and 5 analysis commands.
npx claudepluginhub zaryab2000/decipher-gas-optimizoorAnalyzes 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.
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Curated collection of 129 specialized Claude Code subagents organized into 10 focused categories
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
Dedicated Solidity Smart Contract Gas optimizoor for your Solidity projects.
All you need to optimize your smart contracts.
Inside Claude Code, run:
Step 1: Add the marketplace
/plugin marketplace add zaryab2000/decipher-gas-optimizoor
Step 2: Install the marketplace
/plugin install decipher-gas-optimizoor@decipher-gas-optimizoor-marketplace
Prerequisites: Foundry installed · Claude Code installed · a Solidity project with foundry.toml and at least one test
The regression guard compares every future save against this snapshot. Run once, then commit it.
/decipher-gas-optimizoor:baseline --update
git add .gas-snapshot && git commit -m "chore: gas baseline"
Do not add
.gas-snapshotto.gitignore— it must be committed for the regression guard to work.
/decipher-gas-optimizoor:analyze src/
You'll get a prioritized findings report: severity, file + line, estimated gas saving, before/after code, and a top-3 action list.
/decipher-gas-optimizoor:watch
After activation, every Solidity edit Claude makes gets a gas impact note appended to the response. Turn it off with /decipher-gas-optimizoor:watch --off.
| Command | What it does | Forge |
|---|---|---|
/decipher-gas-optimizoor:analyze [path] [--threshold N] | Full gas analysis of a contract or directory. Reports all findings sorted by estimated gas saving. | ✅ |
/decipher-gas-optimizoor:compare [ref1] [ref2] | Compares gas snapshots between two git refs (default: HEAD~1 vs HEAD). Shows per-function delta split into regressions and improvements. | ✅ |
/decipher-gas-optimizoor:baseline [--update|--show X] | Manages the .gas-snapshot baseline. --update regenerates it; --show X filters to matching functions; no args prints the full summary. | --update only |
/decipher-gas-optimizoor:explain <pattern> | EVM mechanic, exact gas numbers, before/after code, and when NOT to apply — for any listed pattern. | ❌ |
/decipher-gas-optimizoor:watch [--off] | Toggles per-edit gas annotation mode. Session-scoped. | ❌ |
--threshold — suppress findings below a minimum gas saving. Default is 100:
/decipher-gas-optimizoor:analyze src/ --threshold 500
Patterns for :explain — cold-sload · slot-packing · unchecked · custom-errors · calldata · external-vs-public · immutable · loop-caching · unbounded-loop
Skills fire automatically as you write Solidity. You never invoke them directly.