skills/smithery.ai/cairo-storage-vecs

cairo-storage-vecs

Installation
SKILL.md

Cairo Storage Vecs

Overview

Explain how storage vectors are modeled and accessed in Cairo smart contracts.

Quick Use

  • Read references/storage-vecs.md before answering.
  • Use Vec<T> only inside the storage struct.
  • Use len, get, at, append, and pop from the trait APIs.

Response Checklist

  • Mention that the length is stored at the base slot.
  • Explain element slot derivation from the base address and index.
  • Note that Vec types are storage-only and cannot be instantiated as normal variables.

Example Requests

  • "How do I append to a storage Vec?"
  • "How is the element address computed for a storage Vec?"
  • "Why can't I create Vec in a function?"
Installs
1
First Seen
Apr 17, 2026
cairo-storage-vecs from smithery.ai