smithery.ai

cairo-storage-vecs

Explain Starknet storage vectors with VecTrait and MutableVecTrait, element addressing, and operations; use when a request involves Vec-based storage in Cairo contracts.

First seen Apr 17, 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 903 B
  • docs SUMMARY.md 195 B

History

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

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