integer-overflow

Community

Guard Solidity math: prevent overflows safely.

Authorccashwell
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill provides integer safety patterns for Solidity 0.8+ to prevent overflow and underflow by default, including guidance on unchecked blocks, safe casting, and handling phantom overflow.

Core Features & Use Cases

  • Automatic checks in Solidity 0.8+ prevent common overflow errors.
  • Unchecked blocks for performance where overflow is mathematically impossible.
  • Phantom overflow patterns and safe casting using libraries like SafeCast or FixedPointMathLib.
  • Practical examples and best practices for avoiding truncation and integer edge cases.

Quick Start

Review a Solidity snippet and implement safe arithmetic patterns to eliminate overflow risks.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: integer-overflow
Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#integer-overflow

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.