Логотип Video Sharingan

Video Sharingan

Спільнота
nikolasfaria
video-sharingan

Reverse-engineer the audiovisual production of a reference video (motion design, product launch, changelog, app promo, trailer) into measured numbers and a recreation brief. Use this when the user shares a video and says "make ours like this", "copy this style/camera/pacing", "what camera moves does this use", "how fast is the camera", "recreate this launch video", or before generating a video with Hyperframes, /brag, Remotion or After Effects from a reference. Measures cuts and shot durations, camera language (truck/pedestal/pan/push-in/pull-out/orbit, speed in px/s and %W/s, scale %/s, easing, whether the camera ever stops), framing, depth of field and rack focus, grain/vignette/bloom/chromatic aberration, UI micro-animation vs camera pacing, and audio (music vs SFX, tempo, cuts on beat). Ignores theme, palette and branding. Outputs analysis.json, brief.md with do/don't rules, and QC gates to compare a render against the reference.

Огляд

Видавецьnikolasfaria
Репозиторійvideo-sharingan
Назва навичкиvideo-sharingan
Зірки
29
Форки
5
Файли в пакеті
28
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 28

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: nikolasfaria. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Video Sharingan у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/nikolasfaria/video-sharingan/tree/main
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nikolasfaria/video-sharingan.git \
  .claude/skills/video-sharingan
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Video Sharingan в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Video Sharingan, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Video Sharingan не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

video-sharingan: copy the technique, not the pixels

Turn a reference video into numbers and a recreation brief a generator can follow. Eyeballing a video lies about speed, easing and whether the camera ever stops, so measure first, then write the brief.

probe → cuts → contact sheets → camera per shot → focus/look → audio → brief → (render) → compare

Everything below is one command, scripts/sharingan.py analyze (or ./sharingan analyze). The steps are listed so you know what each number means, can re-run a single stage, and can check the numbers with your own eyes.

Setup (once)

bash
command -v ffmpeg ffprobe python3          # ffmpeg is required
python3 -m pip install -r requirements.txt  # numpy + opencv-python-headless (+ pytest)

If the reference is a URL, download it first (yt-dlp -o ref.mp4 <url>, or curl for a direct mp4). If it can't be downloaded, ask the user for a screen recording. Never commit reference media anywhere: it's usually copyrighted.

1. Run the full pipeline

bash
python3 scripts/sharingan.py analyze ref.mp4 -o sharingan-ref --title "Reference name"

