← 返回 Skills 市场
aiworkskills

公众号贴图 / 九宫格多图推送

作者 marsatwechat · GitHub ↗ · v1.0.23 · MIT-0
cross-platform ⚠ suspicious
165
总下载
1
收藏
1
当前安装
10
版本数
在 OpenClaw 中安装
/install aws-wechat-sticker
功能描述
公众号贴图|九宫格|多图推送|图片消息|表情包 — 贴图与多图推送:从创意构思、AI 生图到公众号图片消息发布全流程,含九宫格自动排布、多图压缩、组图打包。面向公众号运营、自媒体、IP 账号。触发词:「贴图」「多图推送」「发组图」「图片消息」「九宫格」「做一组图」「图片帖子」「发几张图」「不写正文发图」「只发图不...
使用说明 (SKILL.md)

贴图 / 多图推送

贴图 / 多图推送一条龙 —— 构思→生图→图片消息群发,九宫格自动排布、多图打包。

套件说明 · 本 skill 属 aws-wechat-article-* 一条龙套件(共 9 个 slug,入口 aws-wechat-article-main)。跨 skill 的相对引用依赖同一 skills/ 目录,建议一并 clawhub install 全套。源码:\x3Chttps://github.com/aiworkskills/wechat-article-skills>

能力披露(Capabilities)

