cairo-coding
OfficialOptimize Cairo code for speed and correctness.
Authorkeep-starknet-strange
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Cairo development often struggles with performance and correctness: loops can be slow, arithmetic can be expensive, and limb assembly or storage packing can be error-prone. This skill provides proven patterns and rules to write and optimize Cairo code, reducing gas costs and improving reliability.
Core Features & Use Cases
- Performance-focused patterns for arithmetic, loops, and limb packing.
- Auditing guidance to identify bottlenecks and refactor for efficiency.
- Real-world scenarios include optimizing BoundedInt usage, storage packing, and modular arithmetic in StarkNet contracts.
Quick Start
Install and run the included bounded_int_calc.py to generate BoundedInt implementations for your Cairo arithmetic needs.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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-coding Download link: https://github.com/keep-starknet-strange/garaga/archive/main.zip#cairo-coding Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.