Wechat Article Fetch
cat-xierluo/legal-skills
抓取微信公众号文章(mp.weixin.qq.com)到本地。当用户发来公众号链接要求"抓取""保存""存下来""归档""留痕""转成 Markdown"时使用。默认双产出:Markdown 整理版(供检索引用)+ HTML 原件保真归档(离线双击可读,供回溯核对)。默认 HTTP 直抓零依赖,失败自动切浏览器兜底。
把定稿Markdown和本地配图生成公众号兼容内联HTML、图片内嵌稳定版、复制预览、390px手机长截图及完整性和隐私报告。适用于公众号文章定稿后的排版、检查和交付;不负责改稿,也不会在未经确认时创建公众号草稿。
$ npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davinci-seven/wechat-article-pipeline wechat-article-pipeline --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
Claude Code skills documentation · loads skills from .claude/skills/
Install the "wechat-article-pipeline" agent skill from https://github.com/davinci-seven/wechat-article-pipeline/tree/main into .claude/skills/wechat-article-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-article-pipeline", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davinci-seven/wechat-article-pipeline wechat-article-pipeline --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "wechat-article-pipeline" agent skill from https://github.com/davinci-seven/wechat-article-pipeline/tree/main into .agents/skills/wechat-article-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-article-pipeline", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davinci-seven/wechat-article-pipeline wechat-article-pipeline --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "wechat-article-pipeline" agent skill from https://github.com/davinci-seven/wechat-article-pipeline/tree/main into .cursor/skills/wechat-article-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-article-pipeline", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davinci-seven/wechat-article-pipeline wechat-article-pipeline --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "wechat-article-pipeline" agent skill from https://github.com/davinci-seven/wechat-article-pipeline/tree/main into .gemini/skills/wechat-article-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-article-pipeline", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install davinci-seven/wechat-article-pipeline wechat-article-pipelineInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "wechat-article-pipeline" agent skill from https://github.com/davinci-seven/wechat-article-pipeline/tree/main into .github/skills/wechat-article-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-article-pipeline", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davinci-seven/wechat-article-pipeline wechat-article-pipeline --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "wechat-article-pipeline" agent skill from https://github.com/davinci-seven/wechat-article-pipeline/tree/main into .opencode/skills/wechat-article-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-article-pipeline", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
wechat-article-pipeline把定稿Markdown和本地配图生成公众号兼容内联HTML、图片内嵌稳定版、复制预览、390px手机长截图及完整性和隐私报告。适用于公众号文章定稿后的排版、检查和交付;不负责改稿,也不会在未经确认时创建公众号草稿。
Wechat Article Pipeline is an agent skill from davinci-seven/wechat-article-pipeline. 把定稿Markdown和本地配图生成公众号兼容内联HTML、图片内嵌稳定版、复制预览、390px手机长截图及完整性和隐私报告。适用于公众号文章定稿后的排版、检查和交付;不负责改稿,也不会在未经确认时创建公众号草稿。
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 49 other files (for example `README.md`, `docs/agent-prompt.md` and `docs/credits.md`).
It sits in Productivity & Automation, covering Messaging and chat bots and Markdown. It works with WeChat, OpenAI and Playwright. The repository describes itself as: 面向 Windows 和 AI Agent 的公众号文章排版流水线:Markdown + 本地配图 → 公众号兼容内联 HTML、发布稳定版、390px 手机预览、长截图与完整性校验报告。不改原稿,不自动发布。 The licence is MIT.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ab90abb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Wechat Article Pipeline loads about 1.1k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 95 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from davinci-seven/wechat-article-pipeline at commit ab90abb, republished under its MIT licence (© davinci-seven). 95 words, ~1,114 tokens.
.claude/skills/wechat-article-pipeline/SKILL.md (or your agent's skills folder). This skill also uses 43 other files; get the full folder from GitHub.把已经定稿的Markdown和本地配图交给本仓库现有脚本处理,输出可复制到公众号的HTML、手机预览和可核对的报告。
olive-journal如果文章目录里有多份Markdown,先请用户明确指定。不得自行猜测哪份是定稿。
md2wechat convert二次渲染已经生成的HTML。先定位仓库根目录、定稿Markdown和图片,再选择当前系统对应的入口。
优先调用仓库现有的一键脚本:
.\tools\公众号排版.ps1 -ArticleDir "F:\文章\我的文章" -Markdown "终稿.md" -OpenPreview路径必须加引号。中文目录、空格和括号在不加引号时会被拆开,<和>在PowerShell里还是重定向符,直接写占位尖括号会报语法错误。
只有用户指定主题时才追加-Theme moyu-green(可选值用-ListThemes查看)。脚本失败后保留真实错误,不绕过图片、HTML或隐私检查。
该脚本已包含全部8个步骤,含长截图。未安装Playwright时第6步会告警并把screenshot_status标为“未运行”,其余步骤照常完成。
调用仓库现有脚本完成同一条流水线,不另写一套渲染器:
tools/render_wechat.py生成公众号兼容内联HTML、图片内嵌发布稳定版、390px手机截图页、图片证据表和完整性数据。wrap_preview.py生成带一键复制按钮的预览页。tools/capture_mobile_screenshot.py在390px视口截取完整长图,超高页面由脚本自行分段拼接。没有浏览器或截图能力时,把长截图标为“未运行”,不得用截图页代替并声称完成。tools/sanitize_public_output.py生成隐私报告。HTML只扫描,不改写;报告里的警告需要人工判断。完整命令如下。把ARTICLE、LAYOUT、GZH三个变量换成实际路径即可,其余原样执行:
ARTICLE="/path/to/我的文章" # 文章目录
LAYOUT="$ARTICLE/公众号排版" # 产物目录,不要写回原稿目录之外
GZH="$HOME/.codex/skills/gzh-design" # 已安装的gzh-design
# 1. 渲染:正文HTML、发布稳定版、手机截图页、图片证据表、完整性数据
python tools/render_wechat.py \
--markdown "$ARTICLE/终稿.md" \
--output-root "$LAYOUT" \
--theme olive-journal
# 渲染器按主题决定文件名,从报告里读,不要自己拼。
# 路径通过sys.argv传入,不要拼进Python字符串,否则Windows路径的反斜杠会被当转义符。
read_field() {
python -c "import json,sys;print(json.load(open(sys.argv[1],encoding='utf-8'))[sys.argv[2]])" \
"$LAYOUT/source-integrity.json" "$1"
}
CLEAN=$(read_field clean_html)
STABLE=$(read_field stable_html)
MOBILE=$(read_field mobile_screenshot_page)
PREVIEW="${STABLE/_发布稳定版.html/_预览.html}"
# 2. 组件与HTML校验,退出码非0即为不合规
python "$GZH/scripts/component_lint.py" "$GZH"
python "$GZH/scripts/validate_gzh_html.py" "$CLEAN"
python "$GZH/scripts/validate_gzh_html.py" "$STABLE"
# 3. 带一键复制按钮的预览页
python "$GZH/scripts/wrap_preview.py" "$STABLE" "$PREVIEW"
# 4. 390px手机端完整长截图(需要Playwright)
python tools/capture_mobile_screenshot.py \
--page "$MOBILE" \
--output "$LAYOUT/output/终稿_390px_手机长截图.png"
# 5. 清理本机路径并检查敏感信息
python tools/sanitize_public_output.py \
--article-dir "$ARTICLE" \
--layout-root "$LAYOUT"第4步的退出码含义:0成功,2手机截图页不存在,3未安装Playwright,4浏览器执行失败。返回3时先尝试pip install playwright && python -m playwright install chromium;仍然不行就把长截图标为“未运行”,不得用手机截图页HTML冒充长截图。
tools/stitch_screenshot.py用于已经手动分段截好图、需要拼接的场合;走上面第4步时不需要它,脚本内部会自行处理超高页面的分段拼接。
后续校验、预览包装和截图必须依据当前环境中的实际脚本位置执行,不得伪造命令输出。
至少核对并如实汇报:
source_unchanged结果privacy-audit.json中的错误和警告任何必需检查失败时,不把整套任务写成“已完成”。先返回失败位置、真实输出和可执行的下一步。
当执行环境是ChatGPT,并且已经生成带“一键复制到公众号”按钮的完整预览HTML时,最终必须同时交付以下两份HTML,不能互相替代。
在最终回复中额外提供一个HTML代码块,供ChatGPT直接切换Preview、小窗或全屏查看和截图。
<!doctype html>、顶部工具栏、预览容器和复制按钮。同时提供可下载的完整预览HTML,作为真实复制到公众号编辑器和发布前终审的唯一来源。
最终回复必须用这两个固定名称区分产物:
ChatGPT截图预览:聊天内轻量Preview,用于查看和截图,不是全文。公众号一键复制HTML:完整文章,用于真实复制和发布前终审。不要因为已经提供完整HTML下载附件,就省略ChatGPT环境中的轻量Preview代码块;也不要只给轻量Preview而漏掉完整HTML附件。
默认只生成本地文件,不登录公众号、不上传素材、不创建草稿。只有用户在看到本次产物后明确要求创建公众号草稿,才进入单独的发布步骤;即使进入发布步骤,也直接使用已生成HTML,不调用md2wechat convert。
安装方法见docs/skill-install.md,日常参数和输出说明见README.md。
© davinci-seven, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 43 other files in the repository root of davinci-seven/wechat-article-pipeline.
Open the folder on GitHubat commit ab90abb
Wechat Article Pipeline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Wechat Article Pipeline this skilldavinci-seven/wechat-article-pipeline | 158 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Wechat Article Fetchcat-xierluo/legal-skills | 720 | — | ~793 | Automated safety check: Pass | MIT | |
| Qiaomu Epub Book Generatorjoeseesun/qiaomu-epub-book-generator | 134 | — | ~1.1k | Automated safety check: Pass | None | |
| Web To Markdownrookie-ricardo/erduo-skills | 935 | — | ~894 | Automated safety check: Pass | MIT | |
| Wechat Article Formatterhuangserva/servasyy_skills | 168 | — | ~688 | Automated safety check: Notes | None | |
| Wechat Md PublisherLeoYeAI/openclaw-master-skills | 2.2k | — | ~3k | Automated safety check: Pass | MIT |
cat-xierluo/legal-skills
抓取微信公众号文章(mp.weixin.qq.com)到本地。当用户发来公众号链接要求"抓取""保存""存下来""归档""留痕""转成 Markdown"时使用。默认双产出:Markdown 整理版(供检索引用)+ HTML 原件保真归档(离线双击可读,供回溯核对)。默认 HTTP 直抓零依赖,失败自动切浏览器兜底。
joeseesun/qiaomu-epub-book-generator
Generate EPUB ebooks from Markdown files with SVG→PNG conversion, remote/local image embedding, compressed illustrations, and WeChat Reading compatibility.
rookie-ricardo/erduo-skills
Convert a web URL into cleaned Markdown with deterministic routing.
huangserva/servasyy_skills
将 Markdown 文章转换为微信公众号 HTML 格式,支持自动插入配图、微信样式优化. An agent skill from huangserva/servasyy_skills.
LeoYeAI/openclaw-master-skills
发布 Markdown 文章到微信公众号,支持草稿管理、多主题、智能图片处理、自动封面图。推荐与 news-to-markdown-skill 配合使用实现一键转载。
NeverSight/learn-skills.dev
一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传. An agent skill from NeverSight/learn-skills.dev.
Works with
把定稿Markdown和本地配图生成公众号兼容内联HTML、图片内嵌稳定版、复制预览、390px手机长截图及完整性和隐私报告。适用于公众号文章定稿后的排版、检查和交付;不负责改稿,也不会在未经确认时创建公众号草稿。. Wechat Article Pipeline is an agent skill from davinci-seven/wechat-article-pipeline.
Wechat Article Pipeline fits situations like: tasks that involve Messaging and chat bots; tasks that involve Markdown.
Run `npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a claude-code`. Or copy the skill folder (the davinci-seven/wechat-article-pipeline repository) into .claude/skills/wechat-article-pipeline in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a codex`. Or copy the skill folder (the davinci-seven/wechat-article-pipeline repository) into .agents/skills/wechat-article-pipeline in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davinci-seven/wechat-article-pipeline --skill wechat-article-pipeline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wechat-article-pipeline, .gemini/skills/wechat-article-pipeline, .github/skills/wechat-article-pipeline and .opencode/skills/wechat-article-pipeline in your project.
Going by SKILL.md and its folder, Wechat Article Pipeline needs the command-line tools its instructions call (python and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Wechat Article Pipeline is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Wechat Article Pipeline: Wechat Article Fetch (cat-xierluo/legal-skills, 720 stars), Qiaomu Epub Book Generator (joeseesun/qiaomu-epub-book-generator, 134 stars), Web To Markdown (rookie-ricardo/erduo-skills, 935 stars) and Wechat Article Formatter (huangserva/servasyy_skills, 168 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davinci-seven (a GitHub user) maintains it in davinci-seven/wechat-article-pipeline, which has 158 GitHub stars. The repository was last updated on August 15, 2026.
Source: davinci-seven/wechat-article-pipeline on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.