Skip to content
Back to skills

Cairo Storage Optimization

ASecurity

Explain Starknet storage cost optimization, packing values, and bitwise operations; use when a request involves reducing storage slots or implementing packed storage in Cairo.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cairo-storage-optimization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Storage Optimization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cairo Storage Optimization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-storage-optimization/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-storage-optimization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cairo-storage-optimization
description: Explain Starknet storage cost optimization, packing values, and bitwise operations; use when a request involves reducing storage slots or implementing packed storage in Cairo.
---

# Cairo Storage Optimization

## Overview
Show how to reduce storage costs by packing multiple values into one slot and manipulating bits safely.

## Quick Use
- Read `references/storage-optimization.md` before answering.
- Use shift and mask operations with `core::integer::bitwise` or arithmetic.
- Mention StorePacking for automatic packing where appropriate.

## Response Checklist
- Ensure packed values fit within 251 bits total.
- Use explicit masks and shifts for extraction.
- Consider a custom struct with StorePacking for reusable packing logic.

## Example Requests
- "How do I pack two u128 values into one storage slot?"
- "What is StorePacking in Cairo?"
- "How do I unpack a packed storage value?"

Files in this skill

  • SKILL.md945 B
  • references/storage-optimization.md663 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…