{
  "$schema": "https://bestaiskill.com/schemas/agent-install/2.json",
  "skill": "baoyu-format-markdown",
  "built": "2026-10-26",
  "control_level": 4,
  "control_level_label": "L4 高权限",
  "capabilities": [
    "execute_command",
    "network",
    "write_file"
  ],
  "required_controls": {
    "agent": [
      "sandbox_recommended",
      "graded_authorization"
    ],
    "admin": [
      "approval_process",
      "rollback_support",
      "full_audit"
    ]
  },
  "evidence": [
    {
      "file": "scripts/",
      "summary": "Local script or command execution: bun {baseDir}/scripts/main.ts <file.md> [--quotes/--no-spacing/--no-emphasi"
    },
    {
      "file": "网络端点",
      "summary": "External network access declaration: registry.npmjs.org: npx fetches autocorrect-node (version unpinned in repository); cached by npm after initial run"
    },
    {
      "file": "本地工作目录",
      "summary": "File I/O and artifact output: Writes back in-place to processed .md files (writeFileSync in main.ts during quotes/emphasis phases; the 'typography fixes only' path directly modifies user source files)"
    }
  ],
  "verification": {
    "method": "第二遍独立重读 + 反查：① 全目录清单（SKILL.md 355 行、references/title-formulas.md、scripts/{main,quotes,autocorrect}.ts、bun.lock、package-lock.json、package.json）；② 逐文件 token 扫描（fetch/axios/http/产 env/token/secret、spawn/spawnSync、writeFileSync、npx）确认只有 autocorrect.ts 一处外部命令、一处 npx；③ 三份脚本逐行读以核对每条 claim 与代码一致（quotes 默认 false、spacing/emphasis 默认 true、frontmatter 走 YAML）；④ SKILL.md 与 title-formulas.md 交叉核对标题公式数量（8 hook + 直白）与选择规则；⑤ 元数据核对：HEAD=1567581c26ec、MIT、stars 25926、pushed_at 2026-09-10T15:13:43Z（GitHub API）。",
    "second_pass": [
      {
        "item": "『模型做内容、脚本做排版』的两段式划分",
        "status": "ok",
        "detail": "SKILL.md Workflow 段逐字：'Claude performs content analysis and formatting (Steps 1-5), then runs the script for typography fixes (Step 6).' 与脚本能力一致（脚本无内容改写逻辑）。"
      },
      {
        "item": "脚本的确定性修复项与默认值",
        "status": "ok",
        "detail": "main.ts DEFAULT_OPTIONS={quotes:false, spacing:true, emphasis:true}；--quotes/--no-spacing/--no-emphasis 均有对应分支；与 SKILL.md 选项表一致。"
      },
      {
        "item": "npx autocorrect-node 为唯一外部命令调用",
        "status": "ok",
        "detail": "全目录 grep spawn/exec/npx 仅 autocorrect.ts 命中一处；main.ts 只有 readFileSync/writeFileSync。"
      },
      {
        "item": "外部依赖清单完整性",
        "status": "ok",
        "detail": "package.json 声明 8 个包（remark 生态 + unified + yaml），另加运行时 npx 的 autocorrect-node；全目录无任何 http 端点/API 调用。"
      },
      {
        "item": "无凭证读取",
        "status": "ok",
        "detail": "目录内 token 扫描 API_KEY/TOKEN/SECRET/.env/keychain 零命中；仅读取 EXTEND.md 偏好（路径在 SKILL.md 明列）。"
      },
      {
        "item": "标题公式库内容与『8 个公式』一致",
        "status": "ok",
        "detail": "references/title-formulas.md 首行 '8 hook formulas + straightforward style for balanced title generation.'，表格确为 8 行 hook（Subversive…Empathy）。"
      },
      {
        "item": "『仅排版修复』会原地改用户文件",
        "status": "ok",
        "detail": "SKILL.md 第三条路径写明 'Run typography script on original file in-place / No copy created, modifies original file directly'，与 main.ts writeFileSync(filePath…) 行为一致，已列为使用注意。"
      },
      {
        "item": "元数据（license/stars/commit）",
        "status": "ok",
        "detail": "git HEAD=1567581c26ec29f4216c6e6835415bf30343b0e3；仓库根 LICENSE=MIT（Copyright (c) 2026 Jim Liu）；GitHub API stars=25926、pushed_at=2026-09-10T15:13:43Z。"
      }
    ],
    "level": 1,
    "level_label": "V1 已固定",
    "commit": "1567581c26ec29f4216c6e6835415bf30343b0e3",
    "sha256": "6367312d8f2334bb0ed66fdb6cc5f72734deb617a1bf9ca9d0858868d252a1eb",
    "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-format-markdown.tar.gz",
    "sha256": "6367312d8f2334bb0ed66fdb6cc5f72734deb617a1bf9ca9d0858868d252a1eb",
    "commit": "1567581c26ec29f4216c6e6835415bf30343b0e3"
  },
  "original": {
    "github": "https://github.com/JimLiu/baoyu-skills/tree/main/skills/baoyu-format-markdown",
    "path": "skills/baoyu-format-markdown",
    "commit": "1567581c26ec29f4216c6e6835415bf30343b0e3"
  }
}