Automated summary
Renders a 1280x720 YouTube thumbnail from the brand design system by screenshotting HTML/CSS with headless Chrome into a single PNG.
Strengths
- Fully local and deterministic output, with no external image model or network dependency
- Pulls the real tokens, Playfair/Inter fonts and logo, so the thumbnail matches the intro and outro cards
- The agent derives the headline hook and Venn labels itself from the transcript or metadata.json, with no manual review gate
- Offers a photo mode that overlays the headline on an extracted video frame for talking-head and interview content
Limitations
- Assumes Google Chrome is installed and playwright-core exists in the repo at the expected locations
- No image generation: output is limited to typography and design-system motifs, not invented artwork
- Rendering is autonomous by default, so there is no visual approval step before the file is produced
Use it after a talk is edited and stored in ~/video-library/{slug}/, or right after a YouTube upload that left a thumbnail_prompt unused.
Avoid it when the thumbnail needs AI-generated imagery, when the brand has no HTML/CSS design system, or when you need a size other than the 1280x720 YouTube format.
Security analysis
CautionThe skill performs local, deterministic rendering and thumbnail generation without exfiltration, destructive commands, or external services. It uses powerful local tools such as bash, ffmpeg, and headless Chrome for legitimate media processing, which warrants caution but not a risky rating.
- •Invokes a local shell script (thumb.sh) and ffmpeg to process media files.
- •Uses headless Chrome and Playwright to render HTML/CSS, and writes PNG files locally.
- •No allowed-tools are declared even though the skill relies on bash, ffmpeg, and filesystem access.
Examples
Make a thumbnail for the latest talk in my video library.I just ran /youtube-upload — generate the thumbnail for this video now.Generate a YouTube thumbnail for ~/video-library/clarity-gap, use the overlapping-circles motif with 'What I said' and 'What you heard'.name: gen-thumbnail description: Render a 1280x720 YouTube thumbnail for a ClarityPledge talk from the brand design system (same Playfair/Inter, tokens, logo, blue as the intro/outro cards). Fully local, headless Chrome → PNG. No external image model. Closes the always-dangling "thumbnail concept saved, nothing wired up" gap. when_to_use: After a talk is edited/branded and lives in ~/video-library/{slug}/, or right after /youtube-upload (which saves a thumbnail_prompt). "make a thumbnail", "thumbnail for this video". version: 1.0.0
/gen-thumbnail
Produce a scroll-stopping, on-brand YouTube thumbnail as a single PNG. The card is rendered from the real design system (public/fonts, src/index.css tokens, the logo) as HTML/CSS and screenshotted headless — the same machinery and visual language as /video-brand-pass, so the thumbnail, intro, and outro read as one set. No image-gen model, no external dependency, deterministic output.
Autonomous by default (founder instruction 2026-06-25: "I don't want to review anything manually"). The agent derives the headline + motif from the talk and renders without a gate. The only stop is a hard failure (missing fonts/logo, Playwright missing, render produced no file).
Prerequisites (already present — verify, don't install)
- Google Chrome at
/Applications/Google Chrome.app(headless viachannel:'chrome'). - playwright-core at
tools/kanban/node_modules/playwright-core(repo dep; script auto-locates viagit rev-parse --show-toplevel). - ffmpeg (brew) — only used to verify the output dimensions.
If Chrome is missing: ask before installing (global install rule).
Step 1: Derive the thumbnail content (agent decides)
A thumbnail is NOT the video title — it's the hook, readable at 320px wide. Before writing it, name two things explicitly (one sentence each, not shown to the user unless asked):
- Who's scrolling past this — co-founder pairs and founders sizing up a hire/partnership decision, not a general audience. Write the headline to their stake (a bad hire, a misaligned partner, wasted months), not a generic "interesting talk" framing.
- Which curiosity lever it pulls — an open loop (states a claim, withholds the resolution), a pattern interrupt (contradicts what the viewer assumes, e.g. "coding is solved" → but), or a specificity spike (a number/quote that couldn't be guessed). Pick one; a headline that tries to do all three usually reads as noise.
Generate:
--headline— 3 to 6 words, the emotional core or the surprising claim. Bigger and punchier than the YouTube title. Wrap exactly ONE word in*stars*to render it blue-italic (the clarity-flip accent) — pick the word that carries the tension. Examples:You think you *agree*. You don't.·The gap that *splits* co-founders.--vleft/--vright(optional) — the two short labels for the overlapping-circles Venn motif (the house metaphor: two understandings that barely overlap). Use when the talk is about a gap between two parties. Typical:What I said/What you heard. Omit both to drop the motif and let a headline-only layout breathe (use that for talks where a Venn doesn't fit).--kicker— defaults toClarityPledge; override only for a sub-brand.
Source order: if ~/video-library/{slug}/metadata.json exists, read its thumbnail_prompt + title for intent. Otherwise read transcript-readable.md. Translate the concept into the headline + labels above — don't paste the prompt verbatim.
Step 2: Render
For talking-head / interview content, prefer photo mode over the text-only card (2026-07-16): a real still frame of the actual people, with the headline overlaid on a bottom gradient scrim, reads better for CTR than flat-black typography — faces + expression are the strongest attention lever on YouTube for this content type. Pull 3-4 candidate frames from the edited footage at moments with visible engagement/expression (ffmpeg -ss <t> -i <video> -frames:v 1 candidate.png), show them to the founder to pick one, then pass it via --photo.
Never use an image-gen model to depict a real, identifiable person. Generative models are unreliable at reproducing a specific person's actual likeness — the risk isn't just quality, it's misrepresenting how someone actually looks in a video attached to their name. Use their real footage instead; it's already sitting in the edit and carries no fidelity risk.
SLUG="{slug}"
~/Projects/public/claritypledge/.claude/commands/slava/util/gen-thumbnail/assets/thumb.sh \
--slug "$SLUG" \
--headline "You think you *agree*. You don't." \
--photo "/path/to/chosen_frame.png" # omit for the text-only card (non-interview talks)
# → ~/video-library/{slug}/thumbnail.png (1280x720, written; prints DONE + dims)
# Text-only variant (no photo) still supports the Venn motif:
~/Projects/public/claritypledge/.claude/commands/slava/util/gen-thumbnail/assets/thumb.sh \
--slug "$SLUG" \
--headline "You think you *agree*. You don't." \
--vleft "What I said" \
--vright "What you heard"
# → ~/video-library/{slug}/thumbnail.png (1280x720, written; prints DONE + dims)
The script stages fonts/logo from the repo, renders headless, and asserts a real PNG of the right size landed (hard-fails otherwise).
Step 3: Self-verify with vision (no user ask), then iterate if weak
Read the produced ~/video-library/{slug}/thumbnail.png and check against this bar:
- Legible at small size — the headline must read when mentally shrunk to a sidebar. Too many words → cut.
- Contrast — light type on the dark card; the blue accent word pops.
- No clipping — headline fits its column, Venn labels sit inside their circles, nothing overflows the frame.
- Hook, not summary — does it create curiosity or state the obvious?
- On-brand — matches the intro/outro card (it shares their CSS, so this is mostly automatic).
If any check fails, adjust --headline length / accent word / labels and re-render. Iterate up to ~3 times on your own judgment. Only surface to the user if you cannot get a clean render after that (state what's wrong).
Step 4: Report
✓ Thumbnail: ~/video-library/{slug}/thumbnail.png (1280x720)
Headline: "{headline}"
Motif: Venn ({vleft} / {vright}) | or: headline-only
Upload note: YouTube thumbnails are set in YouTube Studio (the Data API thumbnails.set
needs a verified channel + extra scope). The PNG is ready to drag into Studio, or wire
thumbnails.set into youtube-upload.py later.
Layout contract (assets/)
thumb.html— ids:kicker,headline,vleft,vright;#vennmotif hidden when both labels empty.thumb.css— STATIC (no entrance animations; this is one screenshot). Tokens/fonts copied fromvideo-brand-pass/assets/card.css; keep in sync if brand tokens move.render-thumb.mjs— injects text by id (HTML-escaped,*word*→blue<em>), screenshots at deviceScaleFactor 2.thumb.sh— stages assets + fonts/logo, runs the render, verifies dimensions.
Honest ceiling: this renders a strong typographic thumbnail in the brand system. It does not generate photographic/illustrative imagery — that would need an image model (a separate, external-dependency decision). For a talking-head talk, a bold headline + the Venn motif is the deterministic, on-brand option.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/youtube-thumbnail-generation-mt6reqca' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/youtube-thumbnail-generation-mt6reqca/download' --output '.skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md.part' && mv '.skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md.part' '.skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md' && test -s '.skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gen-thumbnail' && cp -R '.skill-downloads/youtube-thumbnail-generation-mt6reqca' '.claude/skills/gen-thumbnail'Codex
test -f '.skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md' && test -s '.skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/gen-thumbnail' && cp -R '.skill-downloads/youtube-thumbnail-generation-mt6reqca' '.agents/skills/gen-thumbnail'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/youtube-thumbnail-generation-mt6reqca'openskills read 'youtube-thumbnail-generation-mt6reqca'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Writing Fragments
Content
Mine raw writing fragments through a relentless interview, without imposing structure. Capture ideas, quotes, and leading words for later use.
UI Copywriting & Auditing
Content
Write or audit user-facing UI copy including buttons, errors, empty states, and tooltips across the monorepo, following the design system source of truth.
Music MIDI Extraction
Content
Extracts the MIDI or score from an existing music production via the CogMusic MCP tool and confirms availability.