把所有本地 demo / 测试 / 上传图 / 调试脚本搬入 local-tests/,写 .gitignore 忽略整个测试目录与 node_modules/。本次起 skill 仓库 只跟踪:SKILL.md / HANDOFF.md / PRODUCT.md / assets/(3 模板)/ references/(15 规则文档)/ agents/openai.yaml / validate-social-deck.mjs / package.json + lock。 历次版本(v0.1-v0.12)的全部实质改动已包含在当前文件状态中—— HANDOFF.md 的版本历史段保留作为时间轴文字记录,但代码层面以 此 commit 为唯一基线,后续逐次 commit 对应 HANDOFF.md 新增段落。 HANDOFF/PRODUCT/category-cookbook/components/style-system 中的 demo 路径引用已加 local-tests/ 前缀。SKILL.md Step 5 line 190 的 'social-card-<slug>/' 是下游用户工作区的命名约定,未改动。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
3.1 KiB
3.1 KiB
Platform Specs
Use high-resolution exports. The user can downsample later.
Xiaohongshu / Rednote
Default size:
1080 x 1440- Ratio:
3:4 - Export: PNG for text-heavy images, JPEG only when photo-only and file size matters.
Safe area:
- Side margin: 72-96px.
- Top margin: 72-112px.
- Bottom margin: 80-120px.
- Keep all text and key objects inside the safe area.
Recommended set:
- 1 cover.
- 4-8 content pages.
- 1 summary or checklist page if the article benefits from it.
Naming:
output/xhs-01-cover.png
output/xhs-02-<topic>.png
output/xhs-03-<topic>.png
...
Cover structure:
- Big title with a sharp hook.
- One strong visual: supplied image, screenshot, generated photo, or product object.
- Bottom line with 3-5 key points or a compact issue strip.
- Avoid long subtitles. Put nuance in later pages.
Content page structure:
- One idea per page.
- 12-30 Chinese characters for the title when possible.
- 2-4 short bullet fragments or one concise paragraph.
- If a page has a screenshot, reduce the text and give the screenshot enough area.
- If lower space is empty across pages, combine pages or add a functional element such as checklist, comparison row, quote, or image evidence.
WeChat Official Account Cover Pair
Generate a pair: one 21:9 main cover and one 1:1 square cover. Build both in the same HTML file, and include a combined preview section that places them together for visual checking.
21:9 Main Cover
Default size:
2100 x 900- Ratio:
21:9
Use:
- Main article cover.
- Full or near-full headline, subtitle, and visual evidence.
- Keep title readable near center-left or within a clear safe band.
- Avoid an empty middle. Increase title scale, image scale, or spacing if the center feels hollow.
1:1 Cover
Default size:
1080 x 1080- Ratio:
1:1
Default style:
- Short title only, simplified from the long title.
- Big type, center aligned.
- No image unless the user explicitly asks for one.
- No subtitle by default.
- Strong contrast and enough breathing room.
Short-title rule:
- Extract the core object and action from the long title.
- Keep it to roughly 4-10 Chinese characters, or 2 short lines when needed.
- Do not squeeze the full
21:9title into the square.
Example:
Long: 开源了一个 Skill,让 AI 接管你屏幕边那张便签纸
Square: AI 接管便签纸
Naming:
output/wechat-21x9-cover.png
output/wechat-1x1-cover.png
output/wechat-cover-pair-preview.png
Screenshot And Photo Placement
For supplied screenshots/photos:
- Put originals in
assets/. - Use CSS
object-fit:coveronly when cropping is safe. - Use CSS
object-fit:containfor UI screenshots, dense text, code, tables, or app windows. - Set
object-positiondeliberately: top for long UI when top matters, center for objects, 35%-45% vertical for portraits. - Do not pin images to the canvas edge unless the design intentionally uses bleed.
Final Response Media
In Codex desktop, local media can be shown with absolute paths:

Do this for the most important images, especially the cover and any pages the user asked to inspect.