[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASFJ4GQGA3496SER7F72TM":3,"skill-same:01M7ASFJ4GQGA3496SER7F72TM":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7ASFJ4GQGA3496SER7F72TM","re-ai-triage",null,"AI 模型分析第一入口（分流器）：识别输入形态——模型文件走文件层逆向（re-ai-model）、 仅有 API 走行为层评估（re-ai-attack）、恶意行为走恶意分析。 触发词：AI模型分析、AI模型安全、模型文件、模型泄露、模型逆向、模型分析入口。","dslsdzc\u002Frev-skills","dslsdzc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F150430440?v=4","01M7ASEW5AKHWCFR1TXPAXQ237","DslsDZC","01M7ASEW5WJZ3GGBCCT12KHAQZ",243,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fre-ai-triage\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: re-ai-triage\ntype: atomic\ndescription: >\n  AI 模型分析第一入口（分流器）：识别输入形态——模型文件走文件层逆向（re-ai-model）、\n  仅有 API 走行为层评估（re-ai-attack）、恶意行为走恶意分析。\n  触发词：AI模型分析、AI模型安全、模型文件、模型泄露、模型逆向、模型分析入口。\ncapabilities: [triage]\n---\n\n# AI 模型分析入口（分流器）\n\n## 任务分类器（输入形态 → 路径）\n\n拿到 AI 相关目标后先判输入形态，命中即转对应技能：\n\n| 输入形态 | 路径 |\n|---|---|\n| 拿到模型文件（.onnx \u002F .pt \u002F .pth \u002F .safetensors \u002F .tflite） | → **[[re-ai-model]]**（文件层：格式解析 \u002F 结构还原 \u002F 权重提取 \u002F 文件级水印） |\n| 只有 API（无文件，黑盒接口） | → **[[re-ai-attack]]**（行为层：extraction \u002F fingerprint \u002F privacy \u002F robustness 评估；guard 授权前置） |\n| 文件 + API 都有 | → 先 [[re-ai-model]]（文件侧取证）→ 再 [[re-ai-attack]]（行为侧验证） |\n| 发现恶意行为（投毒 \u002F 后门 \u002F 恶意载荷 \u002F 下载执行） | → 恶意分析（当前：[[re-ai-model]] 安全边界处理 + [[re-behavior]]；未来独立 re-ai-malware 承接） |\n| 模型被打包进可执行（PyInstaller\u002Fpyarmor 等） | → 先 [[re-binary-core]] 拆包 → 拆出的模型文件回本技能分流 |\n\n## 何时使用 \u002F 何时不用\n\n- 用：用户说「分析这个模型 \u002F AI 模型安全 \u002F 模型泄露」但未指明输入形态——先分流\n- 用：不确定目标是文件层还是行为层时——先识别再转\n- 不用：输入形态已明确（直接进 [[re-ai-model]] 或 [[re-ai-attack]]，不绕本技能）\n- 不用：非 AI 目标（走全局入口 [[re-analyze]]）\n- 不用：训练 \u002F 微调 \u002F 部署（非逆向）\n\n## 工具准备\n\n本技能只做识别与分流，工具轻量：\n\n### python3 \u002F file —— 模型文件识别\n\n- python3 安装与验证见 [[re-python]] 工具准备\n- `file`：Linux `apt install file` \u002F `dnf install file` \u002F `pacman -S file`（多数预装）；验证 `file --version`\n- 验证：`python3 -c \"import struct\"`（标准库）\n\n### 模型库探测（判断目标依赖，不加载模型）\n\n- `pip list 2>\u002Fdev\u002Fnull | grep -iE 'torch|tensorflow|onnx'`——确认本机可解析目标格式；缺失时由下游技能引导安装\n\n## 操作步骤\n\n1. **输入形态识别**：\n   - 用户给了路径\u002F文件 → 先 `file \u003Cpath>` + `xxd \u003Cpath> | head -2` 粗看，再转 [[re-ai-model]]。几种形态的可靠信号（**都以字节为准，不靠扩展名**；细节见 [[re-ai-model]] 步骤 1）：\n     - **onnx**：protobuf 流、无固定魔数，`file` 报 `data`；首字节是 ir_version 的 tag `0x08`，**第二个字节是版本号、随 ONNX 版本递增（不是常量 `08`）**；`producer_name` 按规范只 SHOULD 出现\n     - **safetensors**：`file` 报 `data`——前 8 字节是小端头长度，其后才是 JSON 头（`xxd -l 16` 可见长度段与 `{`）\n     - **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\n     - **tflite**：flatbuffers 流，`file` 报 `data`；字节 4–7 是文件标识符 ASCII `TFL3`\n   - 用户只有 API 端点\u002F查询能力 → 转 [[re-ai-attack]]\n   - 两者都有 → 按任务分类器先文件后行为\n2. **目标归属确认**：文件\u002FAPI 的持有方与授权（自有 \u002F 授权测试 \u002F CTF·研究）——行为层评估前必须确认（[[re-ai-attack]] guard 前置；授权上下文见 triage 第 0 步 `RE_AUTH`）\n3. **转交与记录**：明确转交技能 + 会话变量（`RE_GOAL`、`RE_AUTH`、输入形态标记），不在本技能做深度分析\n\n## 跨域联合\n\n- [[re-managed]]：本技能是其 AI 分支的第一跳（re-managed → re-ai-triage → re-ai-model \u002F re-ai-attack）\n- [[re-ai-model]]：文件层下游\n- [[re-ai-attack]]：行为层下游（guard 授权前置）\n- [[re-binary-core]]：模型打包进可执行时的拆包前置\n- [[re-behavior]]：恶意行为侧协作（投毒\u002F后门的行为判定）\n\n## 常见坑与陷阱\n\n- **拿文件名猜格式**：`.pt` 可能是 pickle 也可能是 zip 容器（torch 新格式）、`.bin` 可能是任意权重 dump——以 `file` 输出与魔数为准，不靠扩展名\n- **分流过深**：本技能只识别与转交，不展开分析——在分流阶段做深度分析会与下游重复\n- **授权前置遗漏**：行为层评估（[[re-ai-attack]]）有 guard 授权要求——转交前先确认 `RE_AUTH`，未知归属时先询问，不直接进入行为层\n","# AI 模型分析入口（分流器）\n\n## 任务分类器（输入形态 → 路径）\n\n拿到 AI 相关目标后先判输入形态，命中即转对应技能：\n\n| 输入形态 | 路径 |\n|---|---|\n| 拿到模型文件（.onnx \u002F .pt \u002F .pth \u002F .safetensors \u002F .tflite） | → **[[re-ai-model]]**（文件层：格式解析 \u002F 结构还原 \u002F 权重提取 \u002F 文件级水印） |\n| 只有 API（无文件，黑盒接口） | → **[[re-ai-attack]]**（行为层：extraction \u002F fingerprint \u002F privacy \u002F robustness 评估；guard 授权前置） |\n| 文件 + API 都有 | → 先 [[re-ai-model]]（文件侧取证）→ 再 [[re-ai-attack]]（行为侧验证） |\n| 发现恶意行为（投毒 \u002F 后门 \u002F 恶意载荷 \u002F 下载执行） | → 恶意分析（当前：[[re-ai-model]] 安全边界处理 + [[re-behavior]]；未来独立 re-ai-malware 承接） |\n| 模型被打包进可执行（PyInstaller\u002Fpyarmor 等） | → 先 [[re-binary-core]] 拆包 → 拆出的模型文件回本技能分流 |\n\n## 何时使用 \u002F 何时不用\n\n- 用：用户说「分析这个模型 \u002F AI 模型安全 \u002F 模型泄露」但未指明输入形态——先分流\n- 用：不确定目标是文件层还是行为层时——先识别再转\n- 不用：输入形态已明确（直接进 [[re-ai-model]] 或 [[re-ai-attack]]，不绕本技能）\n- 不用：非 AI 目标（走全局入口 [[re-analyze]]）\n- 不用：训练 \u002F 微调 \u002F 部署（非逆向）\n\n## 工具准备\n\n本技能只做识别与分流，工具轻量：\n\n### python3 \u002F file —— 模型文件识别\n\n- python3 安装与验证见 [[re-python]] 工具准备\n- `file`：Linux `apt install file` \u002F `dnf install file` \u002F `pacman -S file`（多数预装）；验证 `file --version`\n- 验证：`python3 -c \"import struct\"`（标准库）\n\n### 模型库探测（判断目标依赖，不加载模型）\n\n- `pip list 2>\u002Fdev\u002Fnull | grep -iE 'torch|tensorflow|onnx'`——确认本机可解析目标格式；缺失时由下游技能引导安装\n\n## 操作步骤\n\n1. **输入形态识别**：\n   - 用户给了路径\u002F文件 → 先 `file \u003Cpath>` + `xxd \u003Cpath> | head -2` 粗看，再转 [[re-ai-model]]。几种形态的可靠信号（**都以字节为准，不靠扩展名**；细节见 [[re-ai-model]] 步骤 1）：\n     - **onnx**：protobuf 流、无固定魔数，`file` 报 `data`；首字节是 ir_version 的 tag `0x08`，**第二个字节是版本号、随 ONNX 版本递增（不是常量 `08`）**；`producer_name` 按规范只 SHOULD 出现\n     - **safetensors**：`file` 报 `data`——前 8 字节是小端头长度，其后才是 JSON 头（`xxd -l 16` 可见长度段与 `{`）\n     - **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\n     - **tflite**：flatbuffers 流，`file` 报 `data`；字节 4–7 是文件标识符 ASCII `TFL3`\n   - 用户只有 API 端点\u002F查询能力 → 转 [[re-ai-attack]]\n   - 两者都有 → 按任务分类器先文件后行为\n2. **目标归属确认**：文件\u002FAPI 的持有方与授权（自有 \u002F 授权测试 \u002F CTF·研究）——行为层评估前必须确认（[[re-ai-attack]] guard 前置；授权上下文见 triage 第 0 步 `RE_AUTH`）\n3. **转交与记录**：明确转交技能 + 会话变量（`RE_GOAL`、`RE_AUTH`、输入形态标记），不在本技能做深度分析\n\n## 跨域联合\n\n- [[re-managed]]：本技能是其 AI 分支的第一跳（re-managed → re-ai-triage → re-ai-model \u002F re-ai-attack）\n- [[re-ai-model]]：文件层下游\n- [[re-ai-attack]]：行为层下游（guard 授权前置）\n- [[re-binary-core]]：模型打包进可执行时的拆包前置\n- [[re-behavior]]：恶意行为侧协作（投毒\u002F后门的行为判定）\n\n## 常见坑与陷阱\n\n- **拿文件名猜格式**：`.pt` 可能是 pickle 也可能是 zip 容器（torch 新格式）、`.bin` 可能是任意权重 dump——以 `file` 输出与魔数为准，不靠扩展名\n- **分流过深**：本技能只识别与转交，不展开分析——在分流阶段做深度分析会与下游重复\n- **授权前置遗漏**：行为层评估（[[re-ai-attack]]）有 guard 授权要求——转交前先确认 `RE_AUTH`，未知归属时先询问，不直接进入行为层\n",{"name":5,"type":24,"description":25,"capabilities":26},"atomic","AI 模型分析第一入口（分流器）：识别输入形态——模型文件走文件层逆向（re-ai-model）、 仅有 API 走行为层评估（re-ai-attack）、恶意行为走恶意分析。 触发词：AI模型分析、AI模型安全、模型文件、模型泄露、模型逆向、模型分析入口。\n",[27],"triage","main","1977504515d3f5fa8889da43974feb7a0f4eaab9",".claude\u002Fskills\u002Fre-ai-triage",43,"https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills","https:\u002F\u002Fgithub.com\u002Fdslsdzc","Building systems from scratch","2026-10-12 04:15:49",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add dslsdzc\u002Frev-skills --skill re-ai-triage",{"tool":42,"command":43},"bunx","bunx skills add dslsdzc\u002Frev-skills --skill re-ai-triage",{"tool":45,"command":46},"pnpm","pnpm dlx skills add dslsdzc\u002Frev-skills --skill re-ai-triage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fre-ai-triage\u002FSKILL.md",true,[],[51,58,64,71,78,85],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7AT3SFGN6KTM2DBN8TCNC4K","no-tools","缺工具准备章节。missing tools section.","https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-tools\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7AT3PY0QVB4A4WGAZHY43WP","good-skill","https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7AT3NJ1PG8DR115AMJC1Q1C","gateway-skill","网关型技能，无工具准备章节。gateway skill.","https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgateway-skill\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7AT3KCJGZV60PKJX244V8Z4","broken-link","含死链接与合法 references 链接。broken link.","https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7AT3HMVTA2MR66A5FMATVFQ","wrong-name","名字与目录不符。name mismatch.","https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT3F4K5ES6N62092Y8TRNG","bad-frontmatter","https:\u002F\u002Fgithub.com\u002Fdslsdzc\u002Frev-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-frontmatter\u002FSKILL.md",[],[]]