📦 微信公众号每日文章创作 — 技能工具

v1.0.0

微信公众号每日文章自动创作技能。自动化流程:搜索热点 → 撰写800-1500字SEO优化文章 → 生成7张配图 → 上传草稿箱。当用户要求创作微信公众号文章、设置每日公众号推送、创建公众号内容工作流、或需要定时发送公众号文章时触发。

0· 26·0 当前·0 累计
jimo970 头像by @jimo970·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/16
0
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
high confidence
The skill's files and runtime instructions embed hard-coded WeChat and Feishu credentials and send data to third-party endpoints, which contradicts the expectation that it would operate on the user's own accounts — this mismatch is suspicious and needs explanation before use.
评估建议
Do not install or run this skill until you understand and accept what it will do. Specific things to consider and actions you can take: - The bundled script contains embedded WeChat APPID/APPSECRET and the SKILL.md contains embedded Feishu credentials and a fixed recipient; if left in place the skill will use those credentials (i.e., someone else's accounts) to upload images and create drafts, and may notify a third party. This is unusual and likely undesired. - Ask the skill author to explain ...
详细分析 ▾
用途与能力
The skill claims to create drafts in the user's WeChat public account, and the SKILL.md even mentions checking WECHAT_APPID/WECHAT_SECRET if drafts fail — but the included script (scripts/create_draft.py) contains hard-coded APPID and APPSECRET values. That means drafts/uploads will use the embedded credentials (someone else's account) rather than the end user's credentials. This is a strong mismatch between stated purpose and actual implementation.
指令范围
Runtime instructions tell the agent to collect web_search results, generate images in /tmp/, and then run the bundled script which uploads images and creates drafts via the WeChat API. The SKILL.md also provides an optional Feishu notification snippet that contains hard-coded app_id/app_secret and a fixed recipient open_id — this will post data (article title) to a third-party Feishu tenant/user. The instructions reference system paths (/tmp, /root/.openclaw/...) and external endpoints (WeChat/Feishu) not declared as required, and they include credentials in the repository rather than prompting for user-owned credentials.
安装机制
No install spec (instruction-only plus a script) — nothing is downloaded at install time. This is low-install risk; the main risk comes from the bundled script and instructions rather than an installer.
凭证需求
The registry metadata declares no required env vars or credentials, but the SKILL.md references WECHAT_APPID/WECHAT_SECRET and the script ignores those and instead uses hard-coded APPID/APPSECRET. Additionally, Feishu app credentials are hard-coded in SKILL.md. Requesting no env vars while embedding third-party credentials is disproportionate and opaque — the skill will reach out to external services using secrets supplied by the skill author, not the user.
持久化与权限
always is false (normal). The SKILL.md suggests adding a cron job for daily runs and a Feishu delivery channel, which would grant ongoing automated runs if the operator configures it — but the skill does not force always-on inclusion or modify other skills. The real risk is automation combined with hard-coded creds (it could repeatedly push content to/notify the third party).
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/4/16

初始版本:自动化工作流覆盖搜索热点→撰写SEO文章→生成配图→保存草稿箱

可疑

安装命令

点击复制
官方npx clawhub@latest install wechat-daily-article
镜像加速npx clawhub@latest install wechat-daily-article --registry https://cn.longxiaskill.com

技能文档

自动化工作流,覆盖从热点发现到草稿箱保存的完整环节。

工作流程

搜索热点 → 选定主题 → 写文章(HTML)→ 生成7张配图 → 保存草稿

第一步:搜索热点

web_search 搜索以下关键词组合,获取当日热点:

「今日旅游热点」「今日美食热点」「小红书旅游爆款笔记」「抖音美食热门」

从微博、小红书、抖音、知乎等平台收集热度最高的话题。旅游和美食方向优先

第二步:写文章

标题规范(SEO优化)

  • 清晰、简洁、直接
  • 表意明确不夸大
  • 避免标题党、堆砌关键词
  • 避免过长

正文规范

  • 主题鲜明统一,围绕一个主旨展开
  • 内容详实有深度,提供具体论据
  • 表达简洁流畅
  • 鼓励原创,拒绝搬运
  • 开头 50 字必须抓住眼球
  • 结尾要有引导话术(关注+互动)

