Security
540 installs
solidity-security
by wshobson/agents
Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts,…
Skill content
Comprehensive smart contract security patterns, vulnerability prevention, and secure Solidity development practices. - Covers critical vulnerabilities including reentrancy, integer overflow/underflow, access control failures, and front-running with vulnerable code examples and secure patterns - Teaches Checks-Effects-Interactions pattern, pull-over-push payment design, input validation, and emergency stop mechanisms for production-ready contracts - Includes gas optimization techniques such as storage packing, calldata usage, and event-based data storage - Provides security checklist, Hardhat testing examples for vulnerability detection, and audit preparation guidelines with proper documentation standards Solidity Security Master smart contract security best practices, vulnerability prevention, and secure Solidity development patterns. When to Use This Skill - Writing secure smart contracts - Auditing existing contracts for vulnerabilities - Implementing secure DeFi protocols - Preventing reentrancy, overflow, and access control issues - Optimizing gas usage while maintaining security - Preparing contracts for professional audits - Understanding common attack vectors Detailed patterns and worked examples Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient. Testing for Security