setup-cairo-contracts

Scaffold a Cairo project with OpenZeppelin dependencies in Scarb.toml.

Updated Oct 17, 2025
One-click install
npx skills add https://github.com/iamcapote/emptyrepo --skill setup-cairo-contracts-iamcapote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-cairo-contracts
Source: https://github.com/iamcapote/emptyrepo/tree/main/skills/allied/openzeppelin-skills/skills/setup-cairo-contracts
Command: npx skills add https://github.com/iamcapote/emptyrepo --skill setup-cairo-contracts-iamcapote

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cairo project setup and dependency management for StarkNet, enabling quick scaffolding with OpenZeppelin Cairo packages and consistent import conventions.

Core Features & Use Cases

  • Scaffolds a complete Cairo/StarkNet project using Scarb and Starknet tooling.
  • Configures OpenZeppelin Cairo dependencies in Scarb.toml, supporting umbrella or individual packages.
  • Provides guidance on Cairo import conventions and component patterns for modular contract development.

Quick Start

Create a new Cairo project with OpenZeppelin Cairo packages by running the setup command to bootstrap the project and integrate OZ packages according to the guidelines.

Frequently Asked Questions about setup-cairo-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Cairo project with OpenZeppelin contracts on Starknet?

Setting up a Cairo project with OpenZeppelin contracts on Starknet involves scaffolding the project with Scarb, configuring Scarb.toml dependencies, and applying Cairo import conventions to establish a functional contract development environment.

What is the difference between umbrella and individual OpenZeppelin Cairo packages?

Umbrella OpenZeppelin Cairo packages bundle multiple components into a single dependency, while individual packages allow importing specific modules separately. Both are configured in Scarb.toml to provide flexibility in dependency management.

How do I configure Scarb.toml dependencies for Starknet contracts?

Configuring Scarb.toml dependencies for Starknet contracts requires specifying OpenZeppelin Cairo packages, either as an umbrella package or as individual modules, to ensure correct import conventions and component patterns are available.

Can I use OpenZeppelin components for modular contract development in Cairo?

Yes, you can use OpenZeppelin components for modular contract development in Cairo. The setup provides specific guidance on Cairo import conventions and component patterns to effectively integrate and reuse modular logic within Starknet contracts.

Do I need Scarb to scaffold a Starknet Cairo project?

Yes, Scarb is required to scaffold a Starknet Cairo project. Scarb is the primary tool used to bootstrap the project structure and manage the OpenZeppelin dependencies required for configuring and building contracts.