upgrade-stylus-contracts

upgrade-stylus-contracts is a skill for Claude Code from OpenZeppelin/openzeppelin-skills. It costs 96 tokens per session (1,950 once invoked), scanned A, original, AGPL-3.0.

A guide for making Rust smart contracts written with Stylus upgradeable on Arbitrum, using OpenZeppelin proxy patterns. It covers UUPS and Beacon proxies, which let contract logic be replaced while keeping the same address and stored data.

In plain words
What is it for?
Use it when upgrading a Stylus contract, adding UUPS or Beacon proxies, connecting upgrade permissions, or checking the proxy setup before deployment.
Why use it?
It explains the Arbitrum-specific details that can make upgrades fail, including how the contract’s executable WebAssembly is reactivated. It also covers access control so only approved accounts can upgrade the contract.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the openzeppelin-skills plugin — 11 skills shipped together

Good fit Use it when upgrading a Stylus contract, adding UUPS or Beacon proxies, connecting upgrade permissions, or checking the proxy setup before deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openzeppelin/openzeppelin-skills/upgrade-stylus-contracts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenZeppelin/openzeppelin-skills --skill upgrade-stylus-contracts
Clone the repo
git clone --depth 1 https://github.com/OpenZeppelin/openzeppelin-skills

Made for: Claude Code.

Or install openzeppelin-skills, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upgrade-stylus-contracts

README.md
[![agentmods](https://agentmods.dev/badge/skills/openzeppelin/openzeppelin-skills/upgrade-stylus-contracts/github.svg)](https://agentmods.dev/skills/openzeppelin/openzeppelin-skills/upgrade-stylus-contracts)
Your own site
<a href="https://agentmods.dev/skills/openzeppelin/openzeppelin-skills/upgrade-stylus-contracts"><img src="https://agentmods.dev/badge/skills/openzeppelin/openzeppelin-skills/upgrade-stylus-contracts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upgrade-stylus-contracts

Your own site · 80×15
<a href="https://agentmods.dev/skills/openzeppelin/openzeppelin-skills/upgrade-stylus-contracts"><img src="https://agentmods.dev/badge/skills/openzeppelin/openzeppelin-skills/upgrade-stylus-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,950 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01950
Opus 5 $0.00048 $0.00975
Sonnet 5 $0.00019 $0.00390
Haiku 4.5 $0.00010 $0.00195

Measured 12d ago against content hash bed465f01baf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

upgrade-stylus-contracts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/upgrade-stylus-contracts/SKILL.md · 139 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 139 lines · 96 tokens per session scan A bed465f01baf

Subscribe to this mod's changes

upgrade-stylus-contracts is a skill published in the GitHub repository OpenZeppelin/openzeppelin-skills (210 stars, last pushed 11d ago), licensed AGPL-3.0. It adds 96 tokens to every session and 1,950 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

jolt

Wrap a Rust function in a Jolt zero-knowledge proof.

a16z/jolt · 15 tokens

solana

Use when working on Solana software, including one or more of: Solana client code using TypeScript, Rust libraries that use Solana crates, Anchor programs, Quasar programs, LiteSVM tests, including Rust program files, TypeScript tests, and Anchor.toml or Quasar.toml configuration. Designed to create minimal, reusable…

quicknode/solana-finance-claude-plugin · 76 tokens

solana-toolkit-guide

Guide to the Solana Wallet Toolkit — vanity address generation with multi-threaded search, official Solana Labs libraries, Rust and TypeScript implementations. Includes wallet generation, custom address prefixes, and OG names on the blockchain.

nirholas/three.ws · 50 tokens

solana

Expert guidelines for Solana program development with Rust, Anchor framework, and Web3.js integration.

Mindrally/skills · 21 tokens

smart-contracts

Stellar smart contract development (Rust, soroban-sdk). Entry point with project setup, contract anatomy, and build/deploy workflow, routing to three companion files in this directory — development.md (storage/TTL, authorization, cross-contract calls, tokens, events, errors, upgrades, fees, troubleshooting)…

stellar/stellar-dev-skill · 151 tokens

solana-development

Build, test, deploy, and audit Solana programs with Anchor or native Rust, plus ZK Compression (Light Protocol). Use for Solana contracts, token operations, compute optimization, deployment, program audits, or compressed tokens and PDAs.

tenequm/skills · 53 tokens