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 转成微信可粘贴的格式时触发。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "wechat-pack" with this command: npx skills add rockbotclub/wechat-pack

WeChat Pack

Quick start

Run from the skill root:

./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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Ai Competitor Analyzer

提供AI驱动的竞争对手分析,支持批量自动处理,提升企业和专业团队分析效率与专业度。

Registry SourceRecently Updated
General

Ai Data Visualization

提供自动化AI分析与多格式批量处理,显著提升数据可视化效率,节省成本,适用企业和个人用户。

Registry SourceRecently Updated
General

Ai Cost Optimizer

提供基于预算和任务需求的AI模型成本优化方案,计算节省并指导OpenClaw配置与模型切换策略。

Registry SourceRecently Updated