/alemtuzlak-skills:produce-videofrom alemtuzlak-skills
Turns a raw talking-head or screen-share recording into a finished YouTube video. Handles silence removal, mistake cuts, overlays, thumbnails, blog posts, and publishing.
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.
Turn one raw recording from the user into a published YouTube video. The recording drives the timeline. This skill removes silences and mistakes, adds overlays only when the user asks, makes the YouTube package, and hands the package to Grok Bot after the user says "publish". It does NOT make a synthetic video. For a promo video from a PR, use hyperframes-video.
The user stops only 3 times:
| Phase | What happens | Stop? |
|---|---|---|
| Preflight | Tools and skills, also youtube-thumbnail, youtube-publish and the webhook file. | no |
| P0 | Input, output folder, start questions. | yes (1) |
| P1 | De-silence. | no |
| P2 | Detect mistakes, snap cut edges into silence, cut, then show the cut review. Loop until "done". | yes (2) |
| P3 | Final transcription. Fix names and terms, keep the times. | no |
| P4-P5 | Overlays and render, only when the user asked for overlays. Else copy final_cut.mp4 to final.mp4. | only with overlays |
| P6 | youtube-copy (3 titles), youtube-thumbnail (3 thumbnails), social-copy, and blog-post when chosen. | no |
| P7 | youtube-publish: the package, the ad answers, the review page, changes, the handoff on "publish". | yes (3) |
| P8 | Cleanup: offer to prune .work/, open <OUT>. | no |
Quality principle (non-negotiable): every footage step keeps the original quality. Never let a tool re-encode the footage at low quality. De-silence and cuts run at near-lossless CRF 12 from the original. auto-editor detects silence. It encodes only an applied speed-up, and then always with a high -b:v, because its default encode crushes footage to about 0.6 Mbps. The overlay render runs at CRF 12. CRF gives small files for static screencasts. That is full quality, not loss.
transcribe-video: all transcription (returns the word-level transcript.words.json). Invoke it. Do not transcribe by hand.hyperframes-cli: every npx hyperframes command (init, lint, preview, render). The P2 cut review uses it, and so do the overlays.hyperframes: composition authoring rules (Visual Identity Gate, Layout Before Animation, timeline contract, video and overlay layers). Invoke it before you write or mount any overlay composition HTML.gsap: GSAP timeline and easing patterns for overlays.youtube-copy: 3 titles, the description, tags and chapters, in youtube.md and youtube.json (P6).youtube-thumbnail: thumbnail-1.png to thumbnail-3.png, thumbnail N for title N (P6).social-copy: X, Bluesky, LinkedIn and Reddit copy (P6).blog-post: the blog post, only when the user chose one in P0 (P6).youtube-publish: the package (publish.json), the review page (review.html) and the handoff to Grok Bot (P7).scripts/desilence.mjs: silence removal. auto-editor only detects the silent ranges, and ffmpeg cuts at CRF 12. Prints the duration before and after.scripts/snap-cuts.mjs: the audio level envelope (10 ms frames) and the snap of each cut edge to the quietest point near it (P2).scripts/bake-cuts.mjs: the ffmpeg trim and concat cutter, with dense keyframes, at CRF 12 (P2).scripts/cut-map.mjs: maps times between the de-silenced video and the cut video, and lists the seams (P2).scripts/build-cut-review.mjs: writes the cut review composition, the cut video with numbered markers (P2).scripts/extract-frame.mjs: single-frame grab (framing detection and on-screen highlights, P4).templates/overlays/*.html: 9 overlay sub-composition templates (filled per instance. Sub-comps are standalone HTML docs in the installed CLI, so read each file's header comment).templates/project/{DESIGN.md,styles.css}: Visual Identity Gate and the brand var(--brand-*) tokens that the overlays use.references/: mistake-detection.md, overlay-triggers.md, framing-safe-zones.md, frame-analysis.md.youtube-copy, youtube-thumbnail, social-copy, blog-post and youtube-publish skills (no vendored LLM script).check spots are never applied without the user. Do not make the preview optional, and do not ask "want me to show you?". Never use a terminal table or a terminal question as the decision surface. A one-line chat note is the most that the terminal carries."Use sane defaults" (or "defaults") skips the start questions: face = no, blog = no, overlays = off. It never skips the gates.
Make sure that the environment is ready before any work. Warn the user about anything missing, and say how to fix it.
auto-editor --version. If it is not installed, STOP and tell the user: "auto-editor is not installed - install it with pipx install auto-editor (or pip install auto-editor), then re-run." Do not start P1 without it.ffmpeg -version. If they are missing, STOP and tell the user to install ffmpeg and add it to PATH. The flow cannot run without it.transcribe-video): docker info. Warn if the daemon is down (start Docker Desktop).node --version. Warn if it is older.transcribe-video (P2, P3), hyperframes-cli (the P2 cut review, the P6 thumbnails, P4-P5), youtube-copy, youtube-thumbnail and social-copy (P6), youtube-publish (P7).hyperframes and gsap only for overlays (P4-P5). blog-post only for a blog (P6).~/.config/youtube-publish/webhook.json exists. Never print its content, because it holds a secret. If it is missing, warn: the package and the review still work, but "publish" needs the one-time Grok Bot setup from the youtube-publish README. This is a warning, not a stop.Input: the path to the raw recording (required).
Optional input: a repo or files for real code grounding (overlays), and the product repo or website for official logos (thumbnails).
Single output folder (<OUT>): everything this skill makes lives in ONE folder. The default is <recording-dir>/<video-slug>-produced/, or a path that the user gives. Create it now. Final structure:
<OUT>/
final.mp4 # the finished video (P4-P5, or a copy of final_cut.mp4)
transcript.txt # final transcript, names and terms fixed (P3)
transcript.srt # the captions for YouTube (P3)
transcript.words.json
youtube.md # P6, for people
youtube.json # P6, for the other skills: 3 titles, description, tags, chapters
thumbnail-1.png # P6, pairs with title 1
thumbnail-2.png # P6, pairs with title 2
thumbnail-3.png # P6, pairs with title 3
socials.md # P6
blog.md # P6, only when the user chose a blog
publish.json # P7, the upload package
review.html # P7, the package review page
hyperframes/ # only with overlays: the HyperFrames project (P4-P5)
.work/ # intermediates: 01_desilenced.mp4, flags.json, cuts-R.json, review/, final_cut.mp4, frames/, thumb/ (prunable in P8)
All later phases write inside <OUT>. Never scatter outputs elsewhere. <work> below means <OUT>/.work.
Start questions. Ask both in one message, then wait for the answers:
Overlays are off by default. Do not ask about them. When the user asked for overlays (or annotations) in the request, settle the overlay options in the same message:
hyperframes Visual Identity Gate: detect it from the repo, else ask 3 style questions. Then write templates/project/DESIGN.md and the brand values into styles.css."Use sane defaults" (or "defaults") skips the questions: face = no, blog = no, overlays = off. A choice that the user already made in the request stays.
node scripts/desilence.mjs <input> --out <work>/01_desilenced.mp4 --margin 0.3s
desilence.mjs uses auto-editor ONLY to detect the silent ranges (--export v3). Then it cuts the ORIGINAL with ffmpeg at near-lossless CRF 12 and keeps the original audio. Do NOT let auto-editor encode the output. Its default re-encode crushes the footage to about 0.6 Mbps and blurs it for good (faces especially). No later bitrate can recover that. Report the duration before and after, and the seconds removed. This file is the working copy. Every P2 round bakes from it.
The flow cuts the clear mistakes on its own. Then it shows the cut video with a numbered marker at each seam (the joint of a cut) and at each suggestion.
<total> is the length of 01_desilenced.mp4 (ffprobe).R is the round number: 1 for the first review, then 2, 3 and on.Transcribe the working copy: invoke transcribe-video on <work>/01_desilenced.mp4 with --out <work>. This working transcript is only for P2. P3 makes the final one.
Detect flags with references/mistake-detection.md. Read it first. Write the flags to <work>/flags.json. Each flag has a suggested_action:
cut: a clear mistake. The flow cuts it.ramp: a slow part. A suggestion only.check: an unsure spot. A suggestion only.When unsure, make it a check, never a cut.
Snap each cut edge into silence. Whisper word times can be 150-500 ms off, so a cut on a word time can clip a syllable.
node scripts/snap-cuts.mjs envelope <work>/01_desilenced.mp4 --out <work>/env.json
node scripts/snap-cuts.mjs snap <work>/env.json <work>/cut-flags.json --out <work>/snapped.json
cut-flags.json holds one { "id", "start", "end" } for each cut flag, with its word times.silent is true and snapEnd > snapStart.--window 0.5.snapEnd <= snapStart (both edges found the same pause), use a window of less than half the cut length.check suggestion with its word times.Bake all good cuts from the de-silenced copy:
Round 1 only: make the review project with npx hyperframes init <work>/review --skip-skills (see hyperframes-cli).
Write the cut list of the round, <work>/cuts-R.json: [[start, end], ...], one pair for each cut, with the snapped edges from step 3.
Run bake-cuts.mjs. It cuts video and audio in one pass at CRF 12, and prints finalSec (the length of the cut video):
node scripts/bake-cuts.mjs <work>/01_desilenced.mp4 --out <work>/review/cut-R.mp4 --cuts-json <work>/cuts-R.json
With no cuts, copy 01_desilenced.mp4 to <work>/review/cut-R.mp4 instead (no new encode).
Never use auto-editor --cut-out for cuts. It reads the last range as an input file and re-encodes at low quality.
Map the markers to the cut video with cut-map.mjs:
node scripts/cut-map.mjs <work>/cuts-R.json --total <total> --seams
node scripts/cut-map.mjs <work>/cuts-R.json --total <total> --to-cut <t>
--seams prints [{ index, at, removed: [start, end] }], one seam for each removed span. Cuts that overlap merge into one seam. at is on the cut video.start and the end of each open suggestion with --to-cut. "cut": null means that the time is inside a removed span. Then use the at of that seam. If both edges land on the same seam, drop the suggestion, because its words are already cut.toCutTime and seamsFromCuts from scripts/cut-map.mjs in one node -e script.Build the review. Write <work>/review.json:
{
"seams": [
{
"n": 1,
"at": 83.2,
"removedText": "so the way, so the way this works",
"why": "Restart. The first take trails off."
}
],
"suggestions": [
{
"n": 2,
"kind": "ramp",
"start": 120.0,
"end": 131.5,
"text": "now I type the config",
"why": "Slow typing.",
"factor": 1.5
}
]
}
at, a suggestion at its start.removedText: the words of the working transcript inside the removed span of the seam. why: the reason from the flag.kind is ramp or check. A ramp needs a factor of more than 1 (1.5 by default).node scripts/build-cut-review.mjs <work>/review.json --project <work>/review --video cut-R.mp4 --duration <finalSec>
It writes <work>/review/index.html and prints { "ok": true, "markers": <count> }.
Show it. Start the preview in <work>/review and open it in the browser yourself (gate 3, hyperframes-cli). Then write one short chat note with the number of cuts and suggestions, and the commands:
restore N: bring back cut N.apply N: apply suggestion N (a ramp speeds up at its factor, a check becomes a cut).cut MM:SS-MM:SS: a new cut. The times are on the cut video.done: the cut is final.All marker panels sit at the bottom left. When 2 markers are less than 6 s apart, the later one covers the earlier one, so name both numbers in the note. With no flags, the review shows the video without markers. The user can still add a cut or say done.
Loop until done. For each answer of the user:
cut time with node scripts/cut-map.mjs <work>/cuts-R.json --total <total> --to-source <t> BEFORE you change the cut list.restore N on a seam: remove each cut inside the removed span of seam N.apply N on a check, and cut MM:SS-MM:SS: snap the edges as in step 3. If silent is true and snapEnd > snapStart, use the snapped edges. Else use the times as given, because the user asked for this cut. Add the cut.apply N on a ramp: add it to the applied ramps (de-silenced times). Keep its marker, with the why "Applied. It goes in after done." restore N on an applied ramp takes it off again.01_desilenced.mp4 with the full new list (step 4). Then run steps 5 to 7 again. After the new review opens, delete the video of the round before.Each round numbers the markers again. After about 10 rounds, offer to go back to the cut list of an earlier round (cuts-R.json).
On done:
Stop the preview (npx hyperframes preview --stop).
With no applied ramps, copy the video of the last round to <work>/final_cut.mp4 (no new encode).
With applied ramps, map the edges of each ramp to the cut video (step 5). Then speed up all ramps in one auto-editor call. Speed-ups keep the pitch:
auto-editor <work>/review/cut-R.mp4 --edit none -b:v 9M --set-speed-for-range 1.5,120s,131.5s --set-speed-for-range 2,300s,312s -o <work>/final_cut.mp4
--edit none: without it, auto-editor also cuts every silence.s after each time: a plain number is a frame number, not seconds.--set-speed-for-range flag for each ramp: a second range after one flag is read as an input file.-b:v: the video bitrate of the input (ffprobe), rounded up to whole Mbps. Without it, auto-editor crushes the footage.Cuts and ramps are baked into the footage HERE (before P3), so the word times of the final transcript match the edited video.
Invoke transcribe-video on <work>/final_cut.mp4 with --out <OUT>, so transcript.txt, transcript.srt and transcript.words.json land at the top of <OUT>. This word-timed transcript is the sync source for the overlays (P4), the source for P6, and the YouTube captions (P7).
Then fix the names and terms in transcript.srt and transcript.txt:
Without overlays (the default): copy <work>/final_cut.mp4 to <OUT>/final.mp4 (no new encode). Skip P4 and P5, and go to P6.
With overlays, run P4 and P5. The overlay gates apply (gate 2).
references/framing-safe-zones.md): sample frames with extract-frame.mjs, classify phases, confirm phases + safe zones with the user.references/overlay-triggers.md): scan the word-timestamped transcript → overlay plan rows {start, est_duration, type, content, safe_zone, why}. For on-screen code, use references/frame-analysis.md (extract frame → locate → normalized box → stability guard). For code cards, repo-if-available-else-synthesize (flag synthesized).hyperframes + gsap first):
npx hyperframes init <OUT>/hyperframes --video <OUT>/.work/final_cut.mp4 (the project lives at <OUT>/hyperframes; base: video track 0 muted playsinline; audio on a separate track at volume 1 so the voice plays). Read the generated index.html to learn this CLI version's sub-composition include syntax.templates/project/styles.css (with the confirmed brand values) into <OUT>/hyperframes.templates/overlays/*.html, give it a unique composition id + data-composition-id, fill its {{tokens}}, set data-start = the transcript timestamp and data-duration = the dwell, mount it above the video. Punch-in zooms scale the video's WRAPPER div (never the <video>).rgba(8,10,14,0.92), rounded, subtle border/shadow); titles/body are white (var(--brand-text)), secondary/kicker/meta are light slate (#CBD5E1). NEVER use var(--brand-accent)/var(--brand-primary) for body/subtitle/kicker text. Accent is for bars, borders, marker sweeps, icons, and big display words only (and only when they clear ~4.5:1 on the panel). When unsure, make text white. npx hyperframes validate (WCAG contrast) must pass with zero contrast warnings.npx hyperframes lint + npx hyperframes inspect (overflow + safe zones) + npx hyperframes validate (contrast). Fix until clean.
Agent starts npx hyperframes preview and opens the browser. Freeform iteration loop on overlays.
Pre-render audits: every overlay in its phase's safe zone; dwell minimums; no two overlays fighting the same region simultaneously; lint/inspect/validate clean.
On the user's explicit render command only: render at near-lossless CRF 12. The default standard quality encodes at ~1.4 Mbps and visibly crushes footage; always pass a low CRF:
npx hyperframes render --output <OUT>/final.mp4 --crf 12
(run from <OUT>/hyperframes. CRF 12 is near-lossless; do NOT use --video-bitrate expecting a big file. For static screencasts CRF produces a small file at full quality, and that is correct, not low quality.) Final mp4 keeps original audio. After render, further edits return to the loop and require a fresh explicit render command.
Quality note: the Chrome capture is a lossless 1:1 screenshot (verified: render input == output for both text and faces), so a low-CRF render preserves the footage it is given. The ONLY thing that destroys quality is a lossy upstream step. That is why P1 de-silence and P2 cuts both run at near-lossless CRF 12 from the original. Do not add extra re-encode passes. For absolute zero-generation footage, an advanced path is to render overlays-only to a transparent --format webm/mov and ffmpeg-composite them over the cut footage (punch-in zoom then applied via ffmpeg). This is rarely needed.
Run these skills in this order. Give each one the final transcript from P3 (the timestamped transcript.srt, so the chapters get the correct times). Each one writes into <OUT>.
youtube-copy: writes youtube.md and youtube.json, with 3 titles at different angles, the description in the user's format, tags and chapters. It runs first, because the thumbnails need its titles.youtube-thumbnail: writes thumbnail-1.png, thumbnail-2.png and thumbnail-3.png. Thumbnail N pairs with title N. Give it:
<work>/final_cut.mp4 (the footage without overlays, for the face frame)youtube.jsonsocial-copy: writes socials.md (X and a thread, Bluesky, LinkedIn, Reddit).blog-post: writes blog.md, only when the user chose a blog in P0. Do not ask again.Invoke each skill with the Skill tool. Each skill owns its own quality rules. Do not use one big LLM script for this. If social-copy or blog-post is missing, say so and continue with the others. P7 needs youtube-copy and youtube-thumbnail.
Writing rule for ALL generated text (titles, description, chapters, thumbnail words, blog, socials): never use em dashes or en dashes (U+2014, U+2013). Use a hyphen -.
Invoke youtube-publish on <OUT>. It owns the commands, the package checks and the handoff.
<OUT>/publish.json from youtube.json, the 3 thumbnails, final.mp4 and the fixed transcript.srt.adSuitability in publish.json). The user reviews them on the page.<OUT>/review.html in the browser yourself (gate 3). It shows everything that goes to YouTube. The publish time is "now", unless the user gives a date and time.youtube-publish says, then open the new review page.
youtube-thumbnail again for that thumbnail.youtube-publish copies the package into OneDrive and calls the Grok Bot webhook. Grok Bot uploads the video as private, applies every setting, publishes it, and reports in its chat.If the webhook file is missing, stop before the handoff and point the user to the one-time setup in the youtube-publish README. The package stays ready in <OUT>.
<OUT> has the result: final.mp4, transcript.*, youtube.md, youtube.json, thumbnail-1.png to thumbnail-3.png, socials.md, publish.json, review.html, plus blog.md and hyperframes/ when the user chose them.<OUT>/.work/ (the de-silenced and cut files, the cut review, extracted frames, thumbnail work files). The user decides.<OUT> in the file explorer for the user and report the single folder path.Docker (for transcribe-video), auto-editor and ffmpeg, Node 22 or later, a HyperFrames-capable environment (the cut review, the thumbnails and the overlays), and an LLM provider for P6. Publishing needs the one-time Grok Bot setup from the youtube-publish README.
README.md (opens in a new tab)references/frame-analysis.md (opens in a new tab)references/framing-safe-zones.md (opens in a new tab)references/mistake-detection.md (opens in a new tab)references/overlay-triggers.md (opens in a new tab)scripts/bake-cuts.mjs (opens in a new tab)scripts/bake-cuts.test.mjs (opens in a new tab)scripts/build-cut-review.mjs (opens in a new tab)scripts/build-cut-review.test.mjs (opens in a new tab)scripts/cut-map.mjs (opens in a new tab)scripts/cut-map.test.mjs (opens in a new tab)scripts/desilence.mjs (opens in a new tab)scripts/desilence.test.mjs (opens in a new tab)scripts/extract-frame.mjs (opens in a new tab)scripts/extract-frame.test.mjs (opens in a new tab)scripts/snap-cuts.mjs (opens in a new tab)scripts/snap-cuts.test.mjs (opens in a new tab)templates/overlays/CodeSnippet.html (opens in a new tab)templates/overlays/Comparison.html (opens in a new tab)templates/overlays/Diagram.html (opens in a new tab)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