AI Agent Hub
Back to skills
WeChat Custom Theme Applier icon

WeChat Custom Theme Applier

Content Creation Updated 2026.08.29

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

Please install @user_d8946e26/apply-wenyan-custom-theme according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem Solved

Publishing WeChat articles often requires custom CSS to normalize headings, code blocks, quotes, and lists. Manually applying local CSS, checking layout, and pushing a draft can introduce selector mistakes, path errors, or credential problems. This skill turns that workflow into a repeatable Agent process.

How It Works

  • Render test: before publishing, use wenyan-cli to simulate rendering for .md and .css, then verify file paths and CSS syntax.
  • Publish to draft: after the test passes, push the article with the selected theme to the WeChat official account draft box; options such as --no-mac-style or -h can adjust code blocks and highlighting.
  • Register theme: if the theme will be reused, register it in the wenyan-cli theme library, then reference it later with -t instead of repeating file paths.

Scope And Notes

The skill depends on WECHAT_APP_ID and WECHAT_APP_SECRET, and assumes local Markdown and CSS files exist. It targets WeChat draft publishing, not general web layout. If styles do not apply, check whether CSS selectors are missing the #wenyan prefix. It fits teams already using wenyan-cli and wants fewer manual WeChat layout checks.

Use Cases

  • Before writing a technical WeChat article, apply a shared CSS file to Markdown and validate the layout locally
  • When code highlighting looks wrong before publishing, repush the draft with a specified highlight theme
  • After the team stabilizes a layout, register the verified CSS as a wenyan-cli theme for later reuse
  • When ENOENT or invalid credential errors appear, diagnose failed publishing by checking file paths and WeChat credentials

Best For

  • WeChat content editors who reuse the same CSS theme and want fewer manual style checks
  • Engineers publishing Markdown with wenyan-cli who want to register themes and publish them quickly with -t
  • Teams building content-production Agents who want a standard SOP for render testing, draft publishing, and theme registration
  • Technical writers syncing blogs and WeChat posts who want stable code-block and highlight styling