What problem does it solve?
Manually converting Markdown articles or web pages into WeChat Official Account posts requires reformatting HTML, uploading cover images, and calling WeChat APIs by hand. This Skill automates the entire pipeline from content extraction to draft creation and optional publication.
Core Features & Use Cases
- Content Extraction: Parses local Markdown files (with frontmatter support) or fetches and cleans article HTML from any http/https URL.
- WeChat-Optimized Rendering: Applies standard or viral inline-styled templates, generates cover images with Pillow, and uploads them as WeChat media assets.
- Draft & Publish API Integration: Creates drafts via the WeChat draft/add API, optionally submits freepublish requests, and queries publish status, returning JSON with draft_media_id and publish_id.
- Use Case: A content operator runs the script with a blog URL and --dry-run to preview the styled HTML, then reruns with --publish to push the article live on the official account.
Quick Start
Fill in your WeChat app_id, app_secret, and author in config.json, then ask the assistant to publish a given Markdown file or article URL to your WeChat Official Account using the standard template with a dry-run preview first.