本 skill 编排贴图与多图推送,调用同套件的 image_create.py(images)生图;可选调用 publish.py 发布。会把图片 prompt 发给外部图像 API;若走发布路径,会把图片作为 POST body 上传到微信 API。 具体行为:

  • 凭证读取aws.envIMAGE_MODEL_API_KEY;走发布时额外读取 WECHAT_{N}_APPID / WECHAT_{N}_APPSECRET
  • 凭证外发IMAGE_MODEL_API_KEYAuthorization: Bearer 头发送到 image_model.base_url 外部端点;WECHAT_{N}_APPID/APPSECRET 用于换 access_token 后调用微信 API
  • 内容外发:图片 prompt 发给图像 API;图片文件(PNG/WEBP)发给微信 material/add_material / draft/add
  • 文件读:仓库内 .aws-article/config.yaml、本篇 article.yamlimgs/prompts/*.md
  • 文件写:本篇 imgs/*.{png,webp}imgs/outline.mdarticle.yaml 状态字段
  • shellpython3 {baseDir}/../aws-wechat-article-images/scripts/image_create.py;可选 python3 {baseDir}/../aws-wechat-article-publish/scripts/publish.py

配套 skill(informational)

本 skill 属 aws-wechat-article-* 一条龙公众号套件的贴图/多图推送专用分支(入口 aws-wechat-article-main)。工作流中的生图步骤与发布步骤依赖同套件其他 slug 提供的能力。

  • 至少需要同时安装 aws-wechat-article-images(用于生图);若要走发布链路,建议再装 aws-wechat-article-publish
  • 套件完整装齐到同一 skills/ 根目录时,跨 skill 引用都能读到。
  • 单独安装本 skill 时,生图/发布相关步骤会在执行阶段遇到缺失文件;本 skill 内的选题规划、图序、风格约定等本地步骤仍可用。

完整 9 slug 清单见 源码仓库

路由

长文图文(标题+正文+插图+后台发文)→ aws-wechat-article-main;长文内单篇插图 → aws-wechat-article-images

创作以图片为主的公众号内容:多张图片 + 每张配文,统一风格。

产出目标(先看这个)

  • 输入:主题 / 选题卡 / 用户素材图(任选其一)
  • 输出:imgs/(outline + prompts + 图片)与可发布的多图内容
  • 风格:整组统一(避免每张图风格漂移)

配置检查 ⛔

任何操作执行前,必须首次引导 执行其中的 「检测顺序」。检测通过后才能进行以下操作(或用户明确书面确认「本次不检查」):

从选题到发布的前置规则aws-wechat-article-main/SKILL.md;本 skill 描述贴图子流程。

图片模型image_modelproviderbase_urlmodel 等)在 config.yamlIMAGE_MODEL_API_KEYaws.env。键名对照 {baseDir}/../aws-wechat-article-main/references/env.example.yaml(与 image_create.py 一致)。

交互约定:须遵守 main 的智能体行为约束——未通过环境校验且未获用户明确「本次例外」时,不得假装已走专用生图 API。

脚本目录

Agent 执行:确定本 SKILL.md 所在目录为 {baseDir}

脚本 路径(相对仓库 skills/ 用途
image_create.py aws-wechat-article-images/scripts/image_create.py 专用生图 API:读取 .aws-article/config.yamlimage_model + 根目录 aws.envIMAGE_MODEL_API_KEY
publish.py {baseDir}/../aws-wechat-article-publish/scripts/publish.py 发布(与 publish skill 一致)

工作流

贴图进度:
- [ ] 第1步:环境检查 + 本篇约束(合并 YAML)
- [ ] 第2步:确定选题
- [ ] 第3步:确定风格
- [ ] 第4步:规划图序
- [ ] 第5步:展示方案并等待确认 ⛔
- [ ] 第6步:生成图片(**脚本失败时**见同节「调用失败」分支)
- [ ] 第7步:审稿
- [ ] 第8步:发布

第1步:环境检查 + 本篇约束(合并 YAML)

若本篇在 drafts/…/ 下:按 .aws-article/config.yaml → 本篇 article.yaml 合并读取约束(同键本篇优先,最后层覆盖),重点字段:multi_image_counttonetarget_readercustom_sticker_style > default_sticker_style须为 YAML 字符串列表custom_* 非空时优先于 default_*;多候选时智能体择一并写回本篇为单元素列表)。若无有效 YAML,以用户口述主题 + skill 默认值作为约束。

第2步:确定选题

topics 产出的贴图卡片 / 用户直接给主题 / 用户提供素材图片。

第3步:确定风格

贴图风格加载优先级

  1. 用户指定(「用知识卡片风格」)
  2. 本篇合并配置中的 custom_sticker_style > default_sticker_style(若有;custom_* 优先;列表多元素时须先择一)
  3. .aws-article/presets/sticker-styles/ 下的自定义风格
  4. fallback:根据贴图主题自动选择 Type(氛围 or 信息图)× 默认 Style(扁平矢量),使用共享 image-styles/

全组图统一风格。

第4步:规划图序

产出 imgs/outline.md:每张图的用途、文案要点、文件名。详见:references/workflow.md

第5步:展示方案并等待确认 ⛔

第6步:生成图片

生成方式(优先级)

  1. 优先:调用 image_create.py — 依赖 config.yamlimage_model + aws.envIMAGE_MODEL_API_KEY
  2. 降级:当前 Agent 多模态 / 仅出 prompts — 仅当环境未就绪、用户接受 main「本次例外」、或已按本节下方「调用失败」表格处理(网络重试后仍失败等)时

必须告知用户当前使用的方式

  • 已配置且调用脚本 → ℹ️ 使用 image_create.py 调用专用生图模型({model})
  • Agent 生图 / 仅 prompts → ℹ️ 本次未走 image_create.py(原因:…)

调用专用 API 时(在仓库根执行,路径按本篇 imgs/ 调整):

python {baseDir}/../aws-wechat-article-images/scripts/image_create.py batch drafts/YYYYMMDD-slug/imgs/prompts/ -o drafts/YYYYMMDD-slug/imgs/

单张:python {baseDir}/../aws-wechat-article-images/scripts/image_create.py generate imgs/prompts/01.md -o imgs/01.png

连通性自检:python {baseDir}/../aws-wechat-article-images/scripts/image_create.py test

图片内文字与 prompt 构建规则与长文配图一致,见 aws-wechat-article-images/SKILL.mdprompt-construction.md

image_create.py 调用失败时(智能体必选分支)

沿用配图 skill 的同一规则:必须摘要 stderr 关键行,按 网络 / 配置·凭证 / 业务·参数 分类处理;禁止配置错误时静默降级。细则参照 aws-wechat-article-images/SKILL.md 第 6 步「调用失败」表格。

第7步:审稿

贴图专用清单:references/checklist.md

第8步:发布

python {baseDir}/../aws-wechat-article-publish/scripts/publish.py full article/

过程文件

读取 产出
topic-card.md(可选)、.aws-article/config.yaml + 本篇 article.yaml imgs/(outline + prompts + 图片)
安全使用建议
This skill appears to do what it says (create images and post them to WeChat) but before installing you should: (1) open and inspect the aws.env file and remove unrelated/high-privilege secrets (use a dedicated test file/account if possible); (2) review the referenced scripts in aws-wechat-article-images and aws-wechat-article-publish (image_create.py, publish.py) to confirm exactly what network endpoints they call and what they upload; (3) verify the image model provider (image_model.base_url) and its data/privacy policy because prompts and API key are sent there; (4) prefer using a WeChat test account or ephemeral credentials for initial testing; and (5) be aware that publishing will upload image files to WeChat using your WECHAT app credentials, so only enable publishing once you trust the code and endpoints.
功能分析
Type: OpenClaw Skill Name: aws-wechat-sticker Version: 1.0.23 The skill automates WeChat image post creation by executing shell commands and accessing sensitive environment variables (IMAGE_MODEL_API_KEY, WECHAT_APPID/SECRET). It performs high-risk operations such as calling external Python scripts (e.g., image_create.py and publish.py) using relative paths and sending data to external APIs. While these actions are consistent with the stated purpose, the combination of broad permissions (shell, network, filesystem) and credential handling across skill boundaries constitutes a significant attack surface.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The skill is for generating and publishing WeChat image posts. Requiring python3, an image model API key (IMAGE_MODEL_API_KEY) and WeChat appid/secret is consistent with that purpose. The declared dependency on the companion images/publish skills matches the SKILL.md guidance.
Instruction Scope
SKILL.md explicitly instructs the agent to run sibling scripts (image_create.py, publish.py), read repository-local config files (.aws-article/config.yaml, article.yaml, imgs/prompts/*.md), write imgs/* and update article.yaml, and send prompts/images to an external image model and to WeChat endpoints. This is expected for the declared workflow, but it means prompt text and image binaries (and the IMAGE_MODEL_API_KEY via Authorization header) will be transmitted externally; the skill also assumes other skill files exist in a shared skills/ directory.
Install Mechanism
Instruction-only skill with no install_spec and no downloaded code: lowest installation risk. It runs local Python scripts but does not itself perform network installs.
Credentials
The required env vars (IMAGE_MODEL_API_KEY, WECHAT_1_APPID, WECHAT_1_APPSECRET) are appropriate for calling an image-generation API and WeChat publishing. One caution: the skill treats aws.env as the primary credential file — that file could legitimately hold multiple secrets; confirm it does not contain unrelated high-privilege credentials (e.g., AWS root keys) you don't want read or transmitted. Also note the skill will send IMAGE_MODEL_API_KEY and prompt content to the configured image_model.base_url.
Persistence & Privilege
always:false and normal agent invocation are used. skill.json declares filesystem/network/shell permissions which are appropriate for running local scripts and calling external APIs. There is no indication the skill requests persistent elevated platform privileges or modifies other skills' configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aws-wechat-sticker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aws-wechat-sticker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.23
配套 skill 段软化措辞:去掉'不含自己的脚本'显式陈述、去掉具体 sibling script 路径;改为描述性的'依赖同套件能力';其他内容不变
v1.0.22
软化版套件完整性提示:说明工作流会读跨 skill 共享文档、单独安装时会 file-not-found;纯信息性语气,无 shell 循环、无 Agent 强指令
v1.0.20
修 scanner 精准点名:移除'不外传/不读仓库外'假陈述;补凭证/内容外发披露;sticker+review 补 WECHAT 凭证声明;空 env 的 skill 移除 primaryEnv;3 个脚本不再遍历父目录
v1.0.19
能力披露:frontmatter 加 metadata.openclaw.requires;body 加 Capabilities 段;降温前置依赖块(去 shell 循环与强指令语气);article_init.py 不再读 Path.home()
v1.0.18
清理 tags 只留 latest;frontmatter 加 homepage+url;main/publish 加 automation 关键词
v1.0.17
加前置依赖检查:任一 skill 启动前要求 9 个套件全装,否则停止工作流
v1.0.16
压缩 description 做 SEO 密度优化
v1.0.15
SEO 优化:补关键词/友好名/价值主张/GitHub 链接
v1.0.14
对齐 git tag v1.0.14
v1.0.0
- Initial release of aws-wechat-sticker skill. - Supports end-to-end workflow for creating and publishing WeChat multi-image content and sticker posts, including concept, image generation, and publishing steps. - Integrates with the aws-wechat-article-* suite for cross-skill workflows and shared configuration. - Requires environment and configuration checks before operation; enforces API call routing based on user choice and environment validation. - Outputs unified-style image groups with captions, with transparent handling for image generation (including explicit user notifications on method used). - Full documentation included for setup, workflows, configuration priorities, failure handling, and publishing processes.
元数据
Slug aws-wechat-sticker
版本 1.0.23
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 10
常见问题

公众号贴图 / 九宫格多图推送 是什么?

公众号贴图|九宫格|多图推送|图片消息|表情包 — 贴图与多图推送:从创意构思、AI 生图到公众号图片消息发布全流程,含九宫格自动排布、多图压缩、组图打包。面向公众号运营、自媒体、IP 账号。触发词:「贴图」「多图推送」「发组图」「图片消息」「九宫格」「做一组图」「图片帖子」「发几张图」「不写正文发图」「只发图不... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 165 次。

如何安装 公众号贴图 / 九宫格多图推送?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aws-wechat-sticker」即可一键安装,无需额外配置。

公众号贴图 / 九宫格多图推送 是免费的吗?

是的,公众号贴图 / 九宫格多图推送 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

公众号贴图 / 九宫格多图推送 支持哪些平台?

公众号贴图 / 九宫格多图推送 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 公众号贴图 / 九宫格多图推送?

由 marsatwechat(@aiworkskills)开发并维护,当前版本 v1.0.23。

💬 留言讨论