Writes:

  • sharingan-ref/analysis.json: every measurement (schema in the README)
  • sharingan-ref/brief.md: the recreation brief with do/don't rules and QC gates
  • sharingan-ref/sheets/overview.png, shots.png: contact sheets (read them)
  • sharingan-ref/focus/focus_shotNN.png: sharpness heatmaps (red = sharp)
  • sharingan-ref/parts/*.json: per-stage outputs

Runtime is about 1–2 s per second of 1080p video on a laptop.

2. Verify, stage by stage (do not skip)

Numbers are only as good as the shot list. Work through these in order:

  1. Probe (analysis.source): fps, size, duration. Note vfr_suspect. VFR screen recordings make px/s unreliable, so re-encode CFR first: ffmpeg -i in.mp4 -vf fps=30 -c:v libx264 -crf 16 cfr.mp4.
  2. Cuts (analysis.edit): open sheets/overview.png and sheets/shots.png. Every row in shots.png must be ONE continuous shot.
    • Missed cut or false cut? Re-run with manual cuts: analyze ref.mp4 --cuts 3.5,7.25,… (seconds).
    • Detection already rejects UI reflows (lists collapsing, modals) by checking camera-trajectory continuity.
    • Dissolves and whips are not auto-detected: look for ghosted frames on the sheet.
  3. Camera (analysis.camera.shots[]): for each shot, read move, center_speed_px_s_1080p, speed_pctW_s, scale_pct_s, ease.best, never_stops, enters_moving/exits_moving, pull_out.
    • Velocities are content motion. The camera moves the opposite way (content sliding left = truck right).
    • Compare speeds across references at 1080p-equivalent or %W/s, never raw px.
    • pull_out.reflow_suspect_at_s lists windows where the UI re-laid out. Check those frames by eye before you call it a pull-out.
    • Doubt a number? Cross-check with the independent tracker: python3 scripts/camera_track.py ref.mp4 --shots sharingan-ref/parts/shots.json --method orb. LK and ORB should agree within about 5 %.
    • Cut mid-move? Then a shot may be a slice of a longer eased move. Read ease.speed_thirds_rel.
  4. Focus & framing (analysis.focus): dof (deep / shallow-band / shallow-spot / soft-overall), band orientation, rack_focus_suspected, framing (macro / medium / wide). Open the heatmaps.
  5. Look (analysis.look): grain σ, vignette falloff, bloom, chromatic aberration, grade. These are heuristics. Compression eats grain, and dark UI edges can fake a vignette. Confirm on a full-res frame: ffmpeg -ss 5 -i ref.mp4 -frames:v 1 frame.png.
  6. Audio (analysis.audio): class (music / music+sfx / sfx-only / silent), tempo_bpm, cuts.verdict (cut on the beat or not, against the chance rate), ui_events.synced_fraction (SFX landing on UI changes). Listen once to confirm the class.

For deeper dives, every stage also runs alone: sharingan probe|cuts|sheet|camera|focus|look|audio ….

3. Write the brief

brief.md is generated from the measurements. Edit it with what only a human or an LLM can see, using templates/brief.md as the canonical format:

  • Keep the distilled spec paragraph at the top paste-able on its own (Hyperframes style).
  • Every rule is an absolute, testable target: "push-in +1.2 %/s", never "zoom a bit more".
  • Add what the tool can't measure: staging (UI on a tilted 3D plane? device frame?), what the UI does in each shot, the story beat of each shot, typing or cursor behaviour.
  • Ignore the theme. Dark mode, palette, fonts and brand don't belong in the brief. The user's product keeps its own.
  • Log intentional differences in Deviations (e.g. "reference pulls out in shot 4; we never pull out").
  • See examples/linear-style-changelog/brief.md for a finished, real-world brief.

4. Hand it to a generator

  • Hyperframes / /brag: paste the distilled spec plus sections 2–10 into the composition prompt. Camera tweens use ease: "none" when the brief says linear, and push-ins become a scale tween at the measured %/s.
  • Remotion: translate px/s into interpolate(frame, [0, durationInFrames], [x0, x0 + v * dur]) with Easing.linear, and scale as Math.pow(1 + rate/100, t).
  • After Effects / Motion / anything else: the shot table is the edit decision list.

5. Self-check: compare your render against the reference

bash
python3 scripts/sharingan.py analyze render.mp4 -o render-analysis
python3 scripts/sharingan.py compare sharingan-ref/analysis.json render-analysis/analysis.json

compare prints a gate table (speed window, never-stops, no pull-out, linear easing, shot durations, cut-while-moving, audio class, cut/beat sync) and exits 1 on any hard failure. Fix one axis at a time with absolute values, re-render and re-compare. Before you call it done, also watch the render once and read its contact sheet.

Rules of thumb

  • Measure before you describe. If a number contradicts your impression, trust the number but look at the frames to understand why.
  • One reference rarely has a single speed. Report the window (min–max) and the median, and pick a target inside it.
  • Shot list first, everything else second: a wrong cut poisons every per-shot number.
  • This skill copies grammar (camera, optics, edit, sound), never assets. Don't ship 1:1 clones of someone else's brand.

Files

  • scripts/sharingan.py: CLI entrypoint (analyze, compare, and per-stage commands)
  • scripts/{probe,cuts,contact_sheet,camera_track,focus_map,look,audio,brief,compare}.py: the stages, each runnable alone
  • templates/brief.md: brief format
  • references/camera-language.md: definitions, thresholds, and production traps
  • examples/synthetic/: generator plus ground truth for the self-test (pytest tests/)
  • examples/linear-style-changelog/brief.md: worked example with real measured numbers

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Video Sharingan?

Reverse-engineer the audiovisual production of a reference video (motion design, product launch, changelog, app promo, trailer) into measured numbers and a recreation brief. Use this when the user shares a video and says "make ours like this", "copy this style/camera/pacing", "what camera moves does this use", "how fast is the camera", "recreate this launch video", or before generating a video with Hyperframes, /brag, Remotion or After Effects from a reference. Measures cuts and shot durations, camera language (truck/pedestal/pan/push-in/pull-out/orbit, speed in px/s and %W/s, scale %/s, ea...

Навіщо використовувати Video Sharingan у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Video Sharingan — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Video Sharingan у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/nikolasfaria/video-sharingan/tree/main. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Video Sharingan?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Video Sharingan?

Зі скількома забажаєте. У TypingMind ви можете використовувати Video Sharingan із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Video Sharingan?

Так. На GitHub цю навичку публікує nikolasfaria за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