·upgrade-stylus-contracts
!

upgrade-stylus-contracts

Upgrade Stylus smart contracts using OpenZeppelin proxy patterns on Arbitrum. Use when users need to: (1) make Stylus Rust contracts upgradeable with UUPS or Beacon proxies, (2) understand Stylus-specific proxy mechanics (logic_flag, WASM reactivation), (3) integrate UUPSUpgradeable with access control, (4) ensure storage compatibility across upgrades, or (5) test upgrade paths for Stylus contracts.

41Installs·6Trend·@openzeppelin

Installation

$npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-stylus-contracts

How to Install upgrade-stylus-contracts

Quickly install upgrade-stylus-contracts AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-stylus-contracts
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: openzeppelin/openzeppelin-skills.

SKILL.md

View raw

Stylus contracts run on Arbitrum as WebAssembly (WASM) programs alongside the EVM. They share the same state trie, storage model, and account system as Solidity contracts. Because of this, EVM proxy patterns work identically for Stylus — a Solidity proxy can delegate to a Stylus implementation and vice versa.

| Proxy mechanism | Same — delegatecall to implementation contract | delegatecall to implementation contract | | Storage layout | #[storage] fields map to the same EVM slots as equivalent Solidity structs | Sequential slot allocation per Solidity rules | | EIP standards | ERC-1967 storage slots, ERC-1822 proxiable UUID | Same |

| Context detection | logicflag boolean in a unique storage slot (no immutable support) | address(this) stored as immutable | | Initialization | Two-step: constructor sets logicflag, then setversion() via proxy | Constructor + initializer via proxy |

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-stylus-contracts
Category
!Security
Verified
First Seen
2026-03-06
Updated
2026-03-10

Browse more skills from openzeppelin/openzeppelin-skills

Quick answers

What is upgrade-stylus-contracts?

Upgrade Stylus smart contracts using OpenZeppelin proxy patterns on Arbitrum. Use when users need to: (1) make Stylus Rust contracts upgradeable with UUPS or Beacon proxies, (2) understand Stylus-specific proxy mechanics (logic_flag, WASM reactivation), (3) integrate UUPSUpgradeable with access control, (4) ensure storage compatibility across upgrades, or (5) test upgrade paths for Stylus contracts. Source: openzeppelin/openzeppelin-skills.

How do I install upgrade-stylus-contracts?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-stylus-contracts Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/openzeppelin/openzeppelin-skills