Skip to content
Back to skills

Cairo Comments

ASecurity

Explain Cairo comment styles and documentation comments (`//`, `///`, `//!`); use when a request involves commenting code, documenting functions/modules, or generating Cairo API docs.

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

Works with

  • api

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-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Comments?

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

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

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-comments
description: Explain Cairo comment styles and documentation comments (`//`, `///`, `//!`); use when a request involves commenting code, documenting functions/modules, or generating Cairo API docs.
---

# Cairo Comments

## Overview
Provide correct Cairo comment syntax, including documentation comments for APIs and modules.

## Quick Use
- Read `references/comments.md` before answering.
- Show small examples for line comments and doc comments.
- If the user wants documentation, include `# Panics` or `# Examples` sections where appropriate.

## Response Checklist
- Choose `//` for regular comments.
- Choose `///` for item-level docs (functions, structs, traits, impls).
- Choose `//!` for module-level docs placed at the top of the file.

## Example Requests
- "How do I add documentation comments to a Cairo function?"
- "Is there a module-level doc comment in Cairo?"

## Cairo by Example
- [Comments](https://cairo-by-example.xyz/hello/comment)
- [Documentation](https://cairo-by-example.xyz/meta/doc)

Files in this skill

  • SKILL.md1 KB
  • references/comments.md538 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…