← Back to Skills Marketplace
brucesongs

微信公众号发布工具

by brucesongs · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
325
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install wechat-mp-publish-skill
Description
微信公众号文章发布工具 v1.0。基于官方 API,支持智能配图、模板渲染、草稿/发布双模式。当用户说"发公众号"、"发布微信公众号"时使用此技能。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install wechat-mp-publish-skill
  3. After installation, invoke the skill by name or use /wechat-mp-publish-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
v1.0.2: 安全加固+多图片大模型支持
Metadata
Slug wechat-mp-publish-skill
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 微信公众号发布工具?

微信公众号文章发布工具 v1.0。基于官方 API,支持智能配图、模板渲染、草稿/发布双模式。当用户说"发公众号"、"发布微信公众号"时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 325 downloads so far.

How do I install 微信公众号发布工具?

Run "/install wechat-mp-publish-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 微信公众号发布工具 free?

Yes, 微信公众号发布工具 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 微信公众号发布工具 support?

微信公众号发布工具 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 微信公众号发布工具?

It is built and maintained by brucesongs (@brucesongs); the current version is v1.0.2.

💬 Comments