interface-design

interface-design is a skill for Claude Code, Codex from ccashwell/evm-cortex. It costs 38 tokens per session (1,471 once invoked), scanned A, original, MIT.

A guide to designing Solidity interfaces and abstract contracts. Interfaces describe the functions and events other contracts can use, while abstract contracts provide partial implementations.

In plain words
What is it for?
Use it to define protocol APIs, separate user and administrator functions, expose events, support EIP-165 interface detection, and structure inheritance.
Why use it?
It helps split a protocol into clear modules and gives integrators a stable external contract to work with.

Skill for Claude CodeCodex

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

Good fit Use it to define protocol APIs, separate user and administrator functions, expose events, support EIP-165 interface detection, and structure inheritance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccashwell/evm-cortex/interface-design
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 interface-design
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 interface-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccashwell/evm-cortex/interface-design/github.svg)](https://agentmods.dev/skills/ccashwell/evm-cortex/interface-design)
Your own site
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/interface-design"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/interface-design/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 interface-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/interface-design"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/interface-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,471 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.00038 $0.01471
Opus 5.5 $0.00015 $0.00588
Sonnet 5.5 $0.00008 $0.00294
Haiku 4.5 $0.00004 $0.00147

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

Security

Grade A, and why

interface-design 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/interface-design/SKILL.md · 207 lines

How it starts

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

Interface Design

Interface Principles

Interfaces define the external API of your protocol. They are the contract between your system and its integrators.

// Minimal, focused interface — one concern per interface
interface IVault {
    function deposit(address token, uint256 amount) external returns (uint256 shares);
    function withdraw(address token, uint256 shares) external returns (uint256 amount);
    function balanceOf(address user, address token) external view returns (uint256);
}

// Separate admin interface
interface IVaultAdmin {
    function setFee(uint256 feeBps) external;
    function pause() external;
    function unpause() external;
}

// Separate events interface — inheritable without implementation obligation
interface IVaultEvents {
    event Deposited(address indexed user, address indexed token, uint256 amount, uint256 shares);
    event Withdrawn(address indexed user, address indexed token, uint256 amount, uint256 shares);
}

Abstract Contracts vs Interfaces

Feature Interface Abstract Contract
State variables No Yes
Constructor No Yes
Function implementations No Partial
Inheritance Multiple Multiple (with care)
Use case External API definition Shared base logic
// Abstract contract: provides base implementation with extension points
abstract contract BaseVault is IVault, IVaultEvents, ReentrancyGuard {
    mapping(address => mapping(address => uint256)) internal _shares;

    function deposit(address token, uint256 amount)
        external
        virtual
        nonReentrant
        returns (uint256 shares)
    {
        shares = _convertToShares(token, amount);
        _shares[msg.sender][token] += shares;
        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
        emit Deposited(msg.sender, token, amount, shares);
    }

    // Extension point — subclasses define share calculation
    function _convertToShares(address token, uint256 amount)
        internal
        view
        virtual
        returns (uint256);
}

Read the full file on GitHub · 207 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 · 207 lines · 38 tokens per session scan A 808a08e9d26e

Subscribe to this mod's changes

interface-design is a skill published in the GitHub repository ccashwell/evm-cortex (131 stars, last pushed 17d ago), licensed MIT. It adds 38 tokens to every session and 1,471 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.

Related

Other skills, from other repositories

web3-fullstack-packaged-build

Systematic full-stack Web3 build with mandatory packaging and delivery phase.

HKUDS/OpenSpace · 21 tokens

web3-fullstack-systematic-build

Systematic approach to building full-stack Web3 applications layer by layer.

HKUDS/OpenSpace · 21 tokens

solana-dev

Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my Solana program", "deploy to devnet", "send a v1 transaction", "support larger transactions", "fix maxSupportedTransactionVersion", or "explain…

solana-foundation/solana-dev-skill · 249 tokens

devtools-event-client

Create typed EventClient for a library. Define event maps with typed payloads, pluginId auto-prepend namespacing, emit()/on()/onAll()/onAllPluginEvents() API. Connection lifecycle (5 retries, 300ms), event queuing, enabled/disabled state, SSR fallbacks, singleton pattern. Unique pluginId requirement to avoid event…

TanStack/devtools · 79 tokens

walkeros-create-destination

Use when creating a new walkerOS destination to send events to a vendor or API (GA4/gtag, Meta/Facebook Pixel, Mixpanel, Amplitude, a custom HTTP API, Measurement Protocol), web or server-side. Example-driven workflow: research the vendor SDK and define step examples before implementing the destination interface, env…

elbwalker/walkerOS · 77 tokens

walkeros-create-source

Use when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook receiver, event capture), web or server-side. Example-driven workflow: research the input format and define step examples before implementing the push interface, createTrigger, and env pattern.

elbwalker/walkerOS · 65 tokens