← Back to Skills Marketplace
公众号自动发布
by
wuhongchen
· GitHub ↗
· v1.0.2
576
Downloads
1
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install mp-draft-push
Description
将现成的文章内容发布到微信公众号草稿箱。当用户说"发布文章"、"发布到草稿箱"、"publish to draft"、"推送到公众号"时触发。
Usage Guidance
This skill appears to implement a legitimate WeChat draft publisher, but there are some red flags to consider before installing:
- Required credentials missing from registry metadata: The runtime script (scripts.sh) requires WECHAT_APPID and WECHAT_SECRET. The package registry incorrectly lists no required env vars—treat this as a manifest bug. Do not provide credentials until you confirm what the skill actually needs.
- Credential handling: The README suggests sourcing a .env from your shell startup. If you follow that, those secrets become environment variables for your whole shell session and could be read by other processes; prefer supplying credentials scoped to the process or using a minimal isolated environment.
- Network calls and endpoints: The script calls only official WeChat endpoints (api.weixin.qq.com). Verify those endpoints in your environment and ensure you expect the account that will be used.
- DEFAULT_COVER_URL behavior: SKILL.md mentions downloading a default cover to /tmp if DEFAULT_COVER_URL is set, but scripts.sh doesn't implement the download—confirm who performs the download and where DEFAULT_COVER_URL points to (avoid untrusted hosts).
- Automation risk: If you enable Cron to auto-run this skill, a misconfigured downstream caller could publish undesired content. Review who can trigger the skill and audit scheduled tasks.
Actionable steps before use:
1) Inspect and test scripts.sh locally in a safe account (do not use production AppID/Secret) to confirm behavior.
2) Fix or request corrected registry metadata that lists WECHAT_APPID and WECHAT_SECRET as required.
3) Provide credentials using a secure mechanism (process-scoped env or secrets manager), not by globally sourcing .env in your shell rc.
4) If enabling automation (cron), restrict the triggering source and monitor activity logs in the WeChat backend.
If you want, I can suggest a minimal checklist or an example of a safer invocation pattern that avoids adding secrets to your shell startup.
Capability Analysis
Type: OpenClaw Skill
Name: mp-draft-push
Version: 1.0.2
The skill is classified as suspicious due to a critical shell injection vulnerability in `scripts.sh`. The `upload_wechat_image` function directly embeds the user-controlled `image_path` parameter into a `curl` command (`-F "media=@${image_path}"`), allowing an attacker to execute arbitrary commands by crafting a malicious `cover_image_path`. Additionally, the `SKILL.md` instructs the agent to download a default cover image from `DEFAULT_COVER_URL` if provided, which could lead to SSRF/LFI if the agent's download mechanism lacks URL validation.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md, README, and scripts.sh are coherent: the skill uploads images and creates drafts via the official WeChat API (api.weixin.qq.com). However the registry metadata lists no required env vars even though the runtime clearly requires WECHAT_APPID and WECHAT_SECRET (and optionally WECHAT_AUTHOR and DEFAULT_COVER_URL). The omission in metadata is an inconsistency that reduces trust.
Instruction Scope
SKILL.md instructs the agent to source scripts.sh and call helper functions that perform network requests to WeChat APIs and write temporary JSON files under /tmp. That is within the stated purpose. Minor issues: SKILL.md says it will download DEFAULT_COVER_URL to /tmp/wechat_cover_default.png if set, but scripts.sh does not include a download helper—so either the caller or another skill must perform the download. The instructions also tell the skill not to proactively ask and to wait for parameters, which grants automation but is consistent with intended use.
Install Mechanism
This is an instruction-only skill with a small shell script; there is no installer or downloaded archive. Required runtime binaries (bash, curl, jq) are reasonable and proportional to the task.
Credentials
The skill requires sensitive credentials (WECHAT_APPID and WECHAT_SECRET) to call the WeChat API, which is proportionate to its function—but the registry metadata claims 'Required env vars: none', so the skill's manifest does not declare these required secrets. The README suggests adding an .env to shell init, which could expose credentials to other processes if users are not careful. No other unrelated secrets are requested.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and has no install that changes system-wide settings. README shows optional Cron usage (requires OpenClaw Gateway), which increases automation risk only if the user enables it.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mp-draft-push - After installation, invoke the skill by name or use
/mp-draft-push - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Added a new README.md file to provide documentation.
- No functional or code changes; documentation only.
v1.0.1
- Initial public release.
- Added scripts.sh to provide bash functions for token retrieval, image upload, and draft creation.
- Enables uploading prepared article content as a WeChat Official Account draft, with optional cover image support.
- Documents expected parameters, usage flow, and configuration in SKILL.md.
- No breaking changes; safe for adoption in new workflows.
v1.0.0
mp-draft-push v1.0.0
- 新增将文章内容一键发布到微信公众号草稿箱的能力。
- 支持上传封面图或自动使用默认封面。
- 仅负责发布流程,不处理内容采集、AI 写作或图片生成。
- 参数简明(标题、摘要、正文 HTML、封面图路径可选)。
- 完整 Bash 脚本,兼容 bash/curl/jq 环境。
- 发布后自动提示检查事项和后台入口链接。
Metadata
Frequently Asked Questions
What is 公众号自动发布?
将现成的文章内容发布到微信公众号草稿箱。当用户说"发布文章"、"发布到草稿箱"、"publish to draft"、"推送到公众号"时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 576 downloads so far.
How do I install 公众号自动发布?
Run "/install mp-draft-push" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 公众号自动发布 free?
Yes, 公众号自动发布 is completely free (open-source). 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 wuhongchen (@wuhongchen); the current version is v1.0.2.
More Skills