weasel-gas

Detect and fix high-gas patterns in Solidity contracts with automated verification.

30|2|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/slvDev/weasel --skill weasel-gas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weasel-gas
Source: https://github.com/slvDev/weasel/tree/main/weasel/skills/weasel-gas
Command: npx skills add https://github.com/slvDev/weasel --skill weasel-gas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps Solidity developers reduce gas costs by automatically identifying expensive patterns and guiding optimizations.

Core Features & Use Cases

  • Gas-pattern detection and chain-aware analysis.
  • Automated suggestions and patches that reduce gas usage.
  • Use Case: Optimize a contract on Ethereum mainnet or other EVM chains, with automated verification after fixes.

Quick Start

Invoke the gas optimization workflow by telling the AI to run the weasel gas analysis on your Solidity project.

Frequently Asked Questions about weasel-gas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Solidity smart contracts for high gas costs on Ethereum?

Solidity gas optimization involves identifying and fixing high-gas patterns in smart contracts. This Skill targets gas-cost heavy code across Ethereum-like chains, guiding detection, filtering, fixing, and verification in an automated workflow.

What's the best way to detect gas-cost heavy code patterns in EVM smart contracts?

The best way to detect gas-cost heavy code is through chain-aware analysis. It enforces chain-detection to target specific EVM environments, automatically filtering and suggesting patches that reduce gas usage while maintaining readability and safety.

Can I use automated gas optimization on contracts deployed to other EVM chains besides Ethereum mainnet?

Yes, you can use automated gas optimization on other EVM chains. The workflow enforces chain-detection, ensuring that the analysis and suggested patches are tailored to the specific Ethereum-like chain your contract operates on.

How do I ensure smart contract safety and readability are maintained during gas optimization?

To ensure safety and readability during gas optimization, the workflow applies stepwise fixes and enforces test validation. This verifies that the automated patches reducing gas usage do not compromise the original contract logic.

How do I run an automated gas analysis workflow on a Solidity project?

To run an automated gas analysis workflow, you invoke the process by telling the AI to run the gas analysis on your Solidity project. The system then executes the detection, fixing, and verification steps automatically.