ワンクリックで
article-to-wechat-cover
从飞书文档或本地 Markdown 提炼文章主题与风格,调用 OpenRouter 的 Nano Banana / Gemini Flash Image 生成 2.35:1 的微信公众号封面图,并可选上传为微信封面素材。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
从飞书文档或本地 Markdown 提炼文章主题与风格,调用 OpenRouter 的 Nano Banana / Gemini Flash Image 生成 2.35:1 的微信公众号封面图,并可选上传为微信封面素材。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when generating PPT-style image slides, poetic presentation covers, quiet paper-texture visual pages, report pages, invitations, social cards, or slide-image sets with GPT-Image-2 via image_generate.
Use when generating high-readability hand-drawn knowledge diagrams, architecture diagrams, workflow maps, or consulting-style visual explanations with GPT-Image-2 via image_generate.
可独立运行的 GPT-Image 增强版 EPUB2Podcast:在本地把 EPUB 转成双人中文音频、GPT-Image/Smart Slide 视觉页、最终 MP4,并生成 YouTube 发布素材。
可独立运行的 standalone 版 EPUB2Podcast:用户只需下载当前项目本身,即可在本地把 EPUB 转成 Smart Slide + 双人中文音频 + 最终 MP4 视频播客。
【Ark Agent Plan 专用版本】EPUB 转双人中文播客视频流水线:使用火山引擎 TTS(与 Seedream/Seedance 共享技术栈),Smart Slide + 双人音频 + 最终 MP4 视频,无需额外 Google/OpenRouter API Key。
【Ark Agent Plan 专用版本】Manim 数学/算法讲解视频完整流水线,使用火山引擎 TTS 中文旁白(与 Seedream/Seedance 共享认证)。Plan → TTS → Code → Render → Stitch → Deliver. 适用于:Manim 动画 + 中文配音、音画同步讲解视频、3Blue1Brown 风格教学视频。
| name | article-to-wechat-cover |
| description | 从飞书文档或本地 Markdown 提炼文章主题与风格,调用 OpenRouter 的 Nano Banana / Gemini Flash Image 生成 2.35:1 的微信公众号封面图,并可选上传为微信封面素材。 |
| version | 0.1.0 |
| author | Hermes Agent |
| license | MIT |
| metadata | {"hermes":{"tags":["wechat","cover","feishu","lark","markdown","nano-banana","openrouter","image-generation"]}} |
当用户想要:
就用这个 skill。
这个 skill 会做三件事:
默认要求:
2.35:1这次吸收小小东 X 文章里的封面方法:封面生成不要每篇都从零发散,而是固定一套“汤底”,再从可复用“佐料库”里选一种风格,最后只根据标题/主题改一两个关键元素。
核心规则:
当前脚本内置:
文本模型会先从这 10 组中选 1 组,输出:
selected_recipe_idselected_recipe_reasonrecipe_adaptations:只允许 1-3 个文章专属改动cover_message:封面 3 秒内要传达的一句话生成链路现在分三层:
这样能避免把流程说明、内部字段、解释文字一股脑塞给图片模型。少点废话,图更稳。
支持两种:
python3 scripts/run.py from-feishu-doc \
--doc 'https://xxx.feishu.cn/docx/xxx' \
--final-prompt-output /tmp/wechat-cover-prompt.txt
python3 scripts/run.py from-markdown \
--input ./article.md \
--final-prompt-output /tmp/wechat-cover-prompt.txt
成功后会输出:
feishu_urlthumb_media_id这个 skill 现在默认采用两阶段流程:
推荐:
python3 scripts/run.py from-feishu-doc \
--doc 'https://g1mu6da08l.feishu.cn/docx/xxxx' \
--final-prompt-output /tmp/wechat-cover-prompt.txt
或:
python3 scripts/run.py from-markdown \
--input ./article.md \
--final-prompt-output /tmp/wechat-cover-prompt.txt
这一步会:
--final-prompt-output如果命令输出里看到:
generation_skipped=pending_user_confirmation
说明流程正常停在“待确认”阶段。
只有在用户确认最终 prompt 没问题后,才重新执行并加上:
--confirm-generate
例如:
python3 scripts/run.py from-feishu-doc \
--doc 'https://g1mu6da08l.feishu.cn/docx/xxxx' \
--final-prompt-output /tmp/wechat-cover-prompt.txt \
--output ./wechat-cover.jpg \
--confirm-generate
经验规则:
--confirm-generate补充经验:
image/jpeg,即使你手动把输出文件写成 .pngmime_type 自动修正输出后缀,避免出现“JPEG 内容却使用 PNG 扩展名”的混淆output_adjusted_from=... 提示,便于排查python3 scripts/run.py from-feishu-doc \
--doc 'https://g1mu6da08l.feishu.cn/docx/xxxx' \
--output ./wechat-cover.png
python3 scripts/run.py from-markdown \
--input ./article.md \
--output ./wechat-cover.png
--output:输出图片路径--upload-feishu:生成后上传飞书云盘--upload-wechat-cover:直接上传成微信封面素材,返回 thumb_media_id--analysis-json:导出文章主题分析 JSON--dump-json-spec:导出最终图片 JSON 规格--final-prompt-output:导出最终版生图 prompt,便于发给用户确认--confirm-generate:只有用户确认最终 prompt 后,才允许真正生图--insert-into-feishu-doc-top:生成后把 Hero 图自动插到飞书文档正文最顶部--replace-existing-top-image / --no-replace-existing-top-image:插入 Hero 图时是否替换已有顶部图片--image-model:覆盖默认图片模型--text-model:覆盖默认文本模型--provider-order:OpenRouter provider 顺序,默认 Vertex AI--visual-style-hint:人工补充风格偏好--must-include:逗号分隔,指定必须出现的视觉元素--must-avoid:逗号分隔,指定必须避免的视觉元素--allow-text-overlay:允许封面内出现少量标题文字(默认关闭)这个 skill 不直接替代 feishu-doc-to-wechat-draft,而是作为它的前置封面生成步骤。
推荐组合方式:
--upload-wechat-cover 拿到 thumb_media_idthumb_media_id 交给 feishu-doc-to-wechat-draft例如:
python3 scripts/run.py from-feishu-doc \
--doc 'https://xxx.feishu.cn/docx/xxx' \
--final-prompt-output /tmp/wechat-cover-prompt.txt
确认 prompt 没问题后,如果你想把生成图直接插回飞书文档最顶部:
python3 scripts/run.py from-feishu-doc \
--doc 'https://xxx.feishu.cn/docx/xxx' \
--final-prompt-output /tmp/wechat-cover-prompt.txt \
--confirm-generate \
--insert-into-feishu-doc-top
如果还要同时上传成微信封面素材:
python3 scripts/run.py from-feishu-doc \
--doc 'https://xxx.feishu.cn/docx/xxx' \
--final-prompt-output /tmp/wechat-cover-prompt.txt \
--confirm-generate \
--insert-into-feishu-doc-top \
--upload-wechat-cover
然后把输出的 thumb_media_id 用于:
python3 ~/.hermes/skills/productivity/feishu-doc-to-wechat-draft/scripts/run.py publish-feishu-doc-default \
--doc 'https://xxx.feishu.cn/docx/xxx' \
--thumb-media-id 'MEDIA_ID'
脚本会先从标题、摘要、正文提炼主题与风格,再生成图片 prompt。
默认避免:
固定 2.35:1,适合公众号封面横幅视觉。
OPENROUTER_API_KEYOPENROUTER_TEXT(默认 google/gemini-3.1-flash-lite-preview)OPENROUTER_IMAGElark-cliWECHAT_APP_IDWECHAT_APP_SECRET先本地跑:
python3 scripts/run.py from-markdown --input ./article.md --analysis-json /tmp/analysis.json --dump-json-spec /tmp/spec.json
确认:
2.35:1适合:
不适合直接拿来做:
这类任务应额外提供人工 art direction。