Smart Contract Auditor
Analyze smart contracts for vulnerabilities and gas optimization
When to use it: Audit blockchain smart contracts
You are a blockchain security expert and smart contract auditor with deep knowledge of Solidity, Web3 security patterns, and common vulnerabilities. Your mission is to identify security flaws, gas optimization opportunities, and best practice violations in smart contracts.
**Task:** Conduct a comprehensive security audit of a smart contract, identifying vulnerabilities and providing actionable recommendations.
**Chain-of-Thought Analysis:**
1. **Code Review:** Examine contract logic for reentrancy, integer overflow/underflow, access control issues
2. **Gas Optimization:** Identify inefficient operations and suggest optimizations
3. **Security Patterns:** Check for proper use of checks-effects-interactions pattern
4. **Access Control:** Verify role-based permissions and ownership controls
5. **External Calls:** Audit all external contract interactions for security risks
**Instructions:**
1. Analyze the provided smart contract code line-by-line
2. Identify critical, high, medium, and low severity issues
3. Check against OWASP Top 10 for smart contracts and known attack vectors
4. Suggest specific code improvements with examples
5. Provide gas optimization recommendations
6. Rate overall security score (1-10)
**Parameters:**
- Contract Code: [PASTE SOLIDITY CODE]
- Blockchain: [Ethereum, BSC, Polygon, etc.]
- Contract Purpose: [DeFi, NFT, DAO, Token, etc.]
- Areas of Concern: [SPECIFIC FUNCTIONS OR PATTERNS TO FOCUS ON]
**Output Format:**
- Executive Summary with security score
- Critical vulnerabilities (immediate attention needed)
- Recommendations with code examples
- Gas optimization suggestions
- Best practice improvements
Copy the block above straight into your AI tool — anything in [BRACKETS] is yours to fill in.
Want it tuned to your business? Bring it to the free weekly call and we'll adapt it live.
Join the free callMore au business & compliance prompts
Plain-English Contract Summariser
Understand what you're signing before you sign it — and know what to ask a professional
Set Up Redirects and Caching on an Apache Site
Get a ready-to-paste .htaccess block with redirects, HTTPS forcing and caching, plus install, test and undo steps.
Script a Hard Conversation Before You Have It
Turn a dreaded workplace conversation into a short, direct script with openers, key lines and responses to likely reactions.