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.
In this repository24 other files it gives its agents.
- codex-architectureSkill
- codex-brainSkill
- ai-codex-c-cppSkill
- ai-codex-csharp-dotnetSkill
- codex-debugSkill
- codex-deepSkill
- codex-elixirSkill
- codex-flutter-dartSkill
- codex-goalSkill
- ai-codex-goSkill
- ai-codex-java-kotlinSkill
- ai-codex-phpSkill
- codex-plansSkill
- ai-codex-pythonSkill
- codex-reviewSkill
- ai-codex-rustSkill
- codex-skillsSkill
- codex-sql-databaseSkill
- codex-startSkill
- ai-codex-swiftSkill
- codex-testSkill
- ai-codex-typescript-reactSkill
- ai-codex-ui-ux-designSkill
- codex-zigSkill
The file
Files
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 reviewRecommended Combinations
| What You Are Doing | Files to Load | Why |
| Designing High-Security Protocols & Vaults | 01 + 03 + 04 | Identity + EVM storage mechanics + DeFi & ERC standards |
| Writing Production Smart Contracts | 01 + 02 + 06 | Identity + Solidity 0.8.26 standards + clean output format |
| Auditing & Fuzzing Protocol Invariants | 01 + 03 + 05 | Identity + EVM vulnerability models + Foundry invariant test suites |
| Full Web3 Systems Architecture Invention | All 6 Files | Maximum 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/constantvariables, 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.
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
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.

