THE main path of the package. Turn ANY reference (YouTube link, mp4/screen recording, image set, channel, or just a written brief) into an original video in that style and quality, end to end and autonomously - measure, look, classify the video type, collect assets, build (templates or new code), measure the result against the reference, iterate, deliver. Use whenever the user sends a reference or says "analyse this video / make one like this / in this style / benzerini yap / bu tarzda yap", ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Vidbucks Reference To Video?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/eynalliomer-vidbucks-reference-to-video)
---
name: vidbucks-reference-to-video
description: THE main path of the package. Turn ANY reference (YouTube link, mp4/screen recording, image set, channel, or just a written brief) into an original video in that style and quality, end to end and autonomously - measure, look, classify the video type, collect assets, build (templates or new code), measure the result against the reference, iterate, deliver. Use whenever the user sends a reference or says "analyse this video / make one like this / in this style / benzerini yap / bu tarzda yap", or asks for a promo, short, reel or explainer whose look must come from a reference. Works for every type, not only stickman videos.
---
# vidbucks-reference-to-video
Goal: the reference's STYLE and QUALITY level, with the user's own content. The reference decides the route; there is no fixed look. The steps are defaults, not limits.
## Autonomy rules (binding)
- **Do not ask the user for reference images, photos, analysis, tools or "which approach".** Find, analyse, classify and choose yourself; say what you chose in one line.
- Ask ONLY user-owned decisions: language/voice they want, the topic or brand claims when unknown, anything that spends money or touches accounts, publishing.
- CLAUDE.md section 2 applies: the user decides. Reference videos are downloaded for measurement (`tools/fetch_reference.py`); media you put INTO the output defaults to clean (Google Images for viewing only, licensed assets with credits, no private faces / celebrity likeness / third-party logos in what you generate or fetch); whatever the user supplies or asks for is used as given, with the trade-off said once. The user publishes.
- If something is needed that this package has not done before, do it anyway (new Remotion/canvas code, a new tool, media processing) and log the lesson in `knowledge/learned.md`.
## Pipeline (run from `core/`)
1. **Reference in.** Link, file, channel, images or brief. User directions override the reference. Several references: analyse each, merge the measured specs, say which wins where.
2. **Measure.** File: `python tools/analyze_reference.py --file <mp4>` -> `knowledge/references/<slug>/` with `report.md`, `fingerprint.json`, `style_spec.json` (palette roles, cut/brightness/motion curves, transition mix, tempo, sound-hit rate, loudness, route hints), `scene_plan.md`, `sheet.png`. Link: `--link <url>` (metadata, engagement, title skeleton, thumbnail palette, captions, chapters, channel context, scene proposal) AND the video itself: it is downloaded to `<ref>/source/` (`tools/fetch_reference.py`: yt-dlp, then the media-API fallback in `VIDBUCKS_MEDIA_API`; YouTube, Shorts, X, Instagram, TikTok, Reddit, Vimeo...) and measured like a file in the same folder (`link_report.md` keeps the link data). Then run step 2b on `<ref>/source/source.mp4`.
**Download failed (every method)?** Do everything the link allows, in order, without asking for the file: (a) `--link --no-fetch`; (b) a VISUAL PASS in the Browser pane: `resize_window mobile`, open the Shorts/watch URL, `javascript_tool`: `v=document.querySelector('video'); v.pause(); v.muted=true; v.currentTime=T`, then a screenshot at scale 0.3 every ~0.7 s for Shorts (every 2-3 s for longer videos); read the on-screen text, objects, motion, layout positions (as fractions of frame height), palette, font character, scene count; reset the viewport to desktop afterwards. View only: nothing is downloaded or stored as an asset. (c) State what stays unknown (audio, exact timings, cut statistics) and compare by side-by-side of the sampled frames instead of the numeric gate. If the user later supplies the mp4, run the numeric gate too.
2b. **Verify the measurement shot by shot (the agent is the vision model).** `python tools/shot_review.py build knowledge/references/<slug> <mp4>` writes per-shot sheets (first/middle/last), the MEASURED camera class (static, handheld, pan_tilt, push, fast from phase correlation) and the words spoken in each shot. Look at every high-priority sheet and fill `review/answers.json` (shot_type, size, camera, method, subject, action, place, light, on_screen_text, prompt, confidence, evidence). `shot_review.py check` refuses missing evidence, unknown values, contradictions with the measured camera and coverage < 80 % of the runtime; `shot_review.py apply` writes `review.md` (screen-time mix by shot type and size, hook structure, adjacent repeats, talking share, camera agreement) and `prompt_formula.md` (the prompt structure per shot type), and stores it in `fingerprint.json["review"]`.
3. **Look and classify.** Always LOOK at `sheet.png`, `thumb.jpg` and a dense frame strip (`ffmpeg -vf fps=4,scale=200:-1,tile=8x6`). Name the type and the devices (slam, whip, split-open frame, light cone, typed captions, pendulum...). Read `approach_hint` as a hint only; if speech was not analysed it says so.
4. **Plan.** Rewrite `scene_plan.md` for the user's content: one idea per phrase, times, the icon/object per beat, captions, sound. Decide formats (9:16 / 16:9 from one responsive composition), duration, voice-over or not, the tempo grid, and the loudness target = the reference's LUFS (unknown -> -16). Plan the joins as an eye trace: give each shot an in-hook and an out-hook on the thirds (`chain.json`) and run `python tools/cut_chain.py check chain.json` (match / eye-trace / graphic / jump; jumps only on purpose), `board` draws it for the BOARD gate. **Then the three approval gates before any full render** (`python tools/gates.py`; the user can skip them: `gates.py waive`): write `story.json` (idea, device, beats with time / what / bridge / sound) -> `gates.py story` and show STORY.md (approve / change beats / different angle); after the look is built, `gates.py look --comp <Id> --at <2-4 most different moments>` and show look.jpg; then `gates.py board --comp <Id>` (one panel per beat, thumbs up/down by number, `approve board --panels-down 3,7` sends panels back). `gates.py check` must pass before the full render; editing story.json after approval re-opens all gates. Ask with options and a recommended default (one click). Skip the gates only for a revision of an approved film or when the user says so.
5. **Collect assets yourself.** Visual research: Google Images in the Browser pane (VIEW ONLY). Licensed media: `node tools/fetch-stock.mjs --q "<specific query>" --type image --n 4 --source wikimedia,openverse --out public/<video>/stock` (specific Wikimedia queries beat Openverse's loose ranking; look at a contact sheet and pick). Cut-outs: `python tools/cutout.py in.jpg out.png --mode key-red|key-dark|key-grad|none [--clear x0 y0 x1 y1] [--clear-poly ...] [--fill-rows] [--fade-bottom 0.08]` - look at the result on a grey ground. Procedural/canvas assets when no licensed photo exists. User material (screenshots, logos, documents): analyse -> architecture -> rebuild as clean vectors, never paste as-is.
6. **Build.** Read the selected renderer(s): `node bin/vidbucks.mjs config get` (default Remotion). **Remotion:** closest template in `src/templates` (copy its config from `demos.ts`, register the new composition in `src/Root.tsx` or `src/templates/index.tsx`), or new code following ``docs/motion-rules.md` and the Remotion skill `/remotion-best-practices``. Voice-over: `python tools/vo_words.py --text "..." --out public/<video> --voice af_heart --speed 0.92` (times the captions from word times). Music: `python tools/make_pulse_track.py --bpm B --dur D --mood dark|bright|calm --out public/<video>/pulse.wav` with B = 60*n/T so a chosen moment T lands on beat n. SFX from the audio library on the visual change points. Each phrase must end ~0.25 s before the next starts (no overlapping captions). **HyperFrames:** `npx -y hyperframes init <name> --example blank --resolution portrait --non-interactive --skip-transcribe`, author with its skills (`/hyperframes`, `/motion-graphics`, `/music-to-video`...), `npx hyperframes check`, `npx hyperframes render -o out.mp4`; see `examples/hyperframes/typed-caption`. **Other renderer:** follow its entry in `.vidbucks/renderers/<id>.json` (`agentSkills`, `scaffold`, `render`). **Any voice:** `--engine custom --tts-cmd "..."`. Whatever built the video, step 7 (measure, compare, side-by-side) is identical.
7. **Measure the result and iterate.** `npx tsc --noEmit`; render; `python tools/quality_gate.py out/<render>.mp4 --ref knowledge/references/<slug>/fingerprint.json` (FAIL blocks delivery, fix and gate again: picture shorter than sound, burned-in text, silence, still open); `python tools/analyze_reference.py --file out/<render>.mp4`; `--compare <ref>/fingerprint.json <render>/fingerprint.json`; `--sidebyside <ref.mp4> <render.mp4> out/qa/side.png` and LOOK. Fix every FIX row, re-render, repeat (about 4 loops). A clean score does not replace looking; a photographic reference caps what code can reach.
8. **Deliver.** Files, the score table, credit lines for CC BY assets, what was verified and what was not (you cannot hear audio), and the one change that would raise quality most.
## Route by type
| type (what you see) | route |
|---|---|
| kinetic typography, text-driven trailers | template **KineticType** (events on a BPM grid; words, glitch, orb, logo card, picture cards) |
| text-message / chat story (Shorts "story in texts") | kit **ChatStory**: `tools/chat_story.py plan chat.json --out chat.timed.json --cues cues.json [--tts]` (drip timing, typing indicator, composer typing, reactions, read receipt, auto-scroll; one Kokoro voice per side), render `ChatStory` with `--props {"cfg": ...}`; fictional people only, a generic messenger look (no app branding) |
| data race, ranked numbers over time | kit **DataRace** (`cfg.keys` keyframes; smooth overtakes, eased scale, nice gridlines, period label); the `source` line is mandatory, unreal data says "Illustrative data" |
| top-N countdown / list video | kit **Countdown** (rank slam, whip slide, progress rail, #1 flash; icon from the media library or a licensed picture; `at` per item to sync with narration) |
| ad variants: one template, many hooks / aspects | kit **AdSpot** + `tools/ad_variants.py ads.csv --out out/ads/<c> --aspects 9:16,1:1,16:9` (hook types question / claim / pain / number / pov; index sheet compares hooks; proof only with a source or a review count) |
| logo animation, intro / outro sting | kit **LogoReveal** + `tools/logo_prep.py logo.svg --out logo.json --style draw|assemble|mask --cues cues.json` (sound logo: riser, impact on the land, chime); the user's own logo only |
| whiteboard explainer with a drawing hand | kit **Whiteboard** (icons, lines and words drawn at a set speed; the marker tip rides the stroke end; eraser wipe) |
| object-metaphor / editorial / monochrome with a voice-over (paper grain, photographed objects, split frame, light cone) | template **ObjectStory** + licensed cut-outs (`fetch-stock` + `cutout.py`) + `vo_words.py` + pulse track |
| minimal icon-and-line story, tiny serif captions typed with a voice | template **IconStory** (ballCoins, pendulum wave, dotted sphere; add icons in the same style) |
| particle / 3D-scroll look, rope or bloom shapes | template **ParticleBloom** (a word as particles); a photoreal subject or a filmed room needs real plates |
| product / UI / screen-recording promo | rebuild the UI as vector components with camera moves by default; the user's own screenshots or recordings are used as given when they want them |
| motion-design promo (bento, poster, blocks, line, retro-game/CRT) | vector primitives on a beat grid; take the layout language from the reference |
| stickman / doodle explainer, long-form | long-form route in CLAUDE.md section 5 (`vidbucks-script` -> `vidbucks-longform-build`, `vidbucks-stickman-engine`) |
| character / hand-drawn animation | engine characters (`Doomer`, `Face2`, `Meme` in `src/engine`) or sourced art; state the limits |
| maps / documentary | `GeoMap` kit with Natural Earth data (`tools/geo_export.py`) |
| 2D animated paper-landscape documentary (weather, natural disasters, nature, earth science, places) with an observer, field notebook and inserts | kit **StormWorld** + `tools/storm_build.py storm.json --timing timing.json --out props.json --cues cues.json` (shots start on narration lines; 10 funnel shapes, 9 events, 8 lands, 7 skies, 12 insert kinds, 5 transitions; 16:9 and 9:16) |
| dark archival documentary (public-domain photos/footage, framed prints, serif chapter cards, date tags, memos, record tables, maps with routes) | kit **ArchiveDoc** + `tools/archive_build.py archive.json --timing timing.json --out props.json --cues cues.json` (media from `fetch-stock.mjs --source wikimedia`, maps from `board_map.py`) |
| historical / character POV vlog made with an AI video model (Flow, Veo, Omni) | skill **vidbucks-historical-pov** |
| filmed real-world, talking head, vlog, phone-filmed screen | real licensed footage, the user's own footage if the output must contain it, or an honest mock-up; expect a lower score |
| music-only loop / meme / caption template | replicate the structure and caption format with own text; seamless loop where the reference loops |
| unknown | build the smallest prototype, measure, decide |
Mixed types: take the route for each layer. A template is a starting point: change the code freely when the reference needs it.
## FIX row -> action
`cuts_per_min` / `shot_len_median_s` -> change scene lengths; slow the easing of big moves (every fast eased move registers as a cut) | `brightness_mean` / `dark_frame_ratio` -> background tone, vignette | `loudness_lufs` -> loudnorm to the reference LUFS (+ gain trim) | `bpm` -> new pulse track at the measured tempo (octave-free) | `cuts_on_beat` -> move the big moments onto beats | `transition_mix` -> hard cut vs blur/whip/flash to match | `sound_hit_on_cuts` -> SFX on the detected transition times (`transition_list` in `fingerprint.json`) | curve correlations -> reshape the pacing over time | `palette_distance` -> theme colours.
## Form over copy (default; the user can ask for a closer match)
- The reference gives FORM: length, rhythm (average shot length, cuts/min), screen-time mix by shot type, hook structure, look, loudness. Ideas, lines, characters, shots and jokes are new.
- Template check on every draft: could a frame be mistaken for the reference's own (same composition + subject + palette)? Then say so; redo it unless the user wants that closeness (their own reference, their own brand).
- Ask once "what should change from the reference?" (idea and subject always new; look, tempo, sound, length optional); write the answer into the plan, each answer overrides its measured line.
## Stability rules (learned the hard way)
- Do not ship without looking at stills of every scene at the key moments AND the side-by-side with the reference.
- Overlapping captions, text outside the frame, a stray artefact in a cut-out, an element hidden behind another: check each explicitly.
- Heavy textures/geometry are built once (module load / `useMemo`) and shown as images or drawn once per frame; use `delayRender` for anything async; keep randomness deterministic (seeded or `random("key"+frame)`).
- Fonts: load with `@remotion/google-fonts`; system fonts only when the user's brand uses one.
- Loudness target = the reference's; normalise the audio unless the user wants their mix untouched.
- BPM estimates are octave-ambiguous and unreliable on quiet music mixed with effects: use them as a hint.
- Speed: stills at `--scale 0.3-0.4` for review, render once the stills are right.