minimal-proxy

minimal-proxy is a skill for Claude Code, Codex from ccashwell/evm-cortex. It costs 40 tokens per session (1,577 once invoked), scanned A, original, MIT.

A guide to EIP-1167 minimal proxy contracts, also called clones. A small deployed contract forwards its logic to one shared implementation while keeping its own data.

In plain words
What is it for?
Use it for factories that create many similar vaults, accounts, or other contracts cheaply.
Why use it?
It reduces the cost of deploying many contracts with the same behavior, while making clear that these clones cannot be upgraded after deployment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for factories that create many similar vaults, accounts, or other contracts cheaply.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccashwell/evm-cortex/minimal-proxy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ccashwell/evm-cortex --skill minimal-proxy
Clone the repo
git clone --depth 1 https://github.com/ccashwell/evm-cortex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minimal-proxy

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccashwell/evm-cortex/minimal-proxy/github.svg)](https://agentmods.dev/skills/ccashwell/evm-cortex/minimal-proxy)
Your own site
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/minimal-proxy"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/minimal-proxy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minimal-proxy

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/minimal-proxy"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/minimal-proxy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01577
Opus 5.5 $0.00016 $0.00631
Sonnet 5.5 $0.00008 $0.00315
Haiku 4.5 $0.00004 $0.00158

Measured 1mo ago against content hash 0c3c16f08b50, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

minimal-proxy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/minimal-proxy/SKILL.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

EIP-1167 Minimal Proxy (Clones)

Overview

EIP-1167 defines a minimal bytecode proxy that delegates all calls to a known implementation. The clone is only 45 bytes of bytecode and costs ~36,000 gas to deploy (vs ~200,000+ for a full contract). Not upgradeable — the implementation address is baked into the bytecode.

Clone Bytecode

363d3d373d3d3d363d73<implementation>5af43d82803e903d91602b57fd5bf3

This is a pure delegatecall forwarder. All storage lives in the clone, logic executes from the implementation.

Factory Pattern with OpenZeppelin Clones

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol";

contract VaultFactory {
    using Clones for address;

    address public immutable implementation;
    address[] public allVaults;

    event VaultCreated(address indexed vault, address indexed owner, uint256 index);

    constructor(address implementation_) {
        implementation = implementation_;
    }

    function createVault(
        address owner,
        address asset,
        string calldata name
    ) external returns (address vault) {
        vault = implementation.clone();
        IVault(vault).initialize(owner, asset, name);
        allVaults.push(vault);
        emit VaultCreated(vault, owner, allVaults.length - 1);
    }

    function createVaultDeterministic(
        address owner,
        address asset,
        string calldata name,
        bytes32 salt
    ) external returns (address vault) {
        vault = implementation.cloneDeterministic(salt);
        IVault(vault).initialize(owner, asset, name);
        allVaults.push(vault);
        emit VaultCreated(vault, owner, allVaults.length - 1);
    }

    function predictAddress(bytes32 salt) external view returns (address) {
        return implementation.predictDeterministicAddress(salt, address(this));
    }

    function vaultCount() external view returns (uint256) {
        return allVaults.length;
    }
}

Read the full file on GitHub · 218 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 218 lines · 40 tokens per session scan A 0c3c16f08b50

Subscribe to this mod's changes

minimal-proxy is a skill published in the GitHub repository ccashwell/evm-cortex (131 stars, last pushed 17d ago), licensed MIT. It adds 40 tokens to every session and 1,577 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.