/alemtuzlak-skills:youtube-thumbnailfrom alemtuzlak-skills
Generates 3 distinct YouTube thumbnails for A/B testing, each with unique layout and palette, using HTML templates and HyperFrames snapshot rendering.
Ships in alemtuzlak-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Make 3 thumbnails for one video, one for each of its 3 titles. YouTube "Test & compare" shows title N with thumbnail N. The test needs 3 thumbnails that clearly differ, so each one has its own layout and its own palette.
Each thumbnail is an HTML template from templates/. Fill its {{tokens}}, then render it to a PNG with the HyperFrames snapshot command.
In the commands below, <SKILL_DIR> is the folder of this skill (the folder of this SKILL.md), and <OUT> is the output folder.
scripts/check-thumb.mjs checks all three./produce-video calls this skill, the video is <OUT>/final.mp4.titles[].text in <OUT>/youtube.json (written by youtube-copy). If the file is missing, ask the user for the 3 titles, or run youtube-copy first.<OUT>/thumbnail-1.png, <OUT>/thumbnail-2.png, <OUT>/thumbnail-3.png: 1280x720 PNG files, each under 2 MB. Thumbnail N pairs with title N. youtube-publish reads them from <OUT>.<OUT>/.work/thumb/:<OUT>/.work/thumb/
frames/ frames from the video, to look at
thumb-1.json the token values of thumbnail 1
thumb-1/ the HyperFrames project of thumbnail 1
index.html the filled template
assets/ the logo, the picture, the face
thumb-1-out/ the snapshot: frame-00-at-0.5s.png
small-1.png a 320x180 copy of thumbnail-1.png
... the same files for thumbnails 2 and 3
When /produce-video calls this skill, the output folder is <OUT>. When the user runs it alone, use the folder that the user names. If the user names no folder, use the folder of the video.
| N | Face yes | Face no |
|---|---|---|
| 1 | no-text.html: the logo and a picture. No words. | The same. |
| 2 | words.html: a big picture, the logo as a sticker, and 3 to 5 words. | The same. |
| 3 | face-words.html: the face in a circle, a small logo, and 3 to 5 words. | face-words.html with a square picture or a logo in the circle, and 3 to 5 words. |
Give each thumbnail its own palette. The sample values of the templates are 3 different palettes, and a good start:
no-text.html, dark): bg #0d0e14, glow #8b5cf6, accent #1d9bf0.words.html, bright): bg #7c3aed, glow #c4b5fd, text #ffffff, accent #facc15, accentText #0d0e14.face-words.html, dark): bg #111827, glow #f97316, text #ffffff, accent #f97316, accentText #111827.You can change the colors to fit the logo and the pictures. Keep the 3 palettes clearly different. Keep a strong contrast: white text on a dark or strong bg, and a dark accentText on a bright accent.
The viewer sees title N and thumbnail N together. So the words on the thumbnail must say something new: an answer, a question, or a twist. Title 1 carries the main keyword words, so thumbnail 1 shows only the logo and a picture.
Example, for a video about agent harnesses:
| N | Title | Template | Words |
|---|---|---|---|
| 1 | What Is an Agent Harness? (And Why T3 Code Is Not One) | no-text.html | none |
| 2 | Stop Calling T3 Code a Harness (Agent Harnesses Explained) | words.html | IT'S AN + ORCHESTRATOR |
| 3 | The 3 Levels of AI Agents: Loop, Harness, Orchestrator | face-words.html | WHERE IS + T3 CODE? |
The part before + goes in {{words}}. The part after it goes in {{mark}}.
The 3 templates are in <SKILL_DIR>/templates/. Each one is a still 1280x720 HyperFrames composition. The comment at the top of each file explains its tokens.
| Template | Tokens |
|---|---|
no-text.html | {{logo}}, {{picture}}, {{bg}}, {{glow}}, {{accent}} |
words.html | {{logo}}, {{picture}}, {{words}}, {{mark}}, {{bg}}, {{glow}}, {{text}}, {{accent}}, {{accentText}} |
face-words.html | {{face}}, {{logo}}, {{words}}, {{mark}}, {{bg}}, {{glow}}, {{text}}, {{accent}}, {{accentText}} |
{{logo}}, {{picture}}, and {{face}} are paths in the project, for example assets/logo.png. A square logo PNG with a transparent background looks best.{{picture}} fills a 16:9 card. The card hides the parts that do not fit. A full video frame fits exactly. To show a part of a frame, crop that part to 16:9 first.{{face}} is a square picture with the face in the middle. The circle hides the corners and about 3% of each side.{{words}} is the white part. {{mark}} is the last word or two, in the accent box. An empty token hides its part. The templates show the words in capital letters. Write & as &.words.html holds about 12 letters: keep the words on 1 or 2 lines. A line of face-words.html holds about 9 letters: keep them on 2 or 3 lines. A word that is longer than one line breaks in the middle, so use shorter words.mkdir -p "<OUT>/.work/thumb/frames" "<OUT>/.work/thumb/thumb-1/assets" "<OUT>/.work/thumb/thumb-2/assets" "<OUT>/.work/thumb/thumb-3/assets"
assets folder, public/, docs/, the app icons (a 1024 px icon is good), and logo.svg.assets/ folder of each thumbnail. All 3 templates use {{logo}}.If you cannot find an official logo, ask the user for one. Never draw one.
If <OUT>/transcript.srt exists, read it. Note the times where the video shows its main visuals: the diagram, the product, the code, a post.
Get the size and the length of the video:
ffprobe -v error -select_streams v:0 -show_entries stream=width,height:format=duration -of json "<video>"
Get a frame at each time that you noted. <sec> is the time in seconds:
ffmpeg -v error -y -ss <sec> -i "<video>" -frames:v 1 "<OUT>/.work/thumb/frames/at-<sec>.png"
Look at the frames. Pick the clearest picture for thumbnail 1 and for thumbnail 2. Different pictures (or different parts of one frame) make the 2 thumbnails differ more.
To use a part of a frame, crop it to 16:9, for example 960x540. <x> and <y> are the top-left corner of the part:
ffmpeg -v error -y -ss <sec> -i "<video>" -frames:v 1 -vf "crop=960:540:<x>:<y>" "<OUT>/.work/thumb/thumb-2/assets/picture.png"
To use a full frame, remove -vf "crop=..." from the command.
Get 8 to 12 frames from different parts of the video, with the frame command of step 3.
Look at them. Pick a frame with a clear face and a good expression. The face is sharp, the eyes are open, and the expression fits the title. Do not pick a blink, or a strange mouth in the middle of a word.
Crop a square around the head and the top of the shoulders, with the face in the middle:
ffmpeg -v error -y -ss <sec> -i "<video>" -frames:v 1 -vf "crop=<side>:<side>:<x>:<y>" "<OUT>/.work/thumb/thumb-3/assets/face.png"
Look at the crop. If the face is not in the middle, change <x> and <y> and crop again.
Do not remove the background. If the face answer is no, put a square picture (the same crop command on another frame) or a logo in the circle.
For each thumbnail, choose:
{{words}} and {{mark}}Then compare the plan with the rules. The words add to the title. The 3 layouts and the 3 palettes differ.
Load the hyperframes-cli skill before the first render. Do these steps for one thumbnail at a time. N is 1, 2, or 3.
Put the assets in <OUT>/.work/thumb/thumb-N/assets/.
Write the token values to <OUT>/.work/thumb/thumb-N.json. For example, for words.html:
{
"logo": "assets/logo.png",
"picture": "assets/picture.png",
"words": "IT'S AN",
"mark": "ORCHESTRATOR",
"bg": "#7c3aed",
"glow": "#c4b5fd",
"text": "#ffffff",
"accent": "#facc15",
"accentText": "#0d0e14"
}
Copy the template to thumb-N/index.html and fill it. <template> is no-text, words, or face-words. Each token is also in the top comment, so this command replaces every copy of each token. If a {{ is left, it stops with exit code 1 and writes no file:
node -e "const fs=require('fs');const [tpl,vals,out]=process.argv.slice(1);let html=fs.readFileSync(tpl,'utf8');for(const [k,v] of Object.entries(JSON.parse(fs.readFileSync(vals,'utf8'))))html=html.split('{{'+k+'}}').join(v);if(html.includes('{{')){console.error('not filled: '+html.match(/\{\{\w*\}*/g).join(' '));process.exit(1)}fs.writeFileSync(out,html);console.log('filled: '+out)" "<SKILL_DIR>/templates/<template>.html" "<OUT>/.work/thumb/thumb-N.json" "<OUT>/.work/thumb/thumb-N/index.html"
Render the thumbnail with the snapshot command:
npx hyperframes snapshot "<OUT>/.work/thumb/thumb-N" --at 0.5 --no-end --output "<OUT>/.work/thumb/thumb-N-out"
It writes frame-00-at-0.5s.png and a contact-sheet.jpg to the --output folder. Run npx hyperframes the way the hyperframes-cli skill says. With the HyperFrames skills installed, that is node "<SKILLS>/hyperframes/scripts/plugin-cli.mjs" snapshot ..., where <SKILLS> is the folder that holds the hyperframes skill folder.
Copy the PNG to the output folder:
cp "<OUT>/.work/thumb/thumb-N-out/frame-00-at-0.5s.png" "<OUT>/thumbnail-N.png"
Run each snapshot in the foreground. It starts a browser and closes it at the end. If a snapshot hangs, stop it and its browser before you start the next one.
node "<SKILL_DIR>/scripts/check-thumb.mjs" "<OUT>/thumbnail-1.png" "<OUT>/thumbnail-2.png" "<OUT>/thumbnail-3.png"
It prints one { "file", "ok", "errors" } entry for each file. If a file fails, it exits with code 1. It checks the PNG signature, the size of 1280x720, and the file size under 2 MB. If a file is 2 MB or bigger, use a picture with less fine detail (noise and small text make big PNG files). Then render again.
Look at each PNG at full size. Then make a 320x180 copy and look at that too:
ffmpeg -v error -y -i "<OUT>/thumbnail-N.png" -vf scale=320:180 "<OUT>/.work/thumb/small-N.png"
When one of these is true, fix the thumbnail and render it again:
The usual fixes: shorter words, a word moved between {{words}} and {{mark}}, a different crop, different colors. After each fix, run step 7 again.
Tell the user:
thumbnail-N.pngWhen the user runs this skill alone, also tell the user how to start the test. The user opens "Test & compare" in YouTube Studio and adds the 3 pairs. When /produce-video called this skill, continue its flow.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (alemtuzlak/skills) — no native marketplace selected
npx claudepluginhub p/alemtuzlak-alemtuzlak-skills41 skills in this plugin
/accessible-htmlUse whenever writing, editing, or reviewing markup or UI code — HTML, JSX/TSX, Vue/Svelte/Angular templates, web components, email HTML, or CSS that affects text size, color, focus, motion, layout order, or hit area. Also use when adding a button, link, form, input, modal, dropdown, menu, tabs, tooltip, toast, icon, image, iframe, table, list, keyboard shortcut, drag interaction, or any click handler; when a design has to become code; and when the user says "accessibility", "a11y", "WCAG", "screen reader", "keyboard navigation", "focus", "aria", "contrast", "alt text", or "axe"./amazing-videoUse only when the user runs /amazing-video or names the amazing-video skill. The text after the command is the video topic, such as a PR, a feature, or an API./Other plugins' skills for the same job