← 返回 Skills 市场
598
总下载
2
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install wechat-accounts-publisher
功能描述
自动化微信公众号文章发布,通过 API 创建和管理文章草稿,支持封面图和正文图片自动上传。用于:发布文章到公众号、创建内容草稿、自动化内容工作流、或设置定时发布系统。
安全使用建议
This skill is internally coherent for publishing to WeChat, but take these practical precautions before running: 1) Store your AppID/AppSecret in config.json and add that file to .gitignore; restrict its filesystem permissions. 2) Verify apiBaseUrl in config.json remains the official https://api.weixin.qq.com unless you intentionally test against another host — otherwise tokens and uploads could be sent to an attacker-controlled endpoint. 3) Only allow image files from trusted directories; the scripts decide upload eligibility by file extension, not by inspecting file contents, so a sensitive file renamed to e.g. .jpg could be uploaded. 4) Protect the .tokens cache directory (set restrictive permissions) or change its location if needed. 5) Review the included scripts (publish_article.py / .js) in a safe environment and, if possible, run the first tests with a throwaway test account. If you need higher assurance, run the scripts in an isolated container and audit network traffic to confirm connections go only to WeChat endpoints.
功能分析
Type: OpenClaw Skill
Name: wechat-accounts-publisher
Version: 1.0.1
The OpenClaw AgentSkills skill bundle is designed to automate publishing articles to WeChat公众号. Both the Python and Node.js scripts correctly implement the stated functionality, requiring file system access for configuration and image handling, and network access to the official WeChat API (api.weixin.qq.com) for authentication and content submission. The `SKILL.md` and `scripts/README.md` documentation explicitly advise users on security best practices, such as protecting `AppSecret` and using `.gitignore`. There is no evidence of intentional malicious behavior, unauthorized data exfiltration, arbitrary code execution, or prompt injection attempts against the AI agent. All observed behaviors are aligned with the skill's legitimate purpose.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included Python/Node scripts consistently implement a WeChat publisher: obtaining access tokens, uploading cover/body images, replacing local image src, and creating drafts. The skill uses a local config.json to hold AppID/AppSecret rather than environment variables; this is coherent with the documented usage.
Instruction Scope
Runtime instructions and scripts only interact with files referenced by the user (config.json, .tokens cache, local image files) and with the configured apiBaseUrl (defaulting to api.weixin.qq.com). They do not phone home to hidden endpoints. Caution: the scripts will open and POST any local file whose path ends with an allowed image extension (e.g., .jpg/.png). If a non-image sensitive file is renamed to have an image extension, it could be uploaded. The Node script also searches parent paths for config.json, expanding its file-read scope slightly.
Install Mechanism
This is an instruction-only skill with included source files; there is no external install/download step. Dependencies are standard (httpx for Python; axios and form-data for Node) and are proportional to the stated functionality.
Credentials
No environment variables or platform credentials are requested by the skill; secrets are stored in a local config.json (AppID/AppSecret). That is a reasonable design choice but requires user caution: putting AppSecret in a file is normal but should be protected (gitignored, file-permissions restricted). The config allows overriding apiBaseUrl; if misconfigured (or maliciously edited) it could direct tokens and uploads to a non-WeChat endpoint.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or global agent settings. It caches Access Token to a local .tokens/token_cache.json (configurable path), which is normal for this use-case; ensure that directory is secure.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wechat-accounts-publisher - 安装完成后,直接呼叫该 Skill 的名称或使用
/wechat-accounts-publisher触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Big update: Now supports automatic uploading of cover and article body images.
- 自动检测内容中的本地图片路径,自动上传至微信素材库,并替换为微信 URL
- 支持命令行参数设置封面图(thumb)和正文图片目录(content-dir)
- 详细补充图片格式、大小限制与上传说明
- 增强配置与故障排查,支持多账号、图片安全、批量处理等新场景
- 用中文重写全流程文档,覆盖图片智能处理、API 使用规范、OpenClaw 集成等内容
v1.0.0
Initial release: Automated article publishing and draft management for WeChat Official Accounts and Service Accounts.
- Supports both Python and Node.js implementations with automatic access token and multi-account management.
- Provides detailed setup instructions, example usage patterns, and integration options for direct, scheduled, and workflow-driven publishing.
- User-friendly guides for configuration, formatting requirements, and common troubleshooting steps.
- Highlights security practices for credential and token handling.
- Clearly outlines feature limitations and potential future extensions.
元数据
常见问题
Wechat AutoPublish 是什么?
自动化微信公众号文章发布,通过 API 创建和管理文章草稿,支持封面图和正文图片自动上传。用于:发布文章到公众号、创建内容草稿、自动化内容工作流、或设置定时发布系统。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 598 次。
如何安装 Wechat AutoPublish?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-accounts-publisher」即可一键安装,无需额外配置。
Wechat AutoPublish 是免费的吗?
是的,Wechat AutoPublish 完全免费(开源免费),可自由下载、安装和使用。
Wechat AutoPublish 支持哪些平台?
Wechat AutoPublish 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Wechat AutoPublish?
由 Zhengy Li(@zlr25)开发并维护,当前版本 v1.0.1。
推荐 Skills