cairo-optimization

Official

Boost Cairo performance after correctness.

Authorcartridge-gg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Improve Cairo performance after correctness is established by profiling hotspots, rewriting expensive loops/arithmetic, and hardening bounded-int usage.

Core Features & Use Cases

  • Hotspot profiling to identify costly code paths in Cairo contracts.
  • Arithmetic/loop optimization patterns to reduce gas and runtime.
  • Storage layout improvements and bounded-int hardening to improve safety and efficiency.
  • Reference to a structured workflow and benchmarking guidance.

Quick Start

Profile the target code with the profiling tool, apply one optimization class at a time, and re-run tests to quantify resource changes.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cairo-optimization
Download link: https://github.com/cartridge-gg/scoundrel/archive/main.zip#cairo-optimization

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.