Sponsor Suno AI Music arrow_forward
Plugin

Gas Fee Optimizer

Optimize transaction gas fees with timing and routing recommendations

Type
Plugin
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Version
1.27.0
Author
Claude Code Plugins

What Gas Fee Optimizer is

Gas Fee Optimizer is a plugin published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.

Installing Gas Fee Optimizer adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.

How to install Gas Fee Optimizer

Claude Code

  1. Add the repository as a plugin marketplace: claude plugin marketplace add jeremylongshore/tons-of-skills-marketplace
  2. Install the plugin: claude plugin install gas-fee-optimizer@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter jeremylongshore/tons-of-skills-marketplace (the owner/repo shorthand works for GitHub).
  3. Find Gas Fee Optimizer in the list, click Install, then connect any connectors it needs from its Connectors tab.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/crypto/gas-fee-optimizer/.claude-plugin/plugin.json, shared under the repository's MIT license. Read the full file on GitHub.

Optimize Ethereum transaction gas fees through strategic timing, routing alternatives, and Layer 2 solutions.

Installation

/plugin install gas-fee-optimizer@claude-code-plugins-plus

Usage

Optimize Gas Command

/optimize-gas

Or use the shortcut:

/gas

Example Queries

# Check current gas prices
/gas What's the current gas price on Ethereum?

# Timing optimization
/gas Should I mint this NFT now or wait for lower gas?

# Compare networks
/gas Compare gas costs: Ethereum mainnet vs Arbitrum vs Polygon

# Transaction-specific advice
/gas I need to swap 1 ETH for USDC - what's the best strategy?

# Historical analysis
/gas When is the best time of day to make transactions?

Features

  • Real-Time Gas Analysis - Current base fee and priority recommendations
  • Historical Context - Compare to 24h and 7-day averages
  • Timing Optimization - Best time windows for low-fee transactions
  • L2 Comparisons - Gas costs across Arbitrum, Optimism, Base, zkSync
  • Sidechain Options - Polygon, Gnosis Chain alternatives
  • Cost Estimates - Transaction-specific cost calculations
  • Strategic Recommendations - Wait vs execute now analysis

What It Analyzes

  1. Current Network State - Base fee, congestion level
  2. Historical Patterns - Typical low-fee periods
  3. Transaction Type - Gas estimates for different operations
  4. Alternative Routes - L2 and sidechain comparison
  5. Urgency Factor - Time-sensitive vs routine transactions
  6. Cost-Benefit - Savings from waiting vs opportunity cost

Output Includes

  • Current gas price breakdown (base + priority fee)
  • Estimated costs for common transaction types
  • Historical comparison (percentile ranking)
  • Best time windows for transactions
  • L2/sidechain cost comparison table
  • Specific optimization strategies
  • Wait vs execute recommendation

Transaction Types Covered

  • Simple Transfers - ETH sends (~21,000 gas)
  • Token Transfers - ERC-20 operations (~65,000 gas)
  • DEX Swaps - Uniswap, SushiSwap (~150,000 gas)
  • NFT Mints - Collection minting (~200,000 gas)
  • DeFi Operations - Lending, staking, yield farming (varies)

Layer 2 Networks Compared

  • Arbitrum - Optimistic rollup, high liquidity
  • Optimism - Optimistic rollup, EVM-equivalent
  • Base - Coinbase L2, fast finality
  • zkSync - Zero-knowledge rollup, high security
  • Polygon - Sidechain, lowest cost
  • Gnosis Chain - xDai sidechain

Optimization Strategies

Timing

  • Identify low-congestion time windows
  • Historical pattern analysis
  • Weekend vs weekday comparison

Routing

  • L2 migration for frequent users
  • Sidechain alternatives for specific use cases
  • Bridge cost calculations

Technical

  • Batch transaction recommendations
  • Gas-efficient contract interactions
  • Approval optimization

Data Sources

Analysis references:

  • Etherscan Gas Oracle (primary — free API key)
  • ETH Gas Station
  • Alchemy/Infura eth_feeHistory (no-key RPC fallback)
  • L2Fees.info
  • Gas Now

Important Notes

  • Gas prices are highly volatile and unpredictable
  • Historical patterns don't guarantee future prices
  • Consider transaction urgency and value
  • Bridge costs may negate L2 savings for one-time transactions
  • Opportunity cost of waiting may exceed gas savings
  • This is optimization guidance, not financial advice

Requirements

  • Transaction type or operation description
  • (Optional) Urgency level
  • (Optional) Transaction value for cost-benefit analysis

Files

  • commands/optimize-gas.md - Main gas optimization command

License

MIT License - See LICENSE file for details

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Gas Fee Optimizer?

Gas Fee Optimizer is a plugin for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Optimize transaction gas fees with timing and routing recommendations

How do I install Gas Fee Optimizer in Claude Code?

Add the repository as a plugin marketplace: claude plugin marketplace add jeremylongshore/tons-of-skills-marketplace Install the plugin: claude plugin install gas-fee-optimizer@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.

Can I use Gas Fee Optimizer in Claude Cowork?

Open Customize → Plugins and choose Add marketplace. Enter jeremylongshore/tons-of-skills-marketplace (the owner/repo shorthand works for GitHub). Find Gas Fee Optimizer in the list, click Install, then connect any connectors it needs from its Connectors tab.

Is Gas Fee Optimizer safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.