AI Agent Hub
Back to skills
WeChat Web Publisher icon

WeChat Web Publisher

Office Efficiency Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Install @user_2c495456/web-publisher using https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Turning a web page or local document into a WeChat article usually requires manual copy-paste, image handling, layout adjustment, and dealing with anti-bot pages, drafts, and publishing. Web Publisher moves fetching, document conversion, optional rewriting, drafting, and publishing to the server side and exposes them through HTTP calls.

How It Works

  • Login and setup: login returns verifyUrl and userCode; after the user confirms in the browser, login-status pulls the credentials. wechat config returns a setup URL and requires adding serverIps to the WeChat official-account IP whitelist.
  • Draft and publish: draft accepts an http(s):// URL or a local document path such as PDF, DOCX, PPTX, XLSX, or EPUB; publish is used only when the user explicitly asks.
  • Convert and rewrite: convert can output Markdown only; for large files, use --out to write to disk. --rewrite can add a rewrite style.

Limits and Caveats

  • Draft is the default; do not publish proactively, and avoid timeout retries that may create duplicate drafts.
  • Local files are capped at 50 MiB; file:// is not supported. For academic PDFs or large files, prefer --async.
  • Server-side fetching uses fixed outbound IPs, so some Xiaohongshu, Zhihu, login-walled, or overseas pages may return 403 or login walls; a local fallback may be needed.
  • AppSecret never enters the conversation context and is submitted only through the browser form.

Use Cases

  • Take a reachable article URL, extract the body into Markdown, and save it as a WeChat draft.
  • Send a PDF, DOCX, or PPTX file to the server, convert it to Markdown, and review the output.
  • After login, deliver the AppID setup URL and remind the user to add serverIps to the IP whitelist.
  • When server-side fetch fails on Zhihu, Xiaohongshu, or login-walled pages, fall back to local extraction.

Best For

  • WeChat content editors: turn external articles or local documents into reviewable drafts.
  • AI-agent workflow engineers: let agents run CLI calls for login, WeChat setup, and drafting.
  • Technical writers needing archives: extract body text from PDF, DOCX, or PPTX into Markdown.
  • Content operations staff handling restricted sources: fall back to local extraction when server fetch fails.