cairo

Cairo language and compiler—Rust-like syntax, Sierra/CASM pipeline, Starknet contracts, linear types, and tooling.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cairo" with this command: npx skills add hairyf/blockchain-master/hairyf-blockchain-master-cairo

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

openzeppelin-contracts

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

viem

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

ton

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

envio

No summary provided by upstream source.

Repository SourceNeeds Review