📝 md2wechat Lite | 轻量版微信公众号 Markdown 排版 CLI,免费开源
SaferSkills independently audited md2wechat-lite (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
CLI tool for converting Markdown to WeChat Official Account formatted drafts.
Install:
curl -fsSL https://raw.githubusercontent.com/geekjourneyx/md2wechat-lite/main/cli/scripts/install.sh | shConfigure credentials:
md2wx config set wechat-appid "wx123..."
md2wx config set wechat-appsecret "your_secret"
md2wx config set api-key "wme_your_key"| Command | Purpose |
|---|---|
article-draft | Create article draft from Markdown |
newspic-draft | Create Xiaolvshu (image card) draft |
batch-upload | Upload images to WeChat CDN |
themes list | List available themes |
config | Manage settings (set/get/list/path) |
Convert Markdown to WeChat article:
md2wx article-draft --file article.md --theme bytedance --cover-image "https://cdn.example.com/cover.jpg"Or pass inline Markdown:
md2wx article-draft --markdown "# Title\n\nContent" --theme elegant-red --cover-image "https://cdn.example.com/cover.jpg"Note:
article-draft does not read from stdin pipe directly.--cover-image with a public URL.Create image-rich card drafts:
md2wx newspic-draft --title "标题" --content "内容" --images "https://cdn.example.com/img1.jpg,https://cdn.example.com/img2.png"Upload images and get WeChat CDN URLs:
md2wx batch-upload --images "https://cdn.example.com/a.jpg,https://cdn.example.com/b.jpg"Image input constraints:
Built-in (6): default, bytedance, chinese, apple, sports, cyber
Template (32): {minimal|focus|elegant|bold}-{gold|green|blue|orange|red|navy|gray|sky}
List/search themes:
md2wx themes list [--verbose] [--search query]For theme descriptions: See cli/pkg/themes/list.go
Config file: ~/.md2wx/config.yaml (stored as key=value lines)
Priority: Command args > Environment vars > Config file > Defaults
Environment variables:
MD2WX_WECHAT_APPIDMD2WX_WECHAT_APPSECRETMD2WX_API_KEYMD2WX_API_BASE_URLMD2WX_DEFAULT_THEMEMD2WX_BACKGROUND_TYPEMD2WX_FONT_SIZEcli/
├── main.go # Root command
├── article-draft.go # Article draft
├── newspic-draft.go # Xiaolvshu draft
├── batch-upload.go # Image upload
├── config.go # Config management
├── themes.go # Theme list command
└── pkg/
├── api/client.go # HTTP API client
├── config/ # Config file I/O
├── themes/ # Theme definitions
└── output/ # JSON formatterAll commands output JSON:
{
"success": true,
"data": { "media_id": "...", "url": "..." }
}See source files for:
cli/pkg/api/client.gocli/pkg/config/config.gocli/pkg/themes/list.go~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.