solidity-security

Identify and remediate common Solidity security vulnerabilities in smart contracts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Solidity security is prone to vulnerabilities such as reentrancy, overflow, and weak access control. This Skill provides best practices, patterns, and templates to help developers write secure contracts and perform audits.

Core Features & Use Cases

  • Secure coding patterns (CEI, Checks-Effects-Interactions) and access control practices.
  • Practical vulnerability examples with secure alternatives and templates.
  • Audit-ready references and reusable Solidity templates for common scenarios.

Quick Start

Review a sample vulnerable contract and apply secure patterns to mitigate risks.

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?

Prevent reentrancy in Solidity smart contracts by applying the Checks-Effects-Interactions (CEI) pattern to isolate state changes from external calls. This Skill provides secure coding patterns and audit-ready templates to identify vulnerable code and remediate reentrancy risks.

What are the most common DeFi protocol vulnerabilities in Solidity?

Common Solidity vulnerabilities in DeFi protocols include integer overflow/underflow, weak access control, and front-running. This Skill helps identify these security risks during code reviews and provides secure design patterns to remediate them.

How do I audit a smart contract for access control and security flaws?

Audit a smart contract for access control flaws by reviewing code against established best practices and secure templates. This Skill provides audit-ready references and practical vulnerability examples to guide the security review process.

Does this Skill cover front-running mitigations and safe gas usage for DeFi protocols?

Yes, this Skill covers front-running mitigations and safe gas usage patterns for security-sensitive DeFi protocols. It provides proven templates and best practices to apply during secure contract development and code reviews.

What is the best way to fix integer overflow and underflow in Solidity?

The best way to fix integer overflow and underflow in Solidity is by applying secure coding patterns and best practices. This Skill provides practical examples of vulnerable contracts alongside secure alternatives to remediate these arithmetic issues.