A Claude Code plugin providing production-grade skills for Solidity development. Each skill encodes battle-tested methodology from the best public resources in the ecosystem.
# Add marketplace
/plugin marketplace add max-taylor/Claude-Solidity-Skills
# Install plugin
/plugin install solidity-skills@Claude-Solidity-SkillsOr via CLI:
claude plugin marketplace add max-taylor/Claude-Solidity-Skills
claude plugin install solidity-skills@Claude-Solidity-Skillsclaude --plugin-dir ./solidity-skillsGenerates comprehensive Hardhat v3 test suites with structured coverage across unit, integration, and end-to-end testing layers.
What it does:
- Reads and analyzes the target contract's full interface (functions, modifiers, events, errors, state)
- Produces a test plan covering deployment, per-function happy/sad paths, access control, boundary cases, and multi-step integration flows
- Writes TypeScript tests using
loadFixture, Chai matchers, andhardhat-network-helpers - Outputs a coverage summary mapping tests to every require, event, and modifier
Invoke:
/solidity-skills:test-hardhat MyContract.sol
Resources used to build this skill:
- Hardhat v3 Testing Guide — Hardhat's official dual Solidity/TypeScript testing approach, fixtures, and network helpers
- Moloch DAO Test README — Verification helper pattern, DRY test philosophy, per-require coverage discipline, and state machine testing methodology
- Smart Contract Security Field Guide — Testing — Test planning hierarchy (unit → integration → e2e → fuzz), TDD workflow, invariant testing philosophy
- Ethereum.org — Smart Contract Testing — Canonical testing taxonomy (unit, integration, property-based, static/dynamic analysis), tool landscape overview
Generates comprehensive Forge test suites with first-class support for fuzz testing, invariant testing, and fork testing.
What it does:
- Reads and analyzes the target contract's full interface
- Produces a test plan covering unit tests, fuzz tests, invariant tests with handler contracts, and fork tests
- Writes Solidity tests using forge-std's
Testbase, cheatcodes (vm.prank,vm.expectRevert,vm.expectEmit,vm.warp,deal, etc.), andbound()for input constraining - Generates handler contracts for invariant testing with ghost variables and multi-actor simulation
- Outputs a coverage summary including fuzz and invariant coverage
Invoke:
/solidity-skills:test-foundry MyContract.sol
Resources used to build this skill:
- Foundry Book — Writing Tests — Test structure,
setUp(), naming conventions (test_,testFuzz_,invariant_), assertion library, verbosity flags - Foundry Book — Cheatcodes Overview — Full
vm.*cheatcode reference (prank, expectRevert, expectEmit, warp, roll, deal, store, mockCall, etc.) - Foundry Book — Invariant Testing Guide — Handler pattern, ghost variables,
targetContract,targetSelector,bound()vsvm.assume(), multi-actor simulation, configuration - Foundry Book — Fork Testing Guide —
vm.createFork,vm.selectFork, block pinning,deal()for ERC20s, RPC caching - Moloch DAO Test README — Verification helper pattern, per-require coverage discipline, state machine testing
- Smart Contract Security Field Guide — Testing — Test planning hierarchy, fuzz testing philosophy, invariant property identification
- Ethereum.org — Smart Contract Testing — Testing taxonomy and property-based testing methodology
Analyzes a Solidity contract for gas optimization opportunities, ranked by impact with before/after code and estimated gas savings.
What it does:
- Analyzes storage layout, access patterns, and function hot paths
- Identifies savings across 7 categories: storage layout, data structures, function-level, arithmetic, assembly, compiler settings, and L2-specific considerations
- Provides before/after code with specific gas numbers for every recommendation
- Outputs a prioritized report (high/medium/low impact)
Invoke:
/solidity-skills:gas-optimize MyContract.sol
Resources used to build this skill:
- Cyfrin — 11 Solidity Gas Optimization Tips — 11 techniques with Foundry benchmarks and real gas savings numbers (90% on events vs storage, 89% on mappings vs arrays, etc.)
- Alchemy — Solidity Gas Optimization — 12 techniques with code examples, encoding patterns, unchecked arithmetic, calldata vs memory, and gas cost reference table
- Hacken — Solidity Gas Optimization — Storage packing, gas refund mechanisms (15,000 refund on zero), compiler optimizer settings,
bytes32vsstring - Cyfrin — L2 Gas Efficiency Tips — L2-specific considerations (calldata dominates costs on rollups, storage relatively cheaper, batch operation value)
Performs a systematic, checklist-driven security audit with SWC vulnerability classification and weird ERC20 edge case analysis.
What it does:
- Works through 115+ checklist items across variables, structs, functions, modifiers, code patterns, external calls, events, and contract-level concerns
- Scans for all 37 SWC (Smart Contract Weakness Classification) vulnerability types
- Checks token interactions against 20+ known weird ERC20 behaviors (fee-on-transfer, rebasing, missing return values, blocklists, etc.)
- Includes DeFi-specific checks (oracle manipulation, flash loans, first depositor attacks, rounding direction)
- Outputs a structured audit report with findings classified by severity (Critical/High/Medium/Low)
Invoke:
/solidity-skills:audit MyContract.sol
Resources used to build this skill:
- Smart Contract Audit Checklist — 115+ actionable checklist items covering variables (10), structs (3), functions (19), modifiers (3), code patterns (51), external calls (8), static calls (4), events (5), contract-level (12)
- Awesome Audits Checklists — Meta-list linking to Cyfrin Solodit, ERC-specific checklists (ERC20, ERC721, ERC4626, ERC4337), DeFi protocol checklists (AMM, CDP, LSD), oracle security, bridge security
- SlowMist Auditor Learning Roadmap — Vulnerability taxonomy referencing DASP Top 10, SWC registry, and EVM-specific exploit patterns
- Weird ERC20 Tokens — Complete catalog of non-standard ERC20 behaviors: missing return values (USDT), fee-on-transfer (STA, PAXG), rebasing (AMPL), flash minting (DAI), blocklists (USDC), pausable (BNB), approval race conditions, low/high decimals, and more
- SWC Registry — Standardized vulnerability classification (SWC-100 through SWC-136) mapping to CWE IDs, used as the industry-standard reference in audit reports
- Smart Contract Security Field Guide — Testing — Security-focused testing methodology overlapping with audit concerns
solidity-skills/
├── .claude-plugin/
│ └── plugin.json
├── skills/
│ ├── test-hardhat/
│ │ └── SKILL.md # Hardhat test generation
│ ├── test-foundry/
│ │ └── SKILL.md # Foundry test generation
│ ├── gas-optimize/
│ │ └── SKILL.md # Gas optimization analysis
│ └── audit/
│ └── SKILL.md # Security audit
└── README.md
To add a new skill, create a directory under skills/ with a SKILL.md file. See existing skills for the frontmatter format and methodology structure.