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
52%
Does it follow best practices?
Impact
83%
1.03xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.claude/skills/analyze-gas-optimization/SKILL.mdGas analysis report for DeFi pool
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%
Refactor Move registry for gas efficiency
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%
Design gas-efficient staking module
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%
919362b
Table of Contents
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.