Skip to content
Back to skills

Cairo Macros

ASecurity

Explain Cairo declarative macros, macro hygiene, and macro vs function tradeoffs; use when a request involves writing or understanding `macro` definitions 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-macros --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Macros?

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

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

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-macros
description: Explain Cairo declarative macros, macro hygiene, and macro vs function tradeoffs; use when a request involves writing or understanding `macro` definitions in Cairo.
---

# Cairo Macros

## Overview
Explain declarative (inline) macros, pattern matching, and hygiene in Cairo.

## Quick Use
- Read `references/macros.md` before answering.
- Show a small `macro` definition with pattern and expansion.
- Mention `$defsite`, `$callsite`, and `expose!` when hygiene matters.

## Response Checklist
- Explain that macros expand at compile time and can take variable arguments.
- Note that macros must be defined or imported before use.
- Use match-like patterns with `$()` and repetition modifiers.

## Example Requests
- "How do I write an array-building macro?"
- "What are $defsite and $callsite in Cairo macros?"
- "When should I use a macro instead of a function?"

Files in this skill

  • SKILL.md900 B
  • references/macros.md675 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…