wechat-publisher-personal

Publishes Markdown articles to WeChat Official Accounts and Xiaohongshu via wenyan-cli and Playwright.

Updated Aug 7, 2026
One-click install
npx skills add https://github.com/Protremix/EvolvixOS --skill wechat-publisher-personal-protremix
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wechat-publisher-personal
Source: https://github.com/Protremix/EvolvixOS/tree/main/knowledge/experts/wechat-ops/skills/publisher-multi-platform
Command: npx skills add https://github.com/Protremix/EvolvixOS --skill wechat-publisher-personal-protremix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, playwright, @wenyan-md/cli, and includes scripts (resource) components.

What problem does it solve? Publishing the same article to multiple Chinese content platforms requires manual reformatting, image re-uploading, and dealing with WeChat's IP whitelist restrictions. This Skill automates the entire pipeline so one Markdown file reaches both WeChat Official Accounts and Xiaohongshu (RedNote) without third-party SaaS services. ## Core Features & Use Cases - WeChat Draft Publishing: Renders Markdown to styled HTML with wenyan-cli themes, uploads images to the WeChat media library, and pushes articles to the draft box via the Official Account API. - Xiaohongshu Browser Automation: Converts long Markdown into short-note format (emoji section markers, hashtags, truncated titles), uploads images, and publishes through Playwright-driven browser automation with QR-code login. - Server Proxy Mode: Deploys wenyan serve on your own cloud server to solve WeChat API IP whitelist issues when your local network lacks a fixed public IP. - Use Case: An independent creator writes one Markdown post with frontmatter (title, cover, tags), runs the multi-publish command, and gets a formatted WeChat draft plus an adapted Xiaohongshu note in one workflow. ## Quick Start Publish my article.md to both WeChat and Xiaohongshu, using draft mode for Xiaohongshu so I can review before it goes live.

Frequently Asked Questions about wechat-publisher-personal

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

FAQPage Schema
How do I publish a Markdown article to a WeChat Official Account?▼

Install wenyan-cli via npm, set WECHAT_APP_ID and WECHAT_APP_SECRET environment variables, then run the publish command with your Markdown file. The article is rendered to themed HTML and pushed to your draft box, where you manually publish it from the Official Account admin panel.

How to publish Markdown content to Xiaohongshu automatically?▼

Use the xhs_publish.py script with Playwright browser automation. First run the login command to scan a QR code and save cookies, then run publish with your Markdown file. The script converts the content to short-note format with hashtags and uploads images automatically.

Why does WeChat API return error 40164 when publishing?▼

Error 40164 means your current public IP is not in the WeChat API whitelist. Either add your IP in the WeChat developer console, or deploy wenyan serve on a cloud server with a fixed IP and use server mode via the WENYAN_SERVER environment variable.

Does the Xiaohongshu publisher work without images?▼

No, Xiaohongshu notes require at least one image. Set a cover field in the Markdown frontmatter or include images in the body. The script warns and stops unless you pass the --force flag to skip the image check.

How long do Xiaohongshu login cookies remain valid?▼

Cookies typically remain valid for 7 to 30 days and are stored in ~/.xhs-cookies.json. When publishing fails with a login redirect, run the login command again to scan the QR code and refresh the saved cookies.

What are the content limits when adapting Markdown for Xiaohongshu?▼

Titles are truncated to 20 characters and body text to roughly 1800 characters, with an overflow note appended. Code blocks become plain text, links lose their URLs, and frontmatter tags convert into hashtag topics, with a maximum of about 10 tags.