solidity-security

Guide Solidity smart contract security with vulnerability patterns and audit checklists.

11|4|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/wpank/ai --skill solidity-security-wpank
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidity-security
Source: https://github.com/wpank/ai/tree/main/skills/devops/solidity-security
Command: npx skills add https://github.com/wpank/ai --skill solidity-security-wpank

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write and audit secure Solidity smart contracts, preventing costly exploits by identifying and mitigating common vulnerabilities.

Core Features & Use Cases

  • Vulnerability Prevention: Learn about and implement patterns to avoid reentrancy, integer overflows, access control flaws, and more.
  • Audit Preparation: Use the comprehensive checklist to ensure contracts are ready for professional audits.
  • Use Case: You are developing a DeFi protocol and need to ensure your smart contracts are resistant to common attacks like reentrancy and flash loan manipulation. This Skill provides the patterns and best practices to achieve that.

Quick Start

Review the Solidity security patterns to prevent reentrancy attacks in your smart contracts.

Frequently Asked Questions about solidity-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent reentrancy attacks in Solidity smart contracts?

To prevent reentrancy attacks in Solidity smart contracts, implement the checks-effects-interactions pattern and use mutex modifiers. This Skill provides comprehensive guidance on secure coding patterns to mitigate critical vulnerabilities before deployment.

What are the most common smart contract vulnerabilities in DeFi protocols?

Common smart contract vulnerabilities in DeFi protocols include reentrancy, integer overflow, access control flaws, and oracle manipulation. This Skill outlines these critical security risks and offers patterns to identify and mitigate them during development.

How do I prepare my Solidity smart contracts for a professional security audit?

Prepare Solidity smart contracts for a professional security audit by reviewing comprehensive checklists covering vulnerability prevention and secure coding patterns. This Skill provides an audit preparation checklist to ensure your contracts are ready.

Does this Solidity security guidance cover gas optimization techniques?

Yes, this Solidity security guidance covers gas optimization techniques alongside secure coding patterns. It helps developers building DeFi protocols and NFTs optimize contract execution while maintaining robust security against exploits.

Can I use these security patterns to protect against flash loan manipulation?

Yes, you can use these security patterns to protect against flash loan manipulation and oracle manipulation. This Skill provides specific mitigation strategies for DeFi protocols facing complex attack vectors.

What is the best way to implement access control in Ethereum smart contracts?

The best way to implement access control in Ethereum smart contracts is by following established secure coding patterns. This Skill provides guidance on preventing access control flaws and other critical vulnerabilities in Solidity.