/ethskills:gasfrom ethskills
Quotes gas and dollar costs for Ethereum transactions and deployments. Measures live gas prices, ETH/USD rates, and L1 data fees to inform chain selection and EIP-1559 fee settings.
Ships in ethskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your trained gas-price and ETH-price priors are stale. Never quote a transaction cost or exclude a chain for cost reasons without measuring the relevant chain now.
# Use the project's own RPC provider (Alchemy, Infura, QuickNode) for the chain under consideration.
cast gas-price --rpc-url "$MAINNET_RPC_URL"
cast gas-price --rpc-url "$BASE_RPC_URL"
# No provider key yet? Public endpoints work for a one-off read, but are rate-limited.
# Never ship them in an app. Mainnet: https://ethereum-rpc.publicnode.com Base: https://mainnet.base.org
cast gas-price returns the base fee plus a suggested tip — what a transaction actually pays, so it is the reading the formula below takes. cast base-fee returns the base fee alone; use it for setting maxFeePerGas, and never add a separate priority fee on top of a gas-price reading.
Do not replace a failed lookup with a remembered number. Fetch ETH/USD live before quoting dollars: the mainnet Chainlink feed at 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419 (latestRoundData, 8 decimals), or https://api.coinbase.com/v2/prices/ETH-USD/spot.
Estimate the actual operation when possible. Otherwise state and justify the gas-used assumption:
# Mainnet, and the execution half of any L2
cost_usd = gas_used × gas_price_gwei × 1e-9 × eth_usd
# On an OP-stack L2 or Base the L1 data fee is a separate component and is not in
# gas_price. Read l1Fee off a recent receipt, or GasPriceOracle.getL1Fee at
# 0x420000000000000000000000000000000000000F — do not estimate it.
# Since Isthmus a chain may also charge an operator fee. It is 0 on most
# chains; read it with GasPriceOracle.getOperatorFee(gas_used), don't hand-compute.
cost_usd = (gas_used × gas_price_gwei × 1e-9 + l1_fee_eth + operator_fee_eth) × eth_usd
cast gas-price and cast base-fee print wei, not gwei — divide by 1e9. Check the converted figure back against the raw reading; a dropped or extra factor of 1e9 is the most common way a correctly measured chain still yields a stale-looking cost.
Choose from the measured workload:
Derive EIP-1559 fee fields from the target chain immediately before submission. Do not hardcode them or port a mainnet priority-fee constant to an L2.
For L2 optimization, measure which component dominates before deciding what to cut: compare gasUsed × effectiveGasPrice against l1Fee on current receipts. Do not import a pre-Dencun calldata-cost assumption, and do not assume the reverse either. Non-OP-stack rollups use different fee models, so measure them independently.
Before you finish: send a one-line note via feedback/SKILL.md — issue or praise.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub austintgriffith/ethskills --plugin ethskills20 skills in this plugin
/addressesUse whenever a contract or token address goes into code, config, or a transaction — a token, a router, a pool, a lending market, a bridge — including choosing which venue to route a swap through and reusing an address across chains. Has checked addresses for the major tokens, Uniswap, Aave, Compound, Chainlink, Safe, ERC-4337, ENS and Robinhood Chain./auditUse when asked to audit or security-review EVM smart contracts: find vulnerabilities, judge exploit impact, or produce a ranked audit report. Not for guidance while the contracts are being written (`/security`)./building-blocksUse when selecting or integrating DEX pools, lending markets, yield venues, gauges, reward systems, or multiple protocols in one flow on Ethereum or an L2 — including vault and harvest strategies, and build requests naming Aerodrome, Velodrome, Uniswap, Aave, Curve, GMX or Pendle. Not for contract address lookup (`addresses`) or for choosing a chain (`l2s`).Other plugins' skills for the same job