CtrlK
BlogDocsLog inGet started
Tessl Logo

analyze-gas-optimization

Analyze and optimize Aptos Move contracts for gas efficiency, identifying expensive operations and suggesting optimizations. Triggers on: 'optimize gas', 'reduce gas costs', 'gas analysis', 'make contract cheaper', 'gas efficiency', 'analyze gas usage', 'reduce transaction costs'.

64

1.03x
Quality

52%

Does it follow best practices?

Impact

83%

1.03x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./.claude/skills/analyze-gas-optimization/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

Gas Cost Analysis for a DeFi Liquidity Pool

Gas analysis report for DeFi pool

Criteria
Without context
With context

Report Summary section

100%

100%

Optimizations Applied section

100%

100%

Measurements table

100%

100%

Recommendations section

100%

100%

Identifies repeated storage reads

100%

100%

Recommends single storage read

100%

100%

Identifies stored computed value

100%

100%

Recommends lazy evaluation

100%

100%

Identifies O(n) vector lookup

100%

100%

Recommends Table for O(1) lookup

100%

100%

Identifies large event structs

100%

100%

Recommends minimal event data

100%

100%

Does NOT remove security checks

100%

100%

84%

10%

Refactor NFT Marketplace Registry for High-Volume Trading

Refactor Move registry for gas efficiency

Criteria
Without context
With context

Table replaces vector listings

100%

100%

O(1) lookup in find_listing

100%

100%

Bitwise flags replace bool fields

100%

100%

Named flag constants defined

100%

100%

Consolidated storage reads

100%

100%

Redundant listing_fee field removed

0%

0%

Stored total_value_locked removed or lazily computed

0%

0%

Reduced event struct size

0%

100%

Security checks preserved

100%

100%

Appropriate integer types

100%

100%

66%

-1%

Build a Gas-Efficient Token Staking Module

Design gas-efficient staking module

Criteria
Without context
With context

Table/SmartTable for stakers

71%

42%

No vector linear lookup

100%

100%

Lazy reward calculation

64%

71%

Struct fields use small integer types

0%

0%

Bitwise flags for state

0%

0%

Minimal event data

40%

100%

Single storage read per function

100%

60%

Security checks NOT removed

100%

100%

gas_notes.md documents costs

100%

100%

Early return in validation

100%

100%

Repository
aave/aptos-aave-v3
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.