smithery.ai

cairo-enums

Explain Cairo enums, defining variants with data, constructing values, and using Option; use when a request involves enum design, variant syntax, or pattern-matching enum values in Cairo.

First seen Mar 23, 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 1,229 B
  • docs SUMMARY.md 206 B

History

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

SKILL.md

Cairo Enums

Overview

Guide enum definitions, variant data, and common Option-based patterns in Cairo.

Quick Use

  • Read references/enums.md before answering.
  • Show minimal examples with fully qualified variants like EnumName::Variant.
  • Call out when pattern matching is required to access variant data.

Response Checklist

  • Define the enum with clear variant payload types.
  • Construct values using EnumName::Variant(...) or EnumName::Variant for unit variants.
  • Use match or if let to extract data from variants.

Example Requests

  • "How do I define an enum with data in Cairo?"
  • "What is Option and how do I use Some/None?"
  • "Why can't I access enum fields directly?"

Cairo by Example