setup-cairo-contracts
OfficialBootstrap a Cairo Starknet project with OpenZeppelin
System Documentation
What problem does it solve?
This Skill removes friction for developers who need to create and configure Cairo projects on Starknet and correctly integrate OpenZeppelin Contracts for Cairo, including selecting umbrella versus individual packages and applying import and component patterns.
Core Features & Use Cases
- Project scaffolding: Guidance to install the Starknet toolchain and scaffold a Scarb project with a Starknet test runner.
- Dependency configuration: Instructions for adding OpenZeppelin umbrella or individual package entries to Scarb.toml and notes on versioning exceptions.
- Import conventions & component patterns: Clear examples of import paths for umbrella vs individual packages and how to integrate components using the component! macro and embedded impls.
- Use case: Rapidly scaffold a new ERC20 contract project, choose only the token package to reduce compile time, and wire up component integrations for upgradeability.
Quick Start
Create a new Scarb Starknet project with a test runner, add the appropriate OpenZeppelin dependency entries to Scarb.toml (umbrella or individual packages), and update your Cairo imports and component implementations to match the chosen package layout.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: setup-cairo-contracts Download link: https://github.com/OpenZeppelin/openzeppelin-skills/archive/main.zip#setup-cairo-contracts Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.