AI Agent Hub
Back to skills
✍️

WeChat Article Layout Assistant

Content Creation Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_c1ee5550/gzh-design-skill according to https://skillhub.cn/install/skillhub.md.

About this skill

What It Solves

WeChat Official Account editors strip or ignore parts of HTML, causing copied layouts to collapse. This skill normalizes Markdown, docx, PDF, plain text, or rich text into a stable article structure, then generates an inline-style HTML fragment suitable for pasting into the editor. It targets visual hierarchy for headings, quotes, code blocks, images, and emphasis without relying on unsupported CSS features.

How It Works

The skill is built around a theme component library plus a shared component increment library. It first reads the article and infers its type, selects or recommends a theme from the theme index, loads the theme file and common components, and assembles HTML using an “article type to component recipe” approach. During generation it handles:

  • Section numbering: assigns 01, 02, 03 in ## order
  • Keyword underlining: marks 1–3 key phrases in body paragraphs
  • Lead highlight, digest, signature placeholders: builds intro card, selected takeaways, and author signature area
  • Punctuation and code blocks: uses full-width Chinese punctuation and code blocks for code, commands, or prompts

It typically outputs a clean HTML fragment file and a preview page with a copy button. The preview page only wraps the copy action; the copied content remains a compliant section fragment, avoiding extra document shells in the editor.

Scope and Caveats

This is useful for stable WeChat long-form articles, tutorials, tool roundups, opinion pieces, and case studies; it is not intended for pages that depend on complex interactions, external fonts, grid layouts, animations, or scripts. Theme output should respect platform limits: avoid class/id, position:fixed/absolute, float, @media, @keyframes, display:grid, CSS variables, or external CSS. Critical styles should be inline, and text nodes should be wrapped with span; otherwise pasting may lose styling. Images should not default to width:100%; small images should keep original size and center. Image captions should only be generated when source data actually contains caption text. If the original already has an author signature or a “like, watch, share” block, merge it into the single closing signature area rather than duplicating CTAs.

Use Cases

  • Convert a Markdown tutorial into paste-ready WeChat HTML while preserving code blocks and section numbering.
  • Normalize a long PDF or docx into a Markdown draft, then generate a themed rich-text preview page.
  • Choose a receipt-style theme for a tool roundup and output code blocks, images, and underlined key phrases.
  • Create a new theme component library from a reference image, register it, and reuse it for future articles.

Best For

  • Editors of WeChat tech accounts who need stable paste-ready rich-text layout for weekly Markdown long-form posts.
  • Product managers documenting methodology who need to turn docx or PDF notes into opinion-style WeChat articles.
  • Indie developers who need to format tool reviews, code snippets, and screenshots into themed WeChat articles.
  • Content operations leads who need brand-aligned custom themes and reusable layout components.