Agent skill · security · aiskillstore

solidity-security

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

Why this skill is useful

Provides domain-specific knowledge on smart contract vulnerabilities and secure coding patterns that the AI wouldn't reliably generate on its own.

What it needs

About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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 Critical Vulnerabilities 1. Reentrancy Attacker calls back into your contract before state is updated. Vulnerable Code: Secure Pattern (Checks-Effects-Interactions): Alternative: ReentrancyGuard 2. Integer Overflow/Underflow Vulnerable Code (Solidity < 0.8.0): Secure Pattern (Solidity >= 0.8.0): For Solidity < 0.8.0, use SafeMath: 3. Access Control Vulnerable Code: Secure Pattern: 4. Front-Running Vulnerable: Mitigation: Security Best Practices Checks-Effects-Interactions Pattern Pull Over Push Pattern Input Validation Emergency Stop (Circuit Breaker) Gas Optimization Use uint256 Instead of Smaller Types Pack Storage Variables Use calldata Instead of memory for Function Arguments Use Events for Data Storage (When Appropriate) Common Vulnerabilities Checklist Testing for Security Audit Preparation Resources references/reentrancy.md: Comprehensive reentrancy prevention references/access-control.md: Role-based access patterns references/overflow-underflow.md: SafeMath and integer safety references/gas-optimization.md: Gas saving techniques references/vulnerability-patterns.md: Common vulnerability catalog assets/solidity-contracts-templates.sol: Secure contract templates assets/security-checklist.md: Pre-audit checklist scripts/analyze-contract.sh: Static analysis tools Tools for Security Analysis Slither: Static analysis tool Mythril: Security analysis tool Echidna: Fuzzing tool Manticore: Symbolic execution Securify: Automated security scanner Common Pitfalls 1. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/solidity-security--db49dd

View the source on GitHub

Browse the @skills marketplace