bin-triage

bin-triage is a skill for Claude Code, Codex from batteryshark/rekit. It costs 147 tokens per session (601 once invoked), scanned A, original, Apache-2.0.

A read-only first check for an unknown file that identifies its format, extracts notable text, measures high-entropy areas and finds signs of embedded files.

In plain words
What is it for?
Use it for dropped files, attachments or carved data when you do not yet know what the file contains.
Why use it?
It helps you understand an unfamiliar file before choosing a specialised analyser or extraction tool. It can point to formats such as executables, archives, images, scripts and documents.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/batteryshark/rekit/bin-triage
Any agent
npx skills add batteryshark/rekit --skill bin-triage
Clone the repo
git clone --depth 1 https://github.com/batteryshark/rekit

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 bin-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/batteryshark/rekit/bin-triage.svg)](https://agentmods.dev/skills/batteryshark/rekit/bin-triage)
Your own site
<a href="https://agentmods.dev/skills/batteryshark/rekit/bin-triage"><img src="https://agentmods.dev/badge/skills/batteryshark/rekit/bin-triage.svg" alt="Measured on agentmods" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00147 $0.00601
Opus 5 $0.00073 $0.00300
Sonnet 5 $0.00029 $0.00120
Haiku 4.5 $0.00015 $0.00060

Measured 6d ago against content hash 21f96ae7f250, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

bin-triage 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/triage.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/bin-triage/SKILL.md · 43 lines

What it actually says

Binary Triage (format-agnostic)

A fast first look at any file, with no external tools. Pure-Python stdlib, read-only. Use it when you don't yet know what you're holding.

When to use

An unknown blob shows up — a dropped file, an attachment, a chunk carved out of something bigger. Run this to learn what it is and where to look next; it routes you to the format-specific analyzer (pe-analyze, elf-analyze, macho-analyze, dotnet-analyze) or to unpack for archives.

What it does

  1. Identify — format from magic bytes (ELF/PE/Mach-O/DEX/WASM, ZIP/gzip/xz/7z/ RAR/CAB/zstd/tar, PDF/PNG/JPEG, scripts) and a route to the right skill.
  2. Entropy — Shannon entropy in 4 KiB chunks → flags packed/encrypted/compressed regions (BINARY.HIGH_ENTROPY, with the % of the file and first offset).
  3. Strings — ASCII + UTF-16LE, surfacing interesting ones: URLs, IPs, .onion addresses, shell/exec cues (/bin/sh, cmd.exe, powershell), Windows paths, and exec/inject API names (BINARY.INTERESTING_STRING).
  4. Embedded scan — a lightweight mini-binwalk: known signatures (ZIP, gzip, xz, 7z, ELF, PDF, PNG, zstd) found at non-zero offsetsBINARY.EMBEDDED. For actual carving/extraction of embedded filesystems use binwalk-carve.

Strictly read-only — reads bytes only, never parses as code or executes.

Usage

rekit run bin-triage ./unknown.bin
rekit run bin-triage ./firmware.img --format json

Prerequisites

  • python3 ≥ 3.8 — pure stdlib, nothing to vendor.
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. 6d ago First seen · 43 lines · 147 tokens per session scan A 21f96ae7f250

Subscribe to this mod's changes

bin-triage is a skill published in the GitHub repository batteryshark/rekit (10 stars, last pushed 28d ago), licensed Apache-2.0. It adds 147 tokens to every session and 601 once invoked, about $0.0007 per session on Opus 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-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens