Skip to content
Back to skills

Cairo Components Under Hood

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentsdebugging

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cairo-components-under-hood --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Components Under Hood?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cairo Components Under Hood
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-components-under-hood/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-components-under-hood)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cairo-components-under-hood
description: 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.
---

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

Files in this skill

  • SKILL.md980 B
  • references/components-under-hood.md694 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…