wechat article publisher

v1.0.0

从 Markdown 文件或网页链接提取文章并发布到微信公众号。适用于需要“自动创建草稿/提交发布”、统一微信样式(standard/viral)和批量复用发布流程的场景。

5· 2.8k·21 current·21 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

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

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "wechat article publisher" (zhenglong2015/wechat-article-publisher) from ClawHub.
Skill page: https://clawhub.ai/zhenglong2015/wechat-article-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-publisher

ClawHub CLI

Package manager switcher

npx clawhub@latest install wechat-article-publisher
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included code and SKILL.md: the script extracts content from Markdown or web pages, renders HTML, and calls WeChat API endpoints (token, draft, material, freepublish). Required inputs are a local config.json with wechat.app_id and wechat.app_secret — appropriate for the stated purpose.
Instruction Scope
SKILL.md instructions are narrowly scoped to preparing config.json, installing dependencies, previewing (--dry-run), creating drafts and optionally publishing. The agent/script will read the provided Markdown file, web URL content, and the local config.json; there are no instructions to read unrelated system files or export arbitrary data.
Install Mechanism
No install spec in the registry; the script provides an --install that runs pip install -r scripts/requirements.txt. This installs third-party Python packages (requests, BeautifulSoup, markdown, pyyaml, Pillow) from PyPI — expected but worth noting because pip installation executes code from external packages and writes to the environment.
Credentials
The skill does not request platform env vars or unrelated credentials. It requires the WeChat app_id and app_secret placed in config.json (local file). Storing the app_secret in plaintext in a local file is functional but has security implications — a secret manager or environment variables might be preferable.
Persistence & Privilege
Skill is not forced-always, does not request platform-level privileges, and does not modify other skills. It runs as an on-demand script; autonomous invocation is enabled by default but is not combined with unusual credential access here.
Assessment
This skill appears to do what it says, but review these points before installing: 1) The script asks you to put your WeChat app_id and app_secret into config.json — consider storing secrets in a secure store rather than a plain file. 2) The --install command runs pip install on bundled requirements (requests, BeautifulSoup, markdown, pyyaml, Pillow); installing packages from PyPI will execute third-party code — prefer a controlled virtualenv. 3) Use --dry-run first to verify rendered output and avoid accidental publishes; the script will fetch arbitrary URLs and call WeChat APIs, so only run it in an environment you trust. 4) If you need higher assurance, review the remainder of scripts/publish_wechat.py (the network calls and upload flow) or run it in an isolated container.

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

latestvk977w3nrd5mps666rk6en227gd82m3pp
2.8kdownloads
5stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

WeChat Article Publisher

何时使用

当用户明确要求以下任一任务时触发本 skill:

  • 把本地 .md 文章发布到微信公众号
  • 把网页链接(博客/新闻页)提取后发布到微信公众号
  • 需要统一微信排版模板(standardviral)并自动生成封面
  • 需要程序化输出 media_idpublish_id、发布状态

工作流

  1. 准备配置:
    • 编辑本目录 config.json,仅需填写:wechat.app_idwechat.app_secretwechat.author
  2. 安装依赖:
    • python scripts/publish_wechat.py --install
  3. 预览(不调用微信接口):
    • python scripts/publish_wechat.py <输入> --dry-run
  4. 创建草稿:
    • python scripts/publish_wechat.py <输入>
  5. 直接提交发布(可选):
    • python scripts/publish_wechat.py <输入> --publish --status

<输入> 支持:

  • 本地 Markdown 文件路径
  • http:// / https:// 网页 URL

命令参数

主脚本:scripts/publish_wechat.py

  • input:Markdown 文件路径或网页 URL
  • --config:配置文件路径,默认本 skill 的 config.json
  • --template:覆盖模板,standard|viral
  • --author:覆盖作者
  • --source-url:覆盖原文链接
  • --cover-image:指定本地封面图
  • --dry-run:仅提取+渲染,不调微信 API
  • --publish:草稿创建后调用 freepublish/submit
  • --status:提交发布后查询一次发布状态

执行约束

  • 发布前优先做 --dry-run,检查标题、摘要和渲染 HTML。
  • 如果账号无 freepublish 权限,--publish 可能返回 48001,此时保留草稿手动发布。
  • 若创建草稿时报 41005 media data missing,请通过 --cover-image 指定封面图。

输出结果

脚本标准输出 JSON,关键字段:

  • draft_media_id
  • publish_id(仅 --publish
  • status(仅 --status
  • preview_html(仅 --dry-run

Comments

Loading comments...