WeChat Official Account Operation Assistant: Agent Skill from Topic Selection to Draft Synchronization

Preface

Daily operations for WeChat Official Accounts are often broken down into several segments: topic selection, drafting, formatting, placing into the draft box, and scheduling publication. Switching tools or manually copying at each step often causes a break in context. Furthermore, issues like layout loss and Chinese character garbling often occur after syncing to the WeChat backend. If you are already using Agents in environments like Cursor or Claude Code to write content, you likely want a reusable pipeline rather than describing rules from scratch every time.

Below is an introduction to the SkillHub community Skill “WeChat Official Account Operation Assistant” (@user_1002ca6a/wechat-viral-operator, current page version v2.0.8). It links topic selection, humanized writing, WeChat-compatible HTML, local preview, draft synchronization, and optional scheduled publishing into a single workflow, complete with scripts and formatting constraint specifications.

What is this

WeChat Official Account Operation Assistant is an Agent Skill based on the universal SKILL.md format. It is maintained by the community publisher user_1002ca6a, categorized under content-creation on SkillHub, and tagged with the source community. The description in the Skill metadata defines its positioning as: covering high-performing topic mining, humanized “de-AI” drafting, colored formatting, HTML generation and online preview, authorized synchronization to Official Account drafts, and scheduled auto-publishing. It targets scenarios for Official Account operators, self-media creators, and corporate brand copywriters.

On the SkillHub page, you can see: a rating of 100,000, 4,113 downloads, and 206 installations. The tags include requires_api_key=true, indicating that credentials such as AppID and AppSecret are required when interfacing with the WeChat Official Accounts Platform API (the Skill documentation states these are used only for authentication and are not stored locally).

Official Entry Points:

  • API Coordinate Page: https://api.skillhub.cn/user_1002ca6a/wechat-viral-operator
  • SkillHub Details: https://www.skillhub.cn/skills/user_1002ca6a/wechat-viral-operator

Core Features

The following capabilities are derived from the SKILL.md and scripts/ directory within the installed Skill package, categorized by module.

Topic Selection & Drafting

  1. Based on the user’s provided domain and subject direction (text or voice description), it analyzes the titles, openings, pacing, and resonance points of viral articles in the same track, outputting a list of original topics for confirmation.
  2. Drafts the body text according to the benchmark style: colloquial, removing “AI traces,” with a recommended length of 1000–2000 words. Titles are ≤ 64 characters, summaries ≤ 120 characters; excess length is automatically truncated.
  3. For practical and tool-oriented articles, it requires supplementary details such as interfaces and operation paths to reduce the feeling of “vague tutorials.”

Cover & WeChat-Compatible Formatting

  1. Each draft must generate a cover image simultaneously: 900×500 pixels, PNG/JPG, ≤ 2MB, saved as cover_image.png in the working directory. The documentation specifies generation via the image_gen tool (requires an environment that supports this tool).
  2. HTML adheres to Official Account restrictions: all styles must be inline; do not use <style>, Flex/Grid, linear-gradient/rgba/box-shadow, etc.; use <table> layout for complex formatting.
  3. Use scripts/generate_html.py to generate HTML; use scripts/preview_server.py to start a local preview (default port 8080).

Draft Sync & Publishing

  1. After preview confirmation, the Agent asks if the draft should be synced. The user provides AppID and AppSecret, which are validated before calling scripts/sync_to_wechat.py.
  2. Interfaces include obtaining access_token, uploading materials, and adding drafts (see references/wechat_api.md in the Skill for details). During sync, the cover is uploaded to obtain thumb_media_id. JSON uses ensure_ascii=False and UTF-8 encoding to prevent Chinese character garbling.
  3. Optional configuration for scheduled tasks and auto-publishing (requires explicit user authorization).

Deliverables

The Skill defines the following outputs: Topic list (Markdown), Body text (Markdown), cover_image.png, HTML ready for backend import, and a local preview URL.

Installation & Activation

Method 1: Let the Agent install via official guide

The installation prompt provided on the SkillHub page is: First read https://skillhub.cn/install/skillhub.md, then install the coordinate @user_1002ca6a/wechat-viral-operator.

You can send the following prompt to your current Agent:

Please install @user_1002ca6a/wechat-viral-operator based on https://skillhub.cn/install/skillhub.md.

Method 2: SkillHub CLI

Check if the CLI is installed:

command -v skillhub && skillhub --version

If not installed, you can execute (from skillhub.md):

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

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. Example:

skillhub install wechat-viral-operator --namespace user_1002ca6a --dir ~/.cursor/skills

Common paths (also from skillhub.md):

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

After installation, restart or refresh the Agent according to your client’s requirements to activate the new Skill.

Typical Usage

The standard pipeline defined within the Skill is as follows, which can be combined with natural language tasks.

  1. Explain the creative domain and direction, let the Agent proceed through the topic selection module, and confirm one of the topics.
  2. Generate Markdown body text and validate title and summary character counts.
  3. Generate cover_image.png and WeChat-compatible HTML (you can explicitly request the call to generate_html.py).
  4. Start a preview in the working directory, for example:
python3 scripts/preview_server.py

(The script is located in the scripts/ directory within the Skill package; it needs to be executed in the working directory containing the generated HTML, or specify the directory via script parameters.)

  1. After confirming the layout, if it needs to go into the draft box, provide the WeChat Official Account AppID and AppSecret, and let the Agent call sync_to_wechat.py to complete material upload and draft creation.
  2. If scheduled publishing is required, separately specify the publication time and authorization scope within the Skill workflow.

Trigger keywords in the Skill description include: Official Account operations, WeChat Official Account articles, viral topic selection, Official Account HTML generation, Official Account draft sync, auto-publishing, etc.

Use Cases & Notes

Who is it for

  • Teams or individuals already writing Official Account content within Agents who want to fix the “de-AI flavor + WeChat formatting rules + draft sync” workflow.
  • Those willing to verify the layout via local HTML preview before syncing and deciding whether to upload to the draft box.

Limitations & Notes

  1. API Credentials: Sync and publishing rely on the WeChat Official Accounts Platform API; requires_api_key=true indicates valid AppID/AppSecret are needed, and the account must possess the corresponding interface permissions.
  2. Cover Generation: The Skill requires the use of image_gen; if the environment lacks this tool, you need to supplement the image manually or adjust the workflow.
  3. Formatting Constraints: To ensure WeChat compatibility, the Skill enforces inline styles and table layouts. This differs from general web/CSS habits but is expected behavior.
  4. Version: The SkillHub page shows v2.0.8; local package metadata may lag slightly. Upgrade based on the store page: skillhub install wechat-viral-operator --namespace user_1002ca6a --dir <your skills directory>.
  5. Compliance & Originality: The Skill’s global constraints require originality and compliant API usage; published content still requires manual review for platform rules and factual accuracy.

Outro

The WeChat Official Account Operation Assistant writes topic selection, drafting, WeChat-compatible HTML, preview, and draft sync into a repeatable Agent workflow. It also documents key fixes and script divisions of labor in the Skill documentation to address issues like garbled text, layout loss, and section misalignment. If your pain point is “having to manually format after writing, and losing all formatting after syncing,” you can first install this Skill into your current Agent’s skills directory and try running a short article through the pipeline.

Official URL: https://www.skillhub.cn/skills/user_1002ca6a/wechat-viral-operator

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

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

Xiaoye