solidity-security

Audit Solidity smart contracts for reentrancy, overflow, and access control vulnerabilities.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill solidity-security-priyanshkuniyal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidity-security
Source: https://github.com/PriyanshKuniyal/gemini-cli-resources/tree/main/extensions/claude-code-workflows/plugins/blockchain-web3/skills/solidity-security
Command: npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill solidity-security-priyanshkuniyal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides a comprehensive guide to smart contract security, helping developers prevent common vulnerabilities and implement best practices in Solidity development.

Core Features & Use Cases

  • Security Best Practices: Offers detailed guidance on security patterns and techniques.
  • Vulnerability Prevention: Equips developers with knowledge to prevent reentrancy, overflow, and access control issues.
  • Auditing Contracts: Includes patterns and worked examples for auditing smart contracts.
  • Testing for Security: Provides examples of tests for common security vulnerabilities.
  • Audit Preparation: Offers contract documentation guidelines for professional audits.

Quick Start

Use the solidity-security skill to read the detailed patterns and worked examples in references/details.md.

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 locks. This Skill provides detailed security patterns and worked examples to help you identify and mitigate these vulnerabilities during development.

What are the best practices for auditing smart contract access control?

Best practices for auditing smart contract access control involve reviewing role-based permissions and ensuring proper modifier usage. This Skill guides developers through auditing existing contracts for access control issues and implementing secure ownership patterns in Solidity.

How do I test for integer overflow vulnerabilities in Solidity?

Testing for integer overflow vulnerabilities in Solidity requires writing specific test cases that pass boundary values to contract functions. This Skill provides examples of security tests targeting overflow issues and demonstrates patterns to safely handle arithmetic operations.

Do I need prior Solidity knowledge to use these smart contract security patterns?

Yes, you need prior Solidity knowledge to use these smart contract security patterns effectively. The Skill requires an existing understanding of Solidity and common blockchain security patterns to implement the provided best practices and audit complex vulnerabilities.

What is the best way to prepare Solidity contracts for a professional security audit?

The best way to prepare Solidity contracts for a professional security audit is to follow strict documentation guidelines and implement standard security patterns. This Skill offers contract documentation guidelines to structure your code and pass professional security reviews.

How does this Skill help mitigate front-running in smart contracts?

This Skill helps mitigate front-running in smart contracts by providing targeted security patterns that obscure transaction ordering or implement commit-reveal schemes. It equips developers with the knowledge to prevent transaction ordering vulnerabilities during Solidity development.