Use when writing Cairo smart contracts for StarkNet, looking up syntax and types, defining storage and events, generating contract templates, or reviewing test patterns.
Scanned 9/7/2026
Install to Claude Code
npx -y skills add bytesagain/ai-skills --skill cairo --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cairo?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/bytesagain-cairo)More formats (shields.io, HTML) on the badges page.
---
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
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!