rea-bug-fix

rea-bug-fix is a skill for Claude Code, Codex from morluto/rea. It costs 43 tokens per session (650 once invoked), scanned A, original, MIT.

A guide for fixing a reproduced software defect at the part of the system that creates the wrong result. It covers boundaries such as input validation, session state, error handling, and result delivery.

In plain words
What is it for?
Use it to trace a reported bug to its owner, check related code, make the smallest appropriate fix, and verify the affected behavior.
Why use it?
It helps avoid patching symptoms in downstream code or making duplicate fixes when the real cause belongs to an earlier component.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Part of the rea plugin — 6 skills, 1 MCP server shipped together

Good fit Use it to trace a reported bug to its owner, check related code, make the smallest appropriate fix, and verify the affected behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morluto/rea/rea-bug-fix
About the project

REA is a reverse-engineering toolkit that lets coding agents investigate how software works, from app behavior to native binaries, even when source code is unavailable. It is for examining features, collecting evidence, explaining implementations, and building adapted versions for another stack. The catalogue add-ons connect coding agents to REA’s investigation workflow.

morluto/rea · 484,914 stars · on GitHub · rea.tools

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add morluto/rea --skill rea-bug-fix
Clone the repo
git clone --depth 1 https://github.com/morluto/rea

Made for: Claude Code, Codex.

Or install rea, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rea-bug-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/morluto/rea/rea-bug-fix/github.svg)](https://agentmods.dev/skills/morluto/rea/rea-bug-fix)
Your own site
<a href="https://agentmods.dev/skills/morluto/rea/rea-bug-fix"><img src="https://agentmods.dev/badge/skills/morluto/rea/rea-bug-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rea-bug-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/morluto/rea/rea-bug-fix"><img src="https://agentmods.dev/badge/skills/morluto/rea/rea-bug-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 650 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00650
Opus 5.5 $0.00017 $0.00260
Sonnet 5.5 $0.00009 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured today against content hash c3c14a122778, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rea-bug-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/rea-bug-fix/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

REA bug fix

Fix the cause once, where the fact is produced, and remove what the fix makes redundant. Follow the checkout's AGENTS.md, the tool design guide and the testing guide.

Trace the defect to its owner

Start from what the agent or user actually sees, then follow the call inward until you reach the code that decides the wrong fact. Common boundaries, in the order a call crosses them:

  1. The advertised schema clients receive (the served tools/list, not the canonical contract).
  2. Input validation and its error rewrite.
  3. Admission: whether the tool can run in the current session.
  4. Provider and session state: lifecycle stages the provider owns.
  5. Error projection: code, retry semantics, recovery and remediation.
  6. Result delivery: budgets, summaries and retained Evidence.

Decide where the fix belongs. A shared boundary owns how facts are carried, formatted and enforced; the producer owns facts only it knows, such as a lifecycle outcome, a measured limit, a current revision or the next tool. A downstream repair cannot restore a fact the producer never recorded.

Check siblings before fixing

Search for the same decision made elsewhere: duplicated factories, hand-built copies of shared text, per-client or per-tool name branches, and parallel checks that can disagree. Group confirmed instances under one root cause and fix them together. Similar wording alone does not establish another instance; reproduce it.

Prove it with an independent oracle

Write the regression first and show it fails on the base revision for the reported reason. Take expected values from independent facts, such as a literal, a fake's observed calls, or the served schema, never from the production function under test. Assert the key fact the bug broke (identity, linkage, coverage, retry semantics, recovery, what was written or released), not only that an error occurred. Prefer a public CLI/MCP workflow, then a production-boundary test. When an existing test asserts the buggy value, update it with the fix instead of keeping both.

Read the full file on GitHub · 67 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 67 lines · 43 tokens per session scan A c3c14a122778

Subscribe to this mod's changes

rea-bug-fix is a skill published in the GitHub repository morluto/rea (484,914 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 650 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-01.

Related

rea-bug-fix compared with skills from other repositories

rea-bug-fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rea-bug-fixmorluto/reaSkill485ktodayMITA43Claude Code, Codex
code_explorergoogle-gemini/gemini-cliSkill109ktodayApache-2.0A28Gemini CLI
test-failure-explorerQwenLM/qwen-codeSkill31ktodayApache-2.0A32Claude Code, Codex
session-investigatorevalstate/fast-agentSkill4.0ktodayApache-2.0A68Claude Code, Codex
smiles-validationsynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A24Claude Code, Codex
pr-autofixAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA45Claude Code, Codex
oversight-teammvschwarz/openrigSkill9.0ktodayApache-2.0A117Claude Code, Codex