← 返回 Skills 市场
公众号文章创作
作者
fengbabao0929
· GitHub ↗
· v1.0.0
879
总下载
3
收藏
14
当前安装
1
版本数
在 OpenClaw 中安装
/install wechat-article-writer
功能描述
公众号写作助手 - 专注公众号文章创作,从选题到成稿+自动配图的完整流程。触发词:"写公众号"、"公众号文章"、"推文"、"/wechat
安全使用建议
Key issues to consider before installing:
1) Hard-coded API key present — scripts/image.env contains an API_KEY value. Treat this as a secret leak: do not assume it belongs to you. Replace it with your own key or remove the file. Consider revoking the key if it appears to be yours or exposing sensitive credentials.
2) Undeclared credential usage — the skill metadata declares no required env vars, but the image script expects a credentials file (scripts/image.env). The mismatch is suspicious and means the skill will use whatever key is present in the repository by default.
3) Fixed absolute save path — SKILL.md forces saving articles/prompts to E:\Claude Code\claude\articles\青少年学习教练公众号\. Change this to a configurable relative path or prompt the user for a directory before saving; running as-is may fail on non-Windows systems or overwrite files.
4) Network activity — the included Python script calls an external image-generation API (智谱AI / open.bigmodel.cn) and downloads images. If you keep/replace the provided API key, those external calls will be made under that credential. Run the script in a sandbox or review network behavior first.
Recommended actions:
- Do not use the embedded API key. Replace scripts/image.env with your own key or remove it and require the user to provide credentials.
- Modify the skill to make the article output directory configurable (or prompt the user) instead of a hard-coded absolute path.
- Run the image generation script manually in a controlled environment after reviewing/confirming the API key and dependency installation (pip install zhipuai).
- If you want to proceed, test in a sandbox/VM and inspect all files the skill writes. If you cannot confirm the origin/ownership of the embedded API key, do not use it.
功能分析
Type: OpenClaw Skill
Name: wechat-article-writer
Version: 1.0.0
The skill is classified as suspicious due to several significant security vulnerabilities. Most critically, the `stages/04-writing.md` file explicitly instructs the AI agent to execute a shell command (`python scripts/generate_images.py --input prompts.jsonl`). This presents a high risk of prompt injection leading to arbitrary code execution (RCE) if the `--input` file or the command line arguments can be manipulated by a malicious user prompt. Additionally, a sensitive API key is hardcoded in `scripts/image.env` and exposed in `SKILL.md`, which is a severe credential management flaw. Hardcoded Windows-style file paths for saving content (`E:\Claude Code\claude\articles\青少年学习教练公众号\`) are also present in `SKILL.md` and `stages/04-writing.md`, posing compatibility and potential file system interaction issues.
能力评估
Purpose & Capability
The skill's behavior (article drafting + optional image generation) is consistent with its name/description. The included generate_images.py and image templates align with the '自动配图' feature. However, the skill embeds an API key in scripts/image.env and hard-codes a Windows save path (E:\Claude Code\claude\articles\青少年学习教练公众号\) which are not justified in the top-level metadata (no required env vars declared).
Instruction Scope
Runtime instructions direct automatic saving of completed articles and generated prompt files to a specific absolute path on disk and to auto-generate prompt files after writing. Although image generation requires explicit user confirmation before calling the API, the skill still auto-saves files to the stated path without any configurable option in the SKILL.md; this writes to a host filesystem location that may not exist or may overwrite user files. The instructions also rely on scripts/image.env (with credentials) but the skill metadata declares no required environment variables/config — a scope mismatch.
Install Mechanism
No install spec (instruction-only) — lowest installer risk. The python script requires the third-party 'zhipuai' library (pip install zhipuai) and performs network calls to an external image API; this is expected for an image-generation helper. There is no remote download of executable archives in the skill, but the script will fetch images from external URLs returned by the image API.
Credentials
The repository contains a pre-filled scripts/image.env with an API_KEY value (API_KEY=88e6f80c14cb40e4ba6d5bfe702d6aac.74cOvJgmo1t48yrv). Yet the skill metadata lists no required env vars or primary credential. Hard-coded credential in the repo is disproportionate and undocumented — it may be a leaked/third-party key or a placeholder, and it could be used by the script to call external APIs on behalf of the user. The script expects API_KEY in scripts/image.env by default, so the skill will use that key unless replaced.
Persistence & Privilege
The skill is not always-enabled and is user-invocable (normal). It does request writing files to disk (automatic save of Markdown and prompts) to a hard-coded directory. While writing its own output is reasonable for this purpose, the fixed absolute path (non-configurable in instructions) is unexpected and could cause unintended writes; the skill does not request elevated system privileges in metadata.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wechat-article-writer - 安装完成后,直接呼叫该 Skill 的名称或使用
/wechat-article-writer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
wechat-article-writer 1.0.0 初始发布
- 全面实现公众号文章写作全流程,从选题、爆款标题生成、结构搭建到成稿和MD排版自动保存
- 自动生成配图提示词,覆盖封面、信息图和结尾引导图,并支持用户确认后批量生成配图
- 强调实用、口语化、段落连贯的专属写作风格,避免碎片化表达
- 支持四大主流文章类型,统一字数标准2500-3000字
- 完善文件结构与流程分阶段拆分,支持模板/脚本扩展和一键储存
元数据
常见问题
公众号文章创作 是什么?
公众号写作助手 - 专注公众号文章创作,从选题到成稿+自动配图的完整流程。触发词:"写公众号"、"公众号文章"、"推文"、"/wechat. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 879 次。
如何安装 公众号文章创作?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-article-writer」即可一键安装,无需额外配置。
公众号文章创作 是免费的吗?
是的,公众号文章创作 完全免费(开源免费),可自由下载、安装和使用。
公众号文章创作 支持哪些平台?
公众号文章创作 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 公众号文章创作?
由 fengbabao0929(@fengbabao0929)开发并维护,当前版本 v1.0.0。
推荐 Skills