Agent skill · wuchubuzai2018

haizei-wechat-article-convert

Convert Markdown articles to WeChat Official Account compatible HTML format. Use when users need to convert Markdown files to WeChat articles, apply themed styling for WeChat formatting, generate inline CSS HTML compatible with WeChat editor, process technical articles with code blocks and tables for WeChat, or apply professional WeChat-style layouts with headers and footers.

What it needs

About 4k tokens when loaded.

What this skill does

WeChat Article Converter Overview Convert Markdown articles to WeChat Official Account (微信公众号) compatible HTML format with themed styling and inline CSS. This skill handles the entire conversion process automatically using the mdtowechat.py script. Core capability: Transform standard Markdown → WeChat-compatible HTML with professional styling. Workflow Step 1: Identify User Request Trigger this skill when user asks for: Converting Markdown to WeChat format "转换为微信公众号格式" "生成微信文章" "公众号排版" Applying WeChat styling to articles Step 2: Gather Required Information Required: Input Markdown file path (from user request or current directory) ALWAYS Ask User for Theme Selection: Use AskUserQuestion tool to present theme options to the user interactively. Present these 4 theme options: Option Theme Name Best For -------- ----------- ---------- default 专业蓝色 技术文章、教程、通用内容 orange 活力橙 运动、美食、娱乐、促销活动 grid 格子主题 带序号徽章、动画效果,支持清新绿/大气蓝/活力橙配色 aurora 极光靛紫 AI 前沿、产品发布、创新趋势类内容 Exception: Skip theme selection if user explicitly specifies theme in request. Important: If user selects "grid" theme, ask for color preference: 清新绿 (green) - #52c41a,适合生活方式、健康、环保 大气蓝 (blue) - #007AFF,适合科技、商务、专业内容 活力橙 (orange) - #e67e22,适合促销、美食、活泼内容 Additional Options (ask if needed): Article title for WeChat header (default: none) Include WeChat header/footer (default: yes) Step 3: Execute Conversion Important: Always use the absolute path to the skill script and run it inside a Python virtual environment (venv): ALWAYS use --preview flag to open browser with copy button: 1. Basic conversion with browser preview (RECOMMENDED): 2. With title and browser preview: 3. Content only (no WeChat elements) with preview: Note: The --preview flag will automatically open a browser page with: Article preview "复制 HTML 代码" button to copy the HTML Instructions for pasting into WeChat editor Visual preview of the styled article Step 4: Present Results to User Always: 1. Confirm conversion completed successfully 2. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills wuchubuzai2018/haizei-wechat-article-convert

View the source on GitHub

Browse the @skills marketplace