A professional smart contract auditor that runs comprehensive security reviews based on the OWASP Smart Contract Top 10 (2025) and real-world exploit patterns. It handles everything from full audits to targeted reviews for gas optimization, storage patterns, or DeFi protocol analysis. The skill adapts to your Solidity version, checking for SafeMath in pre-0.8.0 contracts or scrutinizing unchecked blocks in newer versions. It prioritizes critical vulnerabilities like access control flaws (responsible for $953M in losses) and reentrancy before moving to optimization suggestions. Each finding includes severity rating, exact location, exploitation scenario, and actionable code fixes. Use this when you need a structured security review before deployment or want to understand specific vulnerabilities in existing contracts.
npx -y skills add schwepps/skills --skill solidity-auditor --agent claude-codeInstalls into .claude/skills of the current project.
A professional-grade smart contract audit skill covering security vulnerabilities, gas optimization, storage patterns, and code architecture. Adapted to Solidity version specifics.
Determine the audit type based on user request:
| User Request | Audit Type | Primary Reference |
|---|---|---|
| "Full audit", "comprehensive review" | Full Audit | All references |
| "Security audit", "vulnerability scan" | Security Focused | references/security-checklist.md |
| "Gas optimization", "reduce gas costs" | Gas Optimization | references/gas-optimization.md |
| "Storage optimization", "storage patterns" | Storage Optimization | references/storage-optimization.md |
| "Code review", "architecture review" | Architecture Review | references/architecture-review.md |
| "DeFi audit", "protocol review" | DeFi Protocol | Security + Architecture references |
Identify Solidity Version: Check pragma statement. Read references/version-specific.md for version-specific considerations:
unchecked blocks, check custom errors usageUnderstand Scope:
Gather Context: Ask if not provided:
Run automated checks mentally using patterns from the security checklist:
unchecked blocks)Map attack surface:
Read references/security-checklist.md and evaluate each category:
Critical Priority (check first):
High Priority: 4. Flash Loan Attack Vectors (OWASP SC-04) 5. Input Validation (OWASP SC-05) 6. Oracle Manipulation (OWASP SC-06) 7. Unchecked External Calls (OWASP SC-07)
Medium Priority: 8. Integer Overflow/Underflow (version-dependent) 9. Denial of Service vectors 10. Front-running vulnerabilities
For gas optimization: Read references/gas-optimization.md
For storage optimization: Read references/storage-optimization.md
Use the template in references/report-template.md to structure findings.
| Severity | Criteria | Action |
|---|---|---|
| Critical | Direct fund loss possible, no user interaction needed | Immediate fix required, do not deploy |
| High | Fund loss possible with specific conditions, significant impact | Must fix before deployment |
| Medium | Limited impact, unlikely exploitation, or governance issue | Should fix, assess risk |
| Low | Minor issue, best practice violation | Recommended fix |
| Informational | Code quality, gas optimization, suggestions | Optional improvement |
From OWASP Smart Contract Top 10 (2025) with real losses:
Always provide:
Format recommendations as actionable code changes when possible.
Load these as needed based on audit type:
references/security-checklist.md - Complete vulnerability checklist with detection patternsreferences/gas-optimization.md - Gas optimization techniques and patternsreferences/storage-optimization.md - Storage layout and optimizationreferences/architecture-review.md - Code architecture best practicesreferences/version-specific.md - Solidity version considerationsreferences/report-template.md - Professional audit report template