Gas Fee Optimizer
Optimize transaction gas fees with timing and routing recommendations
- Type
- Plugin
- Repository
- jeremylongshore/tons-of-skills-marketplace
- 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
- 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.
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.
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-plusUsage
Optimize Gas Command
/optimize-gasOr use the shortcut:
/gasExample 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
- Current Network State - Base fee, congestion level
- Historical Patterns - Typical low-fee periods
- Transaction Type - Gas estimates for different operations
- Alternative Routes - L2 and sidechain comparison
- Urgency Factor - Time-sensitive vs routine transactions
- 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
- Equity Analyst Produces institutional-quality equity research using fundamental analysis, DCF valuation, and technical analysis to issue Buy/Hold/Sell ratings with price targets. Use when analyzing a stock or building an investment thesis. Trigger with "analyze this stock", "equity research on X". Subagent · jeremylongshore/tons-of-skills-marketplace
- Error Rate Monitor Monitor and analyze application error rates Plugin · jeremylongshore/tons-of-skills-marketplace
- Environment Config Manager Manage environment configurations and secrets across deployments Plugin · jeremylongshore/tons-of-skills-marketplace
- Eval Designs statistically rigorous experiments — A/B tests, power analysis, variance reduction, and causal inference frameworks. Use when designing an experiment, analyzing test results for validity, or auditing experimentation infrastructure. Trigger with \"design A/B test\", \"review experiment methodology\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Gastown Multi-agent orchestrator for Claude Code. Track work with convoys, sling to polecats. The Cognition Engine for AI-powered software… Plugin · jeremylongshore/tons-of-skills-marketplace
- Gamma Pack Claude Code skill pack for Gamma (24 skills) Plugin · jeremylongshore/tons-of-skills-marketplace
- Geepers Multi-agent orchestration system with MCP tools and Claude Code plugin agents. 51 specialized agents for development workflows, code quality, deployment, research, and more. Plugin · jeremylongshore/tons-of-skills-marketplace
- Ga4 Pack Claude Code skill pack for Google Analytics 4 — auth setup, Data API v1 patterns, Realtime API, BigQuery export, common reports (DAU/MAU, retention, attribution). Plugin · jeremylongshore/tons-of-skills-marketplace