Premium Edits
You are the editor and the director. HyperFrames (the hyperframes plugin by HeyGen) builds and renders; FFmpeg cuts and measures; this skill decides what the edit is. Read /hyperframes (its contract) before building, and use its sub-skills for the mechanics this file points to.
0. Setup check (once per machine)
On first use, or when the person says "set up", "what do I install" or "I don't remember the steps": follow references/first-run-setup.md before touching footage. Check the computer yourself, show what is ready and what is missing (FFmpeg, Node.js, Git, the Claude command line, uv, the HyperFrames and GSAP plugins), and install only what is missing, asking before each one. Do not start an edit while FFmpeg, Node.js or HyperFrames is missing.
ffmpeg -version && ffprobe -version # required
node --version # 22+ required
- HyperFrames plugin installed (
/hyperframes:hyperframesor/hyperframesloads). If not:claude plugin marketplace add heygen-com/hyperframesthenclaude plugin install hyperframes@hyperframes. - Telemetry: HyperFrames asks to send a usage note. For client work, say no, or set
HYPERFRAMES_NO_TELEMETRY=1. - Client footage is confidential: never upload it to a cloud service (HeyGen, cloud render, transcription APIs) unless the person says so. Local tools first.
- Python 3.12 +
uvfor the transcription fallback (scripts/transcribe.py). - When something fails (plugin add times out, the plugin pins a CLI version npm doesn't have yet,
whisper_unavailable, a stuck model download, a Windows Application Control block, a registry timeout, "not recognized" after an install), readreferences/troubleshooting.mdbefore improvising. Never weaken a security protection to get past an error.
0.5 Workspace: one main folder, three folders inside
At the start of the first job (or when no workspace exists), tell the person to create, or offer to create for them, one main folder for the client with three folders inside:
<Client or Channel Name>/
├── raw/ ← the person drops the footage here: talking head, screen recordings, B-roll, logos, music they own
├── reference/ ← videos or links of edits they like + preferences.md (what you learn about their taste)
└── export/ ← only finished renders you deliver (and their .srt, thumbnails, carousel slides)
Say it in one short message, e.g.: "Make one folder for this client (for example Desktop\AcmeEdits) with three folders inside: raw (put your videos here), reference (put videos you like the style of), export (I'll put the finished videos here). Tell me when the footage is in raw."
Rules:
- Use the folders the person already made, as they named them (e.g.
raw vedio,refrence,export): never rename or recreate them. Only create missing ones, and only when asked or offered. - raw/ is read-only for you: never edit, re-encode over or delete the originals. Cut and convert copies into the working project.
- Working files (HyperFrames project, transcripts,
.analysis/,EDIT_PLAN.md) go in a hidden.work/<job-name>/folder inside the main folder, so the three visible folders stay clean. - export/ gets only deliverables, named
YYYY-MM-DD_<title>_<16x9|9x16|4x5>_v<N>.mp4. Never overwrite an earlier version: bumpv<N>. - reference/:
- A reference video: analyse it like footage (
scripts/analyze.mjs+ contact sheet + transcript) and write down its style (caption style, card style, pacing in cuts per minute, transitions, grade, music energy, SFX use). To rebuild one closely use/reverse-any-video(only videos the person has the right to use as a reference). reference/preferences.mdis the client's style memory (references/preferences.mdhas the template). Read it before every job. Update it after every job and after every piece of feedback ("captions too big", "I love the yellow highlight", "less zoom"): what they liked, what they rejected, exact values (fonts, hex colours, caption size, pause length, music volume). Tell the person in one line what you added.- If
preferences.mddoes not exist yet, create it from the template with the answers from the intake block and anything you learned from the reference videos.
- A reference video: analyse it like footage (
1. Intake: pin the job in one block
Before touching footage, write this block (ask only for what you cannot infer; otherwise use the defaults):
FORMAT: long-form | short | long→short | podcast | explainer | ranking | carousel | saas (references/formats.md)
SOURCE: files, length, resolution, fps, cameras (ffprobe)
OUTPUT: aspect + size (16:9 1920×1080 | 9:16 1080×1920 | 4:5 1080×1350 | 1:1), length, fps, count of clips
STYLE: caption style, brand colours (hex), fonts, energy (calm | conversational | hype)
EXTRAS: music? SFX? grade? B-roll/screens provided? logo? CTA/end screen?
PLATFORM: YouTube | Shorts | Reels | TikTok | LinkedIn | Instagram feed
Defaults when the client says nothing: conversational energy, white bold captions with one accent colour, light clean grade, music bed under 15 % of voice, SFX only on visible actions, −14 LUFS for social, −16 LUFS for podcasts.
2. Analyse the footage (always, before deciding anything)
node <SKILL_DIR>/scripts/analyze.mjs raw/<video> --out .work/<job>/.analysis
It writes report.json (duration, fps, resolution, audio loudness, every silence, every scene cut) and contact/ (one frame every N seconds plus a contact sheet). Then:
-
Transcribe with word timings:
npx hyperframes transcribe <file> --model small.en --json(English) or--model small --language <code>. Read it; a failed transcript (nonsense, ♪ spam) is retried withmedium.en. If it reportswhisper_unavailable, or the Parakeet model download stalls, use the on-device fallback:uv run --no-project --python 3.12 --with faster-whisper==1.1.1 --with requests \ python -I <SKILL_DIR>/scripts/transcribe.py .work/<job> <clip1> <clip2> ...Whisper word times drift 0.1-0.3 s around pauses and can double a word: use them for what is said, not where to cut (section 3).
-
Look at the contact sheet (read the PNG). Note per stretch: face framing (close/medium/wide), where the face sits (left/centre/right, top of head y), screen recordings, B-roll, lighting problems, and burned-in captions or text.
-
Burned-in captions (common in AI-generated or app-recorded clips): never stack your captions on top of them. Use the stacked layout: the video fills a stage at the top of the 1080×1920 frame (about the top 1310 px, cropped just above the highest burned text across all clips, i.e. its top edge in output pixels minus ~30 px), and a brand panel fills the rest (step tracker, big rule number). Your captions and cards sit over the video inside the safe zone. Verify with snapshots at the exact source times the burned text appears.
templates/build-short.mjsis a working build of this layout. Tell the client to record without on-screen captions next time. -
Write
EDIT_PLAN.md(section 4) from transcript + report + what you saw.
3. Clean the talk: silences, fillers, retakes
Follow references/silence-and-cuts.md. Short version:
- Remove dead air over the threshold for the format (talking head 0.35-0.5 s kept pause, podcast 0.7-0.9 s, explainer 0.4 s).
- Remove fillers (um, uh, erm, "you know", "like" as filler only), false starts and retakes (same sentence said twice: keep the last clean take).
- Never cut mid-word; pad every kept segment 40-80 ms; crossfade audio 10-20 ms at each cut so there are no clicks.
- Hide jump cuts: alternate punch-in scale (100 % → 110-118 %) on every other cut, or cover the cut with a graphic, B-roll or a screen.
- Cut on the pause map, not on transcript times:
node <SKILL_DIR>/scripts/cutlab.mjs pauses <clip>(−28 dB, ≥ 0.06 s). For a stutter or repeated word, find the dip between the words withcutlab.mjs energy <clip> <from> <to>. - Prove every stutter/retake cut: assemble just that splice (
cutlab.mjs assemble plan.json splice.wav) and transcribe it. Keep the cut only if it reads cleanly; on the first real job the first guess removed "for" instead of the repeated "one". - Caption timing: assemble the whole cut (
cutlab.mjs assemble) and transcribe that file, so every word time is already in output time. - Prep the clips: copy from raw, normalise loudness with two-pass
loudnormto −14 LUFS (social) / −16 (podcast), and re-encode with a keyframe every second (-c:v libx264 -crf 15 -g <fps> -keyint_min <fps>), or seeking freezes. - Other tools: HyperFrames
media-usescripts/transcript-cut.mjs(--remove-fillers,--cut-silence,--remove, run--planfirst and read it), orauto-editorif installed.
4. The edit plan: face vs graphics, beat by beat
This is the part that makes an edit premium. Follow references/face-vs-graphics.md. Each line of the cleaned transcript gets ONE treatment:
| Treatment | Use when the line… |
|---|---|
| FACE (full) | is the hook, an opinion, emotion, a story, a joke, direct address ("you"), a CTA, or a pause for effect |
| FACE + PUNCH-IN | carries the key word of a sentence, a reveal, or hides a jump cut |
| FACE + CARD | names a number, stat, term, name, quote, step or list item (lower third, side card, keyword pop) |
| SPLIT VIEW | compares two things, reacts to something, or shows a screen while the face keeps talking |
| FULL GRAPHIC / MOTION | explains a process, a chart, a timeline, a framework, or a concept with no face needed |
| SCREEN / B-ROLL | says "look at this", "here's my…", names a tool, site, app or product, or describes a place or action |
Rules: the face is the default and the anchor. Never leave the face for more than 6-8 s in long form or 3-4 s in shorts. Never put a card over the face or the mouth. In long form change something on screen every 4-8 s; in shorts every 1.5-3 s. Write the plan as a table in EDIT_PLAN.md: start | end | transcript | treatment | asset/notes.
5. Build it in HyperFrames
npx hyperframes init .work/<job> --skip-skills --skill=hyperframes (no --json on init), copies of the footage from raw/ into its assets/ (never move the originals), one sub-composition per chapter. Apply reference/preferences.md values everywhere they exist; the defaults in this skill only fill the gaps. Then layer, in this order:
- Cut footage track (from section 3) + punch-ins (
references/cards-and-motion.md→ Punch-ins). - Treatments from the plan: cards, lower thirds, split view, PiP, screens, B-roll, full motion graphics (
references/cards-and-motion.md). Search the registry first:npx hyperframes catalog --json//hyperframes-registry. Never hand-build what the registry has. - Captions (
references/captions.md): premium styles, highlight word, emoji/icon only if the brand uses them. - Colour grade (
references/grade-and-sound.md): throughnpx hyperframes media-treatment, never CSS filters. - Sound (
references/grade-and-sound.md): music bed, ducking, SFX on visible actions only, loudness. - Hook + end: frame 0 is the hook (face or result, never black, never a logo) and the hook text is already visible on frame 0 (settle it with a scale punch, never a fade-in from 0); end on a CTA or end screen only if asked.
Effects: read references/effects-toolkit.md whenever the person mentions CapCut, keyframes, motion graphics, stickers, a subscribe or follow button, SFX, pencil art, neon, doodles, textures or "more effects". It maps each ask to templates/fx-kit.mjs, templates/art-kit.mjs, scripts/art.mjs and the sound pack in assets/sfx/. By default a short or YouTube edit gets one subscribe/follow button mid-video, SFX on visible actions, keyframed camera moves on key words and a few motion graphics; pencil, neon and textures when the style or the person calls for them.
For a 9:16 talking-head short in an "N rules / N steps" shape, start from templates/build-short.mjs: it generates the whole composition (segments, punch-ins, wipe and whip transitions, word-pop captions, step cards, progress pills, recap, SFX lanes) from an edit-plan list and the cut transcript. Edit its SEGMENTS, STEPS, HOOK and colours rather than writing the HTML by hand.
6. Check, review, deliver
Follow references/qa-delivery.md:
npx hyperframes check --json- fix every error.npx hyperframes snapshot --at <every card start + mid of every scene>, tile the PNGs into one contact sheet with ffmpegxstack, and LOOK at it: face never covered, captions inside safe zone, text readable, no leftover groups, no burned-in text showing. Send the sheet to the person when they ask what you are doing.- Render:
npx hyperframes renderat the target size. Verify withnpx hyperframes audio <render> --jsonandffprobe: duration, loudness, no black frames at start/end. - Deliver into
export/(naming in section 0.5): file(s), a one-paragraph change log, and what you could not verify (sound is measured, not heard). - Learn: ask for feedback, then update
reference/preferences.mdwith what they liked and what they changed.
Formats (detail in references/formats.md)
- Long-form YouTube - chapters, every 4-8 s a change, cards for every number, B-roll for every named thing, end screen 20 s.
- Short / Reel / TikTok - 1080×1920, hook on frame 0, captions 3-4 words, change every 1.5-3 s, safe zone 288-1248 px vertical and x 120-780 below y 840 (TikTok rail).
- Long → short -
references/long-to-short.md: score moments, cut 20-60 s self-contained clips, reframe to face, new hook line. - Podcast - multicam/speaker switching on who talks, wide shot on laughs/crosstalk, quote cards, audiograms for audio-only.
- Explainer ("today I'll tell you how to grow on YouTube") - promise → steps → payoff; one numbered card per step, full motion for frameworks.
- Ranking video - numbers and titles BEHIND the head (cutout), countdown structure, rank card per item (
references/formats.md→ Ranking). - Carousel -
references/carousels.md: 1080×1350 slides rendered as PNGs from one composition. - SaaS animation -
references/saas.md: product UI rebuilt in HTML or captured, cursor moves, zoom-throughs, feature callouts.
Integrations
| Need | Use |
|---|---|
| Build, captions, cards, render | hyperframes plugin (/hyperframes, /hyperframes-cli, /hyperframes-registry) |
| Music, SFX, voiceover, cutouts, grade, transcripts | /media-use (local tools first; HeyGen only if the client allows sign-in) |
| Sound effects with no account | 19 bundled Pixabay-licensed files (free commercial use) in the HyperFrames plugin at skills/media-use/audio/assets/sfx/ (whoosh, pop, riser, impact-bass, sparkle, click, typing…); see references/grade-and-sound.md |
| On-device transcription fallback, cut maps, splice tests | scripts/transcribe.py, scripts/cutlab.mjs |
| Rebuild a reference edit the client likes | /reverse-any-video (only videos they have the right to use) |
| A series in a proven style | /style-sampling |
| Figma brand kit | /figma |
| Any GSAP animation code inside a composition (tweens, timelines, SplitText, CustomEase, utils) | official GSAP skills (plugin gsap-skills): gsap-skills:gsap-core, gsap-skills:gsap-timeline, gsap-skills:gsap-plugins, gsap-skills:gsap-utils, gsap-skills:gsap-performance. HyperFrames rule wins: one PAUSED timeline per composition, no ScrollTrigger, no repeat: -1 |
| Calm, premium UI motion values (SaaS, cards, carousels) | references/motion-presets.md (cube-motion's four fixed motions, translated to GSAP) |
| Rebuilding a client's real web UI for a SaaS video | shadcn skill: build the screens with shadcn/ui components, then capture or embed them |
| Existing Remotion project, or the client requires Remotion | /remotion-to-hyperframes, or the remotion-* skills. Remotion needs a paid company license for companies above its free tier: check remotion-license before using it for a client |
| Posting finished videos | multi-load-uploader skill, only when the person asks to post |
| Raw cuts, measuring, encoding | FFmpeg / ffprobe |
Never
- Upload client footage anywhere without being told to.
- Cover the face or mouth with a card, caption or graphic.
- Use the same transition, SFX or caption animation on every beat.
- Leave a silence, a filler or a retake the client would notice.
- Deliver without looking at the snapshots and measuring the render.