Cairo — StarkNet Smart Contract Reference
name: "Cairo — StarkNet Smart Contract Reference"
by bytesagain1 · published 2026-04-01
$ claw add gh:bytesagain1/bytesagain1-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.0"
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 scripts/script.sh syntaxtypes
Cairo type system — felt252, integers, structs, enums, arrays.
bash scripts/script.sh typesstorage
Storage variable patterns and access.
bash scripts/script.sh storageevents
Event declaration, emission, and indexing.
bash scripts/script.sh eventstemplate
Generate a starter contract template.
bash scripts/script.sh template erc20
bash scripts/script.sh template ownablehelp
Show all commands.
bash scripts/script.sh helpOutput
Feedback
https://bytesagain.com/feedback/
Powered by BytesAgain | bytesagain.com
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...