wechat-publisher

Convert WPS note XML into inline-styled HTML for WeChat publishing.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/dy9759/SkillCollection --skill wechat-publisher-dy9759
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wechat-publisher
Source: https://github.com/dy9759/SkillCollection/tree/main/skills/wechat-publisher
Command: npx skills add https://github.com/dy9759/SkillCollection --skill wechat-publisher-dy9759

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Convert finished WPS notes into polished, WeChat-compatible HTML so authors can paste ready-to-publish content into the WeChat editor without manual reformatting or style loss.

Core Features & Use Cases

  • Automatic templated export: applies selectable templates (blue-theme, default, minimal, elegant) and embeds inline styles for reliable WeChat rendering.
  • WPS XML → HTML fidelity: maps WPS preset font colors and highlights to inline RGB styles, preserves images, code blocks with syntax highlighting, tables, columns, and placeholder tags.
  • Robust retrieval and fallbacks: prefers wpsnote-cli for speed and reliability and falls back to MCP tools when CLI is unavailable; reports clear error codes for missing notes, empty content, image issues, and length limits.
  • Use case: finalize an article produced with the content-creator skill and export a single HTML file that can be pasted into a WeChat public account editor for immediate publishing.

Quick Start

Export the WPS note with ID abc123 to a WeChat-ready HTML file using the wechat-publisher exporter.

Frequently Asked Questions about wechat-publisher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert WPS note XML to HTML for WeChat public editor publishing?

To convert WPS note XML to WeChat-ready HTML, this tool maps preset font colors to inline RGB styles, preserves images and code blocks, and embeds selectable templates for direct paste into the WeChat public editor without manual reformatting.

What is the best way to preserve WPS note formatting when pasting into WeChat?

The best way to preserve WPS note formatting for WeChat is applying inline-styled HTML export with color-to-RGB mapping and placeholder tag conversion, ensuring tables, columns, and syntax-highlighted code blocks render reliably in the WeChat editor.

Can I use wpsnote-cli to export WeChat HTML, and what happens if it is unavailable?

You can use wpsnote-cli for fast HTML retrieval, and if the CLI is unavailable, the tool falls back to MCP tools. This robust retrieval mechanism ensures continuous export functionality with clear error codes for missing notes or image issues.

Do I need pyyaml installed to export WPS notes to WeChat-compatible HTML?

Yes, you need pyyaml installed as a dependency to run the WPS note to WeChat HTML exporter. The environment requires this library to process the YAML configurations for template selection and XML parsing during the conversion.

What templates are available for WeChat HTML export from WPS notes?

Available templates for WeChat HTML export include blue-theme, default, minimal, and elegant options. These selectable templates embed inline styles directly into the output HTML, guaranteeing consistent visual rendering across the WeChat public editor.

Why does my WPS note to WeChat HTML conversion fail with an error code?

Your WPS note to WeChat HTML conversion fails with clear error codes when issues like missing notes, empty content, image retrieval problems, or length limit violations occur, helping you diagnose and fix specific export constraints quickly.