Skip to content
Back to skills

Cairo

ASecurity

Use when writing Cairo smart contracts for StarkNet, looking up syntax and types, defining storage and events, generating contract templates, or reviewing test patterns.

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 7, 2026
blockchainbashtestinggit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add bytesagain/ai-skills --skill cairo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo?

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

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

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 — StarkNet Smart Contract Reference"
description: "Use when writing Cairo smart contracts for StarkNet, looking up syntax and types, defining storage and events, generating contract templates, or reviewing test patterns."
version: "2.0.1"
author: "BytesAgain"
homepage: https://bytesagain.com
source: https://github.com/bytesagain/ai-skills
tags: ["cairo", "starknet", "smart-contract", "blockchain", "ethereum", "zk-rollup"]
---

# Cairo — StarkNet Smart Contract Reference

Quick reference for Cairo language syntax, types, storage patterns, events, contract templates, and testing guidance for StarkNet development.

## Commands

### syntax
Core Cairo syntax reference — variables, functions, control flow.
```bash
bash scripts/script.sh syntax
```

### types
Cairo type system — felt252, integers, structs, enums, arrays.
```bash
bash scripts/script.sh types
```

### storage
Storage variable patterns and access.
```bash
bash scripts/script.sh storage
```

### events
Event declaration, emission, and indexing.
```bash
bash scripts/script.sh events
```

### template
Generate a starter contract template.
```bash
bash scripts/script.sh template erc20
bash scripts/script.sh template ownable
```

### help
Show all commands.
```bash
bash scripts/script.sh help
```

## Output
- Syntax examples with explanations
- Contract boilerplate code
- Storage and event patterns

## Feedback
https://bytesagain.com/feedback/
Powered by BytesAgain | bytesagain.com

Files in this skill

  • SKILL.md1.4 KB
  • scripts/script.sh20.1 KB

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…