--- name: thumb-lab description: >- Judge YouTube thumbnail and title options the way a viewer meets them: inside a feed of real recent videos from the same niche. Builds one private, self-contained HTML page that mixes the user's thumbnail and title options among 20 to 25 real niche videos in four views (desktop home, phone feed, search, up next), lets the user mix any thumbnail with any title, pick a combo, note each option and copy the decision back. Use when the user says "put these thumbnails in the feed", "test this thumbnail among real videos", "which thumbnail wins", "mix and match thumbnails and titles", "thumb lab", or pastes a "Thumb Lab decision:" block. --- # Thumb Lab A thumbnail that looks great on its own can vanish next to the videos it actually competes with. Thumb Lab puts the user's options into a mock YouTube feed of real recent videos from their niche, so they judge each option where it will live. You build the page yourself: one self-contained HTML file, no server, no paid API. ## Hard rules 1. **Free sources only.** Public video metadata and thumbnails through `yt-dlp`. Do not call a paid API without the user's yes and the cost shown first. 2. **Never invent a title.** Title options come from the user, their packaging doc or the live video. A thumbnail with no title yet gets a note saying so. 3. **Real files only.** Every thumbnail option is a file that exists or a live video id. Check each one before you build. 4. **Keep the page private.** It holds other creators' thumbnails and titles for comparison. Do not publish it publicly or post screenshots of other channels' work. One page per channel, updated in place. ## 1. Gather the inputs Ask the user for (multiple choice where you can): - Their channel: name and handle (or "new channel, no handle yet": then show initials as the avatar). - The options: 2 to 4 thumbnail files (or a folder) and 1 to 3 title options, and where the titles came from. - The niche: 5 to 8 channels a viewer would see next to theirs. If they do not know, search YouTube for the niche in a few words, show a ranked table of candidate channels (name, handle, subscribers, upload rate) and let them pick by number. ## 2. Fetch the feed For each source channel, pull the latest uploads' metadata without downloading video: ```bash yt-dlp --flat-playlist --playlist-end 15 -J "https://www.youtube.com/@/videos" > feed/.json ``` Keep about 3 per channel (20 to 25 in all), favouring recent uploads. For each video keep: id, title, channel name, view count, upload date, duration. Download the thumbnail from `https://i.ytimg.com/vi//hqdefault.jpg` (or `maxresdefault.jpg` when it exists) into `feed/thumbs/`. Get each channel's avatar from the channel page metadata the same way. If `yt-dlp` is missing, tell the user how to install it for their system and stop. Do not scrape pages by hand. ## 3. Build the page One HTML file with every image inlined as a data URI, so it opens offline and can be shared as a single file. Keep it under about 15 MB (resize thumbnails to 480 px wide, JPEG quality around 80). Four views, switchable with tabs: - **Desktop home:** a grid of cards (thumbnail with duration badge, avatar, title on two lines, channel, views and age). - **Phone feed:** one column at 390 px, full-width thumbnails. - **Search:** results list with the search box filled with the niche query. - **Up next:** the narrow sidebar list beside a player. The user's candidate sits among the real videos at a natural position (second row on desktop, third card on phone), not first. Use the same views, age and length styling as the real cards so only the packaging differs. For a live video, use its real numbers. Controls: - Thumbnail options A, B, C and title options 1, 2, 3. Any thumbnail with any title, live. - A shuffle button that moves the candidate to a different slot, and a "find it" timer: how long it takes to spot the candidate after a shuffle. - A note field per option. - **Decide**, then **Copy decision**, which copies a plain text block (see `references/decision-format.md`). Save picks and notes in `localStorage` so a reload keeps them. ## 4. Show it Send the HTML file to the user so they can open it. Tell them in one line which views to look at and how to copy the decision. ## 5. Read the decision back The user pastes a block starting `Thumb Lab decision:`. Restate the pick in plain words (thumbnail letter and what it shows, the title text), then record it wherever the user keeps packaging decisions. Do not edit the thumbnail art in this skill. ## Not this skill - Making thumbnail art or setting text on the image. - Writing descriptions, chapters or tags.