Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/nirholas/three.ws/ethereum-gas-optimizationnpx skills add nirholas/three.ws --skill ethereum-gas-optimizationgit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/ethereum-gas-optimization)<a href="https://agentmods.dev/skills/nirholas/three.ws/ethereum-gas-optimization"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/ethereum-gas-optimization.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01216 |
| Opus 5 | $0.00018 | $0.00608 |
| Sonnet 5 | $0.00007 | $0.00243 |
| Haiku 4.5 | $0.00004 | $0.00122 |
Grade A, and why
ethereum-gas-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ethereum Gas Optimization
When to use this skill
Use when the user asks about:
- Reducing gas costs for Ethereum transactions
- Best time to submit transactions for lower fees
- Whether to use L2 vs mainnet for a specific operation
- Understanding gas pricing mechanics (EIP-1559)
- Optimizing DeFi operations for gas efficiency
- Estimating transaction costs before execution
Gas Optimization Framework
1. Gas Price Mechanics (EIP-1559)
Understanding the fee model:
- Base fee: Set by the network — adjusts up/down based on block fullness. This portion is burned.
- Priority fee (tip): Paid to validators — determines transaction priority within a block.
- Max fee: Your maximum willingness to pay (base + priority). Unused portion is refunded.
- Gas limit: Maximum gas units the transaction can consume. Set too low = transaction fails. Set too high = overpaying.
- Total cost: Gas Used * (Base Fee + Priority Fee)
Current gas prices can be checked on:
- Etherscan gas tracker
- blocknative.com
- In-wallet gas estimation
2. Timing Strategies
Gas prices follow predictable patterns:
- Lowest fees: Weekends (Saturday/Sunday), and weekday early morning UTC (2:00-8:00 UTC) when US/Asia overlap is minimal
- Highest fees: Weekday US market hours (14:00-20:00 UTC), especially during NFT mints or market volatility
- Avoid: Periods of extreme market volatility — gas spikes during crashes as everyone rushes to manage positions
- Tools: Gas price alert services that notify when fees drop below your threshold
3. Transaction Optimization Techniques
Reduce gas consumption:
- Batch transactions: Use multicall or batching contracts to combine multiple operations into one transaction
- Approve exact amounts: Approving the exact amount needed uses slightly less gas than unlimited approval, but the gas savings are minimal — the real benefit is security
- Token transfers: ERC-20 transfers cost ~65K gas. ETH transfers cost only 21K gas. Minimize unnecessary token movements.
- Avoid partial fills: Set appropriate slippage to avoid reverted transactions that still cost gas
- Cancel with replacement: If a transaction is stuck, send a 0 ETH transaction to yourself with the same nonce and higher gas price
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 102 lines · 37 tokens per session scan A 28edb75b9847
ethereum-gas-optimization is a skill published in the GitHub repository nirholas/three.ws (110 stars, last pushed today), licensed Apache-2.0. It adds 37 tokens to every session and 1,216 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
blockchain-cross-chain
Cross-chain protocols, IBC, LayerZero, Wormhole, Axelar, CCIP, bridges, atomic composability, shared sequencer, cross-chain message passing. Covers trust models (light clients, external validators, ZK proofs), bridge security, token representation (canonical, wrapped, native), relayer economics, and cross-chain…
blockchain-security
Use this skill when asked about blockchain security, smart contract auditing, DeFi threat modeling, blockchain incident response, bug bounty programs, economic security, formal verification of smart contracts, and blockchain-specific security analysis. Languages: Solidity, Python, Rust, Haskell. Covers threat modeling…
blockchain-testing
Use this skill when asked about testing smart contracts, Foundry tests, Hardhat tests, fuzz testing, invariant testing, property-based testing, formal verification, audit preparation, integration testing for dApps, and blockchain testing patterns. Covers Foundry cheatcodes, Echidna fuzzing, Certora verification…
xpr-network-dev
XPR Network (formerly Proton) blockchain development - proton-tsc smart contracts, @proton CLI and web SDK, RPC and Hyperion queries, DeFi (MetalX, Alcor, LOAN), NFTs, the XPR Agents job board, node and Hyperion operations. Use for anything mentioning XPR, Proton, or @proton packages.
blockchain-management
Use this skill when asked about blockchain project management, DAO governance, multi-sig operations, treasury management, tokenomics design, and web3 project methodology. Languages: Solidity, TypeScript, Python. Covers DAO governance frameworks (Compound Governor, Aave, Snapshot, Tally), multi-sig wallet operations…
write-contracts
Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement…