一键导入
wechat-post-publisher
Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) and image-text posting (贴图).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) and image-text posting (贴图).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Publish or prepare articles for Toutiao/头条号, check or restore shared login state, fill Markdown drafts with inline images and covers, and optionally complete final publishing. Use for requests such as 发布到头条、检查头条登录、填充头条草稿、上传图文、人工审核 or explicitly authorized automatic publishing.
Create and revise editable visual drawings directly in the Excalidraw website through the in-app browser. Use when the user asks Codex to draw in Excalidraw or update an Excalidraw canvas, including diagrams, flowcharts, architecture sketches, process maps, infographics, teaching visuals, product explanation graphics, whiteboard layouts, promotional materials, posters, flyers, menu boards, and social media graphics, especially when the output should remain editable as Excalidraw elements or imported clipboard JSON.
Create scripted tutorial videos with narration, TTS, aligned subtitles, MP4 rendering, and platform variants. Use when Codex needs to create or revise tutorial, explainer, product walkthrough, course, demo, or short-form videos; generate 16:9 landscape output by default unless the user explicitly asks for 9:16, 1:1, or another format.
将序列帧图片或精灵表(Sprite Sheet)转换为高质量 GIF 动画。支持自定义 FPS、布局切分及循环播放。
A universal 4x4 grid sticker generator. Uses strict visual guidelines (No Text, Transparent BG) and supports loading theme templates from references.
微信表情包制作工具。自动将六宫格、九宫格、十二宫格的原图裁剪并转换为符合微信表情包规范的格式(表情主图 240x240,聊天页图标 50x50)。
| name | wechat-post-publisher |
| description | Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) and image-text posting (贴图). |
| version | 1.56.1 |
| compatibility | Requires Bun runtime (or npx), Google Chrome (for browser mode), and macOS Accessibility permissions (if using browser automation on macOS). |
| metadata | {"openclaw":{"homepage":"https://github.com/guanyang/super-publisher#wechat-post-publisher","requires":{"anyBins":["bun","npx"]}}} |
Match user's language: Respond in the same language the user uses. If user writes in Chinese, respond in Chinese. If user writes in English, respond in English.
Agent Execution: Determine this SKILL.md directory as {baseDir}, then use {baseDir}/scripts/<name>.ts. Resolve ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun.
| Script | Purpose |
|---|---|
scripts/wechat-browser.ts | Image-text posts (图文) |
scripts/wechat-article.ts | Article posting via browser (文章) |
scripts/wechat-api.ts | Article posting via API (文章) |
scripts/md-to-wechat.ts | Markdown → WeChat-ready HTML with image placeholders |
scripts/check-permissions.ts | Verify environment & permissions |
For detailed setup, configuration, features, and troubleshooting, refer to these standalone documents:
Copy this checklist and check off items as you complete them:
Publishing Progress:
- [ ] Step 0: Load preferences (EXTEND.md)
- [ ] Step 0.5: Resolve account (multi-account only - see references/accounts.md)
- [ ] Step 1: Determine input type
- [ ] Step 2: Select method and configure credentials
- [ ] Step 3: Resolve theme/color and validate metadata
- [ ] Step 4: Publish to WeChat
- [ ] Step 5: Report completion
Check and load EXTEND.md settings (details in Preferences & Multi-Account Settings). If not found, complete first-time setup BEFORE any other steps.
Resolve: default_theme (default default), default_color, default_author, need_open_comment (default 1), only_fans_can_comment (default 0).
.html, file exists -> Skip to Step 3..md, file exists -> Continue to Step 2.post-to-wechat/yyyy-MM-dd/[slug].md (generate slug from first 2-4 English words of content), then continue to Step 2.Ask publishing method (unless specified in EXTEND.md or CLI):
api (Recommended, Fast, requires API credentials)browser (Slow, requires Chrome, login session)If API Selected, check credentials in .super-publisher/.env or ~/.super-publisher/.env. If missing, guide user to obtain AppID/AppSecret from WeChat Admin platform and save.
default).Title: Prompt or auto-generate from first H1/H2 or first sentence.Summary: Use description/summary in frontmatter, or prompt, or auto-generate (first paragraph truncated to 120 chars).Author: CLI --author -> frontmatter author -> default_author.Cover Image: Check CLI --cover -> frontmatter cover keys -> default imgs/cover.png -> first inline image. (Stop and request if missing for API).${BUN_X} {baseDir}/scripts/wechat-api.ts <file> --theme <theme> [--color <color>] [--title <title>] [--summary <summary>] [--author <author>] [--cover <cover_path>] [--no-cite]
${BUN_X} {baseDir}/scripts/wechat-article.ts --markdown <markdown_file> --theme <theme> [--color <color>] [--no-cite]
# OR
${BUN_X} {baseDir}/scripts/wechat-article.ts --html <html_file>
Print status details: Input path, Method, Theme/Color, Title, Summary, Images count, Comment settings, and Resulting draft links or IDs. See Features & Comparison Matrix for more details.