mcpField
W
wechatsync

wechatsync

github.com/wechatsyncMarketing & growth6.5k66 installsUpdated 5d ago
Repository

About wechatsync

WechatSync is a CLI skill for syncing Markdown or HTML articles to content platforms and extracting articles from browser pages. It uses a local CLI-to-Chrome-extension connection and existing browser logins; synced articles default to drafts.

Key features

  1. 01Sync Markdown/HTML articles across platforms
  2. 02Set titles and cover images
  3. 03Preview syncs with dry-run
  4. 04Check platform login status
  5. 05Extract browser articles to Markdown
  6. 06Save synced posts as drafts by default

Use cases

  1. 01Distribute an article across selected platforms
  2. 02Preview a cross-platform article sync
  3. 03Check which target platforms are logged in
  4. 04Save an article from the current browser page

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wechatsync/wechatsync --skill wechatsync

After installing, type/wechatsyncin Claude Code to confirm it loaded.

Details

From the project README

WechatSync

Publish and sync Markdown/HTML articles to 29+ content platforms via CLI.

Prerequisites

This skill requires external tools that the user must install themselves:

  1. CLI tool (@wechatsync/cli): Open-source npm package (source code). Install with npm install -g @wechatsync/cli
  2. Chrome extension: Open-source browser extension (source code). Install from Chrome Web Store or download ZIP
  3. Token: User-generated token set in extension settings. The token is created locally by the user and used only for localhost communication between CLI and extension. Set via export WECHATSYNC_TOKEN="your-token"
  4. Platform logins: Log in to target platforms in browser (extension uses existing browser cookies, no credentials are stored or transmitted)

Security model: All data stays local. The CLI communicates with the Chrome extension over localhost. The extension calls platform APIs directly from the browser using existing login sessions. No third-party server involved. Full source code is open and auditable.

Before running any command, confirm the user has completed the prerequisites. Do not install packages on the user's behalf without explicit consent.

Commands

Sync
wechatsync sync article.md -p juejin              # single platform
wechatsync sync article.md -p juejin,zhihu,csdn   # multiple platforms
wechatsync sync article.md -p juejin -t "Title"   # custom title
wechatsync sync article.md -p juejin --cover ./cover.png  # cover image
wechatsync sync article.md -p juejin --dry-run     # preview only
Platforms & Auth
wechatsync platforms          # list all platforms
wechatsync platforms --auth   # show login status
wechatsync auth zhihu         # check single platform
Extract
wechatsync extract              # extract from current browser page
wechatsync extract -o article.md  # save to file

Platform IDs

zhihu, juejin, csdn, jianshu, toutiao, douyin, weibo, bilibili, xiaohongshu, baijiahao, weixin, yuque, douban, sohu, xueqiu, woshipm, dayu, yidian, 51cto, sohufocus, imooc, oschina, segmentfault, cnblogs, x, eastmoney, smzdm, netease, wordpress, typecho

Notes

  • Images auto-uploaded to target platform CDN (PNG, JPG, GIF, WebP, SVG)
  • Markdown title extracted from front matter title or first # heading
  • Articles sync as drafts by default — user reviews before publishing

Workflow

  1. Confirm prerequisites are installed (ask user if unsure)
  2. Check login: wechatsync platforms --auth
  3. Sync: wechatsync sync <file> -p <platform1>,<platform2>
  4. Report results with draft URLs

Example prompts:

  • "Sync this article to Juejin and Zhihu"
  • "Which platforms am I logged into?"
  • "Extract the article from browser and save it"
  • "把这篇文章同步到掘金和知乎"

Comments

Markdown supported