WeChat Article Multi Publisher

v1.3.1

从 Markdown 文件或网页链接提取文章并发布到微信公众号。支持多账号管理、两种排版模板(standard/viral)、自动生成封面图和草稿发布。

0· 242·0 current·0 all-time
byHyperCube@diwuwudi123

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for diwuwudi123/wechat-article-mulit-publisher.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "WeChat Article Multi Publisher" (diwuwudi123/wechat-article-mulit-publisher) from ClawHub.
Skill page: https://clawhub.ai/diwuwudi123/wechat-article-mulit-publisher
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install wechat-article-mulit-publisher

ClawHub CLI

Package manager switcher

npx clawhub@latest install wechat-article-mulit-publisher
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (publish Markdown/URL to WeChat Official Accounts) align with the included script and config. The script uses WeChat API endpoints and supports multiple accounts as described. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md and the script agree on primary behavior (extract content, upload images, create drafts/publish). Small mismatch: the script suggests a `--install` action to install dependencies while SKILL.md documents running pip install -r scripts/requirements.txt — functionally equivalent but slightly inconsistent. The agent will read a local config.json (documented) and will send article content and images to WeChat API endpoints (expected for this purpose).
Install Mechanism
No install spec in registry; dependencies are standard PyPI packages listed in scripts/requirements.txt. The script can invoke pip (via subprocess) to install them; no third‑party download URLs or archives are present.
Credentials
No environment variables are required; account credentials (AppID/AppSecret) are stored in a documented local config.json which is appropriate for this integration. This does mean sensitive secrets are placed in a plaintext config file — required for operation but worth caution. The script otherwise does not request unrelated credentials or config paths.
Persistence & Privilege
Skill is not always-enabled and doesn't request elevated or persistent platform privileges. It does not modify other skills or global agent settings. Autonomous invocation is allowed by default (normal for skills).
Assessment
This skill appears to do what it says, but review and exercise caution before using with real credentials: 1) The script requires your WeChat AppID/AppSecret in config.json — avoid storing production secrets in a repository; prefer a secure local path or vault. 2) Run a dry-run first to verify rendering (--dry-run) and test with a throwaway/test account before publishing live. 3) The tool will fetch external URLs and upload images to WeChat (expected), so confirm any third‑party URLs you pass in. 4) The script can run pip to install dependencies; inspect requirements.txt and consider installing in a virtualenv. 5) Because the source and homepage are unknown, consider reviewing the full script (especially the parts after the truncated portion) locally before using it in production.

Like a lobster shell, security has layers — review code before you run it.

latestvk9759yzvz5h240agqp4r16yc7s84g0xy
242downloads
0stars
5versions
Updated 2w ago
v1.3.1
MIT-0

WeChat Article Mulit Publisher

功能特性

  • 多账号支持:通过 --account 指定发布到哪个公众号
  • 两种排版模板:standard(科技风格)和 viral(高传播风格)
  • 自动生成封面图(无本地图片时)
  • 支持 --dry-run 预览
  • 支持直接发布草稿 --publish
  • 文章内图片自动上传:自动将文章中的图片上传到微信素材库并替换为微信 CDN URL
  • 草稿管理:支持列出草稿列表、删除草稿
  • 素材管理:支持单独上传图片到素材库(本地文件或网络 URL)

配置

编辑 config.json

{
  "default_account": "your_account",
  "accounts": {
    "your_account": {
      "name": "公众号名称",
      "app_id": "wx...",
      "app_secret": "...",
      "author": "作者",
      "default_template": "standard",
      "topics": ["科技", "AI", "人工智能"]
    },
    "account2": {
      "name": "第二个公众号",
      "app_id": "wx...",
      "app_secret": "...",
      "author": "作者",
      "default_template": "viral",
      "topics": ["汽车", "新能源", "电动车"]
    }
  }
}
字段必填说明
default_account默认使用的账号名
accounts[].name公众号名称(显示用)
accounts[].app_id微信公众号 AppID
accounts[].app_secret微信公众号 AppSecret
accounts[].author默认作者,可被 --author 覆盖
accounts[].default_template默认模板,默认 standard
accounts[].topics公众号相关领域关键词,用于自动匹配

安装依赖

pip install -r scripts/requirements.txt

使用方法

# 列出所有已配置的账号
python scripts/publish_wechat.py --list-accounts

# 预览(不调用微信 API)
python scripts/publish_wechat.py <文章.md> --dry-run

# 发布到默认账号
python scripts/publish_wechat.py <文章.md>

# 发布到指定账号
python scripts/publish_wechat.py <文章.md> --account account2

# 直接发布(跳过草稿直接发布)
python scripts/publish_wechat.py <文章.md> --publish --status

# 列出草稿箱
python scripts/publish_wechat.py --list-drafts

# 删除草稿
python scripts/publish_wechat.py --delete-draft <media_id>

# 上传本地图片到素材库
python scripts/publish_wechat.py --upload-material /path/to/image.jpg

# 上传网络图片到素材库
python scripts/publish_wechat.py --upload-material-url https://example.com/image.jpg

命令行参数

参数说明
--account指定公众号账号(账号标识名)
--list-accounts列出所有已配置的账号
--template覆盖模板:standardviral
--author覆盖作者名
--cover-image指定本地封面图路径
--source-url覆盖原文链接
--dry-run仅渲染预览,不调用微信 API
--publish草稿创建后直接提交发布
--status查询发布状态
--list-drafts列出草稿箱中的所有草稿
--delete-draft删除指定 media_id 的草稿
--upload-material上传本地图片到素材库(传入图片路径)
--upload-material-url上传网络图片到素材库(传入图片URL)

输出

成功时返回 JSON:

{
  "success": true,
  "account": "your_account",
  "title": "文章标题",
  "draft_media_id": "...",
  "preview_html": "路径/to-preview.html"
}

Comments

Loading comments...