{
  "$schema": "https://bestaiskill.com/schemas/agent-install/2.json",
  "skill": "baoyu-diagram",
  "built": "2026-10-26",
  "control_level": 4,
  "control_level_label": "L4 高权限",
  "capabilities": [
    "execute_command",
    "write_file"
  ],
  "required_controls": {
    "agent": [
      "sandbox_recommended",
      "graded_authorization"
    ],
    "admin": [
      "approval_process",
      "rollback_support",
      "full_audit"
    ]
  },
  "evidence": [
    {
      "file": "scripts/",
      "summary": "Executes local script or command: scripts/main.ts (run via bun; sharp rasterizes local SVG files to PNG)"
    },
    {
      "file": "本地工作目录",
      "summary": "File I/O and artifact output: writes <input>@2x.png (or -o designated path), creates diagram/ directory when needed"
    }
  ],
  "verification": {
    "method": "第二遍独立重读 + 反查：① 目录树核对：SKILL.md + scripts/main.ts + references/{architecture,flowchart,sequence,structural}.md，无 package.json；② 全目录 URL 扫描：只有 fonts.googleapis.com（两处：@import 与 Output Rules 第 1 条自述）与 github.com/L... homepage，无 fetch/curl，脚本内零 URL；③ 逐行读 main.ts：确认只有 fs 读、sharp 动态 import、mkdirSync/toFile 写，无 spawn/网络/env；④ 重读 SKILL.md 的绘制顺序与间距规则，核对“遮罩矩形”确为强制步骤（essential）而非可选；⑤ 核对九类图型与参考文件覆盖：SKILL.md 列 9 类，references 只有 4 份专门文件（其余 5 类仅给要点），描述“Read the reference file if one exists for that type”与盘上一致，未夸大；⑥ 功能声明 vs 实际：description 宣称的“always a standalone .svg file”与 Output Rules 第 1 条一致。",
    "second_pass": [
      {
        "item": "脚本仅本地行为",
        "status": "ok",
        "detail": "main.ts 全文无 fetch/http/spawn/process.env；readFileSync(SVG) → sharp(density) → resize → png → toFile，另 mkdirSync 建目录。"
      },
      {
        "item": "Google Fonts 外链的性质",
        "status": "ok",
        "detail": "两处命中均为写入产物 SVG 的 @import 文本与 Output Rules 自述 'no external dependencies except the Google Fonts import'；脚本自身不请求该域名，按批4 口径不判级，已写入 risks。"
      },
      {
        "item": "绘制顺序与遮罩矩形确为强制",
        "status": "ok",
        "detail": "SKILL.md 明写 'The opaque masking rect trick is essential'，并给出 8 层绘制顺序与组件片段（遮罩 rect + 样式 rect 成对）。"
      },
      {
        "item": "间距规则为可检查数字",
        "status": "ok",
        "detail": "组件高 50-70px、垂直 ≥40px/水平 ≥30px、箭头标签 10px、区域边界内缩 20px、图例距最低元素 ≥20px、viewBox 30px padding，最后一并在流程第 5 步自检。"
      },
      {
        "item": "参考文件覆盖范围（是否夸大）",
        "status": "ok",
        "detail": "4 份布局参考对应 architecture/flowchart/sequence/structural；思维导图/时间线/状态机/数据流/示意在图型表中给出要点但无专门文件，SKILL.md 用 'Read the reference file if one exists for that type' 表述，不构成夸大。"
      },
      {
        "item": "meta 元数据",
        "status": "ok",
        "detail": "GitHub API：MIT、25926 stars、pushed_at 2026-09-10T15:13:43Z；本地 HEAD 与 pin 1567581c26ec… 一致。"
      }
    ],
    "level": 1,
    "level_label": "V1 已固定",
    "commit": "1567581c26ec29f4216c6e6835415bf30343b0e3",
    "sha256": "e4806bf926545ede07d69ae497b7a78228d1f30d5eab5fa9ba45a94d9d17bb10",
    "reviewed_by": null,
    "reviewed_at": null
  },
  "assessed_at": "2026-10-25",
  "method_version": "2.0",
  "mirror": {
    "archive": "https://skillpub.pages.dev/r2/v/2026-09-15/baoyu-diagram.tar.gz",
    "sha256": "e4806bf926545ede07d69ae497b7a78228d1f30d5eab5fa9ba45a94d9d17bb10",
    "commit": "1567581c26ec29f4216c6e6835415bf30343b0e3"
  },
  "original": {
    "github": "https://github.com/JimLiu/baoyu-skills/tree/main/skills/baoyu-diagram",
    "path": "skills/baoyu-diagram",
    "commit": "1567581c26ec29f4216c6e6835415bf30343b0e3"
  }
}