gas-optimization
Gas optimization skill for EVM chains. Use when batching txs, optimizing gas estimates, predicting base fee, or deciding when and how to send transactions…
от jiayaoqijia★ 81 звезда на GitHub
Установить gas-optimization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Gas Optimization Skill
Help agents decide when to send and how to send cheaper: base fee prediction, batch vs separate gas comparison, per-tx estimation with suggested limits and EIP-1559 fees, and EIP-4844 blob quotes on Ethereum.
Quick Start
Base fee prediction and when-to-send:
{"chain": "ethereum", "blocks": 20}
Batch vs separate gas:
{"chain": "ethereum", "operations": ["erc20_transfer", "erc20_transfer", "uniswap_swap"]}
Estimate and optimize a specific tx:
{"chain": "ethereum", "to": "0x...", "data": "0x...", "value": "0"}
EIP-4844 blob quote (Ethereum):
{"chain": "ethereum"}
All-in-one report:
{"chain": "ethereum", "priority": "medium"}
Scripts
| Script | Purpose |
|---|---|
| base_fee_predict.py | Base fee history, simple prediction, when-to-send advice |
| batch_quote.py | Batch vs separate gas and savings (multicall-style) |
| estimate_optimize.py | eth_estimateGas + suggested gas limit and EIP-1559 fees |
| blob_quote.py | EIP-4844 blob base fee and cost per blob (Ethereum) |
| optimization_report.py | Combined report: gas now, base fee, batch hint, recommendations |
Environment Variables
| Variable | Required | Description |
|---|---|---|
ETHEREUM_RPC |
No | Override Ethereum RPC (default public RPC) |
POLYGON_RPC |
No | Override Polygon RPC |
ARBITRUM_RPC |
No | Override Arbitrum RPC |
OPTIMISM_RPC |
No | Override Optimism RPC |
BASE_RPC |
No | Override Base RPC |
ETHERSCAN_API_KEY |
No | For ETH price USD conversion (optional) |
Best Practices
- Check base fee trend before large txs; avoid peak hours when possible.
- Batch multiple operations (e.g. multicall) to save on repeated base fee and overhead.
- Use estimate_optimize for contract calls; use suggested gas limit with ~10–15% buffer.
- EIP-4844 blobs are for large data (e.g. L2 batches); use only when needed.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- README.md
- SOURCE.md
- TRUST.auto.yaml
- scripts/base_fee_predict.py
- scripts/batch_quote.py
- scripts/blob_quote.py
- scripts/common.py
- scripts/estimate_optimize.py
- scripts/optimization_report.py
FAQ
Что делает скилл gas-optimization?
Gas optimization skill for EVM chains. Use when batching txs, optimizing gas estimates, predicting base fee, or deciding when and how to send transactions cheaper (EIP-4844 blob, batch vs separate).
Как установить скилл gas-optimization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gas-optimization запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…