Upgrade Cairo smart contracts using OpenZeppelin's UpgradeableComponent on Starknet. Use when users need to: (1) make Cairo contracts upgradeable via replace_class_syscall, (2) integrate the OpenZeppelin UpgradeableComponent, (3) understand Starknet's class-based upgrade model vs EVM proxy patterns, (4) ensure storage compatibility across upgrades, (5) guard upgrade functions with access control, or (6) test upgrade paths for Cairo contracts.
$npx -y skills add openzeppelin/openzeppelin-skills --skill upgrade-cairo-contractsInstalls into the current project.
Run `npx skills use "https://github.com/openzeppelin/openzeppelin-skills" --skill "openzeppelin/openzeppelin-skills/upgrade-cairo-contracts"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/openzeppelin/openzeppelin-skills" that are relevant to the current task. Run `npx skills add "https://github.com/openzeppelin/openzeppelin-skills"` and select the relevant skills, then follow their instructions.