smithery.ai

cairo-storage-optimization

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

First seen Mar 28, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 945 B
  • docs SUMMARY.md 209 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

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?"