leanrea
Installation
SKILL.md
leanrea: fast path
You already know these tools. This file only lists the fastest command for each target, and the traps.
Rules
- Work on a copy (
cp -con APFS is instant). Put each extraction in a new dir under$TMPDIR/re/<name>. Reuse an extraction if one exists. - Route by
file -b Tand the magic bytes first. Run the cheapest inventory next. Only then decompile or read code. rgskips hidden and ignored files, and bundlers hide code (Electron:.webpack/,.vite/). Always search extracted trees withrg -uu.- Never
cata big or minified file. Slice it:rg -o '.{0,200}NEEDLE.{0,200}' F | head. Dump a disassembly once to a file, then grep that file. - Batch independent probes into ONE shell call with
;andecho '--- name'markers (quoted: zsh expands a bare==x). Cap every output withheador-m. - Answer from evidence. In the answer, mark each claim as seen (cite file:offset, or a symbol/string) or inferred. A fact you did not find is unknown, not "absent". Static reading is not observed execution.
- A missing tool is not a blocker. Use the fallback in the same row, or
brew install <x>if the user allows it. - Turns cost more than bytes. Aim for 2–4 tool calls: one batched recon call, one or two targeted slices, then answer. Stop when every item you were asked has evidence. Do not re-verify what you already saw.