用途:系统化分析 AICR 快照 YAML 文件,提取集群身份、云厂商特征、GPU 拓扑、节点健康、软件栈与运维信号,输出结构化 Markdown 报告。适用于用户提供快照文件待审阅、询问集群特征或云厂商差异、比较快照、提取特定洞察或生成集群评估报告的场景。
主要能力:按步骤提取元数据与结构、K8s 服务器与节点信息、GPU 信息(型号、架构、驱动、CUDA、MIG、持久化模式等)、OS 信息(release、grub、kmod、sysctl)、节点拓扑(taint/label、节点清单与截断标记)、K8s 镜像与策略、Slinky 与 MariaDB 冲突信号、SystemD 服务状态。可依据 provider-id 前缀或版本后缀识别 eks、gke、aks、oke、lke、metal3、kind 等;按 gpu.model 映射加速器类型;并映射到 AICR recipe 的 service、accelerator、os、intent、platform 条件。
使用方式:快照文件很大(50K-80K+ tokens),不要整文件读取。使用 mcp__plugin_context-mode_context-mode__execute_file 配合 Python/YAML 解析提取片段,或用 Grep 定位行范围后以 Read 的 offset/limit 定向读取。分析后可用 aicr recipe --service {detected_service} --accelerator {detected_accelerator} --os {detected_os} --intent {training|inference} --snapshot {snapshot_file} 映射条件。
限制:detected 仅表示存在 Controller 声明,不代表 Slurm 或其 operator 健康;MariaDB 状态不证明数据库可用性或外部数据库存在,不得推断 accounting.databaseSource;旧快照无 items 时回退到折叠 data map,该编码有损,需限定结论;节点计数以 data.node-count 为准,截断以 data.truncated 判断。