# Read only reentrancy check

> Read only reentrancy check is an open-source agent skill for security. Finds read-only reentrancy risks where DeFi price views are read mid-operation. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/read-only-reentrancy-check
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** read-only-reentrancy-check
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through auditing composable DeFi integrations for read-only reentrancy. It targets cases where a protocol's pricing or share-value view can be read while the protocol is partway through an operation, protected only by a write-side non-reentrant guard, so a second protocol trusting that view could be misled.

The workflow has the agent enumerate externally callable view functions that other protocols use for valuation, classify whether each can be read during a callback window such as an ERC-721/1155 receiver hook, ETH transfer or liquidity removal, and map which consuming protocol acts on the value. It then describes building a proof of concept on a forked chain with anvil, comparing the exploit path against a read taken outside the window, and adding a medusa or echidna property that checks consumer valuation reads are never served from an inconsistent state. Slither is named as a helper for mapping cross-protocol consumers.

Users should be comfortable with Solidity, forked-chain testing and fuzzing tools. The skill is a specialist checklist with no bundled scripts, and it does not set any allowed tools.

## When your agent uses it

> Use when a composable DeFi integration exposes a pricing or share-value view that can be read while the owning protocol is mid-operation behind only a write-side non-reentrant guard, so an attacker re-enters through an ERC-721/1155 receiver or ETH-transfer hook and feeds a second consumer a skewed valuation to over-borrow, mint, or liquidate.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/read-only-reentrancy-check)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/read-only-reentrancy-check)

## Features

- **Cross-protocol view enumeration:** Lists externally callable pricing and share-value views that other protocols depend on.
- **Reentrancy window classification:** Checks whether a view can be read while the owning protocol holds only a write-side guard.
- **Consumer mapping:** Identifies the second protocol that reads a view mid-callback and acts on it.
- **Forked-chain proof of concept:** Describes reproducing the exploit on an anvil fork with a negative control outside the window.
- **Invariant property testing:** Suggests a medusa or echidna property guarding consumer valuation reads across protocols.

## Good for

- Audit a lending market that prices collateral from another protocol's share-value view
- Check whether an LP token pricing function can be read during a liquidity removal callback
- Review an ERC-721 or ERC-1155 receiver hook for re-entry into pricing views
- Write a fork-based proof of concept for a read-only reentrancy finding
- Add a fuzzing property to verify valuation reads stay consistent across protocols

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/read-only-reentrancy-check` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/read-only-reentrancy-check &&
cp -R "$tmp/.agents/skills/read-only-reentrancy-check" ~/.claude/skills/read-only-reentrancy-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/read-only-reentrancy-check` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/read-only-reentrancy-check` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/read-only-reentrancy-check &&
cp -R "$tmp/.agents/skills/read-only-reentrancy-check" ~/.agents/skills/read-only-reentrancy-check &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/read-only-reentrancy-check` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/read-only-reentrancy-check` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/read-only-reentrancy-check &&
cp -R "$tmp/.agents/skills/read-only-reentrancy-check" ~/.cursor/skills/read-only-reentrancy-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/read-only-reentrancy-check` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/read-only-reentrancy-check
```

Or copy the folder to `~/.gemini/skills/read-only-reentrancy-check` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/read-only-reentrancy-check`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/read-only-reentrancy-check &&
cp -R "$tmp/.agents/skills/read-only-reentrancy-check" ~/.copilot/skills/read-only-reentrancy-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/read-only-reentrancy-check` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/read-only-reentrancy-check` into your agent's skills folder as `read-only-reentrancy-check`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Read only reentrancy check need to run?

It has no scripts and no allowed tools set. The SKILL.md names slither, anvil, medusa and echidna as the tools its method uses.

### When does Read only reentrancy check trigger?

It is meant for composable DeFi integrations where a pricing or share-value view can be read mid-operation behind only a write-side non-reentrant guard, with re-entry through a token receiver or ETH transfer hook.

### What does Read only reentrancy check change in the agent's behavior?

It gives the agent a structured audit method: enumerate views, classify reentrancy exposure, map consumers, build a fork PoC and add a fuzzing property.

### How do I install Read only reentrancy check in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/read-only-reentrancy-check to use it in all your projects, or to .claude/skills/read-only-reentrancy-check in one project.

### Does Read only reentrancy check run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Read only reentrancy check?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Read only reentrancy check?

The closest alternatives to Read only reentrancy check are Defi invariant check, Defi amm security, Signature validation audit, Pre audit threat model and Cross chain bridge audit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Defi invariant check](https://ai-powered.com/skills/defi-invariant-check): Defi invariant check is an open-source agent skill for security.
- [Defi amm security](https://ai-powered.com/skills/defi-amm-security): Defi amm security is an open-source agent skill for security.
- [Signature validation audit](https://ai-powered.com/skills/signature-validation-audit): Signature validation audit is an open-source agent skill for security.
- [Pre audit threat model](https://ai-powered.com/skills/pre-audit-threat-model): Pre audit threat model is an open-source agent skill for security.
- [Cross chain bridge audit](https://ai-powered.com/skills/cross-chain-bridge-audit): Cross chain bridge audit is an open-source agent skill for security.
- [Evm audit flow](https://ai-powered.com/skills/evm-audit-flow): Evm audit flow is an open-source agent skill for security.
- [Erc1271 revert data check](https://ai-powered.com/skills/erc1271-revert-data-check): Erc1271 revert data check is an open-source agent skill for security.
- [Secure workflow guide](https://ai-powered.com/skills/secure-workflow-guide): Secure workflow guide is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/read-only-reentrancy-check
