Zhiwen Typesetting: Turn Drafts into Paste-Ready WeChat Official Account HTML in One Click

Introduction

The WeChat Official Account backend imposes many restrictions on HTML and styles: external link styles are easily lost, section hierarchy requires manual alignment, and images and quotes need to be wrapped separately. Many people write the content in Markdown or Word first, then copy it into the editor, repeatedly changing the format. If you want the Agent to directly output a “paste-ready” finished HTML in the conversation, rather than bare Markdown, you need to encapsulate the layout rules into a Skill. Below is an introduction to Wenshi Layout (WeChat Content Layout) on SkillHub (coordinates @cyinfo/wensi-wechat-design), a general-purpose layout capability for AI Agents.

What is it

Wenshi Layout is an enterprise source Skill released by Chuyun Technology on SkillHub, with the current version 1.0.0 and categorized as content-creation. It solves the problem of generating fully inline style HTML that conforms to WeChat Official Account editor habits, starting from Markdown, Word, PDF, or plain text, to facilitate pasting in whole paragraphs while minimizing format loss. The tag indicates requires_api_key=false, meaning no extra API Key is needed after installation.

The official description is consistent with the SkillHub page, which can be summarized as: multi-format input, multiple preset themes, enhanced layout elements (section numbering, keyword underlining, quote cards, table of contents), and support for generating custom themes based on description; the output side emphasizes “dual script verification” as a fallback. The SkillHub page displays a score of 100000 and 904 downloads (statistics are based on the platform page).

Core Features

The following capabilities all come from the official description and SkillHub disclosure information; details not appearing in the materials will not be expanded.

Multi-format Input and HTML Output

Supports Markdown / Word / PDF / Plain text as source drafts, and the target product is HTML usable by the Official Account. Styles use fully inline to reduce the problem of styles being stripped when pasting into the WeChat backend.

Eight Selected Themes

Includes 8 themes built-in. Styles listed by the official include: Card style, Minimalist, Zen, Terminal, Cream Orange, etc. (The page description does not list all eight names one by one; you can specify theme keywords in the Agent conversation when using).

Layout Enhancement

Automatically handles section numbering; can add underlining to keywords for emphasis; supports quote cards and table of contents and other common Official Account structures, reducing manual assembly.

Theme Generator

In addition to fixed themes, it provides a Theme Generator: creating visual styles on the fly based on natural language descriptions, suitable for brand colors or fixed layout requirements.

Verification and Agent Positioning

The description mentions dual script verification as a fallback, used to do consistency checks before outputting HTML. The skill is positioned as a general-purpose layout tool for AI Agents, suitable for being integrated into environments like Cursor, Claude Code, Codex, etc., that support Skills, and called by the Agent following the SKILL workflow.

Installation and Activation

The installation method is based on the SkillHub skill page description: refer to SkillHub Installation Documentation, install coordinates @cyinfo/wensi-wechat-design.

1. Check or Install skillhub CLI

If the CLI is not yet installed on the local machine, you can first execute the complete installation script in the SkillHub documentation (requires internet connection):

command -v skillhub && skillhub --version

If not installed, you can use:

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

2. Install Skill to Current Agent’s skills Directory

Must use --dir to point to the skills directory recognized by the current Agent, otherwise installing by default under ./skills/ may fail to load. The directories vary by environment; common examples in the documentation are as follows.

In Cursor, the skills directory is generally:

skillhub install cyinfo/wensi-wechat-design --dir ~/.cursor/skills/

In Claude Code:

skillhub install cyinfo/wensi-wechat-design --dir ~/.claude/skills/

In Codex (choose between user-level or project-level, whichever is consistent with your current workflow):

skillhub install cyinfo/wensi-wechat-design --dir ~/.codex/skills/

After installation, follow the requirements of the Agent you are using to restart or reload the skill list, so that Wenshi Layout appears in the available Skills. Official materials do not list an enable switch other than “install count”; rely on the Agent’s automatic discovery of SKILL.md.

Typical Usage

The public page does not include the full SKILL.md content; the typical process can be summarized based on the skill positioning to facilitate reproducing intent in the Agent (specific steps are based on the SKILL inside the installation package).

  1. Prepare source draft: Local Markdown, Word, PDF, or pasted plain text; explain the article source and desired heading hierarchy in the conversation.
  2. Specify layout: Choose one of the eight themes (e.g., Minimalist, Terminal), or use the Theme Generator to describe color scheme and block styles in one or two sentences (e.g., “Cream Orange, large rounded cards, weak shadow”).
  3. Declare Official Account elements: Whether automatic section numbering, keyword underlining, introductory quote card, or table of contents at the beginning or end of the article is needed.
  4. Request HTML output: Ask the Agent to enable this Skill to generate fully inline style HTML fragments, which can be copied to the WeChat Official Account article editor’s source code or rich text area for pasting.
  5. Verify: If the Skill workflow triggers the dual script verification mentioned in the description, correct the result on the Agent side based on the verification result before delivering the final HTML.

When searching for installation, you can also use the CLI to confirm the coordinates first:

skillhub search wensi-wechat

Applicable Scenarios and Notes

Suitable for: Technical blogs, product updates, and long tutorial articles that need to be written in Markdown/Word first and then published on the Official Account; teams that want unified visual themes and need Agents to process multiple drafts in batch; scenarios where you don’t want to maintain a separate layout SaaS but are willing to use Skills to harden layout rules.

Notes:

  • The WeChat Official Account editor will still adjust the HTML whitelist with version updates. Fully inline styles can alleviate but cannot guarantee 100% consistency with the preview. Before publishing, verify on the backend Preview + Real Device.
  • PDF/Word parsing quality depends on the source file structure; complex layouts may require simplifying the source draft before conversion.
  • SkillHub statistics show 0 installs alongside 904 downloads, possibly reflecting a difference in metrics between “downloaded packages” and “counted installs”; rely on the platform.
  • No API Key is required, but if the Agent needs to call an external model for theme generation, the cost and quota are still borne by the model service you are using, and are unrelated to the Skill itself.

Conclusion

Wenshi Layout (WeChat Content Layout) condenses “multi-format draft → inline HTML → WeChat paste-ready” into an Agent Skill, and bundles common Official Account layouts like themes, table of contents, and quotes. When you need to install or check metadata, you can visit the official address: https://api.skillhub.cn/cyinfo/wensi-wechat-design, or browse on SkillHub: https://www.skillhub.cn/skills/cyinfo/wensi-wechat-design.

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

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

Xiaoye