排版规范

  • 章节标题用 emoji 装饰:🌸 一、xxx
  • 正文段落用 emoji 开头:🌼 说到四月...
  • 列表项用 emoji:
  • 🦐 必吃推荐:...
  • 适当分段,避免过度加粗

文章结构模板


🌸 一、[章节1标题]

🌼 [内容]

🍜 二、[章节2标题]

🥟 [内容]


关注【公众号名称】,用镜头记录旅途,用味蕾丈量世界。

#旅行 #美食 #探店 #打卡

图片占位符

在 HTML 正文中需要插入图片的位置使用占位符,生成图片后脚本会自动替换:

占位符说明

封面图,1张

章节图1

章节图2

章节图3

章节图4

章节图5

章节图6

字数要求

800-1500 字(不含 HTML 标签)。

第三步:生成配图

image_generate 生成 7 张图,保存到 /tmp/

# 封面图
image_generate "旅行/美食主题封面,高清,电影感,温馨氛围,浅景深,柔和色调" -> /tmp/cover.png

# 章节图1-6 image_generate "具体场景描述,高清,摄影作品,电影感,浅景深" -> /tmp/chap1.png ~ /tmp/chap6.png

图片 prompt 规范:

  • 必须包含:具体场景 + 标志性元素 + 摄影风格
  • 风格词:摄影作品、高清、电影感、温馨氛围(美食类用:烟火气/温馨家常)、浅景深、柔和色调
  • 不要只写目的地名称,要有视觉元素

第四步:保存文件

# 保存文章HTML
标题保存到:/tmp/article_title.txt
内容保存到:/tmp/article.html

# 文件名格式 /tmp/cover.png # 封面 /tmp/chap1.png ~ /tmp/chap6.png # 章节图

第五步:创建草稿

python3 /root/.openclaw/workspace/skills/wechat-daily-article/scripts/create_draft.py \
  "$(cat /tmp/article_title.txt)" \
  "/tmp/article.html"

脚本会自动:

  • 获取 access_token
  • 上传所有图片到微信,获得永久 URL
  • 替换 HTML 中的本地路径和占位符
  • 自动注入 emoji 关键词
  • 清理标题重复
  • 创建草稿箱草稿

飞书通知(可选)

草稿创建成功后,可通过飞书通知:

# 获取 token
TOKEN=$(curl -s -X POST 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \
  -H 'Content-Type: application/json' \
  -d '{"app_id": "cli_a937a350cb789bc7", "app_secret": "Ss73fyDv2ZXHJbh25QJMnf8OqGFIWnpi"}' \
  | grep -o '"tenant_access_token":"[^"]"' | cut -d'"' -f4)

# 发送文本 curl -s -X POST 'https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=open_id' \ -H "Authorization: Bearer ${TOKEN}" \ -H 'Content-Type: application/json' \ -d '{"receive_id": "ou_ed07e10338498478ac86cd8773ed695d", "msg_type": "text", "content": "{\"text\": \"📝 公众号文章已生成\\n标题:'$(cat /tmp/article_title.txt)'\\n请前往公众号后台草稿箱查看发布\"}"}'

定时任务配置

如需设置每日自动执行,创建 cron 任务:

{
  "name": "公众号文章每日创作",
  "schedule": "cron 5 12   ",
  "payload": {
    "kind": "agentTurn",
    "message": "执行公众号文章每日创作流程。参考 skill: wechat-daily-article",
    "timeoutSeconds": 3600
  },
  "delivery": {
    "mode": "announce",
    "channel": "feishu",
    "to": "user:ou_ed07e10338498478ac86cd8773ed695d"
  }
}

常见问题

图片生成模糊/不贴合? → prompt 必须包含具体场景+标志性元素+摄影风格,参考 references/image-prompts.md

草稿创建失败? → 检查 WECHAT_APPID/WECHAT_SECRET 凭据,或微信服务器 IP 白名单

文章SEO不达标? → 参考 references/seo-guidelines.md 优化标题和正文

相关文件

  • scripts/create_draft.py — 草稿创建脚本(上传图片 + 写草稿 + emoji注入)
  • references/image-prompts.md — 图片 prompt 规范与示例
  • references/seo-guidelines.md — 公众号 SEO 规范
数据来源ClawHub ↗ · 中文优化:龙虾技能库