Skip to content
Back to skills

Cairo Procedural Macros

ASecurity

Explain Cairo procedural macros implemented in Rust (inline/attribute/derive), project setup, and TokenStream/ProcMacroResult; use when a request involves writing or using procedural macros in Cairo.

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

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-procedural-macros --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Procedural Macros?

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

Security grade badge for Cairo Procedural Macros
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-procedural-macros/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-procedural-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-procedural-macros
description: Explain Cairo procedural macros implemented in Rust (inline/attribute/derive), project setup, and TokenStream/ProcMacroResult; use when a request involves writing or using procedural macros in Cairo.
---

# Cairo Procedural Macros

## Overview
Guide how to create and use procedural macros implemented in Rust for Cairo.

## Quick Use
- Read `references/procedural-macros.md` before answering.
- Explain the three macro kinds: inline, attribute, derive.
- Call out required Cargo + Scarb setup for macro crates.

## Response Checklist
- Use `TokenStream` input and `ProcMacroResult` output.
- Mark functions with `#[inline_macro]`, `#[attribute_macro]`, or `#[derive_macro]`.
- Configure `Cargo.toml` with `crate-type = ["cdylib"]` and `cairo-lang-macro` deps.
- Add `[cairo-plugin]` in `Scarb.toml`.

## Example Requests
- "How do I create a procedural macro for Cairo?"
- "What are inline vs attribute vs derive macros?"
- "Why do I need a Cargo.toml for Cairo macros?"

Files in this skill

  • SKILL.md1019 B
  • references/procedural-macros.md656 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…