Skip to content
Back to skills

Create Previews

ASecurity

Create a preview card per platform: post copy, image and badge, to check copy and crop. \"show how this will look\"

  • 48 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 8, 2026
ai-agents

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add indranilbanerjee/socialforge --skill create-previews --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Previews?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Previews
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/indranilbanerjee-create-previews/badge)](https://www.skillsdirectory.com/skills/indranilbanerjee-create-previews)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-previews
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>]"
effort: medium
user-invocable: true
disable-model-invocation: false
---

# /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
1. For each post × each platform:
   - Load the generated/composed image
   - Load the adapted copy
   - Use the built-in card (or `assets/preview-templates/<platform>.html` if 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
2. 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.