smithery.ai

cairo-deref-coercion

Explain Cairo deref coercion with Deref/DerefMut traits and Target associated type; use when a request involves wrapper types, field access through wrappers, or deref behavior in Cairo.

First seen Mar 30, 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 949 B
  • docs SUMMARY.md 213 B

History

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

SKILL.md

Cairo Deref Coercion

Overview

Guide how deref coercion works via Deref and DerefMut, and when it applies.

Quick Use

  • Read references/deref-coercion.md before answering.
  • Show the Deref trait and a wrapper example.
  • Note that DerefMut only applies to mutable variables.

Response Checklist

  • Implement Deref<T> with type Target and fn deref(self: T) -> Target.
  • Use deref coercion to access fields on the wrapped type.
  • Use DerefMut when you need mutable-only coercion; it does not make the target mutable by itself.

Example Requests

  • "Why can I access fields on a wrapper type?"
  • "How do I implement Deref for a custom type?"
  • "Why does DerefMut require a mut variable?"