返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
w

wechat-pack

Convert local .docx or Markdown files into WeChat-ready HTML and generate a publish folder (source/assets/cover/wechat). Use when packaging documents for WeChat public account publishing with local assets and copy-paste HTML output. 当用户要求打包微信文章、转换文章为微信格式、微信公众号排版、生成微信推文 HTML、或将 Markdown/Word 转成微信可粘贴的格式时触发。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
372
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

wechat-pack

# WeChat Pack ## Quick start Run from the skill root: ```bash ./wechat_pack path/to/article.docx ./wechat_pack path/to/article.md ``` Outputs a publish folder with: - `source/` original input file - `assets/` downloaded or extracted images - `cover/` optional cover image - `wechat/` `article.html` ready to paste into WeChat editor - `meta.json` metadata (title, paths, asset count, cover variants) ## Supported inputs - `.docx` (requires `pandoc` installed) - `.md` / `.markdown` - `.html` / `.htm` (treated as already-converted HTML) ## Recommended workflow 1. Export the document from your editor to `.docx` or `.md`. 2. Run `./wechat_pack <file>`. 3. Open `wechat/article.html` and paste into the WeChat editor. ## Options - `--out <dir>`: output directory (default: `<basename>-wechat`) - `--title <title>`: insert a top-level title if missing - `--cover <path-or-url>`: download or copy a cover image into `cover/` ## Notes - For `.docx` conversion, `pandoc` must be available in `PATH`. - The script downloads external images and rewrites `<img>` to local `assets/` paths. - Output HTML is styled with inline CSS to be friendly to the WeChat editor. - If Pillow is available, cover variants are generated in `cover/`: `cover-wide-2.35x1.jpg` and `cover-square-1x1.jpg`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wechat-pack-1776289725 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wechat-pack-1776289725 技能

通过命令行安装

skillhub install wechat-pack-1776289725

下载

⬇ 下载 wechat-pack v1.0.0(免费)

文件大小: 5.29 KB | 发布时间: 2026-4-16 17:10

v1.0.0 最新 2026-4-16 17:10
Initial release of wechat-pack.

- Converts local .docx or Markdown files into WeChat-ready HTML.
- Generates a publish folder containing source files, local assets, HTML, and metadata.
- Supports image extraction and rewriting to local assets folder.
- Optionally generates cover images in multiple sizes if Pillow is installed.
- Requires pandoc for .docx conversion.
- Command-line tool with options for output directory, title, and cover image.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部