← 返回 Skills 市场
278
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install yaniw-wechat-publisher
功能描述
用于管理多个微信公众号的内容创作和发布。当用户提到"公众号发布"、"写公众号文章"、"给某个公众号发文"、"切换公众号"、"查看公众号发布情况"、"微信发文"或需要为公众号生成内容、封面图、发布文章时,自动触发此技能。支持多账号管理、内容生成、封面设计、自动发布等完整流程。
安全使用建议
This skill is coherent with a WeChat publisher: it uses Playwright to render covers and calls the official WeChat API to upload images and save drafts. Before installing or using it:
- Expect to provide WeChat AppID/AppSecret. The package will read them from a .env file or from references/*.json; the registry metadata did NOT list those env vars — verify you supply credentials only in local files or environment variables and do not upload them to public repos.
- The code will create and modify local config files (e.g., multi_account_config.json) and write articles, covers, and logs under the specified base_dir. Review paths and ensure sensitive files are gitignored as recommended.
- The docs claim the agent will "automatically obtain your current IP" on IP-white-list errors; I did not find a clear implementation for automatic IP lookup in the scripts (you may be asked to run curl/visit ip.cn manually). Test the behavior in a safe environment first.
- Playwright and requests must be installed locally; run tests with dummy config/template before using real AppSecret. Keep AppSecret private and rotate it after testing if it was exposed.
If you want this skill to be less risky: run it in an isolated environment, provide credentials via environment variables (not committed to disk), inspect the code yourself or run the included tests, and confirm the platform won’t upload your config files. If you need, provide the maintainer with feedback asking them to declare required env vars in registry metadata and to add an explicit IP-discovery function (or clarify the behavior) in code.
功能分析
Type: OpenClaw Skill
Name: yaniw-wechat-publisher
Version: 1.1.0
The yaniw-wechat-publisher skill bundle is a well-documented tool for automating WeChat Official Account management. It includes scripts for content generation, HTML-to-PNG cover rendering using Playwright (screenshot_cover.py), and interaction with the official WeChat API (publish_to_wechat.py). Notably, the bundle implements security best practices such as credential management via environment variables and automated sanitization of sensitive data (AppIDs, Secrets, and Tokens) in error logs within credential_manager.py. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found.
能力评估
Purpose & Capability
The name/description match the code and docs: scripts perform account switching, article/covers generation (templates + Playwright), uploading to WeChat, and logging. Requiring AppID/AppSecret and Playwright is expected for this purpose. However the registry metadata claims no required env vars / primary credential while the package clearly expects AppID/AppSecret (via .env or references/*.json) — this is an inconsistency to be aware of.
Instruction Scope
SKILL.md limits actions (explicit confirmation required at each step) and restricts operations to local files + WeChat API. That scope is appropriate. One claim in the docs/SKILL.md — that the agent will "自动获取用户当前IP地址" on IP-white-list errors — is not implemented as a distinct function in the scripts (no code that queries an external IP service). The rest of runtime steps (load config, render templates with Playwright, upload to WeChat API, write logs) are consistent with the stated purpose.
Install Mechanism
No install spec is provided (instruction-only install). The package includes requirements.txt listing requests, playwright, python-dotenv and documentation telling users to install Playwright; this is proportionate. No downloads from untrusted URLs or extractable archives are present.
Credentials
The package needs sensitive credentials (WeChat AppID/AppSecret) and supports environment variables (.env / WECHAT_APP_ID_1 etc.) and config files (references/my_accounts.json, multi_account_config.json). Yet the registry metadata declares no required environment variables or primary credential — that's a mismatch. The code will read local .env and local config files and may write to multi_account_config.json (switch_account.py), so credentials will exist on disk unless you use environment variables. This request for secrets is proportionate to the feature, but the lack of declared credentials in the registry metadata and the multiple locations where the skill reads/writes credentials/configs are worth flagging.
Persistence & Privilege
The skill is not force-included (always:false) and does not request any platform-level persistent privileges. It writes to its own project directories (config, articles, logs) which is expected for a publisher tool. It modifies local config files (e.g., multi_account_config.json) to switch accounts — expected behavior, not an escalation of privilege.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install yaniw-wechat-publisher - 安装完成后,直接呼叫该 Skill 的名称或使用
/yaniw-wechat-publisher触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
yaniw-wechat-publisher v1.1.0
- 新增 credential_manager.py 脚本,强化凭证管理功能。
- 新增版本更新说明文档 (v1.1.0)。
- 移除打包、测试和清单相关的旧脚本与文档,优化目录结构。
v1.0.0
yaniw-wechat-publisher v1.0.0
- 首次发布,用于多公众号内容创作和发布的完整流程自动化管理
- 支持多账号切换、内容生成、封面风格选择、自动发布及日志记录
- 严格逐步用户确认机制,确保内容和操作安全
- 提供丰富的参考文件、资源模板和详细流程说明
- 包含常见错误提示与处理建议,配置灵活可扩展
元数据
常见问题
wechat-publisher 是什么?
用于管理多个微信公众号的内容创作和发布。当用户提到"公众号发布"、"写公众号文章"、"给某个公众号发文"、"切换公众号"、"查看公众号发布情况"、"微信发文"或需要为公众号生成内容、封面图、发布文章时,自动触发此技能。支持多账号管理、内容生成、封面设计、自动发布等完整流程。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 278 次。
如何安装 wechat-publisher?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install yaniw-wechat-publisher」即可一键安装,无需额外配置。
wechat-publisher 是免费的吗?
是的,wechat-publisher 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
wechat-publisher 支持哪些平台?
wechat-publisher 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 wechat-publisher?
由 zgedu-new(@zgedu-new)开发并维护,当前版本 v1.1.0。
推荐 Skills