reentrancy-patterns

Community

Master reentrancy defenses in Solidity.

Authorccashwell
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Solidity contracts that perform external calls are vulnerable to reentrancy attacks, risking loss of funds and corrupted state if protections are not in place.

Core Features & Use Cases

  • Defensive patterns: CEI ordering, reentrancy guards, and protocol-wide protective measures to prevent malicious callbacks.
  • Attack patterns: Illustrative read-only and cross-contract reentrancy scenarios to guide robust defenses.
  • Use Case: When auditing a DeFi vault or any contract with external interactions, apply these patterns to harden withdrawal and transfer flows.

Quick Start

Review the VulnerableVault and FixedVault examples to implement safe external calls and state updates.

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: reentrancy-patterns
Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#reentrancy-patterns

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.