delegate-call-risks
CommunityMitigate delegatecall risks in Solidity proxies.
Software Engineering#solidity#security-audit#storage-layout#delegatecall#proxy-patterns#upgrade-safety
Authorccashwell
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Delegatecall is a powerful but dangerous pattern in Solidity that can compromise storage integrity, context, and initialization safety when used in proxies or modular contracts. This skill outlines the risks and the patterns needed to implement safe upgradeable architectures and avoid common pitfalls.
Core Features & Use Cases
- Storage-layout integrity: ensure proxy and implementation share identical storage layouts to prevent slot collisions.
- Context preservation: maintain the caller and value context correctly when delegating calls.
- Initialization safety: disable or guard initialize functions to prevent unauthorized access to proxy logic.
- Upgrade patterns awareness: recognize and safely implement UUPS/Transparent and Diamond-style upgrade patterns.
- Security-first practices: apply a defensive checklist to reduce risk in real-world deployments.
Quick Start
Audit your Solidity proxy implementations and apply the delegatecall safety patterns to ensure storage layouts, context preservation, and proper initialization controls.
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: delegate-call-risks Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#delegate-call-risks 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.