wechat-skill: WeChat article layout and drafts

wechat-skill

A skill that lays out an article for a WeChat official account, writes from a topic and saves the result to drafts unpublished

  • 139 ★ on the repository
  • Last commit
Skill

Extended access

Why this level

  • The skill writes to a WeChat official account's drafts with your credentials, and a mistake in the profile data can touch the wrong account when several are configured
  • Generated text and a cover land in the account and need manual review before publishing
All reasons and checks

843645440/wechat-skill

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/wechat-skill

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The skill writes to a WeChat official account's drafts with your credentials, and a mistake in the profile data can touch the wrong account when several are configured
  • Generated text and a cover land in the account and need manual review before publishing

This is third-party code. Review the repository files before installing.

What it does

wechat-skill is a skill set for agents (Claude Code, Codex, Cursor) for WeChat official account content. It turns a finished text in Markdown, Word, PDF or plain form into HTML that pastes into the account editor without losing formatting. All styles are inlined into tags and text is wrapped in `<span leaf="">`, so the editor's filters do not break the layout. From a topic and a brief the skill writes an article, removes AI-style traces, picks a cover and puts the result into the chosen account's drafts. The pipeline only creates a draft: there is no publishing or follower broadcast, and review happens by hand in WeChat drafts. For layout there are 12 themes with a generator for new ones, section numbering, an intro card, code blocks, images and GIFs. Two steps check quality: `component_lint.py` checks the component library and `validate_gzh_html.py` checks the final HTML. For topic writing, a length of 2500 to 5000 characters and a score of at least 75 apply. Several accounts are handled through separate environment variables, your agent sets the schedule and there is no built-in cron.

Who it is for. Authors and editors of WeChat official accounts who lay out articles by hand or run several accounts and want to automate the path from text to draft.

Good fit when

  • A finished Markdown article should land in the WeChat editor with formatting intact
  • A new layout style is needed from a single phrase or a reference image
  • An article has to be written from a topic and brief, given a cover and put into account drafts
  • Several accounts run with different settings and the agent sets the schedule
  • The final HTML should be checked with scripts before pasting into the editor

Not a fit when

  • You need a web page, slides or layout for something other than WeChat: the skill is for official accounts only
  • You need automatic publishing or follower broadcast: the pipeline creates drafts only
  • You have no access to a WeChat account and its keys: writing to drafts requires credentials and an allowed IP
  • You need documentation without Chinese: part of the guides, including detailed usage, is in Chinese

Example request

Lay out this article in the default theme, check the HTML with the scripts and put it into the account drafts. Do not publish.

Limitations

Writing to drafts requires WeChat official account credentials and an allowed IP, and details are in the Chinese guide `docs/usage.md`. The skill creates drafts only, and you publish them by hand in WeChat.

Regular publishing and hot-topic picking are off by default. The repository is meant to be loaded whole: copying only the root `SKILL.md` will not work, and the whole folder with scripts and references is needed. Cover and text edits can give results worth reviewing, and an image generation key is needed only when generation is enabled.

How to disable. Delete the cloned `wechat-skill` folder from the agent's skills or working directory. If you installed with `npx skills add`, remove the installed skill there. Remove the environment variables holding account data by hand.

FAQ

How do I install wechat-skill?

Clone the whole repository with `git clone https://github.com/843645440/wechat-skill.git`, then ask the agent to configure the skill and it runs `python3 scripts/setup_status.py`. For layout only, `npx skills add https://github.com/843645440/wechat-skill` works.

Does the skill publish articles itself?

No. The pipeline creates only a draft in the chosen account. Publishing and broadcasting to followers stay with a person in WeChat.

How do the two lanes differ?

In the first you have a finished article and the skill lays it out and puts it into drafts. In the second you give a topic and the AI writes the text, with a mandatory style pass, a length of 2500 to 5000 characters and a score of at least 75. The rest is shared.

How many layout themes are there?

Twelve ready themes and a generator for a new one from a phrase or reference image. Strict themes such as the news wire and solemn gray are meant for formal material.

Can I run several accounts?

Yes, each account has its own environment variables and materials space, and an outside agent running a schedule passes only the account alias. There is no built-in cron in the repository.

Discussion

No questions or reviews yet.

Skills

Nine skills take a WeChat Official Account article from topic and text to layout and a draft in the backend

SkillBroad access738Repository stars

Xiaowan WeChat Layout

xiaowan-wechat-layout-skill

A Codex skill that readies long articles for WeChat Official Accounts: phone-ready HTML, cover, summary and a pre-publish check.

SkillExtended access132Repository stars

A WeChat article layout skill: turns Markdown into paste-ready HTML with inlined styles that survives pasting into the official account editor

SkillExtended access4.3KRepository stars

Claude skill that typesets an article for WeChat with cards and SVG infographics, uploads images and saves a draft

SkillExtended access121Repository stars

A skill that lays out WeChat articles: Markdown goes into a local preview page and copies out as ready rich text.

SkillMinimal access56Repository stars

A skill that turns a Markdown article into green-themed HTML for the WeChat publishing editor, uploading images.

SkillExtended access78Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialRepository starsMain difference
wechat-skill: WeChat article layout and drafts (this card)no139
WeChat Article Skillsno738general article skills for WeChat, without two lanes or two-step HTML checks
md2wechatno3,793a CLI converter from Markdown to WeChat format, without text writing or multi-account drafts

README in short

The README covers what the skill can do, which texts it suits, 12 themes with a colour table, a quick start in three ways and two content lanes. Details on keys, allowed IPs and pipeline commands are moved to a Chinese guide. An English README exists.

README badge

Report a problem