一键导入
gas-optimize
Gas optimization pass for existing Solidity contracts. Produces before/after gas diff, must show improvement to complete.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Gas optimization pass for existing Solidity contracts. Produces before/after gas diff, must show improvement to complete.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
End-to-end protocol build pipeline — contract development, testing, auditing, gas optimization, deployment, and dApp integration. Hybrid sequential/parallel execution.
Shows all available eth-agents skills with trigger phrases and usage examples.
Extracts a reusable skill pattern from the current session and saves it to user scope for automatic activation in future sessions.
Security vulnerability analysis for Solidity smart contracts. Runs static analysis, optional dynamic testing and formal verification.
Full contract build pipeline — write → TDD loop → static audit → gas optimization. Produces a production-ready contract.
Multichain smart contract deployment with Etherscan verification. Requires explicit user confirmation before mainnet execution.
| name | gas-optimize |
| description | Gas optimization pass for existing Solidity contracts. Produces before/after gas diff, must show improvement to complete. |
| triggers | ["optimize gas","reduce gas costs","gas report","too expensive","gas optimization","reduce gas usage","lower transaction costs"] |
| agent | orchestrator |
| model | sonnet |
Runs a gas optimization loop on existing contracts. gas-optimizer identifies opportunities, contract-developer applies them, gas-optimizer confirms improvement. The pipeline does not complete until a positive diff is confirmed.
eth_skill_start({ skill: "gas-optimize", totalPhases: 1 })gas-optimizer to take a baseline snapshot and identify opportunitiescontract-developer with specific, line-referenced suggestionscontract-developer applies suggestions and runs tests to confirm no regressionsgas-optimizer to run forge snapshot --diff and confirm improvementgas-report.md and completeseth_reset()"optimize gas for the Vault contract"
"reduce gas costs in my ERC20"
"run a gas report"
"this transaction is too expensive, optimize it"
# Output:
gas-report.md — before/after table, list of changes applied, total savings %
forge snapshot is unavailable (Hardhat project): use hardhat-gas-reporter output