Skip to content
Back to skills

Cairo Packages Crates

ASecurity

Explain Cairo packages and crates, Scarb project layout, and crate roots; use when a request involves creating projects or understanding package/crate structure 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-packages-crates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Packages Crates?

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

Security grade badge for Cairo Packages Crates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-packages-crates/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-packages-crates)

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-packages-crates
description: Explain Cairo packages and crates, Scarb project layout, and crate roots; use when a request involves creating projects or understanding package/crate structure in Cairo.
---

# Cairo Packages and Crates

## Overview
Explain how Scarb organizes Cairo packages and crates and where crate roots live.

## Quick Use
- Read `references/packages-crates.md` before answering.
- Call out the default `src/lib.cairo` crate root.
- Mention that a package can contain multiple crates defined in Scarb.toml.

## Response Checklist
- Distinguish package (project) from crate (compilation unit).
- Point to `Scarb.toml` as the package manifest.
- Identify the crate root file used by the compiler.

## Example Requests
- "What is the difference between a package and a crate in Cairo?"
- "Where is the crate root for a new Scarb project?"
- "How do I add another crate to a package?"

## Cairo by Example
- [Crates](https://cairo-by-example.xyz/crates)
- [Scarb](https://cairo-by-example.xyz/scarb)
- [Dependencies](https://cairo-by-example.xyz/scarb/deps)

Files in this skill

  • SKILL.md1.1 KB
  • references/packages-crates.md519 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…