Md2wechat

Convert Markdown articles into WeChat Official Account compatible inline-styled HTML and optionally publish them to the WeChat draft box. Use when formatting articles for WeChat, rendering WeChat HTML, styling Markdown with themes, uploading article images, or publishing drafts to WeChat.

9 stars 1 forksWriting & Content

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add lingengyuan/my-skills --skill md2wechat
Manual install
git clone --depth 1 https://github.com/lingengyuan/my-skills.git /tmp/my-skills
mkdir -p ~/.claude/skills
cp -r /tmp/my-skills/.claude/skills/md2wechat ~/.claude/skills/md2wechat

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Markdown to WeChat Skill

Convert Markdown into WeChat Official Account compatible HTML with inline CSS styling, and optionally upload articles directly to the WeChat draft box.

## Setup

HTML rendering requires Python 3.8+ and uses only the Python standard library.

Draft publishing requires valid credentials stored in a local `.env` file within this Skill's directory:

```env
WECHAT_APPID=your_wechat_app_id
WECHAT_SECRET=your_wechat_secret
```

Keep this file local. The repository ignores Skill-level `.env` files.

## Workflows

### 1. Render WeChat HTML (Local)

Render Markdown into styled HTML with inlined CSS:

```bash
python3 "<skill-dir>/scripts/md_ai_render.py" --md article.md --theme autumn-warm --out article.html
```

Supported preset themes:
- `autumn-warm`: Warm orange tone, editorial styling
- `spring-fresh`: Fresh green tone, clean reading
- `ocean-calm`: Deep blue tone, technical and business style

For custom CSS rules and theme details, see [references/themes.md](references/themes.md).

### 2. Publish to WeChat Draft Box (Remote)

Publishing mutates external state on the WeChat platform. Execute publishing only when the user explicitly requests it:

```bash
python3 "<skill-dir>/scripts/wechat_publish.py" --env "<skill-dir>/.env" --md article.md --html article.html --draft --cover cover.jpg
```

See [references/wechat-api.md](references/wechat-api.md) for publishing API options and error codes.

## Image Handling
Read the full skill on GitHub

Details

Skill name
md2wechat
Path
.claude/skills/md2wechat/SKILL.md
License
MIT
Repo updated
14 November 2026

FAQ

What does the Md2wechat skill do?

Convert Markdown articles into WeChat Official Account compatible inline-styled HTML and optionally publish them to the WeChat draft box. Use when formatting articles for WeChat, rendering WeChat HTML, styling Markdown with themes, uploading article images, or publishing drafts to WeChat.

How do I install the Md2wechat skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add lingengyuan/my-skills --skill md2wechat. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Md2wechat popular?

It lives in lingengyuan/my-skills, which has 9 GitHub stars and 1 forks.

Related skills

Brief Output

9

lingengyuan/my-skills

精简回答、技术说明与工程文档,删除冗余信息与 AI 味表达,只保留完成任务所需的必要事实与技术决策。适用于精简输出、压缩改写、去除 AI 腔调以及全文一致性修订。

AI, LLMs & Agents

Google Go Style

9

lingengyuan/my-skills

按 Google Go Style 编写、重构或审查 Go 代码。用于命名、注释、接口、错误处理、并发、包组织与可维护性决策。

Software Development

Insight Collector

9

lingengyuan/my-skills

Analyze URLs, source code, images, technical documents, or notes, and archive reusable insights, code snippets, and architecture patterns into a knowledge base. Use when collecting knowledge, archiving technical articles, saving reusable code, or recording insights (收录, 记录一下).

Software Development

Publication Ready Docs

9

lingengyuan/my-skills

撰写和修订正式工程技术文档(技术方案、详细设计、实施计划、README、API 文档、运行手册)。先查证源码与既有设计,删除冗余和过程性内容,保留必要的规则、改动对象、关键代码和配置。

Writing & Content

Jarvis

10

thatmike1/claude-skills

The sidekick thread Mike talks to about all his other threads. It hands out work, hears back when results come in, and translates results he cannot eyeball. Use when the user says jarvis, or asks where to start, to fire agents and hear back, or to oversee one lane.

Writing & Content

Publication Ready Docs Jev

9

lingengyuan/my-skills

撰写、精简和审查正式工程文档,用 Jev 检测冗余表达与跨章节重复。适用于发布前检查、冗余清理和质量复核。

Writing & Content

Browse the most popular Claude skills, all writing & content skills, or write your own with the skills generator.