Scarb is the Cairo package manager for Starknet smart contracts and Cairo programs.
Prerequisites
Install Scarb: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh
Basic Usage
Initialize a new project
scarb init --name my-project
Build the project
scarb build
Run tests
scarb test
Clean build artifacts
scarb clean
Check version
scarb --version
Passthrough
Any scarb command can be run directly:
scarb <any-subcommand> [args...]
Tips
Scarb manages Cairo dependencies via Scarb.toml
Use scarb fmt to format code
Use scarb tree to display dependency tree
1---2name: quickstart-5583description: Scarb Quick Start4---5# Scarb Quick Start67Scarb is the Cairo package manager for Starknet smart contracts and Cairo programs.89## Prerequisites1011- Install Scarb: `curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh`1213## Basic Usage1415### Initialize a new project16```bash17scarb init --name my-project18```1920### Build the project21```bash22scarb build23```2425### Run tests26```bash27scarb test28```2930### Clean build artifacts31```bash32scarb clean33```3435### Check version36```bash37scarb --version38```3940## Passthrough4142Any scarb command can be run directly:43```bash44scarb <any-subcommand> [args...]45```4647## Tips4849- Scarb manages Cairo dependencies via `Scarb.toml`50- Use `scarb fmt` to format code51- Use `scarb tree` to display dependency tree
Run npx skillmds@latest add javimosch/quickstart-558 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Scarb Quick Start It is listed under Coding & Dev Tools on SkillMD.
SkillMD's automated safety review verdict for this skill is WARNING. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
javimosch (@javimosch) published this skill. Their other Agent Skills are listed on their SkillMD profile.