create-previews
Skill43 starsChanged 4 months agoMITView on GitHub
Create a preview card per platform: post copy, image and badge, to check copy and crop. \"show how this will look\"
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adapt-copySkill
- assemble-documentSkill
- brand-managerSkill
- build-review-gallerySkill
- c2pa-signSkill
- compose-creativeSkill
- finalize-monthSkill
- full-pipelineSkill
- generate-videoSkill
- ideate-monthSkill
- index-assetsSkill
- ingest-performanceSkill
- manage-reviewsSkill
- match-assetsSkill
- model-checkSkill
- parse-calendarSkill
- price-checkSkill
- render-carouselsSkill
- research-monthSkill
- setupSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Use the built-in card (or assets/preview-templates/<platform>.html if you supplied one.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

