re-ai-triage

re-ai-triage is a skill for Claude Code from dslsdzc/rev-skills. It costs 87 tokens per session (1,478 once invoked), scanned A, original, Apache-2.0.

An entry point for analyzing the security and structure of artificial-intelligence models. It decides whether the input is a model file, an API, both, or a potentially malicious package, then sends the work to the relevant analysis path.

In plain words
What is it for?
Use it when someone asks to analyze an AI model, investigate model leakage, or assess AI-model security without clearly stating what access they have. It identifies common model files such as ONNX, PyTorch, Safetensors, and TensorFlow Lite files, and routes packaged models or suspicious behavior onward.
Why use it?
AI-model analysis differs depending on whether you can inspect files or only observe an API. This separates those cases so the analysis starts with the right evidence and does not treat training, deployment, or unrelated work as model reverse engineering.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when someone asks to analyze an AI model, investigate model leakage, or assess AI-model security without clearly stating what access they have. It identifies common model files such as ONNX, PyTorch, Safetensors, and TensorFlow Lite files, and routes packaged models or suspicious behavior onward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-ai-triage
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 dslsdzc/rev-skills --skill re-ai-triage
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

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 re-ai-triage

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-ai-triage"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ai-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,478 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00087 $0.01478
Opus 5.5 $0.00035 $0.00591
Sonnet 5.5 $0.00017 $0.00296
Haiku 4.5 $0.00009 $0.00148

Measured 1mo ago against content hash 6cf3d8dc3c2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

re-ai-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 1mo 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.

.claude/skills/re-ai-triage/SKILL.md · 73 lines

How it starts

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

AI 模型分析入口(分流器)

任务分类器(输入形态 → 路径)

拿到 AI 相关目标后先判输入形态,命中即转对应技能:

输入形态 路径
拿到模型文件(.onnx / .pt / .pth / .safetensors / .tflite) → [[re-ai-model]](文件层:格式解析 / 结构还原 / 权重提取 / 文件级水印)
只有 API(无文件,黑盒接口) → [[re-ai-attack]](行为层:extraction / fingerprint / privacy / robustness 评估;guard 授权前置)
文件 + API 都有 → 先 [[re-ai-model]](文件侧取证)→ 再 [[re-ai-attack]](行为侧验证)
发现恶意行为(投毒 / 后门 / 恶意载荷 / 下载执行) → 恶意分析(当前:[[re-ai-model]] 安全边界处理 + [[re-behavior]];未来独立 re-ai-malware 承接)
模型被打包进可执行(PyInstaller/pyarmor 等) → 先 [[re-binary-core]] 拆包 → 拆出的模型文件回本技能分流

何时使用 / 何时不用

  • 用:用户说「分析这个模型 / AI 模型安全 / 模型泄露」但未指明输入形态——先分流
  • 用:不确定目标是文件层还是行为层时——先识别再转
  • 不用:输入形态已明确(直接进 [[re-ai-model]] 或 [[re-ai-attack]],不绕本技能)
  • 不用:非 AI 目标(走全局入口 [[re-analyze]])
  • 不用:训练 / 微调 / 部署(非逆向)

工具准备

本技能只做识别与分流,工具轻量:

python3 / file —— 模型文件识别

  • python3 安装与验证见 [[re-python]] 工具准备
  • file:Linux apt install file / dnf install file / pacman -S file(多数预装);验证 file --version
  • 验证:python3 -c "import struct"(标准库)

模型库探测(判断目标依赖,不加载模型)

  • pip list 2>/dev/null | grep -iE 'torch|tensorflow|onnx'——确认本机可解析目标格式;缺失时由下游技能引导安装

操作步骤

  1. 输入形态识别:
    • 用户给了路径/文件 → 先 file <path> + xxd <path> | head -2 粗看,再转 [[re-ai-model]]。几种形态的可靠信号(都以字节为准,不靠扩展名;细节见 [[re-ai-model]] 步骤 1):
      • onnx:protobuf 流、无固定魔数,file 报 data;首字节是 ir_version 的 tag 0x08,第二个字节是版本号、随 ONNX 版本递增(不是常量 08);producer_name 按规范只 SHOULD 出现
      • safetensors:file 报 data——前 8 字节是小端头长度,其后才是 JSON 头(xxd -l 16 可见长度段与 {)
      • pytorch:新版是 zip 容器,file 报 Zip archive(PK\x03\x04 头),unzip -l 可见 data.pkl 等条目;老式是裸 pickle 流(无 PK 头,file 常误报 XENIX 8086 relocatable or i286 small model)——不直接 load,见 [[re-ai-model]] 坑 2
      • tflite:flatbuffers 流,file 报 data;字节 4–7 是文件标识符 ASCII TFL3
    • 用户只有 API 端点/查询能力 → 转 [[re-ai-attack]]
    • 两者都有 → 按任务分类器先文件后行为
  2. 目标归属确认:文件/API 的持有方与授权(自有 / 授权测试 / CTF·研究)——行为层评估前必须确认([[re-ai-attack]] guard 前置;授权上下文见 triage 第 0 步 RE_AUTH)
  3. 转交与记录:明确转交技能 + 会话变量(RE_GOAL、RE_AUTH、输入形态标记),不在本技能做深度分析

Read the full file on GitHub · 73 lines

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. 1mo ago Changed · +4 lines 6cf3d8dc3c2b
  2. 3mo ago First seen · 69 lines · 87 tokens per session scan A 326c7e126413

Subscribe to this mod's changes

re-ai-triage is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 87 tokens to every session and 1,478 once invoked, about $0.0003 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-08-30.

Related

re-ai-triage compared with skills from other repositories

re-ai-triage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re-ai-triagedslsdzc/rev-skillsSkill2751mo agoApache-2.0A87Claude Code
analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-UpSkill43mo agoMITA95Claude Code, Codex
analyzing-golang-malware-with-ghidramukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0A95Claude Code
ctf-ai-mlljagiello/ctf-skillsSkill3.8ktodayMITB67Claude Code
analyzing-golang-malware-with-ghidra26zl/cybersec-toolkitSkill114todayMITA95Claude Code
reverse-engineering-binaries-with-ghidrameltedinhex/analyst-ai-packSkill253d agoApache-2.0A80Claude Code, Codex
reverse-engineering-shellcodemeltedinhex/analyst-ai-packSkill253d agoApache-2.0A68Claude Code, Codex