← 返回 Skills 市场
微信公众号发布工具
作者
brucesongs
· GitHub ↗
· v1.0.2
· MIT-0
325
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install wechat-mp-publish-skill
功能描述
微信公众号文章发布工具 v1.0。基于官方 API,支持智能配图、模板渲染、草稿/发布双模式。当用户说"发公众号"、"发布微信公众号"时使用此技能。
安全使用建议
Key things to consider before installing:
- Credentials: The skill needs your WeChat AppID and AppSecret (and optionally API keys for image providers such as DALL‑E, VolcEngine, Baidu, Unsplash, OpenAI). The registry metadata does not list these env vars — ask the author for a precise list and which are required vs optional.
- Token/storage: The code stores access_token in a local JSON cache file in plaintext (albeit file mode 600). If an attacker obtains your filesystem they could post as your account. Prefer using an OS keyring or enable encryption (the project’s audit suggests Fernet). Do not reuse high‑privilege credentials elsewhere.
- Logs & secrets: Logs may still contain sensitive identifiers despite masking. Review logs directory and consider enabling stricter masking, log rotation, and restricted permissions. The cleanup_logs.py script references an absolute user path (/Users/brucesong/...) — update to your environment before running.
- Scheduled tasks: The documentation shows how to create launchd/cron tasks. Those scheduled scripts currently lack execution authentication per the audit. If you enable scheduling, run on a dedicated machine, restrict who can edit the schedule, and supply an execution secret (as suggested by the audit).
- Input sanitization: Markdown-to-HTML currently lacks sanitization; enable/verify bleach-based cleaning before publishing if you accept untrusted Markdown.
- Run safely: Install and test in an isolated environment (non-production account or test WeChat public account) first. Inspect config.example.yaml, config.yaml, and code paths that reference home directories; change hard-coded absolute paths to avoid accidental file operations on your system.
- Ask for fixes or patch locally: The included SECURITY_AUDIT.md is helpful; request or apply the suggested fixes (encrypt token cache, sanitize logs, validate uploads, enforce SSL verify, protect scheduled task execution) before using with production accounts.
If you want, I can: (1) list every env var the code reads, (2) point to exact lines to patch for token encryption and markdown sanitization, or (3) prepare a minimal safe checklist to harden this skill before enabling it.
功能分析
Type: OpenClaw Skill
Name: wechat-mp-publish-skill
Version: 1.0.2
The bundle is a comprehensive and well-documented tool for automating WeChat Official Account publishing, including Markdown rendering and AI-driven image generation. It exhibits high security awareness, featuring dedicated scripts to redact sensitive information from logs and source code (cleanup_logs.py, cleanup_secrets.py) and providing detailed self-conducted OWASP security audits. While the audits identify potential vulnerabilities such as plain-text token caching, the developer has implemented mitigations like strict file permissions (0o600) and environment variable substitution, indicating responsible development rather than malicious intent.
能力评估
Purpose & Capability
The skill claims to be a WeChat Public Account publisher — that legitimately requires the WeChat AppID/AppSecret and (optionally) third‑party image API keys. However the registry metadata lists no required environment variables or primary credential, while SKILL.md and multiple code files expect WECHAT appid/appsecret and various image-provider keys (DALL_E_API_KEY, VOLCENGINE_API_KEY, etc.). This mismatch between declared requirements and actual needs is incoherent and could lead to accidental credential exposure or failed install.
Instruction Scope
SKILL.md instructs installing dependencies, copying config.example.yaml and editing AppID/AppSecret — which is fine. But the code and docs reference system paths outside the skill directory (e.g., cleanup_logs.py uses a hard-coded /Users/brucesong/.openclaw/... logs path), create scheduled tasks (launchd examples), and tests/scripts that perform network scraping and multiple provider calls. Some instructions grant broad discretion (e.g., enable scheduled tasks, set up launchd) and could lead to persistent background activity. The instructions also rely on environment variables that were not declared in the registry metadata.
Install Mechanism
There is no install spec (instruction-only at registry level), but the package includes many code files that will be executed if the user runs them. No external binary download URLs are used in the manifest; dependencies are installed via pip per SKILL.md/requirements.txt. That is moderate risk — code will run locally and uses common Python packages, but the absence of an explicit install procedure in registry metadata (and missing declared credentials) reduces transparency.
Credentials
Code and documentation clearly use multiple secret-bearing environment variables (WECHAT_APPID, WECHAT_APPSECRET, DALL_E_API_KEY, VOLCENGINE_API_KEY, BAIDU_API_KEY, UNSPLASH keys, possibly OpenAI keys, etc.), yet the skill metadata declares none. The SECURITY_AUDIT notes plaintext caching of access_token and log content that may leak identifiers. Requesting many unrelated API keys (multiple image providers and OpenAI) is plausible for the feature set, but the skill should have declared the primary credential(s) and documented exact env vars up front.
Persistence & Privilege
The skill is not force-included (always:false) and does not declare system-level privileges. However the docs and code show examples for setting up launchd/cron scheduled tasks and include scheduled_* scripts that, per audit, lack execution authentication. Those behaviors can create persistent background activity if the user follows setup instructions—acceptable for a publisher tool but should be explicitly disclosed and hardened (auth tokens for scheduled runs, safe defaults).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wechat-mp-publish-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/wechat-mp-publish-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
v1.0.2: 安全加固+多图片大模型支持
元数据
常见问题
微信公众号发布工具 是什么?
微信公众号文章发布工具 v1.0。基于官方 API,支持智能配图、模板渲染、草稿/发布双模式。当用户说"发公众号"、"发布微信公众号"时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 325 次。
如何安装 微信公众号发布工具?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-mp-publish-skill」即可一键安装,无需额外配置。
微信公众号发布工具 是免费的吗?
是的,微信公众号发布工具 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
微信公众号发布工具 支持哪些平台?
微信公众号发布工具 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 微信公众号发布工具?
由 brucesongs(@brucesongs)开发并维护,当前版本 v1.0.2。
推荐 Skills