Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
hairyf avatar

Cairo

  • 5 installs
  • 4 repo stars
  • Updated February 25, 2026
  • hairyf/blockchain-master

Write and compile Cairo programs and Starknet contracts, using the Rust-like syntax, Sierra/CASM pipeline, and linear-type semantics.

About

A reference for the Cairo language and compiler covering modules, types, traits, and the Sierra-to-CASM compilation pipeline for provable programs. A developer uses it when building Starknet contracts or general provable computation.

  • Rust-like syntax compiling via Sierra IR to CASM
  • Modules/crates, linear types, and Starknet contract structure

Cairo by the numbers

  • 5 all-time installs (skills.sh)
  • Ranked #338 of 479 Web3 & Blockchain skills by installs in the Skillselion catalog
  • Data as of Jul 13, 2026 (Skillselion catalog sync)
npx skills add https://github.com/hairyf/blockchain-master --skill cairo

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs5
repo stars4
Last updatedFebruary 25, 2026
Repositoryhairyf/blockchain-master

What it does

Write and compile Cairo programs and Starknet contracts, using the Rust-like syntax, Sierra/CASM pipeline, and linear-type semantics.

Files

SKILL.mdMarkdownGitHub ↗
Skill based on Cairo (starkware-libs/cairo), generated from sources/cairo. Doc path: sources/cairo/docs/reference/src/components/cairo/modules/.

Cairo is a Turing-complete language for provable programs (Starknet, general computation). It uses a Rust-like syntax, Sierra as an intermediate representation, and compiles to CASM. Use this skill for writing and compiling Cairo programs and Starknet contracts, and for understanding types, traits, and linear semantics.

Core References

TopicDescriptionReference
Modules and cratesCrates, modules, use, super, file layoutcore-modules-and-crates
FunctionsSignatures, mut/ref, methods, implicits, nopanic, local compilabilitycore-functions
Structs and enumsDefinitions, instantiation, destructuring, matchcore-structs-and-enums
Traits and implsTraits, named impls (of), impl generics, dispatchcore-traits-and-impls
Types and genericsType system, generics, Array, Felt252Dict, fixed arrayscore-types-and-generics
Linear typesMove, Copy, Drop, Destruct, Clone, snapshot (@)core-linear-types
Derive and preludeDerive macro, common traits, preludecore-derive-and-prelude

Features

Starknet

TopicDescriptionReference
Starknet contractsStorage, entry points, events, ABI, dispatchers, syscallsfeatures-starknet-contracts

Tooling

TopicDescriptionReference
CLI and compilationcairo-compile, sierra-compile, cairo-run, starknet-compilefeatures-cli-and-compilation
Match and panicMatch (enum/felt252), panic, nopanic, panic_withfeatures-match-and-panic

Best Practices

TopicDescriptionReference
Naming and memoryConventions, struct copy semantics, array/dict patternsbest-practices-naming-and-memory

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.