Upgrade Solidity smart contracts using OpenZeppelin proxy patterns. Use when users need to: (1) make contracts upgradeable with UUPS, Transparent, or Beacon proxies, (2) write initializers instead of constructors, (3) use the Hardhat or Foundry upgrades plugins, (4) understand storage layout rules and ERC-7201 namespaced storage, (5) validate upgrade safety, (6) manage proxy deployments and upgrades, or (7) understand upgrade restrictions between OpenZeppelin Contracts major versions.
$npx -y skills add openzeppelin/openzeppelin-skills --skill upgrade-solidity-contractsInstalls into the current project.
Run `npx skills use "https://github.com/openzeppelin/openzeppelin-skills" --skill "openzeppelin/openzeppelin-skills/upgrade-solidity-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.