solidity-security

Identify and fix security vulnerabilities in Solidity smart contracts.

3|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/clawdbotatg/clawdviction --skill solidity-security-clawdbotatg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidity-security
Source: https://github.com/clawdbotatg/clawdviction/tree/main/.agents/skills/solidity-security
Command: npx skills add https://github.com/clawdbotatg/clawdviction --skill solidity-security-clawdbotatg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns.

Core Features & Use Cases

  • Reentrancy prevention using checks-effects-interactions and optional ReentrancyGuard
  • Arithmetic safety with Solidity 0.8+ checks or SafeMath
  • Access control and role-based permissions
  • Input validation and fail-fast checks
  • Emergency stop/pause mechanism and gas-optimizing patterns
  • Audit-ready patterns and secure design guidelines

Quick Start

Provide a Solidity file scaffold that follows CEI, safe transfer patterns, and basic guardrails to start secure development.

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 my Solidity smart contract?

To prevent reentrancy attacks in your Solidity smart contract, apply the checks-effects-interactions pattern and integrate a ReentrancyGuard. This Skill enforces these secure coding practices to ensure state changes occur before external calls.

What is the best way to implement access control in Solidity?

The best way to implement access control in Solidity is by defining role-based permissions and strict validation checks. This Skill guides you in applying secure design patterns to restrict contract functions to authorized users.

How do I write audit-ready Solidity code for smart contract security?

Writing audit-ready Solidity code involves following secure design guidelines like input validation, fail-fast checks, and gas optimization. This Skill provides patterns to ensure your smart contract deployments meet security audit standards.

Does Solidity 0.8+ require SafeMath for arithmetic safety?

Solidity 0.8+ includes built-in arithmetic checks for overflow and underflow safety, reducing the need for SafeMath. This Skill helps you apply the correct arithmetic safety checks based on your Solidity version.

How do I add an emergency stop mechanism to a Solidity contract?

Adding an emergency stop or pause mechanism to a Solidity contract requires implementing specific access-controlled guardrails. This Skill supplies secure design patterns to halt contract execution during critical vulnerabilities.