gstack Upgrade
garrytan/gstack
Upgrades an installed gstack to the latest version, handling global and vendored installs, optional auto-upgrade and snooze, and showing what is new.
A skill your agent uses when choosing or implementing proxy/upgrade patterns.
$ npx skills add ccashwell/evm-cortex --skill proxy-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex proxy-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/proxy-patterns .claude/skills/proxy-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "proxy-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/proxy-patterns into .claude/skills/proxy-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "proxy-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ccashwell/evm-cortex/tree/main/skills/proxy-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ccashwell/evm-cortex --skill proxy-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex proxy-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/proxy-patterns .agents/skills/proxy-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "proxy-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/proxy-patterns into .agents/skills/proxy-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "proxy-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill proxy-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex proxy-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/proxy-patterns .cursor/skills/proxy-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "proxy-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/proxy-patterns into .cursor/skills/proxy-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "proxy-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ccashwell/evm-cortex.git --path skills/proxy-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ccashwell/evm-cortex --skill proxy-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex proxy-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/proxy-patterns .gemini/skills/proxy-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "proxy-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/proxy-patterns into .gemini/skills/proxy-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "proxy-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ccashwell/evm-cortex proxy-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ccashwell/evm-cortex --skill proxy-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/proxy-patterns .github/skills/proxy-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "proxy-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/proxy-patterns into .github/skills/proxy-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "proxy-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill proxy-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ccashwell/evm-cortex proxy-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/proxy-patterns .opencode/skills/proxy-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "proxy-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/proxy-patterns into .opencode/skills/proxy-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "proxy-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
proxy-patternsA skill your agent uses when choosing or implementing proxy/upgrade patterns.
Proxy Patterns is an agent skill from ccashwell/evm-cortex. Use when choosing or implementing proxy/upgrade patterns. Compares UUPS (EIP-1822), TransparentUpgradeableProxy, Beacon proxy, minimal proxy (EIP-1167), and Diamond (EIP-2535) with gas costs, flexibility, and security tradeoffs.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f8f3301. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are solidity).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Proxy Patterns loads about 1.5k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 271 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 271 words, ~1,477 tokens.
.claude/skills/proxy-patterns/SKILL.md (or your agent's skills folder).A proxy contract delegates all calls to an implementation contract via delegatecall. Storage lives in the proxy, logic lives in the implementation. Upgrading means pointing the proxy at a new implementation.
User → Proxy (storage) --delegatecall--> Implementation (logic)| Pattern | Gas (deploy) | Gas (call) | Upgrade mechanism | Best for |
|---|---|---|---|---|
| UUPS | Low | Low (~200 overhead) | Implementation upgrades itself | Most contracts |
| Transparent | Medium | Medium (~2100 overhead) | Admin-only proxy upgrade | Governed protocols |
| Beacon | Medium | Medium (~2600 overhead) | Beacon stores impl address | Many identical proxies |
| Minimal (1167) | Very low | Low (~700 overhead) | Not upgradeable | Factory clones |
| Diamond (2535) | High | Medium | Per-function routing | Large systems |
The upgrade logic lives in the implementation contract. Smaller proxy, cheaper deployment.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
contract MyContractV1 is Initializable, UUPSUpgradeable, OwnableUpgradeable {
uint256 public value;
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() { _disableInitializers(); }
function initialize(address owner_) external initializer {
__Ownable_init(owner_);
__UUPSUpgradeable_init();
}
function setValue(uint256 v) external { value = v; }
function _authorizeUpgrade(address newImpl) internal override onlyOwner {}
}Deploy with:
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
address impl = address(new MyContractV1());
bytes memory data = abi.encodeCall(MyContractV1.initialize, (msg.sender));
address proxy = address(new ERC1967Proxy(impl, data));Upgrade logic is in the proxy itself. Admin address is blocked from calling implementation functions (prevents selector clashing).
import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
ProxyAdmin admin = new ProxyAdmin(msg.sender);
TransparentUpgradeableProxy proxy = new TransparentUpgradeableProxy(
address(impl), address(admin), initData
);
// Upgrade:
admin.upgradeAndCall(ITransparentUpgradeableProxy(address(proxy)), newImpl, "");Upgradeable contracts MUST follow strict storage rules:
contract BaseV1 is Initializable {
uint256 public x;
uint256[49] private __gap; // reserve 49 slots
// V2 can use a gap slot:
// uint256 public y;
// uint256[48] private __gap;
}initialize + InitializableNeed upgradeability?
├── No → Minimal Proxy (EIP-1167) for clones, or deploy directly
└── Yes
├── Many identical proxies? → Beacon Proxy
├── Large contract (>24kb)? → Diamond (EIP-2535)
├── Governance / multisig admin? → Transparent Proxy
└── Default → UUPS Proxy__gap arrays in base contracts (reserve 50 slots)_disableInitializers()initialize uses initializer modifier_authorizeUpgrade has proper access control (UUPS)forge inspect --storage-layout to compare layoutsselfdestruct in implementation (would kill proxy)Standard slots prevent storage collisions:
// Implementation: bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)
bytes32 constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
// Admin: bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1)
bytes32 constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
// Beacon: bytes32(uint256(keccak256("eip1967.proxy.beacon")) - 1)
bytes32 constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;function test_upgrade() public {
// Deploy V1
MyContractV1 implV1 = new MyContractV1();
ERC1967Proxy proxy = new ERC1967Proxy(
address(implV1), abi.encodeCall(MyContractV1.initialize, (address(this)))
);
MyContractV1(address(proxy)).setValue(42);
// Deploy V2 and upgrade
MyContractV2 implV2 = new MyContractV2();
MyContractV1(address(proxy)).upgradeToAndCall(address(implV2), "");
// State is preserved
assertEq(MyContractV2(address(proxy)).value(), 42);
// New V2 functionality works
MyContractV2(address(proxy)).newFunction();
}© ccashwell, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/proxy-patterns of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Proxy Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Proxy Patterns this skillccashwell/evm-cortex | 131 | — | ~1.5k | Automated safety check: Pass | MIT | |
| gstack Upgradegarrytan/gstack | 136k | — | ~5.5k | Automated safety check: Notes | MIT | |
| Odoo Upgrade Advisorsickn33/agentic-awesome-skills | 47k | 2 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Upgrade Mediabunnyremotion-dev/remotion | 62k | — | ~258 | Automated safety check: Pass | Custom licence | |
| Reverse Proxysickn33/agentic-awesome-skills | 47k | 2 repos | ~2.8k | Automated safety check: Notes | MIT | |
| Upgradenowork-studio/notfair-plugin | 3.9k | — | ~1.4k | Automated safety check: Notes | MIT |
garrytan/gstack
Upgrades an installed gstack to the latest version, handling global and vendored installs, optional auto-upgrade and snooze, and showing what is new.
sickn33/agentic-awesome-skills
Step-by-step Odoo version upgrade advisor: pre-upgrade checklist, community vs enterprise upgrade path, OCA module compatibility, and post-upgrade validation.
remotion-dev/remotion
Upgrade Mediabunny and related @mediabunny packages across the Remotion repo.
sickn33/agentic-awesome-skills
Configure nginx and Traefik as reverse proxies. An agent skill from sickn33/agentic-awesome-skills.
nowork-studio/notfair-plugin
Upgrade the NotFair plugin to the latest version. An agent skill from nowork-studio/notfair-plugin.
github/awesome-copilot
Ready-to-use prompts for comprehensive .NET framework upgrade analysis and execution
ccashwell/evm-cortex
A skill your agent uses when preparing for a security audit, performing reconnaissance on a new codebase, or creating a protocol overview.
ccashwell/evm-cortex
A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.
ccashwell/evm-cortex
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
ccashwell/evm-cortex
A skill your agent uses when running a local Ethereum node with Anvil.
ccashwell/evm-cortex
A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.
ccashwell/evm-cortex
A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.
A skill your agent uses when choosing or implementing proxy/upgrade patterns. Proxy Patterns is an agent skill from ccashwell/evm-cortex. Use when choosing or implementing proxy/upgrade patterns.
Proxy Patterns fits situations like: implementing proxy/upgrade patterns.
Run `npx skills add ccashwell/evm-cortex --skill proxy-patterns -a claude-code`. Or copy the skill folder (skills/proxy-patterns in ccashwell/evm-cortex) into .claude/skills/proxy-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill proxy-patterns -a codex`. Or copy the skill folder (skills/proxy-patterns in ccashwell/evm-cortex) into .agents/skills/proxy-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ccashwell/evm-cortex --skill proxy-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/proxy-patterns, .gemini/skills/proxy-patterns, .github/skills/proxy-patterns and .opencode/skills/proxy-patterns in your project.
SKILL.md names no scripts, command-line tools or credentials: Proxy Patterns is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Proxy Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Proxy Patterns: gstack Upgrade (garrytan/gstack, 136k stars), Odoo Upgrade Advisor (sickn33/agentic-awesome-skills, 47k stars), Upgrade Mediabunny (remotion-dev/remotion, 62k stars) and Reverse Proxy (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ccashwell (a GitHub user) maintains it in ccashwell/evm-cortex, which has 131 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on September 30, 2026.
Source: ccashwell/evm-cortex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.