Synthèse automatique
Génère une miniature YouTube 1280x720 à partir du design system de la marque, en rendant du HTML/CSS en PNG via Chrome headless.
Points forts
- Sortie déterministe et entièrement locale, sans modèle d'image externe ni dépendance réseau
- Réutilise les vrais tokens, polices (Playfair/Inter) et le logo, donc la miniature s'accorde avec l'intro et l'outro
- L'agent déduit lui-même le titre-accroche et le motif Venn à partir du transcript ou du metadata.json, sans validation manuelle
- Propose un mode photo (frame extraite de la vidéo avec dégradé et titre incrusté) pour les contenus interview
Limites
- Suppose Google Chrome installé et playwright-core présent dans le dépôt, avec des chemins de recherche prédéfinis
- Aucune génération d'image : pas de visuels créés de zéro, uniquement de la typographie et des motifs issus du design system
- Le rendu est autonome par défaut, il n'y a pas d'étape de relecture visuelle avant validation
À utiliser une fois la vidéo montée et rangée dans ~/video-library/{slug}/, ou juste après un upload YouTube qui a laissé un thumbnail_prompt en attente.
À éviter pour une miniature qui exige des visuels générés par IA, une marque sans design system HTML/CSS, ou un format autre que le 1280x720 YouTube.
Analyse de sécurité
PrudenceThe 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.
Exemples
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.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
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. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
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 doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/youtube-thumbnail-generation-mt6reqca'openskills read 'youtube-thumbnail-generation-mt6reqca'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/youtube-thumbnail-generation-mt6reqca/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Fragments d'écriture
Contenu
Extrayez des fragments d'écriture bruts via un entretien intensif, sans imposer de structure. Capturez idées, citations et mots porteurs pour une utilisation ultérieure.
Rédaction UI et audit
Contenu
Rédigez ou auditez les textes d'interface (boutons, erreurs, états vides, infobulles) dans le monorepo, en suivant la source de vérité du design system.
Extraction MIDI/score
Contenu
Extrait le MIDI ou la partition d'une production musicale existante via l'outil MCP CogMusic et confirme la disponibilité du fichier.