5,439,582 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Cairo Upgradeability

Explain Starknet upgradeability via class hash replacement and proxy patterns; use when a request involves upgrading contract logic or replace_class_syscall.

Installable skillApache-2.0By David-Li0406Updated Oct 30, 2026
INTENDED FOROpenClawInstall in a listed agent.

instructions.md

---
name: cairo-upgradeability-192d2385a535
description: Explain Starknet upgradeability via class hash replacement and proxy patterns; use when a request involves upgrading contract logic or replace_class_syscall.
---

# Cairo Upgradeability

## Overview
Explain how Starknet upgrades work and the safeguards commonly used.

## Quick Use
- Read `references/upgradeability.md` before answering.
- Mention `replace_class_syscall` and access control.
- Suggest proxy patterns for more flexible upgrades.

## Response Checklist
- Use a protected upgrade entry point that validates the new class hash.
- Explain that upgrades replace the class hash of an instance.
- Note that storage is preserved across upgrades.

## Example Requests
- "How do I upgrade a Starknet contract?"
- "What does replace_class_syscall do?"
- "Why do I need access control for upgrades?"

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.