Install
openclaw skills install @jondeng11-creator/wc-cover-studio公众号封面生成(WeChat cover studio)。当用户需要 公众号封面、封面图、文章配图、 设计封面、单图双用、微信封面、cover image、WeChat cover,或要为文章设计封面时触发。 工作流:读文章→定风格→选行业意象→生成1:1主图→PIL后处理,一次交付三种版式 (900×383头条 / 1080×1080方版 / 单图双用),单图双用通吃微信两种裁切比例, 中文标题100%无错字,内置程序化QA,适用所有公众号/自媒体创作者。
openclaw skills install @jondeng11-creator/wc-cover-studioGenerate production-ready WeChat Official Account article covers from an article file or a topic description. The workflow handles the entire pipeline: reading the article's publish info block (title candidates / summary / cover suggestion), choosing a visual style, generating a 1:1 master image, applying Chinese title overlay with system fonts, producing all three required formats, and running programmatic QA.
The critical rule this skill encodes: WeChat's backend accepts only ONE cover image, but automatically crops two displays — the headline card shows the full 2.35:1 image, while the share thumbnail shows the CENTER 1:1 region. Therefore key content must live in the central safe zone. See references/wechat-cover-rules.md §1.
Read the article file. Extract the publish-info block at the top (usually quoted lines starting with >):
Consult the style library in references/wechat-cover-rules.md §3. Quick guide:
| 文章类型 | 风格 |
|---|---|
| 科普、产品机制、技术原理 | 歸藏材质插画(白底 3D + IKB 蓝)或扁平插画 |
| 对比类(新旧、两体系) | 扁平插画 + 材质对比 |
| 叙事、人物、独白、深夜氛围 | 深夜氛围摄影(暖黄灯光 + 深蓝黑背景) |
Choose industry-specific imagery(references/wechat-cover-rules.md §3.5)— the most important step for cover quality:
Use the image generation tool (ImageGen / equivalent) with size 1024x1024. Follow the prompt template in references/wechat-cover-rules.md §4.
Mandatory prompt requirements:
square 1:1 composition, subject fills the lower two thirds, centered horizontallyupper third reserved as clean empty background for title overlaygenerous safe margins, full subject visible, no cropALL N ... MUST appear, no exceptions, no omissions(多标签防漏技巧,§4)Never ask the image model to render titles longer than ~6 characters — overlay them with PIL instead (§4, §5).
Run scripts/make_cover.py with the generated 1:1 master image:
python scripts/make_cover.py <input_1x1_image> \
--title "主标题" \
--subtitle "副标题" \
-o <output_dir>
The script produces (default modes square,wide,dual):
cover_1x1_*.png — 1080×1080 square share covercover_900x383_*.png — wide headline cover (crops the 2.35:1 band from center; --crop-center adjusts, default 0.52)cover_单图双用.png — single-image dual-use cover: central 383×383 safe zone (subject + title) with blurred ambiance extension on both sides. This is the recommended upload.Use --modes square or --modes wide to generate only specific formats.
The script runs automatic pixel-sampling QA after each render (title-region pixel counts). Check the output:
[QA] ... ✅ for every mode. If a mode shows ⚠️ 偏低, inspect the title region or re-run with adjusted parameters.references/wechat-cover-rules.md §6: background sampling, warm-pixel grid for subject location, title pixel count.cover_单图双用.png first (recommended upload), then the wide and square versions.docs/软文/公众号/02_科普_.../ where each article has its own subfolder holding copy + images), save all generated covers and the 封面说明 into that article's subfolder — never scatter them at the platform root. Platform-level files (e.g. _发布须知.md) stay at the platform root.User: "给这篇文章做一个封面" (attaching an article .md)
python make_cover.py master.png --title "最难的不是技术" --subtitle "做灵素AI 这一年" -o <article_dir>scripts/make_cover.py — PIL post-processing: title/subtitle overlay (auto light/dark text color by background), 900×383 crop, 1080×1080 square, 383×383 central safe-zone dual-use layout, programmatic QA. Auto-detects Chinese fonts (Windows 微软雅黑 / macOS 苹方 / Linux Noto).references/wechat-cover-rules.md — WeChat cover crop mechanics, full workflow, style library (with prompt elements per style), industry-specific imagery library with 意象三步法 + 10-domain quick-reference table (中医/金融/教育/科技/西医/电商/农业/法律/建筑/历史), ImageGen prompt templates, multi-label anti-dropout tricks, PIL title spec, QA table, delivery checklist.