constructor-patterns
CommunityRobust deployment patterns for Solidity contracts.
Authorccashwell
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Solidity deployment often struggles with balancing non-upgradeable immutables, upgradeable init flows, and deterministic factory patterns. This Skill provides safe templates and best practices to design constructors, initializers, and factories that minimize misconfigurations and upgrade risks.
Core Features & Use Cases
- Safe non-upgradeable constructor patterns with immutables and parameter validation.
- Upgradeable patterns using initializer, _disableInitializers, and reinitializer for V2+ upgrades.
- Factory and deterministic deployment patterns (Minimal Clone, CREATE2) with clear initialization flow.
- Anti-pattern guidance to avoid misconfigurations that compromise security or upgrade safety.
Quick Start
Provide a deployment plan for a proxied contract that includes an initializer flow and a separate deployment of the implementation with disabled initializers.
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: constructor-patterns Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#constructor-patterns 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.