
Read only reentrancy check
Finds read-only reentrancy risks where DeFi price views are read mid-operation
Read only reentrancy check is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 227
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Read only reentrancy check
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/read-only-reentrancy-check to use it in all your projects:
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.
Copy the skill folder to ~/.agents/skills/read-only-reentrancy-check to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/read-only-reentrancy-check to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/read-only-reentrancy-checkOr copy the folder to ~/.gemini/skills/read-only-reentrancy-check yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/read-only-reentrancy-check:
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.
Get the folder:
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.gitThen 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.
What it does
- 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
Read only reentrancy check 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.
More from mtarcure/claude-vibe-squad

Writes alt text, timed captions and transcripts for images, footage and audio
- Open source
- 227 GitHub stars
- Design and media

Guides building product agent system prompts with eval-backed boundaries and output
- Open source
- 227 GitHub stars
- AI models and LLM tooling

Guides authorized adversarial testing of autonomous LLM agents for injection and approval
- Open source
- 227 GitHub stars
- Security

Writes a typed game-event to audio-cue map that hands adaptive audio designs to engines
- Open source
- 227 GitHub stars
- Developer tools

Generates missing README, CHANGELOG, LICENSE and agent-context files at project delivery
- Open source
- 227 GitHub stars
- Developer tools

Builds and proves multi-step exploit chains from weak bug-bounty findings
- Open source
- 227 GitHub stars
- Security




