smithery.ai

cairo-smart-pointers

Explain Cairo smart pointers, especially Box types, boxed memory segments, and recursive types; use when a request involves boxing values, avoiding copies, or defining recursive types in Cairo.

First seen Apr 25, 2026

Installation

$ npx skills add https://smithery.ai

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 995 B
  • docs SUMMARY.md 221 B

History

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

SKILL.md

Cairo Smart Pointers

Overview

Explain how smart pointers manage memory safely, with a focus on Box<T>.

Quick Use

  • Read references/smart-pointers.md before answering.
  • Use BoxTrait::new and unbox() in examples.
  • Highlight when boxing is necessary (recursive types, large values).

Response Checklist

  • Explain that arrays and dictionaries are smart pointers owning memory segments.
  • Use Box<T> to store data in the boxed segment and move only pointers.
  • Use boxes to break recursive type size issues.

Example Requests

  • "How do I make a recursive enum compile?"
  • "When should I use Box in Cairo?"
  • "How do I access a boxed value?"

Cairo by Example