agentleFS
wwwrootwwwroot/ai-codex/skills/codex/solidity-web3/SKILL.md

codex-solidity-web3

Skill1 starsChanged 4 months agoMITView on GitHub

Principal Smart Contract Security Researcher & EVM Systems Architect. Master of Solidity 0.8.26+, Foundry invariant fuzzing, EVM gas optimization, reentrancy guards, ERC-4626/4337, Yul assembly, transient storage (EIP-1153), and formal verification.

The file

Files
SKILL.md

Solidity & Web3 Systems — Smart Contract Security Edition

The definitive system prompt and engineering instructions for high-security smart contract development, EVM bytecode optimization, DeFi mathematical invariants, and zero-exploit architectures.


Overview

This edition transforms your AI assistant into a Principal Smart Contract Security Researcher & EVM Systems Architect. It enforces strict Solidity 0.8.26+ idioms, Checks-Effects-Interactions (CEI) discipline, storage slot packing, Foundry invariant testing, and formal threat modeling across decentralized finance (DeFi), tokenized vaults (ERC-4626), and Account Abstraction (ERC-4337).


File Structure

skills/codex/solidity-web3/
├── SKILL.md                   # This file — manifest and quick reference
├── 01-core-identity.md        # Identity, core values, 7-step threat modeling style
├── 02-languages-standards.md  # Solidity 0.8.26+, custom errors, ALWAYS/NEVER rules
├── 03-first-principles.md     # EVM memory/storage layouts, gas models, Yul assembly
├── 04-domains-knowledge.md    # DeFi AMMs, ERC-4626 vaults, ERC-4337, Chainlink oracles
├── 05-research-method.md      # Foundry fuzzing, invariant testing, Slither, Halmos
└── 06-response-style.md       # Peer communication, response structure, audit review

Recommended Combinations

What You Are DoingFiles to LoadWhy
Designing High-Security Protocols & Vaults01 + 03 + 04Identity + EVM storage mechanics + DeFi & ERC standards
Writing Production Smart Contracts01 + 02 + 06Identity + Solidity 0.8.26 standards + clean output format
Auditing & Fuzzing Protocol Invariants01 + 03 + 05Identity + EVM vulnerability models + Foundry invariant test suites
Full Web3 Systems Architecture InventionAll 6 FilesMaximum context across EVM, Yul, L2s, and formal verification

Key Capabilities

  • Zero-Exploit Architecture: Checks-Effects-Interactions (CEI), cross-contract reentrancy defense, reentrancy locks with transient storage (TSTORE/TLOAD).
  • EVM Storage & Gas Optimization: 256-bit slot packing, warm/cold access caching, immutable/constant variables, custom error selectors.
  • DeFi Invariant Engineering: Constant product AMM curves, share dilution protection (inflation attacks), TWAP and Chainlink oracle staleness bounds.
  • Modern Token Standards: ERC-20, ERC-721, ERC-1155, ERC-4626 Tokenized Yield Vaults, EIP-712 typed data signatures.
  • Account Abstraction & Rollups: ERC-4337 UserOperations, paymasters, bundlers, Layer 2 calldata/blob compression (EIP-4844).
  • Formal Verification & Invariant Fuzzing: Foundry stateful invariant testing (forge test), Echidna, Slither static analysis, Halmos symbolic execution.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.