Fizz Convert
pashov/skills
Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing fuzz harness, then flip their checkboxes.
Delegatecall risks and safety patterns for Solidity proxies and modular contracts.
$ npx skills add ccashwell/evm-cortex --skill delegate-call-risks -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex delegate-call-risks --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/delegate-call-risks .claude/skills/delegate-call-risks && 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 "delegate-call-risks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/delegate-call-risks into .claude/skills/delegate-call-risks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "delegate-call-risks", 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/delegate-call-risksType 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 delegate-call-risks -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex delegate-call-risks --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/delegate-call-risks .agents/skills/delegate-call-risks && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "delegate-call-risks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/delegate-call-risks into .agents/skills/delegate-call-risks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "delegate-call-risks", 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 delegate-call-risks -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex delegate-call-risks --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/delegate-call-risks .cursor/skills/delegate-call-risks && 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 "delegate-call-risks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/delegate-call-risks into .cursor/skills/delegate-call-risks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "delegate-call-risks", 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/delegate-call-risks--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 delegate-call-risks -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex delegate-call-risks --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/delegate-call-risks .gemini/skills/delegate-call-risks && 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 "delegate-call-risks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/delegate-call-risks into .gemini/skills/delegate-call-risks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "delegate-call-risks", 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 delegate-call-risksInstalls 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 delegate-call-risks -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/delegate-call-risks .github/skills/delegate-call-risks && 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 "delegate-call-risks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/delegate-call-risks into .github/skills/delegate-call-risks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "delegate-call-risks", 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 delegate-call-risks -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 delegate-call-risks --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/delegate-call-risks .opencode/skills/delegate-call-risks && 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 "delegate-call-risks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/delegate-call-risks into .opencode/skills/delegate-call-risks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "delegate-call-risks", 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.
delegate-call-risksDelegatecall risks and safety patterns for Solidity proxies and modular contracts.
Delegate Call Risks is an agent skill from ccashwell/evm-cortex. Delegatecall risks and safety patterns for Solidity proxies and modular contracts. Use when implementing upgradeable proxies, diamond patterns, or any contract using delegatecall. Covers storage layout requirements, context preservation, and implementation safety.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Smart contracts. It works with Solidity. The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.
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 and bash).
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.
Delegate Call Risks loads about 1.7k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 276 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). 276 words, ~1,715 tokens.
.claude/skills/delegate-call-risks/SKILL.md (or your agent's skills folder).delegatecall executes the target's code in the caller's context: the caller's storage, msg.sender, msg.value, and address(this) are preserved.
Proxy (storage) → delegatecall → Implementation (code)
- slot 0: admin executes in reads/writes Proxy's storage
- slot 1: value Proxy context msg.sender = original callerThe proxy and implementation must have identical storage layouts. Delegatecall operates on slot numbers, not variable names.
// PROXY storage layout:
// slot 0: address admin
// slot 1: uint256 totalDeposits
// Implementation V1 — MUST match proxy layout
contract VaultV1 {
address public admin; // slot 0 ✓
uint256 public totalDeposits; // slot 1 ✓
}
// Implementation V2 — DANGEROUS: inserted variable shifts layout
contract VaultV2Bad {
address public admin; // slot 0 ✓
address public feeRecipient; // slot 1 ✗ (was totalDeposits!)
uint256 public totalDeposits; // slot 2 ✗ (shifted!)
}
// Implementation V2 — SAFE: appended variable
contract VaultV2Good {
address public admin; // slot 0 ✓
uint256 public totalDeposits; // slot 1 ✓
address public feeRecipient; // slot 2 (new, appended)
}Inside a delegatecall, all context variables refer to the proxy:
contract Implementation {
function whoAmI() external view returns (address self, address sender, uint256 val) {
self = address(this); // proxy address (NOT implementation)
sender = msg.sender; // original caller (NOT proxy)
val = msg.value; // original value sent to proxy
}
}If the implementation contract's initialize() isn't disabled, an attacker can call it directly.
// VULNERABLE: implementation can be initialized
contract VaultImpl is Initializable {
function initialize(address admin) external initializer {
_admin = admin;
}
}
// Attacker calls VaultImpl.initialize(attackerAddress) directly
// SAFE: disable initializers in constructor
contract VaultImpl is Initializable {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
function initialize(address admin) external initializer {
_admin = admin;
}
}Pre-Dencun, an attacker could initialize the implementation and then selfdestruct it, bricking all proxies pointing to it.
// Pre-Dencun attack (selfdestruct still worked):
// 1. Call initialize() on implementation → become owner
// 2. Call selfdestruct → implementation code deleted
// 3. All proxies delegatecall to empty address → all calls succeed with no-op
// 4. Protocol is bricked
// Defense: _disableInitializers() + no selfdestruct in implementation
// Post-Dencun: selfdestruct only sends ETH, doesn't delete code (EIP-6780)Never delegatecall to an address controlled by users or external parties.
// VULNERABLE: user controls the target
function execute(address target, bytes calldata data) external {
(bool success,) = target.delegatecall(data); // target can write to any storage slot
require(success);
}
// SAFE: restrict to known, audited implementations
mapping(address => bool) public approvedImplementations;
function execute(address target, bytes calldata data) external onlyOwner {
if (!approvedImplementations[target]) revert UnapprovedTarget();
(bool success,) = target.delegatecall(data);
if (!success) revert ExecutionFailed();
}In UUPS/Transparent proxies, if the proxy and implementation have functions with the same selector, one will shadow the other.
// Transparent Proxy pattern avoids this:
// - Admin calls → handled by proxy (upgrade functions)
// - Non-admin calls → delegated to implementation
// UUPS pattern: implementation handles upgrades
// Risk: custom function selector collides with upgradeTo(address)
// Always check: forge inspect Contract methodIdentifiers# List all function selectors
forge inspect src/Vault.sol:Vault methodIdentifiers
# Compare proxy and implementation selectors for collisions
# Any match = potential shadowing issueReserve storage slots in base contracts for future upgrades.
abstract contract BaseVaultV1 {
uint256 public totalDeposits;
mapping(address => uint256) public balances;
uint256[48] private __gap; // reserve 48 slots
}
// V2: add new variable, reduce gap
abstract contract BaseVaultV2 {
uint256 public totalDeposits;
mapping(address => uint256) public balances;
uint256 public withdrawalDelay; // new in V2
uint256[47] private __gap; // 48 - 1 = 47
}Proxy metadata stored at pseudo-random slots to avoid collisions with implementation storage.
// Implementation address slot
bytes32 constant IMPLEMENTATION_SLOT =
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
// Admin address slot
bytes32 constant ADMIN_SLOT =
0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
function _getImplementation() internal view returns (address impl) {
assembly {
impl := sload(IMPLEMENTATION_SLOT)
}
}| Feature | UUPS | Transparent |
|---|---|---|
| Upgrade logic | In implementation | In proxy |
| Gas cost per call | Lower (no admin check) | Higher (admin check every call) |
| Deploy cost | Lower proxy | Higher proxy |
| Risk | Forget upgradeTo in new impl → bricked | More gas per user call |
| Admin collision | Possible | Prevented by admin routing |
forge inspect --storage-layout before upgrade__gap reduced by correct amount for new variables_disableInitializers() in implementation constructorselfdestruct in implementation code© 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/delegate-call-risks of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Delegate Call Risks 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 |
|---|---|---|---|---|---|---|
| Delegate Call Risks this skillccashwell/evm-cortex | 131 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Fizz Convertpashov/skills | 1.2k | 2 repos | ~3.7k | Automated safety check: Pass | MIT | |
| Feynman Auditor0xiehnnkta/nemesis-auditor | 244 | 1 repos | ~11k | Automated safety check: Pass | MIT | |
| Smart Contract Auditgreatpie/smart-contract-audit-skill | 101 | — | ~1.1k | Automated safety check: Pass | None | |
| RadarAuditware/radar | 154 | — | ~2.1k | Automated safety check: Pass | GPL-3.0 | |
| Solidity AuditorGabson0x/bountyforge | 443 | — | ~3.7k | Automated safety check: Pass | None |
pashov/skills
Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing fuzz harness, then flip their checkboxes.
0xiehnnkta/nemesis-auditor
Deep business logic bug finder using the Feynman technique. An agent skill from 0xiehnnkta/nemesis-auditor.
greatpie/smart-contract-audit-skill
Script-backed, out-of-box auditing workflow for Solidity/EVM repositories based on EVMbench detect/patch/exploit methodology.
Auditware/radar
Use radar for smart contract security analysis, AST generation, and detection template development.
Gabson0x/bountyforge
Security audit of Solidity code while you develop. An agent skill from Gabson0x/bountyforge.
lidofinance/diffyscan
Adds or repairs Diffyscan explorer API routing and response adapters for a new host, chain or payload format.
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.
Works with
Categories
Delegatecall risks and safety patterns for Solidity proxies and modular contracts. Delegate Call Risks is an agent skill from ccashwell/evm-cortex. Delegatecall risks and safety patterns for Solidity proxies and modular contracts.
Delegate Call Risks fits situations like: implementing upgradeable proxies; diamond patterns; any contract using delegatecall.
Run `npx skills add ccashwell/evm-cortex --skill delegate-call-risks -a claude-code`. Or copy the skill folder (skills/delegate-call-risks in ccashwell/evm-cortex) into .claude/skills/delegate-call-risks in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill delegate-call-risks -a codex`. Or copy the skill folder (skills/delegate-call-risks in ccashwell/evm-cortex) into .agents/skills/delegate-call-risks 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 delegate-call-risks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/delegate-call-risks, .gemini/skills/delegate-call-risks, .github/skills/delegate-call-risks and .opencode/skills/delegate-call-risks in your project.
SKILL.md names no scripts, command-line tools or credentials: Delegate Call Risks 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.
Delegate Call Risks 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.7k tokens (SKILL.md is roughly 6.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 Delegate Call Risks: Fizz Convert (pashov/skills, 1.2k stars), Feynman Auditor (0xiehnnkta/nemesis-auditor, 244 stars), Smart Contract Audit (greatpie/smart-contract-audit-skill, 101 stars) and Radar (Auditware/radar, 154 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.