Skip to content
Skill

wechat-article-formatter

by iamzifei

AI Summary

Format markdown articles with bm.md styling and publish directly to WeChat Official Account drafts via the official API. 1. Read markdown file (typically from article directory) 2. Upload local images to WeChat CDN via API

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "wechat-article-formatter" skill in my project.

Please run this command in my terminal:
# Install skill into your project
mkdir -p .claude/skills/wechat-article-formatter-skill && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/wechat-article-formatter-skill/SKILL.md "https://raw.githubusercontent.com/iamzifei/wechat-article-formatter-skill/main/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Format markdown and publish to WeChat Official Account via bm.md rendering + WeChat official API

Overview

• Read markdown file (typically wechat.md from article directory) • Upload local images to WeChat CDN via media/uploadimg API • Replace local image paths with WeChat CDN URLs in markdown • Render markdown to styled HTML via bm.md API with custom CSS • Publish to WeChat draft via official draft/add API CRITICAL: Do NOT use third-party publishing APIs (e.g. 微绿 wechat-publish). They strip inline CSS styles. Always use WeChat's official draft/add API directly.

Styling Features

The custom CSS (styles/custom.css) provides: • Optima/Microsoft YaHei fonts • Green accent color (rgb(53, 179, 120)) • H2 headings: white text on black background • Bold text: green color • Blockquotes: green left border • Responsive tables with alternating row colors • Code blocks with dark background

WeChat Article Formatter & Publisher

Format markdown articles with bm.md styling and publish directly to WeChat Official Account drafts via the official API.

Credentials

Read from ~/.env: | Variable | Purpose | |----------|---------| | WECHAT_APP_ID | WeChat Official Account AppID | | WECHAT_APP_SECRET | WeChat Official Account AppSecret | If not found, prompt the user to provide them and save to ~/.env.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 12d ago
Active
AdoptionUnder 100 stars
55 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars55
Forks10
Issues1
Updated12d ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code