What problem does it solve? Smart contract bugs are irreversible and costly once deployed on-chain. This Skill helps developers write and audit Solidity contracts that resist common attack vectors like reentrancy, integer overflow, front-running, and broken access control. ## Core Features & Use Cases - Vulnerability Prevention Patterns: Apply Checks-Effects-Interactions, ReentrancyGuard, SafeMath, and commit-reveal schemes with concrete vulnerable-vs-secure code examples. - Security Best Practices: Implement pull-over-push payments, input validation, emergency stop (Pausable) circuit breakers, and role-based access control with OpenZeppelin. - Gas Optimization: Pack storage variables, use calldata over memory, and leverage events for cheaper data storage. - Use Case: Before deploying a DeFi vault contract, use this Skill to audit the withdrawal function for reentrancy, add a security checklist review, and write Hardhat tests that simulate attack scenarios. ## Quick Start Review my Solidity contract for reentrancy and access control vulnerabilities and rewrite the insecure functions using secure patterns.