← 返回 Skills 市场
xi0ng8

WeChat2PDF

作者 Xi0ng8 · GitHub ↗ · v0.1.2 · MIT-0
cross-platform ⚠ suspicious
339
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install xi0ng8-wechat2pdf
功能描述
将微信公众号文章完美转换为高清排版的无防盗链 PDF 和 Markdown 文件,方便永久归档与离线阅读。
安全使用建议
This skill appears to implement exactly what it promises (fetch a WeChat article, download images, build HTML/MD/PDF). The main red flag is the SKILL.md instruction that tells the agent to always and unconditionally trigger on any mp.weixin.qq.com link — that can lead to unwanted automatic invocations. Before installing: 1) decide whether you want the skill to auto-run on every WeChat link (it may be triggered in contexts where you don't expect it); 2) be aware it will download remote images and write files to disk (assets and PDFs); 3) Playwright/Chromium is heavy and may require additional downloads; 4) run the code in a sandbox or review and run it locally first if you have privacy or safety concerns; and 5) consider legal/copyright implications of archiving third-party articles. If you proceed, remove or relax the unconditional routing directive if you prefer explicit user consent each time.
功能分析
Type: OpenClaw Skill Name: xi0ng8-wechat2pdf Version: 0.1.2 The skill bundle is a legitimate tool for converting WeChat articles to PDF and Markdown formats. The core logic in `run.py` uses standard libraries (`requests`, `BeautifulSoup`, `playwright`) to scrape content, handle image lazy-loading/anti-leeching, and render the final document. It includes proper filename sanitization to prevent path traversal. While `SKILL.md` contains aggressive 'CRITICAL ROUTING' instructions designed to ensure the agent prioritizes this skill for WeChat links (a form of prompt-based tool hijacking), these instructions are aligned with the tool's stated purpose and do not direct the agent to perform harmful or unauthorized actions.
能力评估
Purpose & Capability
Name/description match the included code: run.py fetches WeChat article HTML, downloads images (handling lazy-load/data-src), embeds images (base64) in HTML, writes assets and markdown, and optionally uses Playwright to render PDF. The declared requirements (requests, bs4, markdownify, lxml, playwright) are appropriate for the stated task.
Instruction Scope
SKILL.md contains a high-priority routing directive: 'must unconditionally trigger' whenever the user's message contains an mp.weixin.qq.com link. This is broader than a normal usage note and can cause the agent to invoke the skill in contexts the user didn't intend. Otherwise, the runtime instructions (install Python libs, run run.py, return file paths or attachments) are narrowly scoped to the conversion task and do not request unrelated files or secrets.
Install Mechanism
No automated install spec is included (instruction-only install guidance). Dependencies are standard PyPI packages and Playwright, which is heavyweight but expected for headless Chromium PDF rendering. No downloads from unknown/personal servers or obscure URLs are present.
Credentials
The skill requests no environment variables, no credentials, and no config paths. Network access to download the target article and images is required and is consistent with the stated purpose.
Persistence & Privilege
The skill itself does not set always:true and does not request special system-wide privileges, but the SKILL.md's 'CRITICAL ROUTING' instruction attempts to force prioritized invocation whenever a specific domain appears. That instruction increases the skill's effective invocation scope beyond normal and could amplify impact if misused.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xi0ng8-wechat2pdf
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xi0ng8-wechat2pdf 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
- Added critical routing instruction: skill now automatically and with highest priority triggers when a message contains a `mp.weixin.qq.com` link. - Updated description and documentation to emphasize mandatory invocation and correct handling of WeChat articles with anti-hotlinking and lazy-loading images. - Version bumped from 0.1.0 to 0.1.2.
v0.1.1
- Initial release of WeChat2PDF skill. - Converts WeChat article URLs into high-quality, anti-hotlinking PDF and Markdown files for offline reading and permanent archiving. - Automatically bypasses image lazy-loading and hotlink protection to embed all images in output files. - Supports direct generation of clean Markdown files with local image folders for easy import into tools like Obsidian, Notion, or Logseq. - Provides command-line usage for easy integration and file output management.
元数据
Slug xi0ng8-wechat2pdf
版本 0.1.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

WeChat2PDF 是什么?

将微信公众号文章完美转换为高清排版的无防盗链 PDF 和 Markdown 文件,方便永久归档与离线阅读。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 339 次。

如何安装 WeChat2PDF?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install xi0ng8-wechat2pdf」即可一键安装,无需额外配置。

WeChat2PDF 是免费的吗?

是的,WeChat2PDF 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

WeChat2PDF 支持哪些平台?

WeChat2PDF 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 WeChat2PDF?

由 Xi0ng8(@xi0ng8)开发并维护,当前版本 v0.1.2。

💬 留言讨论