Skip to content
Back to skills

Cairo Component Dependencies

ASecurity

Explain component dependency patterns, trait bounds, and dependency access helpers; use when a request involves components that rely on other components in Cairo.

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

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-component-dependencies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Component Dependencies?

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

Security grade badge for Cairo Component Dependencies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-component-dependencies/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-component-dependencies)

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-component-dependencies
description: Explain component dependency patterns, trait bounds, and dependency access helpers; use when a request involves components that rely on other components in Cairo.
---

# Cairo Component Dependencies

## Overview
Explain how components depend on other components without embedding them directly.

## Quick Use
- Read `references/component-dependencies.md` before answering.
- Use trait bounds on impl blocks to require dependent components.
- Use the helper macros to access dependencies from a component state.

## Response Checklist
- Declare dependencies with trait bounds on the host contract type.
- Use `get_dep_component!` or `get_dep_component_mut!` to access the dependency.
- Ensure the host contract embeds all required components.

## Example Requests
- "How can my component call another component?"
- "Why do I need trait bounds for components?"
- "How do I access a dependency from ComponentState?"

Files in this skill

  • SKILL.md965 B
  • references/component-dependencies.md457 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…