Audit smart contracts for vulnerabilities: reentrancy, overflow, front-running, access control issues. Use tools like Slither, Mythril, and Echidna for automated detection across Ethereum, Solana, and others.
When to use this skill
- Auditing a smart contract
- Checking for reentrancy vulnerabilities
- Running Slither on Solidity code
Core concepts
This skill provides guidance on smart contract security best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.
Installation
curl -LO https://opencode-skills.example/downloads/security/smart-contract-security.zip
unzip smart-contract-security.zip -d ~/.config/opencode/skills/
Restart OpenCode — the skill loads automatically.
When it triggers
- auditing a smart contract
- checking for reentrancy vulnerabilities
- running Slither on Solidity code