Back to skills
SKILL.md
Cairo
ASecurityUse 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
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add bytesagain/ai-skills --skill cairo --agent claude-codeAre you the author of Cairo?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bytesagain-cairo)---
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.md
- scripts/script.sh
Attribution
Comments
Loading comments…