Xpersona
W

wechat-publisher

CLAWHUB · Unverified

微信公众号文章发布工具。从互联网获取信息,智能排版成精美文章,支持多格式输入,批量发布,定时发布,数据统计。自媒体运营必备工具。微信公众号、文章发布、自媒体。 Skill: wechat-publisher Owner: tobewin Summary: 微信公众号文章发布工具。从互联网获取信息,智能排版成精美文章,支持多格式输入,批量发布,定时发布,数据统计。自媒体运营必备工具。微信公众号、文章发布、自媒体。 Tags: latest:1.0.8 Version history: v1.0.8 | 2026-06-30T09:04:12.697Z | user v1.0.8: 修改显示名为 wechat-publisher v1.0.7 | 2026-06-30T08:59:05.987Z | user v1.0.7: 补全微信官方文档全部发布相关 API 【新增】素材管理(5个接口) - material/add_material — 永久素材上传(支持 image/thumb/video) - material/get_material — 获取永久素材(图片/视频/图文) -

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174rz3f0862tcfw7pzfh5w8kn83hv2z:wechat-article-publisher-pro
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tobewin-wechat-article-publisher-pro/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

76,316 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: wechat-publisher
description: 微信公众号文章发布工具。覆盖微信官方全部发布相关 API:草稿管理、发布管理、素材管理、数据统计、评论管理。纯 Python 标准库实现,零外部依赖。
version: 1.0.7
license: MIT-0
metadata: {"openclaw": {"emoji": "📱", "requires": {"bins": ["python3"], "env": ["WECHAT_APP_ID", "WECHAT_APP_SECRET"]}, "primaryEnv": "WECHAT_APP_ID"}}
--

# 微信公众号文章发布工具

纯 Python stdlib,零外部依赖。覆盖微信官方文档全部发布相关 API。

## 配置

```bash
export WECHAT_APP_ID='your_app_id'
export WECHAT_APP_SECRET='your_app_secret'
export WECHAT_AUTHOR='作者名(可选)'
```

> ⚠️ 2025 年 7 月起,个人主体账号、企业主体未认证账号将被回收发布接口权限。

## 全部命令

```
公众号发布工具 v1.0.7
======================== 草稿管理 ========================
draft create <json>         创建草稿(JSON 支持多图文)
draft get <media_id>        获取草稿详情
draft update <media_id> <json> [--index N]
draft count                 草稿数量
draft list [--offset 0] [--count 20]
draft delete <media_id>

======================== 发布管理 ========================
publish <media_id>          提交发布(返回 publish_id + msg_data_id)
publish status <publish_id> 查询发布状态

======================== 已发布管理 ======================
published list [--offset 0] [--count 20] [--no-content 1]
published delete <article_id>
published getarticle <article_id>  获取已发布图文详情

======================== 素材管理 ========================
material add <file> [--type image|thumb|video] [--title T] [--intro I]
material get <media_id> [--out <file>]
material delete <media_id>
material list [--type image|video|voice|news] [--offset 0] [--count 20]
material update_news <media_id> <json> [--index 0]

======================== 图片上传 ========================
upload <image_path>         上传图片用于正文(返回永久 URL)

======================== 数据统计 ========================
stats summary <begin> <end>
stats total <begin> <end>
stats read <begin> <end>
stats readhour <begin> <end>
stats share <begin> <end>
stats sharehour <begin> <end>
stats userread <begin> <end>
stats userreadhour <begin> <end>

======================== 评论管理 ========================
comment list <msg_data_id> [--index 0] [--begin 0] [--count 50] [--type 0]
comment mark <msg_data_id> --comment_id <id>
comment unmark <msg_data_id> --comment_id <id>
comment delete <msg_data_id> --comment_id <id>
comment reply <msg_data_id> --comment_id <id> --content <text>
comment delreply <msg_data_id> --comment_id <id>

======================== 其他 ============================
render <file> [--style standard|business|minimal|tech|academic|warm]
test                                   测试连接
```

## 多图文草稿示例

```bash
# 创建包含 2 篇图文消息的草稿
cat > articles.json << 'EOF'
[
  {
    "title": "第一篇",
    "author": "作者",
    "content": "<p>正文 HTML</p>",
    "digest": "摘要",
    "thumb_media_id": "MEDIA_ID",
    "need_open_comment": 1
  },
  {
    "title": "第二篇",
    "author": "作者",
    "content": "<p>第二篇正文</p>",
    "thumb_media_id": "MEDIA_ID"
  }
]
EOF

python3 scripts/publish_wechat.py draft create articles.json
```

## 完整工作流

```
内容准备
  ↓
render 命令 → 公众号排版 HTML
  ↓
upload 命令 → 上传正文图片(media/uploadimg)→ 图片 URL
  ↓
material add --type image → 上传封面图(永久素材)→ media_id

_meta.json

{
  "ownerId": "kn75z6gevjsyrznm7dg2ez6sen82h8sz",
  "slug": "wechat-article-publisher-pro",
  "version": "1.0.8",
  "publishedAt": 1782810252697
}

skill-card.md

## Description:

A WeChat Official Account publishing and administration skill for drafting, publishing, formatting, asset management, analytics, and comment moderation using the WeChat publishing APIs.

This skill is ready for commercial/non-commercial use.

## Publisher:

[tobewin](https://clawhub.ai/user/tobewin)

### License/Terms of Use:

MIT-0

## Use Case:

Content operators and developers use this skill to manage WeChat Official Account article workflows, including draft creation, publication, uploaded media, reader statistics, and comment moderation. It is suited for agents that need to prepare commands, configuration, or operational guidance for a live WeChat account.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can publish and delete live WeChat account content and comments without built-in confirmation safeguards.

Mitigation: Review every publish, delete, and moderation command before execution, and require an external approval step for destructive or public-facing actions.

Risk: The skill requires WeChat application credentials for account operations.

Mitigation: Use restricted credentials where possible and install the skill only for agents intended to operate a live WeChat official account.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/tobewin/skills/wechat-article-publisher-pro)
- [WeChat Official Account API documentation](https://developers.weixin.qq.com/doc/subscription/api/)
- [Publisher profile](https://clawhub.ai/user/tobewin)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration]

**Output Format:** [Markdown with inline shell commands, JSON examples, and Python command guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May produce commands that operate on a live WeChat Official Account when credentials are configured.]

## Skill Version(s):

1.0.8 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

LICENSE.txt

MIT No Permission (MIT-0)

Copyright 2026

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Sponsored

Ads related to wechat-publisher and adjacent AI workflows.