diamond-pattern
CommunityModular upgrades for Solidity with facets.
Software Engineering#introspection#solidity#diamond-pattern#eip-2535#diamond-storage#facet-upgrade#contract-architecture
Authorccashwell
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Solidity contracts are constrained by size, upgradeability, and deployment risk. The Diamond pattern enables splitting logic into multiple facets that share a single storage context, allowing selective upgrades and easier maintenance.
Core Features & Use Cases
- Per-facet upgradeability: upgrade individual functions without redeploying the whole contract.
- Shared storage: all facets operate on a single AppStorage/ DiamondStorage layout.
- Introspection: DiamondLoupe-based discovery of facets and function selectors.
- Real-world use cases: modular governance, token registries, extendable protocols.
Quick Start
Demonstrate a Diamond pattern upgrade by wiring a DiamondCut to add a new facet to a test contract.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: diamond-pattern Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#diamond-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.