smithery.ai

cairo-components-under-hood

Explain how components are expanded under the hood, including HasComponent and ComponentState; use when a request involves debugging or understanding generated component code in Cairo.

First seen Mar 25, 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 980 B
  • docs SUMMARY.md 219 B

History

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

SKILL.md

Cairo Components Under the Hood

Overview

Explain the generated traits and wrappers created by component macros and how they connect to the host contract.

Quick Use

  • Read references/components-under-hood.md before answering.
  • Mention HasComponent methods for access and mutation.
  • Explain how embeddable impls become contract entry points.

Response Checklist

  • Identify the generated HasComponent trait and its methods.
  • Explain ComponentState<TContractState> as the bridge to host storage.
  • Clarify how impl aliases and #[abi(embed_v0)] expose entry points.

Example Requests

  • "What does component! generate behind the scenes?"
  • "How does ComponentState work?"
  • "Why do I need HasComponent for embedding?"