create-previews
Create a preview card per platform: post copy, image and badge, to check copy and crop. "show how this will look"
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 44
- Forks
- 9
01 前言 Front Matter
- name
- create-previews
- effort
- medium
- description
- Create a preview card per platform: post copy, image and badge, to check copy and crop. "show how this will look"
- argument-hint
- [--post <id>] [--all] [--platform <name>]
- user-invocable
- true
- disable-model-invocation
- false
03 SKILL.md 正文
/socialforge:create-previews — Preview Generator
Generate a preview card per platform (post copy, image, platform badge) to check copy, line breaks and crop before publishing. The card is one built-in layout with the platform named; it is not a replica of the platform's feed.
Execution gate
Rendering writes preview images under production/previews/. State the scope (posts x platforms, destination) and proceed only on an explicit yes; any other reply cancels with nothing written.
Process
- For each post × each platform:
- Load the generated/composed image
- Load the adapted copy
- Use the built-in card (or
assets/preview-templates/<platform>.htmlif you supplied one; none ship) - Inject: brand name and handle, platform badge, image and the post copy (hashtags included in the copy passed in)
- Render via Playwright → PNG preview
- Save to
production/previews/post-{id}-{platform}-preview.png
Layouts
One built-in card serves every platform. To get a platform-specific layout, put <platform>.html in assets/preview-templates/ using the placeholders {{name}}, {{handle}}, {{platform}}, {{image_uri}} and {{copy}}. No templates ship.
Timeout & Fallback
- Per preview: 10-second timeout. If Playwright hangs, save raw image + copy as fallback.
04 同仓库更多 Skills
setup
One-time setup of image and video generation credentials, verified before use. "set up my API keys"
research-month
Turn supplied comment exports and competitor ads into a what's-working brief before planning a month. "analyse these competitor ads and comments"
render-carousels
Render multi-slide carousels from HTML templates into platform-ready images or PDF. "build the carousel slides"
price-check
Price a generation run from live provider rates before any spend. "how much will this cost"
parse-calendar
Parse a content calendar or plan from DOCX, XLSX, Notion or pasted text into structured posts. "load this month's calendar"
model-check
Find the best current model for a capability from the live catalogue and record its source. "which model should we use"