技能圖譜SKILLSGROVE
技能圖譜/效率工具/shiker1996/wechat-editroom/wechat-html-check-no-div

wechat-html-check-no-div

安裝

$npx skills add https://github.com/shiker1996/wechat-editroom --skill wechat-html-check-no-div
$git clone --depth 1 https://github.com/shiker1996/wechat-editroom.git /tmp/wechat-editroom && mkdir -p ~/.claude/skills && cp -r /tmp/wechat-editroom/skills/wechat-html-check-no-div ~/.claude/skills/wechat-html-check-no-div
請幫我安裝這個 Agent Skill:https://github.com/shiker1996/wechat-editroom/tree/c64599cd038ab7f5251ba03c14fad72d3edf3951/skills/wechat-html-check-no-div ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MIT对公众号终稿 HTML 执行确定性门禁,检查 div 开标签、非法 style 块、脚本、事件处理器、未处理图表围栏和文档首尾杂质,并输出机器可读结果。适用于 wechat-html-normalizer 之后、生成复制页预览之前或用户要求验收 article.ai.html;只检查,不自动改写内容。
以下 SKILL.md 內容轉載自 shiker1996/wechat-editroom(提交 c64599c),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 shiker 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

公众号 HTML 门禁

使用脚本检查,不依赖肉眼或模糊字符串搜索:

node scripts/check-html.mjs article.ai.html

脚本成功时退出码为 0,并输出 {"valid":true,"issues":[]};失败时退出码非零并列出问题。

检查项

  • 存在 <div> 开标签
  • 存在任何 <style> 或 link[rel=stylesheet]
  • 存在 <script>、on*= 事件处理器、iframe 或 form
  • 存在未处理的 Mermaid/ECharts 围栏
  • </html> 后存在非空内容

门禁失败后由编排器决定是否再次调用 wechat-html-normalizer。最多重试两轮;相同问题未减少时立即停止,避免无意义循环。该技能本身不修改 HTML。

檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 shiker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.