Skip to content
Back to skills

Cairo Modules Scope

ASecurity

Explain Cairo modules, `mod` declarations, privacy, and scope control; use when a request involves organizing code into modules or resolving visibility errors in Cairo.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentation

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-modules-scope --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Modules Scope?

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

Security grade badge for Cairo Modules Scope
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-modules-scope/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-modules-scope)

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-modules-scope
description: Explain Cairo modules, `mod` declarations, privacy, and scope control; use when a request involves organizing code into modules or resolving visibility errors in Cairo.
---

# Cairo Modules and Scope

## Overview
Guide module declarations, nesting, and visibility rules in Cairo.

## Quick Use
- Read `references/modules-scope.md` before answering.
- Show where `mod` must appear and what file it refers to.
- Emphasize that items are private by default and require `pub` to expose.

## Response Checklist
- Declare modules with `mod name;` or inline `mod name { ... }`.
- Use `pub` to make modules or items public.
- Use `super` or `crate` to refer to parent or crate root.

## Example Requests
- "Why can't another module access my function?"
- "Where should I put `mod hosting;`?"
- "How do I make a module public?"

## Cairo by Example
- [Modules](https://cairo-by-example.xyz/mod)
- [Visibility](https://cairo-by-example.xyz/mod/visibility)
- [Struct visibility](https://cairo-by-example.xyz/mod/struct_visibility)

Files in this skill

  • SKILL.md1 KB
  • references/modules-scope.md707 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…