Yt Longform Edit
ASecurityEnd-to-end edit of a raw long-form YouTube video (talking head + screen recordings, multiple takes) into a polished, retention-focused upload — restructure for retention, cut retakes and silences, speed up voice without pitch change, voice enhance, warm editorial HyperFrames graphics/charts/b-roll, consulting/sponsor plug cards, hook rewrite, thumbnail, and a strict QA pass before delivery. Use this whenever the user hands over raw recordings (.mov/.mp4) and wants a "final YouTube video", "lo...
- 23 stars
- 0 votes
- 0 copies
- 4 views
- Added December 1, 2026
Works with
Security analysis
100/100Pro scans all 17 files and shows the line behind each finding
npx -y skills add nidhi-singh02/skills --skill yt-longform-edit --agent claude-codeAre you the author of Yt Longform Edit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nidhi-singh02-yt-longform-edit)---
name: yt-longform-edit
description: End-to-end edit of a raw long-form YouTube video (talking head + screen recordings, multiple takes) into a polished, retention-focused upload — restructure for retention, cut retakes and silences, speed up voice without pitch change, voice enhance, warm editorial HyperFrames graphics/charts/b-roll, consulting/sponsor plug cards, hook rewrite, thumbnail, and a strict QA pass before delivery. Use this whenever the user hands over raw recordings (.mov/.mp4) and wants a "final YouTube video", "long form edit", "make it engaging/retentive", "add b-rolls/animations/graphics", "remove repeated takes", "speed up my voice", or asks to /watch and fix their edit — even if they don't say "long form". For vertical Shorts from takes use shorts-from-takes instead.
license: MIT
compatibility: Requires ffmpeg/ffprobe, Python 3 with numpy and pillow, whisper.cpp (whisper-cli), and Node (npx hyperframes) for graphics; optional ElevenLabs Scribe via video-use, DeepFilterNet, yt-dlp, and the yt-thumbnail-longform skill.
---
# YT long-form edit
Built from a real 81-min → 19.5-min edit (Qwen 4 Max) and refined on a 96-min → 20.5-min edit (Inkling 2 Mini, 3 raw files, ~60 graphics). On that edit the creator later found ~20 problems that a "self-check" had called verified.
**The QA section is the most important part of this skill.** Do not deliver without it.
Everything below marked as a default or a taste rule (speed, palette, hook rules, no music, …) is a starting point learned on real edits: follow it unless the creator asks otherwise.
Scripts live in `scripts/` next to this file (`SK=<this dir>/scripts`). Run all of them from `<videos_dir>/edit/`.
Sources are never modified; outputs go to `<videos_dir>/` as `<Name>_v1.mp4`, `_v2.mp4`… (never overwrite a version the creator has already seen without saying so).
## 0. Setup (per project)
1. `ffprobe` every source. Write `edit/config.json` (schema in `scripts/cfg.py` docstring): source keys → paths, `speed` (default 1.2), `fps` = source fps.
2. Transcribe word-level. Prefer ElevenLabs Scribe (video-use helpers); if your Scribe quota is out or you have no key, `python3 $SK/transcribe_local.py` (whisper.cpp large-v3-turbo; `-mc 0` kills hallucination loops; model path overridable with `WHISPER_MODEL`). Word timing is looser → always confirm cuts with `probe.py edge`/`hear`.
**whisper.cpp offsets drift by up to ~7 s after long silences / retakes** (on a real edit, words listed at 241–248 s were really silence). Don't cut on word times: after drafting ranges, run `python3 $SK/islands.py` (speech islands by energy, each re-transcribed alone → reliable text↔time) and pick keep-ranges from `python3 $SK/isl_show.py B:328:430`. "Thank you." / "Bye." islands are usually game clicks / noise.
3. Read the full transcript and contact sheets of every source (`ffmpeg -vf fps=1/20,scale=320:-1,tile=8x6` for >30-min files). Note per segment whether it is face-cam or screen, and where the creator's face bubble sits on screen recordings (left/right, y range) — graphics placement depends on it.
4. Disk: check `df -h` first. A 20-min 1080p60 edit needs ~5 GB (segs ~0.6 GB + concat + final + overlays); warn the creator if <15 GB free.
## 1. Plan → get approval (never skip)
Present a plain table: **what is removed and why** (retakes, outro takes, dead air, rambles), **new structure** with chapters, estimated length, graphics plan, audio plan. Ask only what changes the edit (music? sponsor real or not? keep any moment? which contact email goes on the plug card?). Wait for approval.
- Deliver the plan + storyboard as a **local HTML file opened in the browser** (`open edit/plan/edit_plan.html`, plus a full-page PNG). A local file always opens; a hosted artifact link may not be reachable for the creator — don't rely on it.
- Storyboard = mock frames composited on real frames from the footage (cards at their real positions), plus palette, type and motion rules.
- **Colour: show 4–5 palette options on the same 4 frames before building.** A default tomato/"Claude orange" accent was rejected on a real edit; the pick was "Forest & Brass": forest #2F5D46, brass #C49A2C, paper #F5F3EC, ink #1C211D (now the default in `assets/gfx/base.py`). Also offer one palette matched to the product's own brand (scrape its site colours/fonts). Default taste: avoid purple/blue/black "AI" looks.
Retention structure that worked — see `references/retention.md` (hook rules are there; read before writing the hook):
- Hook (≈10s) sets up the challenge + stakes but **never reveals the verdict or result**. No "it's hype", no "can't post it". Don't flash the result (e.g. the v5 video) in the hook.
- Chaptered body; plug (consulting/sponsor) after the first value chapter, not at minute 2.
- Re-hook lines on chapter cards before each reveal; verdict near the end; single-take outro.
## 2. Cut (EDL)
`edit/edl.json` = ordered list of `{id, src, start, end, cuts?}` (source seconds). `cuts` removes ranges inside a segment (pauses, "Claude" asides, repeated phrases). Rules:
- Snap every edge into a real gap: `python3 $SK/probe.py edge B 1370.15 1466.4` (cut inside the blank part of the bar).
- After choosing cuts, **listen via transcription**: `python3 $SK/probe.py hear B:983.3:988.9 …` — each clip must read as a complete sentence. This is what catches "short form ___" missing words.
- Run `probe.py gaps` on every kept range; cut internal silences ≥0.45s (keep ~0.15s air).
- One take per line. Never stitch an outro/sentence from several takes (jump cuts + truncated sentences).
- Drop "funny" off-topic moments unless the creator asked to keep them; ask if unsure.
- Never use freeze-frames to hide a reveal — end the clip earlier.
- `python3 $SK/probe.py where 6:29` maps any output timestamp the creator quotes back to segment + source time.
- Write keep-ranges in `edit/edl_src.py` and build with `python3 $SK/build_edl.py` (edge padding, silence cuts, talking-head ranges split into their own segments with alternating 1.0/1.1 zoom so jump cuts look like a second camera). Silent gameplay → `{"mute":1,"speed":3-4,"raw":1}` fast-forward segments (keep each ≤ ~9 s; add a whoosh + "▶▶ 3×" chip, otherwise QA flags dead air). Gameplay with live commentary → `{"maxgap":1.2}` so the game doesn't jump-cut every pause.
- Remove content contradictions too (e.g. "Qwen did it in one shot" vs later "Qwen took multiple iterations") and spoilers said before the reveal ("not much better than Qwen" before Qwen is shown).
- Move tips/learnings to where they belong in the story (e.g. a tip recorded at the end → the "what I changed" chapter); say so in the plan.
## 3. Graphics (HyperFrames → VP9 alpha webm)
Copy `assets/gfx/` to `edit/gfx/` (base.py tokens/fonts, comps.py + ink.py component libraries, render_all.py, tm.py timing helper, preview.py) and write `gfx/project.json` from `project.example.json` (product, chapters, title card text, and the plug card's `contact_email` etc. — never hardcode contact details in the component files). `tm.py` needs the skill scripts: `export YTLF_SCRIPTS=$SK` or copy `$SK` to `edit/sc/`. GSAP loads from a pinned CDN URL (see `base.py`); for offline renders put `gsap.min.js` into `gfx/assets/`. Set the chosen palette tokens in `gfx/base.py`. Write `gfx/plan.py` that places components with word-synced times and writes `gfx/manifest.json` (`overlays`, `sfx`, `clips`, `total`). With islands, time words via `tm.W(seg_base, "phrase from island text")` / `tm.T(seg_base, src_t)` (more reliable than `tl.w`). Details + component list: `references/graphics.md`.
- **Before the full render, preview ~20 overlays composited on the real frame** (`python3 gfx/preview.py name:offset …` → `verify/prev/`) and fix placement.
Hard-won rules:
- Render overlays to **webm VP9 alpha** (ProRes 4444 mov = ~2GB each, filled the disk). `render_all.py` does mov→webm and deletes the mov.
- Decode overlays with `-c:v libvpx-vp9` or alpha is lost.
- **Never cover what the creator shows on screen.** Cards go only on empty regions: the tweet's image/logo area, an unused side column, an empty game tank, the browser chrome/top bar. On face-cam shots, cards sit on the empty wall beside the creator (usually x 30–570 at 1920 wide) — measure where the body is. For concept explanations use `ink.cutaway(..., hole=…)`: a full paper diagram with a rounded window that keeps the face bubble visible (measure the bubble rect per recording type). Never zoom screen recordings that have a corner face bubble (it gets cropped).
- Website b-roll: capture real pages with headless Chrome at a tall window (`chrome-headless-shell --window-size=1440,4200 --force-device-scale-factor=1.5 --screenshot`) — a typical browse tool's full-page shot is downscaled and fade-in sections stay blank. Show them in `ink.browser` (zoom 1.6–1.9, short scroll that never reaches blank white areas).
- Counters/numbers must match what's on screen at that moment (tie to the visual, not the spoken word), and stay consistent with the hook.
- Palette: chosen in step 1 (default forest/brass/paper); serif + hand font; no purple/blue/black "AI" look; no tape strips (hidden by default). Keep it consistent everywhere.
- Facts on cards must match the official source, not just the creator's words (e.g. the creator said "5B active"; the launch post says 5.4B; the card shows 5.4B and the difference is flagged to the creator).
- Blur secrets (API keys, emails) with config `blur` boxes.
## 4. Render
1. `python3 gfx/render_all.py` (parallel 4; ~30-60 min full set; reruns only changed comps). It ends with a **duration check**: a killed/timed-out HyperFrames render leaves a short webm that silently drops the overlay mid-segment (on a real edit: an 18 s webm for a 28.7 s cutaway). Delete and re-render every mismatch. The machine can get overloaded (load 70) → renders time out; re-run the failed ones alone. Don't wait on `pgrep -f render_all.py` loops (they match themselves); wait on a PID.
2. `J=5 python3 $SK/render_segs.py` → `segs/<id>.mov` (speed, cuts, zoom, blur, overlays, 30ms fades). Use `-f` to force.
3. `python3 $SK/sfx.py` (procedural accents only; no music unless asked) → `python3 $SK/assemble.py ../<Name>_vN.mp4` (stream-copy concat, voice chain, −14 LUFS).
Voice to match a reference creator: download the reference audio with yt-dlp, `python3 $SK/voice_match.py voice_ref/ref.wav segs/voice_raw.wav`, render 20s A/B previews (current / matched / stronger, same picture) and **let the creator pick before the full render**. When `voice_ref/chain.txt` exists, assemble.py runs DeepFilterNet (`dfn.py`) + that chain automatically.
Voice: assemble.py runs DeepFilterNet (`DFN_ATTEN` default 18) + `voice_ref/chain.txt`; without a reference, write a gentle chain there (HPF 80, −2.5 dB @250, +2.5 dB @3.4k, light de-ess, 2.5:1 comp). sfx.py gains are low (whoosh .12, pop .10); never music unless asked.
Echo fix: if the creator played a clip on speakers while recording, `python3 $SK/echo_fix.py --detect C 600 608`; if echo, splice the clean file in: `python3 $SK/echo_fix.py C clean.mp4 597.2:614.2 …` and set `audio_patch` in config.
## 5. QA — required before saying "done"
`python3 $SK/qa.py ../<Name>_vN.mp4` then **act on every flag** and look at **every** sheet. The long-pass whisper transcript drops/doubles words ("I felt it was best model", "it it"); before fixing such a flag, re-hear that output clip (`ffmpeg -ss … -to …` + whisper-cli) and the source — only real cut errors get fixed. Checklist and how to judge flags: `references/qa.md`. Report honestly: list what was checked, what was fixed, and anything you could not verify (you cannot hear — say so for subjective audio). Never call something "verified" that no check covered.
## 6. Thumbnail + metadata (after QA passes)
Use the `yt-thumbnail-longform` skill (install it from this repo) — read its `SKILL.md` and follow it. In this pipeline:
- Mine the face from the footage you already have: run its `face_frames.py` on the talking-head ranges from `edl.json` (curious/surprised frame beats a smiling photo).
- The thumbnail asks the same question as the hook; never the verdict (same rule for title, description line 1, pinned comment, chapter names).
- **Chapters, titles and description come from the whole final video**, not the chapter cards: build a timestamped transcript of the final output (`verify/qa/words.json` → sentence lines) and read it end to end first. Chapter times via `seg:` refs in meta.json; content-based lists may run 8–15 chapters.
- Then write `meta.json` (text per publish-rules.md) and build the file from the real cut: `python3 $SK/metadata.py meta.json --out "<upload folder>/youtube_metadata.md"` (chapters timed from `tl`, rules validated), then run `verdict_check.py` from the yt-thumbnail-longform skill (`../yt-thumbnail-longform/scripts/verdict_check.py <that file> <thumb.html…> --hook <first-15s transcript>`) and fix every hit.
## Iterating on review notes
Review notes come as output timestamps. For each: `probe.py where`, fix in edl/plan/config, re-render only affected segments (overlays move when timing shifts → re-run plan.py + render_all.py; it skips unchanged). Then re-run qa.py on the new file before replying.
## Publish rules
Title, description, chapters, hashtags, tags, pinned comment, cards, captions, community tab, WhatsApp and publish time all follow the yt-thumbnail-longform skill's `references/publish-rules.md` (`../yt-thumbnail-longform/references/publish-rules.md`; single source, edit rules there). Run its `verdict_check.py` before showing the creator.
Files in this skill
- README.md
- SKILL.md
- assets/font-licenses/Caveat-OFL.txt
- assets/font-licenses/InstrumentSerif-OFL.txt
- assets/font-licenses/JetBrainsMono-OFL.txt
- assets/font-licenses/Manrope-OFL.txt
- assets/gfx/assets/InstrumentSerif-Italic.ttf
- assets/gfx/assets/InstrumentSerif-Regular.ttf
- assets/gfx/base.py
- assets/gfx/comps.py
- assets/gfx/ink.py
- assets/gfx/preview.py
- assets/gfx/project.example.json
- assets/gfx/render_all.py
- assets/gfx/tm.py
- references/graphics.md
- references/qa.md
Attribution
Related skills
View all in content-marketing →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.