Skip to content
Back to skills

Cairo Contract Classes

ASecurity

Explain Starknet contract classes vs instances, class hash, contract deployment, and upgrade patterns; use when a request involves declaring/deploying contracts or understanding class hashes in Cairo.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
devops

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cairo-contract-classes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Contract Classes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cairo Contract Classes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-contract-classes/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-contract-classes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cairo-contract-classes
description: Explain Starknet contract classes vs instances, class hash, contract deployment, and upgrade patterns; use when a request involves declaring/deploying contracts or understanding class hashes in Cairo.
---

# Cairo Contract Classes and Instances

## Overview
Clarify what a contract class is, how instances are deployed, and how class hashes relate to code and ABI.

## Quick Use
- Read `references/contract-classes.md` before answering.
- Distinguish class (code + ABI) from instance (storage + address).
- Mention class hash and contract address derivation when deployment is discussed.

## Response Checklist
- Use "class" for the compiled contract definition and "instance" for a deployed contract.
- Note that a class is immutable; upgrades require a proxy pattern.
- Mention declare vs deploy and when each step is required.

## Example Requests
- "What is the difference between a class and a contract instance?"
- "How is a contract address computed?"
- "Why do I need to declare before deploying?"

Files in this skill

  • SKILL.md1 KB
  • references/contract-classes.md857 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…