edit
Edit a long YouTube video (or a reel) in code from the creator's voiceover - word screens, website and app screens with markers, b-roll, GIFs and memes, versus cards, bars, gauges, flows, node diagrams, maps, re-created chats and terminals - in their own design system, rendered with HyperFrames. Use when the creator says "edit this video", "make the edit", "build the video", or drops a voiceover and assets for a new video.
How do I install this agent skill?
npx skills add https://github.com/mohcen56/ytb-edit-kit --skill editIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill automates video editing using the HyperFrames engine. It coordinates local file processing, script execution, and rendering workflows. It can run commands on the host system and execute Node.js packages, so ensure the execution environment is isolated.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Edit a video
Engine: HyperFrames (HTML → MP4, run with npx hyperframes). The kit in tools/edit_kit/ writes the HyperFrames project by default; only invent a new custom motion graphic (as a new kind in tools/edit_kit/kinds.py, using theme.py tokens) when the existing kinds in KINDS.md genuinely don't fit the beat. HyperFrames and its own skills are installed by the creator from the source (github.com/heygen-com/hyperframes); this kit never installs them. If npx hyperframes or its skills are missing, stop and send the creator to that link. With earshot installed, use it to pick sound effects and check the final mix.
Before anything
- Design system check. If
brand/design.jsondoesn't exist, first look for a brand they already made elsewhere in the project (the "find a brand they already made" steps in thedesign-systemskill). If one is found, import it and carry on with the edit; never ask them to do the grill again. Only if nothing is found, stop and suggest it before editing: "You don't have a design system yet, so this edit would use the kit's neutral default look (off-white, black text, one blue accent). Want to build yours first? It takes about 10 minutes and every video after uses it." Then:- Yes → run the
design-systemskill, then come back to the edit. - No → edit in the neutral default (
build.pyuses it automatically) and remind them once at the end thatbuild my design systemmakes it theirs. With a design system, every colour and font comes from it. Checksfx/has a file for each sound the shots use; if some are missing, tell the creator before building (the edit would have no sound there).
- Yes → run the
- Read the script and ask what's unclear (which screen a line means, which file, what text). Never guess: ask with options.
- Ask about GIFs & b-roll: Explicitly ask the creator if they want to add GIFs or b-roll for punchlines and mood. Either let them drop their own files in
assets/, or offer to find/fetch royalty-free clips (only with their go-ahead, and only media they have the rights to). Gather all remaining assets with them (screenshots, screen recordings, logos).
Steps
python tools/edit_kit/new_video.py videos/<name>→ put the voiceover inaudio/voice.mp3, files inassets/.- Word timings:
cd videos/<name>/audio && python ../../../tools/transcribe.py voice.mp3 ../script.txt, thenpython ../../../tools/tighten.py(cuts long pauses, evens loudness). - Write
videos/<name>/shots.py: one shot per visual change, kinds and options intools/edit_kit/KINDS.md. python tools/edit_kit/build.py videos/<name>: read its warnings and fix them.- Beat plan first:
python tools/edit_kit/storyboard.py videos/<name>and show the creatorstoryboard/storyboard.jpg(one still per shot with its words). Wait for their go. Change shots they flag, rebuild, show again. - Render:
cd videos/<name>/project && npx hyperframes check && npx hyperframes render . -o ../renders/<name>_v01.mp4. Never overwrite a render: bump v02, v03. - Check the render yourself before showing it:
- Run scene detection (
ffmpeg -i <render.mp4> -vf "select='gt(scene,0.25)',showinfo" -f null -) vs your planned cuts so no unplanned cuts slip in. - Grab frames
±0.06 sat every cut and source-clip edge (not just a 1 fps contact sheet) to catch OBS/pop-ups, taskbars, browser chrome, or white frames. - Grab a frame on every boxed text, labeled diagram, and highlight/marker to verify nothing overlaps, text fits centered in its box, and every highlight sits on its exact target.
- Run
python tools/edit_kit/final_check.py videos/<name> videos/<name>/renders/<name>_v01.mp4(re-transcribes the render: no sound may hide a word; prints loudness). Fix, re-render, then hand it over with what changed.
- Run scene detection (
Default rules (the creator can change any of them in brand/design.md)
Pace and structure
- Something new on screen every 2-3 s. No dead time, no shot over ~4.5 s unless it's a screen recording that shows an action.
- Show the first real result or payoff by ~0:15. Keep drawn explainer scenes short (under ~3 s) and hand over to real visuals or recordings.
- Don't repeat the same block or motion graphic multiple times in a video (e.g. text chips, the same chart, or the same diagram layout). Vary per beat, and only repeat a graphic when it's necessary to track progress (like a step-by-step map or roadmap). No chip-only screens on an empty background.
- A new beat in the voice gets a new visual. Reveals wait for the voice: every graphic lands on its word (the kit snaps to word onsets).
- Visuals are literal: show the exact thing the line says (the real page, the real app, the real number). Only real names, dates and numbers on screen.
- On-screen text uses the creator's exact script words, never a paraphrase. Big-word screens are rare (3-4 per video).
- The hook shows the result or the problem in the first seconds. No intro card.
Layout and clean frames
- Nothing overlaps: no text, label, or icon may sit on top of or under another element (a node, line, card, cursor, or frame edge). Leave clear space around every label.
- Text always fits its box, centered: every label, pill, button, and card holds its whole text with even padding. Size boxes from the text, never a fixed width that text can outgrow.
- Keep text above the bottom 30% of the frame (
y <= 760on 1920×1080) so the YouTube player bar never covers it. - Never show taskbars, OBS/Snipping Tool pop-ups, account choosers, emails, or bookmarks bars. Crop browser chrome off.
Screens
- Show whole windows, not tight crops. One smooth zoom in, hold, zoom out per shot, never slow drifting zooms.
- No zoom unless it lands on the exact prompt, button, or text being said (and keep the whole target in frame).
- Screenshots stay still unless a move is planned.
- One marker per screen, only on the exact thing the line names.
- Mix framed and full screen: framed when an action must read, full screen for mood.
B-roll, GIFs, memes
- No text on b-roll: full-screen b-roll plays clean, with no captions, stamps or labels on top. If a line needs words on screen, give it its own shot.
- B-roll full screen unless the quality suffers. The same clip at most twice per video (another angle counts as new).
- GIFs sit straight (no 3D tilt). Never stretch a short GIF to fill a slot: chain another one.
- Captions under memes use the creator's words.
Explainers
- Never the same chart type in two shots in a row. Bars and meters: real numbers only.
- Diagrams show only what the line says; one idea per diagram.
- Maps: the hub shows the whole video with the current item in focus; give other levels their own layout (flow, nodes).
Sound
- Follow the music rule in
brand/design.md. - A sound only where something visibly changes, under the voice, one at a time, never stacked (the kit enforces a 0.35 s gap). Only the creator's own files in
sfx/(names: click, whoosh, pop, ding, typing, error, hit, boom, scratch).
Never
- Flashy preset transitions (spins, glitches, star wipes), shaky cam, flashing, more than one animated element entering at once.
- Clips cut from another creator's video.
After the creator's notes
Write each note they give as a dated rule in brand/design.md (so the next edit starts with it), then rebuild only what changed.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/mohcen56/ytb-edit-kit/edit">View edit on skillZs</a>