WeChat Official Account Formatter
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_4cc07111/wechat-formatting.
About this skill
The Problem
WeChat Official Accounts accept only a limited subset of HTML and CSS. Exported Markdown, editor output, or front-end page styles often lose class, id, <div>, flex, and grid. Code blocks, callouts, and music components can also break when tags or image domains are outside the allowed list. This skill targets those compatibility issues by converting Markdown into inline-style HTML that can be pasted directly into the Official Account editor, while generating a summary and an ending comment prompt.
How It Works
- Summary generation: Creates a 35–120-character summary using an emotional hook, core content, and value promise, adapted to tutorials, opinion pieces, personal writing, product notes, and similar article types.
- Structure conversion: Maps headings, paragraphs, quotes, lists, code blocks, images, and links to compatible tags; plain lists are usually split into multiple
<p>elements, and tables are converted to paragraph or card-like paragraphs. - Style injection: Uses inline styles only and avoids blacklisted CSS such as
position,float,flex,grid,transform, andcalc(). - Component support: Supports
::: tipand::: warningcallout containers, plusmpvoiceandmpmusicmusic components; ordinary images should come frommmbiz.qpic.cn, while music covers may usey.gtimg.cn. - Sanitized output: Removes disallowed tags, attributes, and styles in a second pass, then outputs only the summary and HTML without explaining the conversion process.
Boundaries
It fits articles that need Official Account compatibility, including technical tutorials, opinion pieces, and product documentation. If the content depends on complex responsive layouts, custom JavaScript, non-WeChat image domains, or external CSS, the skill may degrade output or replace unsupported elements, so it is not intended for exact reproduction of web page visuals.
Use Cases
- A technical writer converts a tutorial with code blocks and warning callouts into paste-ready inline HTML for the WeChat editor.
- An editor finalizes an Official Account post and uses the skill to generate a 35 to 120 character summary and a closing comment prompt.
- A content editor formats quotes, paragraphs, and music components into WeChat-compatible HTML and removes disallowed tags.
- A content team converts product notes into paragraph cards and tip blocks without relying on complex tables or external CSS.
Best For
- A newsletter editor who publishes weekly technical tutorials needs Markdown code blocks and callouts converted into WeChat-compatible HTML.
- A columnist writing opinion or review pieces needs auto-generated summaries and light comment prompts to reduce manual polishing.
- A product operations person publishing feature notes needs to avoid external CSS and complex tables, producing paste-ready paragraphs.
- A creator managing multiple Official Accounts needs consistent sanitizing of invalid tags, image domains, and music components.
Related Skills
Rewrite self-introductions by scenario, audience, and duration, with memory hooks, structure feedback, and speakable practice versions.
Helps AI Agents apply local CSS themes to Markdown articles with wenyan-cli, including preview, WeChat draft publishing, and theme registration.
Turn Markdown or plain text into styles for Xiaohongshu, WeChat Official Accounts, Zhihu, Weibo, Douyin, Bilibili, and Toutiao.
A multi-platform writing workflow for WeChat that emphasizes information gain, scannability, SEO/GEO, and localization to produce verifiable, high-signal blog posts.