mainframe-leanrea

mainframe-leanrea is a skill for Claude Code, Codex from CATWILLgh/MAINFRAME. It costs 35 tokens per session (426 once invoked), scanned A, original, MIT.

A toolkit and set of procedures for examining authorised copies of shipped software and other digital artifacts. It covers web and Electron bundles, native programs, mobile packages, databases, packet captures, and firmware.

In plain words
What is it for?
Tracing how a shipped feature works, extracting dependencies or versions, comparing builds, and reproducing observed behaviour from authorised artifacts.
Why use it?
It provides a careful path from identifying an artifact to inspecting its contents, dependencies, versions, or runtime behaviour while keeping analysis local and limiting exposure of secrets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Tracing how a shipped feature works, extracting dependencies or versions, comparing builds, and reproducing observed behaviour from authorised artifacts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catwillgh/mainframe/mainframe-leanrea
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 CATWILLgh/MAINFRAME --skill mainframe-leanrea
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME

Made for: Claude Code, Codex.

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 mainframe-leanrea

README.md
[![agentmods](https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-leanrea/github.svg)](https://agentmods.dev/skills/catwillgh/mainframe/mainframe-leanrea)
Your own site
<a href="https://agentmods.dev/skills/catwillgh/mainframe/mainframe-leanrea"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-leanrea/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 mainframe-leanrea

Your own site · 80×15
<a href="https://agentmods.dev/skills/catwillgh/mainframe/mainframe-leanrea"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-leanrea.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 426 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.00035 $0.00426
Opus 5.5 $0.00014 $0.00170
Sonnet 5.5 $0.00007 $0.00085
Haiku 4.5 $0.00003 $0.00043

Measured 13d ago against content hash 55c79e37bc5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mainframe-leanrea 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 13d ago.

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.

skills/mainframe-leanrea/SKILL.md · 31 lines

What it actually says

Inspect shipped software

Adapted from AICodeKing's LeanREA. The MIT license accompanies this copy. Upstream credits the REA team for informing its tool guidance.

  • Work on an authorized copy in a fresh scratch directory. Reuse a matching extraction. On APFS, a clone copy with cp -c can avoid duplicating data. Start with static inspection and trace runtime only on an authorized process or device. Keep collected output local and redact sensitive evidence.
  • Start with file -b and magic bytes. Inventory before decompiling. Search extracted trees with rg -uu so hidden bundle paths are included. Read bounded slices of large files and reuse a disassembly instead of dumping it repeatedly. Batch independent probes and keep their outputs attributable.
  • Use installed tools or the listed fallback. Get authority for installation or network-dependent alternatives. For build comparisons, diff inventories before code. Verify any minimal reimplementation with the same inputs and outputs as the original.
Target Read
Mach-O, ELF, PE, Go, Rust, .NET, Flutter snapshots, or WASM Native binaries
Electron, web or Hermes bundles, APKs, SQLite, plist, pcap/HAR, firmware, or runtime tracing Bundles and data

Tie observations to a file, offset, symbol, or string. Label inferences and unknowns. Use runtime evidence when the claim depends on actual execution. Finish when the requested conclusions have evidence.

Files

What ships with it

3 files 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. 13d ago Changed · -59 lines · -34 tokens per session 55c79e37bc5c
  2. 20d ago First seen · 90 lines · 69 tokens per session scan A a356e849aca8

Subscribe to this mod's changes

mainframe-leanrea is a skill published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 13d ago), licensed MIT. It adds 35 tokens to every session and 426 once invoked, about $0.0001 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-11-10.

Related

mainframe-leanrea compared with skills from other repositories

mainframe-leanrea next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mainframe-leanreaCATWILLgh/MAINFRAMESkill213d agoMITA35Claude Code, Codex
root-causehamr0/liteagentsSkill283d agoApache-2.0A56Claude Code
refactorhamr0/liteagentsSkill283d agoApache-2.0A10Claude Code
ai-slop-cleanerYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA25Claude Code
debugYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA22Claude Code
rubber-duckkirodotdev/KiroCrewSkill5.1ktodayApache-2.0A161Claude Code, Codex
aoe-runtime-lifecycleagent-of-empires/agent-of-empiresSkill5.2ktodayMITA76Claude Code, Codex