wewrite-publish

Convert Markdown articles into WeChat-compatible HTML previews and push drafts to the WeChat Official Account draft box.

3.2k|513|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/oaker-io/wewrite --skill wewrite-publish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wewrite-publish
Source: https://github.com/oaker-io/wewrite/tree/main/skills/wewrite-publish
Command: npx skills add https://github.com/oaker-io/wewrite --skill wewrite-publish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Publishing to WeChat Official Accounts requires strict formatting rules: inline-only CSS, no JavaScript, image limits, and title/digest length constraints. Manually converting Markdown into WeChat-compatible HTML and pushing it to the draft box is error-prone and repetitive.

Core Features & Use Cases

  • WeChat-Compatible Preview: Converts Markdown articles into locally previewable HTML with all styles inlined, theme support (default professional-clean), and automatic compatibility fixes for dark mode, lists, links, and CJK spacing.
  • Permission-Gated Draft Publishing: Pushes articles to the WeChat draft box only after explicit user authorization, passing prechecks on title length, digest size (120 bytes), body length (200-20000 characters), image count (max 10), and cover presence.
  • Theme Gallery & Image Posts: Supports browsing available themes, re-rendering with a different theme, and creating image posts on explicit request.
  • Use Case: After finishing a WeChat article in Markdown, ask for a preview to verify rendering, then explicitly request "push to draft box" to publish it with the correct title, digest, and cover.

Quick Start

Preview my finished article with the default theme, then push it to my WeChat draft box after I confirm.

Frequently Asked Questions about wewrite-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to WeChat Official Account HTML?

Run the preview command with your Markdown article and a chosen theme to generate WeChat-compatible HTML. All CSS is inlined, lists are converted to styled sections, and dark mode attributes are injected automatically.

How do I publish an article to the WeChat draft box?

Explicitly request draft box publishing in your message, which grants publish permission for that turn. The article must pass prechecks: valid title, digest under 120 bytes, 200-20000 character body, at most 10 images, and an existing cover image.

Why can't my article be pushed to the WeChat draft box?

Publishing fails prechecks if the cover image is missing, the digest exceeds 120 bytes, the body is outside the 200-20000 character range, or publish permission was not explicitly granted. Without a cover, only a local preview is generated.

Does WeChat support external CSS or JavaScript in articles?

No. WeChat strips external stylesheets, style tags, and all JavaScript. The converter handles this by inlining every CSS rule as style attributes and using only WeChat-supported properties.

Can I change the theme after generating a preview?

Yes. Ask to switch themes and the article is re-rendered with the new theme as a fresh preview. Republishing to the draft box only happens if you explicitly request it again.