Introduction¶
When writing long-form articles in the WeChat Official Account admin, the common approach is to format in Markdown or a rich text tool first, then copy into the editor. WeChat imposes many restrictions on HTML and CSS: external stylesheets, certain selectors, floats and positioning are often filtered out or behave abnormally, and after pasting the layout tends to “collapse.” Trial-and-error adjustment is costly and hinders an Agent from delivering a usable result in one pass.
Below we introduce wechat-article-adapter on SkillHub (coordinate @user_d0123732/wechat-article-adapter). It bakes WeChat Official Account HTML formatting constraints into a Skill, guiding the model—when users request Official Account writing or layout—to generate HTML that can be pasted directly into the Official Account editor, rather than generic web page markup.
What Is This¶
wechat-article-adapter is a community-sourced (community) content creation Skill, currently version 1.0.0, published by user_d0123732, categorized as content-creation. SkillHub labels it requires_api_key=false, so installation and usage do not depend on an extra API key.
The official description summarizes two points: it follows WeChat Official Account HTML formatting standards; it outputs HTML that can be pasted into the Official Account editor and avoids common CSS/HTML restrictions from WeChat. Trigger scenarios include requests to write Official Account articles, produce Official Account layouts, or format WeChat image-text posts.
- SkillHub page: https://www.skillhub.cn/skills/user_d0123732/wechat-article-adapter
- API entry: https://api.skillhub.cn/user_d0123732/wechat-article-adapter
(Page statistics as shown by SkillHub: rating 100000, downloads 1048, installs 0.)
Core Features¶
Combined with the official description, the verifiable capability boundaries are as follows.
- Internalized layout standards: The Skill carries Official Account HTML constraints in the form of
SKILL.mdfor the Agent to follow when generating content, instead of emitting arbitrary web page code. - Paste-ready HTML output: The target deliverable is HTML fragments acceptable to the Official Account editor, reducing cases of styles being stripped or misaligned after pasting.
- Intent-triggered usage: When conversations involve Official Account articles, Official Account layouts, or WeChat image-text formatting, this Skill’s workflow should be enabled by default.
Specifics such as CSS whitelists and tag restrictions are not listed separately on the public page; refer to the documentation inside the installed Skill package for those details. This article does not expand on items we have not verified.
Installation and Activation¶
SkillHub offers two common methods: ask the AI to fetch and install the Skill per the installation doc, or use the skillhub CLI to install into the current Agent’s skills directory.
Option 1: Send the prompt to the AI¶
Send the following prompt to a client that supports Skills (Cursor, Claude Code, Codex CLI, etc.) so the Agent follows the official installation instructions:
Please install `@user_d0123732/wechat-article-adapter` according to https://skillhub.cn/install/skillhub.md.
Option 2: skillhub CLI¶
If the CLI is not installed on your machine, first check the version:
command -v skillhub && skillhub --version
If it’s not installed, follow the SkillHub installation doc to perform a full install or just install the CLI (doc URL: https://skillhub.cn/install/skillhub.md). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise it defaults to ./skills/ and may not be recognized.
skillhub install @user_d0123732/wechat-article-adapter --dir <skills directory>
Common path examples (from the SkillHub installation doc):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under your project
After installation, refresh or restart your Agent as required by your client so the Skill is loaded.
Typical Usage¶
The official page does not provide a standalone CLI subcommand; usage is to state your formatting goals in natural language in a conversation where the Skill is enabled. The following requests match the trigger scenarios in the Skill description and are easy to reproduce:
- Specify the genre and structure, e.g., “Write a tech-sharing post for the Official Account with subheadings, blockquotes, and code blocks. Output HTML formatted for the Official Account.”
- Clearly require the deliverable format: “Generate HTML for WeChat image-text layout that I can paste directly into the Official Account admin.”
- If you already have a Markdown draft: “Convert the following Markdown into HTML that complies with WeChat Official Account restrictions.” (Paste the content into the conversation.)
After the above steps, the Agent should return HTML under the Skill’s constraints. You can paste it via the Official Account editor’s “source code” (or equivalent entry) and verify paragraph spacing, heading hierarchy, and code block rendering in the mobile preview.
Use Cases and Notes¶
Who it’s for
- Creators or technical writers who often use Cursor, Claude Code, etc., to write long-form Official Account posts and want to minimize manual HTML tweaking.
- Teams that need “near-final” layout code produced in one conversation, rather than repeatedly testing CSS in the editor afterwards.
Limitations and cautions
- The output still depends on the Official Account editor’s real-time policy; major backend rule changes may require a Skill update or manual fine-tuning.
- This Skill addresses HTML layout adaptation only; it does not handle image uploads, cover images, originality declarations, or other operational workflows.
- It is a community Skill; maintenance cadence follows the publisher’s updates on SkillHub. To upgrade, use
skillhubto reinstall the same coordinate or update per your client’s documentation.
Conclusion¶
wechat-article-adapter consolidates WeChat Official Account HTML constraints into an Agent Skill. In scenarios like “write an Official Account post / format for the Official Account / lay out WeChat image-text posts,” it generates HTML that is easier to paste and less likely to hit CSS pitfalls. If you are evaluating content creation capabilities on SkillHub, you can check versions and details on the official page:
https://www.skillhub.cn/skills/user_d0123732/wechat-article-adapter