$ show BND-1/wechat_article_skills
This repository is a toolkit for creating and publishing WeChat Official Account articles. It consists of four main tools: WeChat Article Formatter (converts Markdown to WeChat-compatible HTML with themes), WeChat Draft Publisher (publishes articles to WeChat draft accounts with token management and image upload), WeChat Tech Writer (AI-assisted technical writing), and WeChat Product Manager Writer (AI writing from a product perspective). The system takes Markdown content, formats it for WeChat's specific constraints, and publishes it to WeChat Official Accounts. The architecture is modular with each tool as a separate skill containing its own scripts, templates, and documentation.
The LLM identified 3 files worth highlighting for reuse:
Solves WeChat's specific code block formatting requirements by converting standard <pre><code> blocks to WeChat-compatible <div> + <br> + format. This addresses WeChat's limitation of deleting whitespace between tags, ensuring code indentation and spacing are preserved. The component is highly focused, self-contained, and demonstrates deep understanding of the target platform's constraints.
Converts Markdown to HTML optimized for WeChat Official Accounts with support for three themes (tech, minimal, business). Handles complex processing including CSS variable extraction, style inlining, special element handling (code blocks, images, tables), and proper document wrapping. Demonstrates skill in adapting general Markdown conversion to platform-specific constraints through careful CSS processing and HTML manipulation.
Manages the complete workflow for publishing articles to WeChat Official Accounts draft box. Handles access_token acquisition and caching, cover image upload, content image processing, HTML optimization for WeChat editor, and draft creation with proper metadata. Includes robust error handling, retry logic, and interactive/cli modes. Shows expertise in navigating WeChat API complexities and providing a reliable publishing experience.