Skip to content
openzeppelin avatar

Upgrade Solidity Contracts

Upgrade Solidity contracts with OpenZeppelin UUPS, Transparent, or Beacon proxies, including storage safety rules.

CCM score
76 of 100
skills.sh installs
530
GitHub stars
226
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers proxy pattern selection across UUPS, Transparent, and Beacon, plus EIP-1967 implementation, admin, and beacon slots
  • Explains initializers replacing constructors, including _disableInitializers() and rules for field initializers and immutables
  • Enforces storage layout compatibility, ERC-7201 namespaced storage, and a v4-to-v5 upgrade restriction for deployed proxies
  • Designed for teams using the Hardhat or Foundry upgrades plugins to deploy, validate, and manage upgradeable contracts

Install

$ npx -y skills add openzeppelin/openzeppelin-skills --skill upgrade-solidity-contracts -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Solidity Upgrades

Contents

Proxy Patterns Overview

PatternUpgrade logic lives inBest for
UUPS (UUPSUpgradeable)Implementation contract (override _authorizeUpgrade)Most projects — lighter proxy, lower deploy gas
TransparentSeparate ProxyAdmin contractWhen admin/user call separation is critical — admin cannot accidentally call implementation functions
BeaconShared beacon contractMultiple proxies sharing one implementation — upgrading the beacon atomically upgrades all proxies

All three use EIP-1967 storage slots for the implementation address, admin, and beacon.

Details

Repository
github.com/openzeppelin/openzeppelin-skills
Categories
Web3 & Crypto, Backend & APIs, Security
First seen
Jun 3, 2026

Questions

What does the upgrade-solidity-contracts skill do?

It upgrades Solidity smart contracts using OpenZeppelin proxy patterns, including UUPS, Transparent and Beacon proxies. It also covers writing initializers instead of constructors, storage layout rules, ERC-7201 namespaced storage, and upgrade safety validation.

Can I upgrade a proxy that already runs OpenZeppelin Contracts v4 to v5?

No, upgrading a proxy's implementation from v4 to v5 is not supported. The skill recommends deploying new proxies with v5 implementations and migrating users to the new address instead.

How do I install the upgrade-solidity-contracts skill?

Run npx -y skills add openzeppelin/openzeppelin-skills --skill upgrade-solidity-contracts -y in your project. Once installed, the agent can help make contracts upgradeable with the Hardhat or Foundry upgrades plugins.

Where does this skill stand in the Web3 & Crypto category?

It sits in the Web3 & Crypto category on Claude Marketplaces, alongside skills such as solana-dev and binance-agentic-wallet. It sets itself apart by focusing on OpenZeppelin proxy patterns and storage layout safety for Solidity.

More from openzeppelin/openzeppelin-skills

All 5

Similar to Upgrade Solidity Contracts

More Web3 & Crypto