feishu-to-wechat

Publish Feishu documents to WeChat Official Account drafts via the WeChat API.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/dulltackle/kangkang-skills --skill feishu-to-wechat-dulltackle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feishu-to-wechat
Source: https://github.com/dulltackle/kangkang-skills/tree/main/feishu-to-wechat
Command: npx skills add https://github.com/dulltackle/kangkang-skills --skill feishu-to-wechat-dulltackle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires marked, highlight.js, juice, socks-proxy-agent, commander, undici, and includes scripts (resource) and references (resource) components.

What problem does it solve? Manually copying Feishu cloud documents into the WeChat Official Account editor is slow and error-prone: images must be re-uploaded, styles break, and external links are unsupported. This Skill automates the entire pipeline from Markdown content to a ready-to-review draft in the WeChat backend. ## Core Features & Use Cases - API-based publishing: Renders Markdown to WeChat-compatible HTML with syntax highlighting and CSS inlining, uploads images to the WeChat CDN, and creates drafts through the official WeChat API without a browser. - Theme system: Ships four built-in themes (default, grace, elegant, tech) with WeChat-compatible inline styles, plus support for custom CSS themes. - Smart metadata extraction: Automatically extracts title, digest, and cover image from YAML frontmatter or document content, and converts external links into footnotes. - Use Case: After finishing a technical article in Feishu, ask the assistant to fetch the document and publish it to your WeChat Official Account; the Skill renders it with the default theme, uploads all images, and creates a draft you can review in the WeChat backend. ## Quick Start Fetch my Feishu document and publish it to my WeChat Official Account draft box using the default theme with cover image /tmp/cover.png.

Frequently Asked Questions about feishu-to-wechat

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

FAQPage Schema
How do I publish a Feishu document to a WeChat Official Account?

Fetch the Feishu document content as Markdown, save it to a file, then run publish-api.js with --file, --theme, and --cover arguments. The script renders the Markdown, uploads images to the WeChat CDN, and creates a draft in the Official Account backend.

How to convert Markdown to WeChat-compatible HTML?

Use render-md.js with a Markdown file and an optional theme name. It parses Markdown with marked, highlights code with highlight.js, inlines CSS with juice, fixes list nesting issues, and converts external links to footnotes.

Why does the WeChat API return IP not in whitelist error 40090?

Error 40090 means your calling IP is not in the Official Account's IP whitelist. Add the proxy exit IP 121.40.243.4 under Development - Basic Configuration in the WeChat backend, wait five minutes, and verify the proxy with curl.

Does WeChat draft creation require a cover image?

Yes, news-type drafts require a thumb_media_id from an uploaded cover image. Pass a local image path with the --cover parameter; the script uploads it as permanent material before creating the draft.

What are the limitations of the WeChat API publishing mode?

API mode can only create new drafts, not edit existing ones, and requires a stable SOCKS5 proxy with a whitelisted IP. Images must be under 10MB, and remote image downloads depend on network availability with a 15-second timeout.