WeChat Official Account Publisher: Converting Markdown to WeChat Official Account-compatible Inline HTML and Publishing Drafts

Preface

Writing long articles directly in the WeChat Official Account (MP) backend or pasting Markdown into the editor often leads to issues such as lost styling, incorrect heading hierarchies, and inconsistent display of code blocks and quotes on mobile devices. Manually converting every paragraph to inline styles and then repeatedly checking the preview is time-consuming and difficult to reuse. If a team prefers writing drafts in Markdown but requires a fixed layout, a pipeline from manuscript to publishable HTML is essential.

Here, we introduce the SkillHub community skill “WeChat Official Account Publisher” (@user_c442d9a2/wechat-publisher-plus): It converts Markdown into inline-styled HTML compatible with WeChat Official Accounts within an Agent conversation, offering optional templates and previews, and supports writing to the draft box via API.

What is this

“WeChat Official Account Publisher” is an Agent Skill designed for content creation, with the identifier @user_c442d9a2/wechat-publisher-plus. The current version is 1.0.0, the source is community, the publisher is user_c442d9a2, and it is categorized as content-creation on SkillHub. The Skill page marks requires_api_key=true; when using publishing capabilities related to the WeChat Open Platform, you need to prepare and configure API credentials yourself.

The core problem it solves is: writing body text in Markdown and having the Skill generate inline-styled HTML based on selected templates, reducing the need for manual formatting in the Official Account editor. When a publishing workflow is required, the result can be published to the draft box, verified in the backend, and then mass-distributed.

Core Features

The following capabilities are derived from the official SkillHub introduction and skill page descriptions; details not appearing in the materials are not expanded upon.

  1. Six Layout Templates: Tech Geek, Elegant Literary, Business Minimalist, Fashion Vibrant, Classic Reading, and Warm Healing. Select a style while writing, and the Skill applies the corresponding styling.
  2. One-click Markdown Conversion: Converts Markdown into inline-styled HTML compatible with WeChat Official Accounts (since the Official Account editor has limited support for complex CSS, inline styles are a common practice).
  3. Preview: Allows previewing the effect after conversion, facilitating adjustments to the body text or template before publishing.
  4. API Publish to Draft Box: Provided the API is configured, graphic messages can be sent to the Official Account draft box rather than performing mass distribution directly within the Skill (specific interfaces and fields are subject to the instructions within the Skill).
  5. Natural Language Triggering: The Skill can be activated using Official Account-related expressions in conversation. Officially listed trigger words include: WeChat Official Account, Official Account layout, Official Account publish, WeChat graphic text, and template layout.

Installation and Activation

Method 1: Install via SkillHub CLI

If SkillHub CLI is not installed, you can first check the version:

command -v skillhub && skillhub --version

If not installed, you can execute the full installation (including CLI and default Skills) according to the SkillHub installation documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing this Skill, it is mandatory to point --dir to the current Agent’s skills directory. Otherwise, it will default to installing to ./skills/, which the Agent may not recognize. Common path examples (subject to the client you are actually using):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

The installation command form is as follows (replace <skills directory> with one of the paths above):

skillhub install user_c442d9a2/wechat-publisher-plus --dir <skills directory>

You can also search first and then install:

skillhub search wechat-publisher
skillhub install user_c442d9a2/wechat-publisher-plus --dir <skills directory>

After installation, restart or reload skills according to the requirements of your Agent (SkillHub documentation notes: if installed in the wrong directory, it will not be recognized even after restarting).

Method 2: Let the Agent install via official prompt

The installation prompt provided on the SkillHub skill page is: Ask the Agent to install @user_c442d9a2/wechat-publisher-plus according to the SkillHub Installation Instructions. This is suitable for scenarios where you are accustomed to managing skills via conversation and do not want to write CLI commands manually.

API Key

The skill tag requires_api_key=true indicates that steps related to the WeChat API, such as publishing, require a key. Specific environment variable names and configuration file paths are subject to the SKILL.md inside the Skill package or the Skill’s instructions during conversation. If field names are not listed in the materials, you should ask the Agent about the credential configuration method for this Skill after installation; do not guess unpublished configuration items.

Typical Usage

The official materials do not provide step-by-step copyable command examples. A reproducible workflow can be completed in the Agent in the following order (specific wording varies by client; the core elements are the trigger words and Skill coordinates).

  1. Confirm that the Skill is installed in the correct skills directory and that API credentials (if using the publish feature) are configured as required by the Skill.
  2. Use trigger words in the conversation to express your intent, for example: “Use Official Account layout to convert the following Markdown into WeChat graphic HTML; select the Business Minimalist template.”
  3. Paste or attach the Markdown body text to let the Skill complete the conversion; request a preview description or preview HTML if needed.
  4. If only local HTML is needed for pasting into the backend, simply take the generated inline HTML.
  5. If it needs to go to the draft box, clearly request “Publish to draft box via API” provided credentials are complete, and supplement metadata such as title and cover required by the Skill (subject to Skill runtime prompts).

The six template names can be used verbatim when selecting: 科技极客 (Tech Geek), 优雅文艺 (Elegant Literary), 商务简约 (Business Minimalist), 时尚活力 (Fashion Vibrant), 经典阅读 (Classic Reading), 温暖治愈 (Warm Healing).

Scenarios and Notes

Who it is for

  • Content authors or operators who write long Official Account articles in Markdown and desire a unified layout.
  • Teams that need to complete “Write → Layout → Draft” within an Agent workflow to reduce repetitive manual styling.
  • Maintainers who already possess or can apply for WeChat Official Account Open Platform API permissions and are willing to store API Keys securely locally.

Limitations and Notes

  • It generates inline HTML for Official Account scenarios; complex interactions, external link strategies, original declarations, etc., must still be handled in the Official Account backend according to platform rules.
  • The publishing capability depends on the WeChat API and valid credentials; the tag requires an API Key. Without configuration, the availability of layout and preview capabilities may differ from publishing capabilities; subject to the Skill’s actual behavior.
  • The SkillHub page shows: Rating 100000, Downloads 1694, Install Count 0 (page statistics, subject to change over time). When selecting, it is recommended to verify independently based on your own Agent environment and Skill version 1.0.0.
  • The official API address https://api.skillhub.cn/user_c442d9a2/wechat-publisher-plus returned HTTP 405 at the time of crawling. Daily installation and instructions should be based on the SkillHub skill page and skillhub install.

Conclusion

“WeChat Official Account Publisher” chains Markdown, six fixed templates, inline HTML, and the draft box API into a conversational layout and publishing pipeline, suitable for writers who treat Official Accounts as a regular channel. For installation and priority source strategies, see the SkillHub Installation Documentation; for skill details and installation prompts, see the SkillHub page:

https://www.skillhub.cn/skills/user_c442d9a2/wechat-publisher-plus

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye