Thumbnail generator

From jsath/claude-skills · View interactive version

Thumbnail generator is an AI agent skill from the GitHub repository jsath/claude-skills. Make a 1280x720 YouTube thumbnail (or a banner/cover) that reads at phone size: a text-free background plate (generated or from a real frame), a real cutout of the person, 1 to 3 words in tight colour blocks, an official logo, composed by a script that checks overlaps and frame edges and renders the

How to use this skill

Skill file

Thumbnail generator

The method: image models make the plate, code makes the words. Generated

text comes out misspelled and generated faces come out as somebody else, so

text, logos and the person's real face are composited by

scripts/compose_thumbnail.py, which then checks the layout.

Sibling skills: longform-edit and edit-style produce the video and its

frames; this skill turns a frame into the cover.

Requirements

tool in your agent, an image API with an edit endpoint, or none: a blurred,

darkened real frame is a fine plate).

Inputs

with the emotion the video needs (pick the frame; do not invent the face).

exact image first (see references/reference-matching.md).

Steps

  1. Concept in one line: what the viewer sees + the 1 to 3 words. If it

needs more than 3 words, the concept is wrong. Show the result, hide the how.

  1. Make the plate (1280x720 or larger, 16:9). Prompt rules for any model:

Alternative: a real frame from the video, gblur + darkened 20 to 40%.

  1. Cut out the person from the chosen real frame (rembg). Never generate

the person from text. If you use an image model to restyle the person, feed

it the real frame as the input image and reject any result that changes the

face, teeth, or clothes.

  1. Write layout.json (format in the script's header). Starting values:

cutout height 0.85 to 0.95 on one side, flush with the bottom; headline

size 110 to 140; second line 60 to 80; logo width 180 to 260.

  1. Compose: python3 scripts/compose_thumbnail.py layout.json --out thumb.png.

Fix every FAIL (overlap, out of frame, cutout under 70% height, over 5 words).

  1. Look at thumb.preview.png, the 168 px view first. Run the checklist

below. Adjust the layout, not the plate: re-generate only when the concept changes.

  1. Optional single polish pass: if your image model has an edit mode, run

the FINISHED composite through it once at low strength (0.3 to 0.5) for

lighting and saturation. Then re-check that every word is still spelled

right and the face is still the same person. If not, ship the un-polished one.

Rules (from rejected thumbnails)

at 1280 wide), drop shadow. Yellow = attention, green = positive, red =

danger (white text), white = neutral. Heavy condensed sans (Impact, Bebas Neue).

QA checklist (write the answers in your reply)

Output

thumb.png            1280x720 final
thumb.preview.png    full size + 320 px + 168 px side by side
layout.json          so the next tweak is a re-run, not a redo

Example reply:

thumb.png PASS (compose checks). 168px: "IT'S FREE" readable, face clear.
Concept: shocked face + "IT'S FREE" + tool logo; plate = blurred frame at 03:12, darkened 30%.
Kept all versions in thumbs/v1..v3.

Failure handling

| problem | do |

|---|---|

| no image model | use a blurred, darkened real frame as the plate |

| no good real photo of the person | ask for one; never generate a stand-in face |

| model put text or faces in the plate | regenerate with the "no text, no people" line first in the prompt, or crop that area out |

| cutout has halos or missing hair | try rembg -m isnet-general-use, or pick a frame with a plainer background |

| font missing (tiny or fallback text) | set "font" in layout.json to a real bold .ttf |

Keep every version until the user picks one. Depth:

references/composition.md (sizes, text, layer order) and

references/reference-matching.md (matching a reference image, banners, square ads).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.