Logo: Hook Variations

Hook Variations

Communautéit
mrpaidsocial
hook-variations

Kombinéiert ENG fäerdeg Haaptsequenz mat VILLE Hook-Clips, fir pro Hook een eenzele Video ze produzéieren — d'A/B-Hook-Serie, déi Dir als separat Reklammeclips eropluet. Benotzt dës Skill, wann een „füügt all dës Hooks zu dëser Haaptsequenz bäi“, „kombinéiert dëse Video mat all Hook aus deem Dossier“, „maach 21 Versioune mat verschiddenen Ufäng“, „wiessel den Hook aus“, „erstellt Hook-Varianten“, „test dës Hooks mat därselwechter Haaptsequenz“ seet oder eng Haaptvideodatei zesumme mat engem Dossier voller Hooks iwwerreecht an N fäerdeg Videoen erwaart. Benotzt se och fir datselwecht Konzept mat anere Bezeechnungen: Intro-Varianten, Ufankstester, Cold-Open-A/B-Sets oder fir eng bestehend Serie vu Varianten mat engem NEIE Schnëtt vun der Haaptsequenz nach eng Kéier ze produzéieren. Setzt d'Clips ouni Qualitéitsverloscht zesummen (d'Frames vun der Haaptsequenz bleiwen bitidentesch), passt d'Lautstäerkt vum Hook un déi vun der Haaptsequenz un, sou datt de Wiessel net opfällt, a kontrolléiert d'Resultat mat AVFoundation, well eng Kontroll nëmme mat ffmpeg de Freeze vum Parameter-Set net erkennt, deen dozou féiert, datt dës Dateien a ffmpeg richteg ofgespillt ginn, a bei QuickTime hänke bleiwen. NET benotze fir een eenzege Video z'änneren, Ënnertitelen derbäizesetzen oder d'Hooks aus enger méi laanger Opnam erauszeschneiden.

Add to TypingMind

Iwwersiicht

Editeurmrpaidsocial
Repositorymrpaidsocial-video-editor-agent
Skill-Nummhook-variations
Stären
114
Forks
34
Matgeliwwert Dateien
7
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    mrpaidsocial huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hook Variations an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/hook-variations
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent.git /tmp/mrpaidsocial-video-editor-agent
mkdir -p .claude/skills
cp -r /tmp/mrpaidsocial-video-editor-agent/.claude/skills/hook-variations .claude/skills/hook-variations
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hook Variations an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hook Variations automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hook Variations net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

hook-variations — one body × N hooks

You have one finished body cut and a folder of hooks. You are producing one standalone video per hook, each good enough to upload as its own ad creative.

The join itself is four lines of ffmpeg. Everything in this skill exists because the obvious four lines produce files that look correct in every tool you would naturally reach for and are broken on the user's disk. A hook batch has been delivered broken before, after passing a thorough QA pass, because the build and the QA used the same decoder.

Shape of the deliverable

hook → body, hook first. The hook is the scroll-stopper; the body is the payload that does not change between variants.

Before you build, read the body's first few seconds. Bodies often open with their own bridge line ("I'm about to show you the easiest way…"). That is usually a transition into the payload, not a competing hook, and it should stay — but it is the user's call, so say which way you read it and offer the alternative in one line rather than silently trimming. Never cut body content to make the join feel tighter without asking.

Do this in order

1. Pre-flight — always, it takes ten seconds

bash
python3 scripts/probe_join.py --body <cut.mp4> --hooks <hooks/>

This prints, per hook: geometry, timebase, audio-tail overrun, whether its avcC matches the body, and its loudness delta — plus what the build will have to do about each. Read it before building. Every trap below shows up in that table, and it tells you whether the hooks can be stream-copied (free, lossless) or need a re-encode.

If geometry differs (resolution, fps, pix_fmt), stop: these are not drop-in hooks and scaling them is a separate decision to raise with the user.

2. Build

bash
python3 scripts/build_variants.py --body <cut.mp4> --hooks <hooks/> --out <variants/> \
  --preset slow --crf 18            # match how the BODY was encoded

--preset/--crf matter only for hooks that need re-encoding, and they must match the body's own encode. Find them in the body's build script or ask; guessing produces a parameter-set mismatch, which the build refuses to mux (see trap 3).

Writes the variants plus variants.json (the manifest every later step reads).

3. Verify — the step that is not optional

bash
swiftc -O scripts/avtest.swift -o scripts/avtest     # once per machine
python3 scripts/verify_variants.py --body <cut.mp4> --hooks <hooks/> --out <variants/>

Do not report success off the build's own "OK" lines. See Why ffmpeg cannot sign this off below — this is the single most important paragraph in the skill.

4. Name them

Route through the naming-convention skill. Variant batches are unusable when every file is ad-v5-hook-07.mp4; the filename has to carry what differs. That skill also covers the trap of inheriting a wrong subject label from an upstream cut list.

5. Deliver

Route through video-review-canvas, and lead the reply with the URL. For a batch, publish 720p proxies rather than the masters — a set of 21 two-minute 1080×1920 masters is well over a gigabyte and too heavy to publish, while the canvas exists to judge the cut and the seam.

bash
python3 scripts/build_review.py --out <variants/> --version v1 --map <subjects.json>

--map is the naming-convention subjects file, which gives each card a real title ("Lookalike sunglasses · Lego-style ad") instead of "Hook 20". Each card also prints the master's filename, so canvas ↔ disk is a direct match when a reviewer says "number 7 is the one". Proxies that already exist are skipped, so re-running after a rename costs seconds. Bump --version every round: it stamps the proxy filenames, and without that the browser serves the previous cut from cache and you get "why isn't the new one there?".


The four traps

Three of these fail silently. That is what makes them worth knowing rather than rediscovering.

1. Timebase — the concat demuxer does not rescale the second file

It takes its output timebase from the first file. Hooks at 1/15360 in front of a body at 1/30000 stretch the body's timestamps by 1.95× — a 121-second file that reports 236s and 15.36fps. No warning. Fixed by remuxing both to a common timescale.

2. Audio overrun — the offset comes from the container, not the video

AAC frames are 1024 samples, which never lands on a 30fps boundary, so a hook's audio routinely runs tens of milliseconds past its last video frame. The demuxer offsets the next file by the container duration, so the body starts off the frame grid and stays lip-sync drifted for its whole length. Doing the video pass video-only fixes this at the root: a video-only container's duration is its video duration.

Also pin duration in the concat list to the hook's exact frames/fps. Some mp4 muxers write a track duration derived from a millisecond-rounded value (e.g. 801990 ticks instead of 802000), which starts the body a third of a frame early. That directive is only trustworthy once both files share a timebase — with a mismatch it compounds the offset instead of setting it, which makes it look like a dead end if you try it too early.

3. Parameter sets — the one that ships broken

If the hook and body were encoded with different settings, they carry different SPS and PPS. An mp4 avc1 track holds exactly one avcC, and concat writes the first file's.

ffmpeg plays the result perfectly, because it honours the in-band SPS/PPS the demuxer inserts at each IDR. AVFoundation — QuickTime, Finder, Photos, most upload validators — ignores in-band parameter sets in an avc1 track and reads only avcC. So the hook plays and the picture freezes on the body's first frame while audio runs on.

The fix is to make both halves share one parameter set. Re-encode the hook, not the body: the hook is short and the body is the long, approved, quality-critical half. Matching the body's preset/CRF/pix_fmt gets the PPS and level to agree; setsar=1 is usually the last byte, because a body that signals square pixels explicitly (aspect_ratio_info_present_flag=1) will not match a plain re-encode that omits it.

There is a tell you will probably see before the freeze: framemd5 over -c copy reporting exactly the keyframes as changed. That is the demuxer inserting parameter sets mid-stream. It is easy to read as "correct and required" and move on — it is in fact the symptom. If two halves need different parameter sets inserted at a boundary, one avcC cannot describe both. Go read avcC.

4. Loudness — hooks are usually much quieter than the body

Hooks cut straight from a raw mix commonly sit 10–20 LU below a body that has been through a loudnorm pass. Joined raw, every variant is a hook you can barely hear followed by the body arriving at full level. Match each hook to the body's integrated LUFS.

Two things about doing that:

  • loudnorm:linear=true cannot do it when the lift is large. A +15 dB lift would put peaks above 0 dBTP, so linear mode caps the gain to protect the ceiling and lands several LU short. Static gain then a limiter reaches the target; the limiter only touches the loudest transients.
  • alimiter limits sample peaks, not true peaks. Inter-sample peaks overshoot it, so a ceiling of −1.0 dBFS has shipped files at −0.1 dBTP, hot enough to clip in a platform transcode. The default here is 0.79 (−2.05 dBFS), which lands around −1.1 to −1.6 dBTP.

Why ffmpeg cannot sign this off

A set of variants once passed all of this: every frame decoded, pixel-identical to source, constant 30fps, zero audio lag, loudness verified. And every file froze after the hook in QuickTime.

The build used libavcodec. The check used libavcodec. libavcodec is the most permissive decoder in the chain, and it papers over exactly the defect that was present. A check that shares a blind spot with the thing it checks proves nothing — the failure was found by the user pressing play, which is the worst possible QA loop.

So verify_variants.py shells out to avtest, a small Swift AVAssetImageGenerator probe, and decodes 12 points across every file with AVFoundation. It also asserts the file's avcC equals the body's. Those two checks are the only ones that would have caught it. Build avtest once per machine with swiftc -O scripts/avtest.swift -o scripts/avtest; if it is missing, the verifier reports the probe as a FAILURE rather than quietly skipping it.

The generalisation is worth carrying beyond this skill, and it is the repo's own rule in a sharper form: verify in the medium the user will consume, with a different tool than you built with.

Two more things that will bite

Workers do not inherit module globals. ProcessPoolExecutor uses the spawn start method on macOS, so each worker re-imports the module with its own argv — CLI flags are gone there. A verifier that read its paths from globals had all five workers fall back to defaults and check a different folder while the parent printed the labels you asked for: 21 confident "ALL PASS" lines about files nothing had opened. Caught only because a frame count came back 3 short. verify_variants.py passes config into the worker as arguments and prints the folder and body under test at the top of every run — if that header does not name what you meant, stop.

Properties inherited from the body are not yours to fix silently. A body whose audio ends before its picture (or vice versa) will hand every variant the same quirk. Pad to hold sync, then say so — e.g. "the last 2 frames are silent, that comes from the body, want the tail trimmed?" Do not quietly alter the body's own timing to tidy it up.

Re-running against a new cut of the body

Common: the body gets a revision and the whole batch is rebuilt. Everything is parameterised, so it is the same commands with a different --body and --out. Keep each body's variants in its own folder and keep the old set unless told otherwise — these are usually net-new creatives, not replacements.

Do not assume a new body cut matches the old one's encode. probe_join.py on the new body answers it in seconds, and the answer decides whether hooks can be copied or must be re-encoded.

Files

PathWhat it is
scripts/probe_join.pypre-flight compatibility table: geometry, timebase, audio tail, avcC, loudness
scripts/build_variants.pythe build; copies hooks that already match, re-encodes those that do not
scripts/verify_variants.pyfull verification incl. the AVFoundation probe and avcC assertion
scripts/avtest.swift30-line AVFoundation decode probe (swiftc -O it once per machine)
scripts/build_review.py21-up gallery review canvas from variants.json
assets/canvas_template.htmlthe canvas page (per-variant comment box, timeline stamping)
assets/data.jsonhere.now Site Data manifest that turns on the per-variant comment store

Related skills: naming-convention (name the batch), video-review-canvas (deliver it), edl-tighten (if the hooks themselves still need cutting out of a longer recording).

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Hook Variations?

Kombinéiert ENG fäerdeg Haaptsequenz mat VILLE Hook-Clips, fir pro Hook een eenzele Video ze produzéieren — d'A/B-Hook-Serie, déi Dir als separat Reklammeclips eropluet. Benotzt dës Skill, wann een „füügt all dës Hooks zu dëser Haaptsequenz bäi“, „kombinéiert dëse Video mat all Hook aus deem Dossier“, „maach 21 Versioune mat verschiddenen Ufäng“, „wiessel den Hook aus“, „erstellt Hook-Varianten“, „test dës Hooks mat därselwechter Haaptsequenz“ seet oder eng Haaptvideodatei zesumme mat engem Dossier voller Hooks iwwerreecht an N fäerdeg Videoen erwaart. Benotzt se och fir datselwecht Konzept...

Firwat Hook Variations op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hook Variations besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hook Variations an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/hook-variations an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hook Variations benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hook Variations benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hook Variations domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hook Variations gratis?

mrpaidsocial huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