{
  "$schema": "https://bestaiskill.com/schemas/agent-install/2.json",
  "skill": "wjs-publishing-wechat",
  "built": "2026-11-28",
  "control_level": 1,
  "control_level_label": "L1 Basic",
  "capabilities": [],
  "required_controls": {},
  "evidence": [],
  "verification": {
    "method": "基于证据包全量文件进行静态 AST 双遍交叉审计。第一遍对照 SKILL.md、README.md、各个 scripts/* 脚本及 prompt 模板核实功能声明、外部调用点、网络外发端点与凭证读取点；第二遍针对脚本具体实现逐一复查执行逻辑、异常处理与潜在风险出入。",
    "second_pass": [
      {
        "item": "题图与解释图自动生成脚本的执行链路与尺寸规范复核",
        "status": "ok",
        "detail": "复核 scripts/gen-cover-ai.sh 与 scripts/gen-illustration.sh：前者通过 Python 替换模板目标字词后传给 codex 并在产出后用 sips 强制裁切至 900x383（2.35:1）；后者将文章内容灌入 instructions，保留模型自适应比例，仅等比例重采样至 1024 宽，无强制裁切，代码与文档说明严格吻合。"
      },
      {
        "item": "草稿原地更新功能（draft/update）与鉴权依赖复核",
        "status": "ok",
        "detail": "复核 scripts/update-draft-via-api.py 与 scripts/upload-draft.sh：当 publish.json 中已存在 draft_media_id 时，脚本优先走 update-draft-via-api.py 读环境变量 WECHAT_APPID 与 WECHAT_SECRET 换取 access_token 并向官方接口发 POST 请求进行原地更新；若接口返回 40007 等失效码时平滑回退至 md2wechat create_draft，逻辑完备闭环。"
      },
      {
        "item": "盘古之白（中英文间距处理）实现与保护规则复核",
        "status": "ok",
        "detail": "复核 scripts/pangu.py：采用正则识别汉字与含字母英文块边界，内建 _protect 与 _restore 闭包函数对 ``` 代码块、`行内代码`、Markdown 链接/图片 URL 及裸 HTTP(S) 地址实施空字节占位保护，确保空格处理幂等且绝不破坏语法标记。"
      },
      {
        "item": "正文红字与段落空行转微信 HTML 机制复核",
        "status": "ok",
        "detail": "复核 scripts/upload-draft.sh 中的 Python 嵌入块：识别 **text** 转换为带内联样式的 <strong style=\"color:#ff0000;\">；同时为解决微信编辑器段间距塌陷问题，顶层块之间以 <p><br></p> 作为 spacer 隔开，与规范描述完全相符。"
      },
      {
        "item": "文章轻润色 5% 改动阈值及字数统计方法复核",
        "status": "ok",
        "detail": "复核 SKILL.md 中的字数与改动控制：给出剔除图片链接后的汉字与英文字符正则匹配命令行脚本，并明确声明只做错字纠正、切段与微调拗口，将禁止 AI 连接词和超 5% 退回写为硬规则。"
      },
      {
        "item": "留言拉取脚本对个人主体公众号权限受限的适配方案复核",
        "status": "ok",
        "detail": "复核 scripts/fetch-comments-by-cookie.sh 与 fetch-comments-via-gstack.sh：针对官方 API 对个人订阅号关闭评论接口的现状，提供抓取 Cookie 和复用 Chromium Profile 的网页抓取回退方案，并在脚本头部明确提醒 Cookie 时效与隔离安全事项。"
      }
    ]
  },
  "assessed_at": "2026-10-25",
  "method_version": "2.0",
  "mirror": {
    "accelerated_zip": "https://dl.bestaiskill.com/https://github.com/jianshuo/jianshuo-wechat-mp-publish/archive/HEAD.zip",
    "accelerated_clone": "https://dl.bestaiskill.com/https://github.com/jianshuo/jianshuo-wechat-mp-publish.git",
    "archive": "https://skillpub.pages.dev/r2/v/2026-11-07/wjs-publishing-wechat.tar.gz",
    "sha256": "eaa21b039c01eb56c732e859c86e939df68cf25455eca6b20fde91908fff8202",
    "commit": "d7a94266f8409873783fc67c8468713902c50ff0"
  },
  "original": {
    "github": "https://github.com/jianshuo/jianshuo-wechat-mp-publish",
    "path": "",
    "commit": "d7a94266f8409873783fc67c8468713902c50ff0"
  }
}