cairo-deploy

cairo-deploy is a skill for Claude Code, Codex from keep-starknet-strange/starknet-agentic. It costs 33 tokens per session (2,311 once invoked), scanned C, original, MIT.

Deployment guidance for Cairo smart contracts on Starknet, a blockchain network, using sncast from Starknet Foundry. It covers preparing accounts, declaring and deploying contracts, networks, calls, and verification.

In plain words
What is it for?
Use it to build, declare, deploy, call, and verify Cairo contracts, and to configure deployer accounts and network endpoints.
Why use it?
It organizes the steps and configuration needed to move a compiled contract onto a Starknet devnet, test network, or mainnet.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present.

Part of the starknet-agentic-skills plugin — 19 skills, 2 commands, 1 plugin shipped together

Good fit Use it to build, declare, deploy, call, and verify Cairo contracts, and to configure deployer accounts and network endpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/keep-starknet-strange/starknet-agentic/cairo-deploy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add keep-starknet-strange/starknet-agentic --skill cairo-deploy
Clone the repo
git clone --depth 1 https://github.com/keep-starknet-strange/starknet-agentic

Made for: Claude Code, Codex.

Or install starknet-agentic-skills, the plugin that ships this one along with the rest of its 19 skills, 2 commands, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cairo-deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/keep-starknet-strange/starknet-agentic/cairo-deploy/github.svg)](https://agentmods.dev/skills/keep-starknet-strange/starknet-agentic/cairo-deploy)
Your own site
<a href="https://agentmods.dev/skills/keep-starknet-strange/starknet-agentic/cairo-deploy"><img src="https://agentmods.dev/badge/skills/keep-starknet-strange/starknet-agentic/cairo-deploy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cairo-deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/keep-starknet-strange/starknet-agentic/cairo-deploy"><img src="https://agentmods.dev/badge/skills/keep-starknet-strange/starknet-agentic/cairo-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,311 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02311
Opus 5 $0.00016 $0.01156
Sonnet 5 $0.00007 $0.00462
Haiku 4.5 $0.00003 $0.00231

Measured 9d ago against content hash 5424d2b2ff69, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

cairo-deploy scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh
skills/cairo-deploy/SKILL.md · 318 lines

How it starts

The opening of the file, as written. The whole thing — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cairo Deploy

Reference for deploying Cairo smart contracts to Starknet using sncast (Starknet Foundry).

When to Use

  • Deploying contracts to Starknet devnet, Sepolia, or mainnet
  • Declaring contract classes
  • Setting up deployer accounts
  • Configuring network endpoints
  • Verifying deployed contracts
  • Invoking/calling deployed contracts

When NOT to Use

  • Writing or refactoring contract logic (cairo-contract-authoring).
  • Unit, integration, or fuzz testing (cairo-testing).
  • Gas or performance optimization (cairo-optimization).
  • Security review of existing code (cairo-auditor).

Quick Start

  1. Build with scarb build, then declare and deploy with sncast.
  2. Use skills catalog when the task moves back into authoring, testing, or auditing.

Setup

Install Starknet Foundry

# Install via asdf (recommended for version pinning)
asdf plugin add starknet-foundry
asdf install starknet-foundry 0.56.0
asdf global starknet-foundry 0.56.0

# Or install directly
curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh
snfoundryup

.tool-versions

Pin versions for reproducible builds:

scarb 2.15.1
starknet-foundry 0.56.0

Note: snforge 0.56.0 requires Scarb >= 2.12.0. Check github.com/foundry-rs/starknet-foundry/releases for the latest.

Build

# Build contracts (generates Sierra + CASM)
scarb build

Output goes to target/dev/:

  • myproject_MyContract.contract_class.json (Sierra)
  • myproject_MyContract.compiled_contract_class.json (CASM)

Account Setup

Create a New Account

# Generate account on Sepolia
sncast account create \
    --url https://starknet-sepolia.g.alchemy.com/v2/YOUR_KEY \
    --name my-deployer

# This outputs the account address — fund it with ETH/STRK before deploying

# Deploy the account contract
sncast account deploy \
    --url https://starknet-sepolia.g.alchemy.com/v2/YOUR_KEY \
    --name my-deployer

Read the full file on GitHub · 318 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 318 lines · 33 tokens per session scan C 5424d2b2ff69

Subscribe to this mod's changes

cairo-deploy is a skill published in the GitHub repository keep-starknet-strange/starknet-agentic (80 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 2,311 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.