setup-cairo-contracts

Automate Scarb/Starknet project scaffolding with OpenZeppelin Cairo dependencies.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/phpmac/foundry --skill setup-cairo-contracts-phpmac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-cairo-contracts
Source: https://github.com/phpmac/foundry/tree/main/.agents/skills/setup-cairo-contracts
Command: npx skills add https://github.com/phpmac/foundry --skill setup-cairo-contracts-phpmac

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cairo developers often start Starknet projects and must manually scaffold with Scarb, manage OpenZeppelin Cairo dependencies, and understand import conventions. This skill automates that process, delivering a ready-to-use project scaffold and dependency wiring.

Core Features & Use Cases

  • Automated project scaffolding for Scarb/Starknet.
  • Dependency configuration for OpenZeppelin Cairo packages (umbrella or individual).
  • Guidance on Cairo import conventions and component patterns for OpenZeppelin.

Quick Start

Create a new Scarb/Starknet project and wire in OpenZeppelin Cairo contracts.

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 smart contract project on Starknet?

Setting up a Cairo smart contract project on Starknet involves scaffolding a new Scarb project and wiring OpenZeppelin dependencies into your configuration. This delivers a ready-to-use project foundation with proper dependency management.

How do I add OpenZeppelin Cairo dependencies to Scarb.toml?

Adding OpenZeppelin Cairo dependencies to Scarb.toml requires configuring either individual packages or the umbrella package within your project configuration. This ensures the correct OpenZeppelin components are available for your Starknet contracts.

What are the Cairo import conventions for OpenZeppelin contracts?

Cairo import conventions for OpenZeppelin contracts define how to correctly reference and integrate component patterns within your code. Understanding these conventions ensures proper module resolution when using OpenZeppelin packages on Starknet.

Can I use individual OpenZeppelin packages instead of the umbrella package in Scarb?

Yes, you can configure individual OpenZeppelin packages instead of the umbrella package in Scarb. This flexibility allows you to include only the specific OpenZeppelin components needed for your Cairo project, minimizing unnecessary dependencies.

What is the best way to scaffold a new Scarb and Starknet project?

The best way to scaffold a new Scarb and Starknet project is to automate the initial setup with proper dependency configuration. This approach delivers a ready-to-use project foundation with OpenZeppelin contracts correctly wired.