/cog-second-brain:youtube-video-kitfrom cog-second-brain
Produces YouTube-ready video packaging: branded thumbnails, animated opening titles, background music via ElevenLabs Music, and upload metadata bundles.
Ships in cog-second-brain. 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.
Package videos like a channel, not a screen recording. The template fuses two reference styles: cinematic stills with minimal text (the Anthropic channel) and dark IDE screenshots with huge boxed text, one accent word, readable at 320px (AI-coding channels). It uses the dark lane-art language from the social-media-kit skill.
Scripts read environment variables, so nothing personal is hardcoded.
| Setting | Env var | Default |
|---|---|---|
| Signature text (bottom-left) | BRAND_URL | yourblog.example |
| Avatar PNG with a white background (optional) | AVATAR_PATH | unset (no avatar drawn) |
| Accent word color | ACCENT | D97757 (terracotta, configurable) |
| Fonts | HEADLINE_FONT, MONO_FONT | macOS Helvetica Neue and Menlo, DejaVu on Linux |
| Opening eyebrow and chip text | OPEN_EYEBROW, OPEN_CHIP | example strings |
| ElevenLabs key | ELEVENLABS_API_KEY | none, required for music |
Your channel ID, handle and avatar belong in your own config.
ELEVENLABS_API_KEY for music generationbrowser-harness skill)scripts/ytthumb.py, 1280x720 (rendered at 2560x1440, then downscaled). Keep the template identical across a playlist and vary only headline, accent word and lane pattern.
#0A0B0D plus lane art on the right third, with green and red end dots.AVATAR_PATH=./avatar.png BRAND_URL=myblog.dev python3 .claude/skills/youtube-video-kit/scripts/ytthumb.py "MY AI TESTS|MY PRODUCT." AI "7 passed · 4 failed" thumb.png
scripts/ytopen.py [out.mp4] renders 4.2s at 30fps, 1920x1080, with PIL frames piped to ffmpeg (rawvideo to libx264 crf 19). Sequence: lanes draw in, staggered (0-1.2s); eyebrow (0.6s); headline fades in by line (0.9, 1.2, 1.5s, accent word colored); chip (2.2s); avatar rises (1.6-2.6s); signature with a blinking cursor (2.6s); 0.5s fade to black. Edit HEAD in the script for the headline.
To join it to the main video, give the opening a silent AAC track (-f lavfi -i anullsrc=r=44100:cl=mono -shortest) matching the main video's audio params, then use the concat demuxer with -c copy.
curl -X POST "https://api.elevenlabs.io/v1/music" \
-H "xi-api-key: $ELEVENLABS_API_KEY" -H "Content-Type: application/json" \
-d '{"prompt": "<style prompt>", "music_length_ms": 250000}' -o bgm.mp3
Check that your plan includes the Music API first. For a narration bed, ask for "very minimal, unobtrusive, no melody hooks, no vocals". Mix the bed about 20dB under the voice-over, and louder only during the title:
ffmpeg -i video.mp4 -i bgm.mp3 -filter_complex \
"[1:a]atrim=0:<dur>,volume='if(lt(t,4.2),0.45,0.13)':eval=frame,afade=t=in:d=1.2,afade=t=out:st=<dur-3>:d=3[bg];\
[0:a][bg]amix=inputs=2:duration=first:normalize=0[a]" \
-map 0:v -map "[a]" -c:v copy -c:a aac -b:a 160k out.mp4
Sanity check with volumedetect on a narration window: mean near -25dB, max at or above -6dB. Store generated tracks durably so a playlist reuses the same music family.
The principle: every frame should show the concept being narrated, not print it. A text-list frame is a slide, and viewers skim it.
A highlight box once shipped floating over empty page space because its coordinates were guessed. Every screenshot segment passes this before concat:
ffmpeg -ss <t> -frames:v 1) and look at it.Per video, keep in the kit folder: the final mp4, the thumbnail PNG, and youtube-description.txt (hook line, chapters, blog link first, skill links, tags). Title formula: benefit, plus the named product, plus the "AI agent" keyword, 70 characters or fewer. For playlist consistency use the same thumbnail template, the same opening and the same music family.
To publish through YouTube Studio in a logged-in Chrome (your own channel):
cdp("DOM.performSearch", query="input[type=file]") plus DOM.setFileInputFiles by nodeId.#textbox elements: select all, then type.input#file-loader.VIDEO_MADE_FOR_KIDS_NOT_MFK radio through JS .click().#next-button three times through JS click. Set visibility with the PUBLIC radio through JS .click(), then #done-button.terminal-replica skillWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input, repository: Invalid input: expected string, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
49 skills in this plugin
/auto-researchDeep strategic research engine — decomposes questions into parallel research threads, spawns multiple agents, and synthesizes into actionable strategic analysis/best-of-nSelector stage before a verification gate - generate N candidates in parallel, pick the best with a pivot tournament of pairwise judgements, then gate the winner. For high-variance, non-mutating deliverables only/blog-publishWrite and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".
Other plugins' skills for the same job