Skip to content

A Claude Code skill for editing talking-head, tutorial, explainer and Short videos: word-accurate cuts, GSAP scenes, synthesized sound effects, honest loudness.

Python

Remember the creator, add transitions, rewrite the README

Yıldız Dikmeb7093e253732
diff --git a/README.md b/README.md
index 8a291dc..64d5d00 100644
--- a/README.md
+++ b/README.md
@@ -1,46 +1,107 @@
-# video-edit: a Claude Code skill for editing videos
+# claude-video-edit
-A Claude Code skill for editing talking-head, tutorial, explainer and Short videos together with Claude:
+A Claude Code skill that edits talking-head, tutorial, explainer and Short videos together with you: word-accurate cuts, motion graphics locked to your words, sound effects made from math, honest loudness, frame-exact 4K renders.
-- cuts raw takes on real word edges, without clipping words
-- removes retakes and pauses
-- builds motion graphics as HTML + GSAP pages, locked to the spoken words
-- synthesizes sound effects in Python
-- keeps the voice clean and at the right loudness
-- renders frame-exact
+![Claude can't hear sound: the waveform of the sentence being spoken, measured live](docs/images/hero.jpg)
-[Türkçe açıklama aşağıda](#türkçe).
+> **This repo makes good edits possible. It does not make them for you.**
+> The real power is still yours: your eye, your notes, your taste. Claude cuts, measures and builds fast. You watch, give notes and decide.
-## Read this first
+[Türkçe açıklama aşağıda](#türkçe).
-Claude cannot hear. Everything this skill knows about sound is measured: word timestamps from Whisper, a 10 ms energy envelope, loudness meters. So the workflow is built around that:
+## Quick start
-- **Cuts follow the measured energy, not guesses.** Each cut snaps to the real start and end of a word in the waveform.
-- **Picture and sound share one clock.** Graphics and sound effects are triggered from the same timeline, so effects land on the picture without anyone listening for sync.
-- **The voice is never processed by default.** No noise reduction, EQ or compression: one linear gain only. Those filters are the usual cause of muffled voices.
-- **A human reviews every stage.** Claude will not produce a perfect edit in one go. You work stage by stage: rough cut, review, chapters, graphics range by range, sound, final render. Expect corrections, and that is how good edits get made.
+**1. Install the tools once.** Python 3.10+, ffmpeg, Node 20+, Google Chrome, and one Whisper backend.
-## What is inside
+macOS (Apple Silicon, with [Homebrew](https://brew.sh)):
+```bash
+brew install python ffmpeg node numpy whisperkit-cli
```
-SKILL.md the workflow Claude follows
-reference/audio.md cutting rules, loudness, sound effects, captions (the most important file)
-reference/style.md glass cards, neutral palette, typography, motion per video type, things to avoid
-reference/edl.md the edit-list format
-scripts/ transcribe, cuts, build, verify, loudness, sfx, mix (Python) · render, audit (Node)
-template/ a scene page: engine, glass-card styles, chapter veils, demo beats
+
+Linux or Windows: install ffmpeg, Node 20+ and Chrome from their sites, then (in a virtual environment if your system asks for one):
+
+```bash
+python3 -m pip install numpy faster-whisper
```
-## Install
+It is built and tested on macOS. Linux and Windows use the same tools but are less tested.
-1. Requirements: Python 3.10+ with numpy, ffmpeg and ffprobe, Node 20+, and Google Chrome or Chromium. You also need one Whisper backend: `pip install faster-whisper` on any OS, or `brew install whisperkit-cli` on Apple Silicon.
-2. Put this folder where Claude Code finds skills, for example:
+**2. Install the skill.**
```bash
git clone https://github.com/YildizDikme/claude-video-edit ~/.claude/skills/video-edit
```
-3. Try the template without any footage:
+That is all. You do not paste anything into a prompt: Claude Code loads the skill by itself and uses it whenever you ask for a video edit. To update later: `git -C ~/.claude/skills/video-edit pull`.
+
+**3. Edit a video.** Make a folder, put your raw clips in `src/`, and open Claude Code there:
+
+```bash
+mkdir my-video && cd my-video && mkdir src
+# copy your clips into src/
+claude
+```
+
+Then just say what you want, for example:
+
+> Edit the clips in src into a 10-minute educational video. Cut retakes and pauses. Propose chapters. Calm graphics, no sound effects.
+
+> This is a Short. Tight cuts, captions on, more energetic graphics.
+
+**4. The first time, Claude gets to know you.** It asks a few questions in one message (your name, your colours, your logo, your usual videos, sound effects or not) and remembers the answers for every later video. See [It remembers you](#it-remembers-you).
+
+## How a session goes
+
+1. Claude transcribes the clips, makes a rough cut (retakes and pauses out, words never clipped) and gives you a preview link.
+2. You watch and give notes with timestamps: "0:36 cut the pause after this word", "1:12 show an example here". One round at a time. Screenshots of what you mean help a lot.
+3. Claude proposes chapters, then builds the graphics chapter by chapter, and you review each part.
+4. Sound effects only if you want them.
+5. When you approve the preview, Claude renders the final video (up to 4K) and gives you the length, the loudness and the YouTube chapter list.
+
+Good edits come from these short review loops. Expect several rounds.
+
+## What it can do
+
+<table>
+<tr>
+<td width="50%"><img src="docs/images/math.jpg" alt="The video's own sound measured every 10 ms, with the formula on screen"><br>Explains with real data: the video's own sound, measured every 10 ms, the math on screen.</td>
+<td width="50%"><img src="docs/images/rings.jpg" alt="A frame locked onto the score in a web app"><br>Frames that lock onto the part of the screen being talked about and follow the scroll.</td>
+</tr>
+<tr>
+<td><img src="docs/images/data.jpg" alt="Drawn faces being scanned to explain what data means"><br>Abstract ideas drawn: what "the model needs a lot of data" actually means.</td>
+<td><img src="docs/images/proof.jpg" alt="Real score cards from three runs"><br>Real results from the recording instead of invented examples.</td>
+</tr>
+<tr>
+<td><img src="docs/images/mistakes.jpg" alt="A real mistake with the before and after"><br>Mistakes shown honestly: the real screenshot, the note, the fixed version.</td>
+<td><img src="docs/images/profile.jpg" alt="Lower third with the creator's name"><br>Your name and colours from your profile, on every video.</td>
+</tr>
+</table>
+
+Frames from my own videos edited with this skill (Turkish, with English on screen).
+
+## It remembers you
+
+On the first run Claude asks, in one message: your name and role for the lower third, your channel and languages, the colours you like and the ones you never want, your logo, your usual video types, and whether you want sound effects. The answers go to `~/.claude/video-edit/profile.md` (your logo to `~/.claude/video-edit/brand/`) and are used in every later video without asking again.
+
+When you give a rule meant for all your videos ("no sound on transitions", "always deliver 4K"), Claude adds it to the profile and tells you. The profile stays on your computer; it is never part of a project or a repository. You can open and edit it any time.
+
+## Creative, with purpose
+
+The skill tells Claude to explain, not decorate: draw the abstract idea, show a small "what is this" box for tools the viewer may not know, use the video's own measured data and your real screenshots, show mistakes with the real before and after, and vary the form instead of pasting the same card. Videos are split into chapters by meaning, with titles that say what the viewer gets.
+
+Transitions are part of the template: a short chapter veil that closes before the cut, a text veil for inserts and montages, a blur dip where the picture jumps, a dark blur dip where a cut changes the subject, and a calm goodbye screen. They are silent by default.
+
+## Why it works: Claude can't hear
+
+Everything this skill knows about sound is measured: word timestamps from Whisper, a 10 ms energy envelope, loudness meters. So the workflow is built around that:
+
+- **Cuts follow the measured energy, not guesses.** Each cut snaps to the real start and end of a word in the waveform.
+- **Picture and sound share one clock.** Graphics and sound effects are triggered from the same timeline, so effects land on the picture without anyone listening for sync.
+- **The voice is never processed by default.** No noise reduction, EQ or compression: one linear gain only. Those filters are the usual cause of muffled voices.
+- **A human reviews every stage.** Your ear is the final check for clipped words and effect levels.
+
+## Try it without footage
```bash
cd ~/.claude/skills/video-edit
@@ -50,29 +111,34 @@ python3 scripts/serve.py --project . --port 5600
Open http://127.0.0.1:5600/template/?demo and press Space.
-## How to use it
-
-In your project folder, put the raw clips in `src/` and ask Claude, for example:
-
-> Edit these clips into a 10-minute educational video. Follow script.md. Cut retakes and pauses, natural pace. Propose chapters. Graphics calm, no sound effects. Neutral palette with our accent #2E7D6B.
-
-> This is a Short. Tight cuts, captions on, more energetic graphics, quiet effects on the highlights.
+## What is inside
-Claude asks a few questions, transcribes, makes a rough cut, and hands you a preview with a list of what it decided. You give timestamps and corrections. Then it adds chapters, builds the graphics one range at a time, and renders when you approve.
+```
+SKILL.md the workflow Claude follows
+reference/audio.md cutting rules, loudness, sound effects, captions (the most important file)
+reference/style.md glass cards, neutral palette, typography, motion, transitions, things to avoid
+reference/profile.md the creator profile Claude writes on the first run and reads every time
+reference/edl.md the edit-list format
+scripts/ transcribe, cuts, build, verify, loudness, sfx, mix (Python) · render, audit (Node)
+template/ a scene page: engine, glass-card styles, chapter veils, transitions, demo beats
+docs/images/ the pictures in this README
+```
## Video types
| Type | Graphics | Effects | Cuts |
|---|---|---|---|
-| Educational / explainer | calm, clear diagrams, slow camera, three.js only when it explains | none or very quiet | natural |
-| Talk | few long-lasting cards, never over the face | quiet transitions | natural or tight |
-| Tutorial | zoom into the screen, highlight boxes, steps | optional soft clicks | natural |
+| Educational / explainer | calm, clear diagrams, slow camera, three.js only when it explains | none, or only where a sound is the subject | natural |
+| Talk | few long-lasting cards, never over the face | none by default | natural or tight |
+| Tutorial | zoom into the screen, highlight frames, steps | optional soft clicks | natural |
| Short | bigger, faster, hook in 2 s, captions | allowed, under the voice | tight |
## Limits
- Claude can't judge taste, emotion, or whether a mix "sounds good". Listen to every flagged join and every effect level.
- Whisper makes mistakes with names and technical words. Check the transcript.
+- It is made for talking-head, tutorial, screen-recording and Short videos. Colour grading, multi-camera edits and music videos are not covered.
+- Long videos take time and tokens. On a smaller plan, work chapter by chapter.
- Rendering through a browser is slow, about 10 fps per worker at 1080p. Use several workers for long videos.
## License
@@ -83,39 +149,85 @@ MIT. See `LICENSE`.
## Türkçe
-Bu repo, Claude Code ile video editlemek için hazırlanmış bir skill. Konuşma, eğitim, ekran kaydı ve Short videolarında şunları yapar:
+Konuşma, eğitim, ekran kaydı ve Short videolarını sizinle birlikte editleyen bir Claude Code skill'i: kelime sınırından kesim, sözlerinize kilitli animasyonlar, matematikten üretilen ses efektleri, doğru ses seviyesi ve kare kare 4K render.
-- ham çekimleri kelime sınırlarından keser, kelimeleri kırpmaz
-- tekrar çekimleri ve duraksamaları çıkarır
-- konuşmaya kilitli animasyonları HTML + GSAP sayfaları olarak kurar
-- ses efektlerini Python ile matematikten üretir
-- sesi temiz ve doğru seviyede tutar
-- kare kare render alır
+> **Bu repo iyi edit yapmayı mümkün kılıyor, sizin yerinize yapmıyor.**
+> Asıl güç hâlâ sizde: gözünüz, notlarınız, zevkiniz. Claude hızlı keser, ölçer ve kurar; siz izler, not verir ve karar verirsiniz.
-### En önemli kısım
+### Hızlı başlangıç
-Claude duymaz. Bu skill sesle ilgili her şeyi ölçerek yapar: Whisper kelime zamanları, 10 ms'lik enerji zarfı ve ses yüksekliği ölçümleri. Bu yüzden:
+**1. Araçları bir kez kurun.** Python 3.10+, ffmpeg, Node 20+, Google Chrome ve bir Whisper.
-- **Kesimler ölçülen enerjiye göre yapılır.** Kelime başları ve sonları dalga formundaki gerçek yerinden kesilir.
-- **Görüntü ve ses aynı saatten tetiklenir.** Animasyon da efekt de aynı zaman çizelgesinden çalıştığı için efekt görüntüye oturur.
-- **Ses varsayılan olarak işlenmez.** Gürültü azaltma, EQ ya da kompresör yok, sadece doğrusal kazanç var. Boğuk sesin en sık sebebi bu filtreler.
-- **Her aşamayı bir insan kontrol eder.** Claude ilk seferde mükemmel edit çıkarmaz. Aşama aşama çalışılır: kaba kurgu, kontrol, bölümler, animasyonlar aralık aralık, ses, final render.
+macOS (Apple Silicon, [Homebrew](https://brew.sh) ile):
+
+```bash
+brew install python ffmpeg node numpy whisperkit-cli
+```
+
+Linux ya da Windows: ffmpeg, Node 20+ ve Chrome'u kendi sitelerinden kurun, sonra (sisteminiz isterse bir sanal ortam içinde):
+
+```bash
+python3 -m pip install numpy faster-whisper
+```
-### Kurulum ve deneme
+macOS'ta geliştirildi ve test edildi. Linux ve Windows aynı araçları kullanır ama daha az denendi.
-Gereksinimler: Python 3.10+, numpy, ffmpeg, Node 20+, Chrome ve bir Whisper (`pip install faster-whisper` ya da Apple Silicon'da `brew install whisperkit-cli`).
+**2. Skill'i kurun.**
```bash
git clone https://github.com/YildizDikme/claude-video-edit ~/.claude/skills/video-edit
```
-Görüntü olmadan şablonu denemek için `python3 scripts/serve.py --project . --port 5600` çalıştırıp http://127.0.0.1:5600/template/?demo adresini açın, Space'e basın.
+Bu kadar. Hiçbir şeyi prompta yapıştırmanız gerekmez: Claude Code skill'i kendisi yükler ve video editlemek istediğiniz her seferde kullanır. Güncellemek için: `git -C ~/.claude/skills/video-edit pull`.
-### Kullanım
+**3. Video editleyin.** Bir klasör açın, ham kliplerinizi `src/` içine koyun ve Claude Code'u orada açın:
+
+```bash
+mkdir videom && cd videom && mkdir src
+# kliplerinizi src/ içine kopyalayın
+claude
+```
+
+Sonra ne istediğinizi söyleyin. Örneğin: "src içindeki klipleri 10 dakikalık bir eğitim videosuna çevir. Tekrarları ve duraksamaları kes, bölüm öner, animasyonlar sakin olsun, efekt koyma."
+
+**4. İlk seferde Claude sizi tanır.** Tek mesajda birkaç soru sorar (adınız, renkleriniz, logonuz, genelde çektiğiniz videolar, ses efekti isteyip istemediğiniz) ve cevapları sonraki bütün videolar için hatırlar.
+
+### Bir çalışma nasıl ilerler
+
+1. Claude klipleri yazıya döker, kaba kurguyu yapar (tekrarlar ve duraksamalar çıkar, kelimeler kırpılmaz) ve size bir önizleme linki verir.
+2. Siz izler ve zamanla not verirsiniz: "0:36'da bu kelimeden sonraki boşluğu kes", "1:12'de buraya örnek koy". Her seferinde bir tur. Ne demek istediğinizi gösteren ekran görüntüleri çok işe yarar.
+3. Claude bölümleri önerir, sonra animasyonları bölüm bölüm kurar; her parçayı siz kontrol edersiniz.
+4. Ses efektleri sadece isterseniz.
+5. Önizlemeyi onayladığınızda Claude final videoyu (4K'ya kadar) render alır; süreyi, ses seviyesini ve YouTube bölüm listesini verir.
+
+İyi edit bu kısa kontrol turlarından çıkar. Birkaç tur bekleyin.
+
+### Sizi hatırlar
+
+İlk kullanımda Claude tek mesajda sorar: alt bant (lower third) için adınız ve unvanınız, kanalınız ve dilleriniz, sevdiğiniz ve hiç istemediğiniz renkler, logonuz, genelde çektiğiniz video türleri ve ses efekti isteyip istemediğiniz. Cevaplar `~/.claude/video-edit/profile.md` dosyasına (logo `~/.claude/video-edit/brand/` klasörüne) kaydedilir ve sonraki her videoda tekrar sorulmadan kullanılır.
+
+Tüm videolarınız için bir kural verdiğinizde ("geçişlerde ses olmasın", "her zaman 4K ver") Claude bunu profile ekler ve size söyler. Profil sizin bilgisayarınızda kalır, hiçbir projeye ya da repoya girmez. İstediğiniz zaman açıp düzenleyebilirsiniz.
+
+### Yaratıcı ama amaçlı
+
+Skill, Claude'a süslemeyi değil anlatmayı söyler: soyut fikri çizer, izleyicinin bilmeyebileceği araçlar için küçük bir "bu nedir" kutusu gösterir, videonun kendi ölçülmüş verisini ve sizin gerçek ekran görüntülerinizi kullanır, hataları gerçek önce/sonra haliyle gösterir. Video anlamına göre bölümlere ayrılır, başlıklar izleyicinin ne öğreneceğini söyler. Yukarıdaki görseller bu skill ile editlenmiş kendi videolarımdan.
+
+Geçişler şablonun içinde: kesimden önce kapanan kısa bölüm perdesi, araya giren videolar ve kesitler için yazılı perde, görüntünün sıçradığı yerde bulanık geçiş, konunun değiştiği kesimde kararan bulanık geçiş ve sakin bir veda ekranı. Varsayılan olarak geçişlerde ses yoktur.
+
+### Neden işe yarıyor: Claude duymaz
+
+Bu skill sesle ilgili her şeyi ölçerek yapar: Whisper kelime zamanları, 10 ms'lik enerji zarfı ve ses yüksekliği ölçümleri. Bu yüzden:
+
+- **Kesimler ölçülen enerjiye göre yapılır.** Kelime başları ve sonları dalga formundaki gerçek yerinden kesilir.
+- **Görüntü ve ses aynı saatten tetiklenir.** Animasyon da efekt de aynı zaman çizelgesinden çalıştığı için efekt görüntüye oturur.
+- **Ses varsayılan olarak işlenmez.** Gürültü azaltma, EQ ya da kompresör yok, sadece doğrusal kazanç var. Boğuk sesin en sık sebebi bu filtreler.
+- **Her aşamayı bir insan kontrol eder.** Kırpılmış kelimede ve efekt seviyesinde son karar sizin kulağınız.
-Proje klasörünüzde ham klipleri `src/` içine koyun ve Claude'a ne istediğinizi söyleyin. Örneğin: "Bu klipleri 10 dakikalık bir eğitim videosuna çevir, tekrarları ve duraksamaları kes, bölüm öner, animasyonlar sakin olsun, efekt koyma."
+### Sınırlar
-Video türüne göre tempo değişir:
+- Claude zevki, duyguyu ya da bir sesin "güzel olup olmadığını" yargılayamaz. İşaretlenen her birleşimi ve her efekt seviyesini dinleyin.
+- Whisper isimlerde ve teknik kelimelerde hata yapar. Dökümü kontrol edin.
+- Konuşma, eğitim, ekran kaydı ve Short videoları için yapıldı. Renk düzeltme, çok kameralı kurgu ve müzik videoları kapsamında değil.
+- Uzun videolar zaman ve token ister. Küçük bir pakette bölüm bölüm çalışın.
-- Eğitim videosunda animasyonlar sakin ve açıklayıcı olur, gerekirse three.js kullanılır.
-- Short'ta animasyonlar daha hareketli olur, kesimler sıkıdır ve altyazı açıktır.
+Lisans: MIT.
diff --git a/SKILL.md b/SKILL.md
index 273cf2b..6778f25 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -1,6 +1,6 @@
---
name: video-edit
-description: Edit talking-head, tutorial, explainer and Short videos with Claude Code. Word-accurate cuts from raw takes, motion graphics built as HTML + GSAP (optionally three.js) pages locked to the spoken words, sound effects synthesized in Python, honest loudness handling and frame-exact rendering. Use when the user wants to cut raw footage, remove retakes and pauses, add animated cards or chapters, add or design sound effects, fix loudness, or render a final edit.
+description: Edit talking-head, tutorial, explainer and Short videos with Claude Code. Word-accurate cuts from raw takes, motion graphics built as HTML + GSAP (optionally three.js) pages locked to the spoken words, sound effects synthesized in Python, honest loudness handling and frame-exact rendering. On first use it asks for the creator's name, colours, logo and preferences and remembers them for every later video. Use when the user wants to cut raw footage, remove retakes and pauses, add animated cards or chapters, add or design sound effects, fix loudness, or render a final edit.
---
# Video edit
@@ -13,21 +13,42 @@ This skill turns raw footage into a finished edit together with a human editor.
- **The human ear is the final check.** Whether a cut clips a word, whether an effect is too loud, whether a voice sounds muffled: the user decides. Your job is to make every problem measurable and every fix fast.
- **The first pass is never the final edit.** Work stage by stage, hand over a preview after each stage, and expect corrections. Most good results come from short review loops, not from one long autonomous run.
- **Sync by construction, not by ear.** Animations and sound effects are triggered from the same timeline clock, and that clock is derived from the measured word times. That is how effects land on the picture without you hearing them.
+- **Be creative, on purpose.** Every visual should help the viewer understand, and nothing should look like a template. See "Creative direction" below.
## Paths
Commands run from the user's project folder. `$SKILL` is the folder this file is in (for example `~/.claude/skills/video-edit`); set it once in the shell: `SKILL=~/.claude/skills/video-edit`.
-## Before you start: ask
+## First run: get to know the creator
-Ask these once, keep the answers in `work/NOTES.md`:
+Look for the creator profile at `~/.claude/video-edit/profile.md`. If it does not exist, this is the first run: introduce yourself in one short message and ask these together. The user may skip any of them.
+
+1. **Name on screen:** the name and a one-line role for the lower third and the end screen.
+2. **Channel:** channel name, platforms (YouTube, Instagram, TikTok…), the language they speak in the videos, and whether they want a second language on screen.
+3. **Colours:** the colours they like (one accent and one or two support colours) and colours they never want. A thumbnail or a brand page works as an answer too.
+4. **Logo:** a logo file (SVG, or PNG with transparency), and where it may appear: lower third, end screen, or nowhere.
+5. **Font:** a brand font, or the default.
+6. **Usual videos:** educational, talk, tutorial, Shorts, and how calm or energetic they like the motion.
+7. **Sound:** sound effects never, only when a sound is the thing being shown, or also quietly on transitions. Background music yes or no.
+8. **Never:** things they dislike (glows, italics, emoji, fast zooms, a colour…).
+
+Save the answers to `~/.claude/video-edit/profile.md` (format in `reference/profile.md`) and copy the logo into `~/.claude/video-edit/brand/`. Show the saved profile in a few lines and ask whether it is right.
+
+From then on:
+
+- **Read the profile at the start of every project** and apply it without asking again: the accent and support colours go into the scene's CSS variables, the name and logo into the lower third and the end screen, and the sound and motion defaults into the plan.
+- **Remember lasting rules.** When the user gives a rule for all videos ("no sound on transitions", "always deliver 4K and 480p", "my accent is now green"), add it to the profile's "Lasting rules" with the date right away, and say that you did. A rule for one video goes to that project's `work/NOTES.md` instead. When unsure which, ask.
+- **The profile is personal.** It lives in the user's home folder. Never copy it into a project that is shared or into a repository.
+
+## Every project: ask
+
+Ask these once per project and keep the answers in `work/NOTES.md`. Skip what the profile already answers.
1. **Video type:** educational / explainer, talk (talking head), tutorial with screen recording, or Short (vertical, under 60 s). This sets the motion level (see the table below).
2. **Raw material:** which clips, in which order, is there a script or outline to follow?
-3. **On-screen language(s):** one language, or two (for example native + English)?
-4. **Brand:** one accent colour, a font if they have one. If they have none, use the neutral palette in `reference/style.md`.
-5. **Sound effects:** yes, no, or "only on chapter transitions". Default is very quiet transitions only.
-6. **Deliverables:** resolution (1080p / 1440p / 4K), captions, YouTube chapter list, deadline.
+3. **On-screen language(s):** from the profile, unless this video is different.
+4. **Sound effects:** from the profile. Without a profile, the default is no effects on transitions, effects only where a sound is the subject.
+5. **Deliverables:** resolution (1080p / 1440p / 4K), captions and their languages, YouTube chapter list, deadline.
## Video types
@@ -40,6 +61,17 @@ Ask these once, keep the answers in `work/NOTES.md`:
If the user does not say, infer the type from the transcript and confirm it. Do not over-animate an educational video, and do not make a Short feel slow.
+## Creative direction
+
+Be creative, on purpose. A good edit explains the topic better than the speaker alone could, and it never looks like the same card pasted again and again.
+
+- **Explain, don't decorate.** For every beat ask: what would make this click for someone who has never heard of it? Draw the abstract idea (for "the model needs a lot of data", show many different faces being scanned and labelled). When a tool, language or term is named that many viewers may not know, show a small box: its name, what kind of thing it is (language, tool, model, concept) and one plain sentence.
+- **Use real material.** The video's own measured data (the waveform of the sentence being spoken, the real loudness numbers), real screenshots and screen recordings the user has, the real before and after. Real proof beats an invented example every time. Ask the user for screenshots when a beat needs one.
+- **Show mistakes honestly.** When the video talks about something that went wrong, show the actual screenshot, the note that was given and the fixed version side by side.
+- **Vary the form.** Alternate between a keyword card, a list that grows as each item is said, a counter, a full-screen board for a dense idea, a zoom into the screen, a framed insert of another video. Pick the form that fits the content, not the one used last.
+- **One idea at a time, calm motion.** Creative does not mean busy. Keep the motion level of the video type and the profile.
+- **Pitch the big pieces first.** Before building a full-screen board, a montage or a 3D scene, describe it in two lines and let the user say yes.
+
## The workflow
Work in this order. After each numbered stage, stop and hand over a preview URL or file plus a short list of what you decided and why.
@@ -87,9 +119,16 @@ Fix what `verify.py` flags, rebuild, and only then hand over. Tell the user the
### 4. Chapters
-Propose chapters from the transcript (topic changes, the script's sections). Suggest short titles. After approval, add `{"chapter": "..."}` items to the EDL. `cuts.py` prints a YouTube chapter list (`0:00 Intro …`) and writes `work/chapters.txt`. The first chapter must start at 0:00, and YouTube needs at least three chapters, each at least 10 s long.
+Split the video into chapters by meaning, not by clock:
-A chapter transition on screen is a full-frame veil (see `reference/style.md`): the chapter number, the title, and a progress row. Sub-topics inside a chapter do not get their own veil, only a small chip change.
+- One chapter per real change of topic, in the order the viewer needs to understand it. Follow the script's sections when there is a script.
+- For a 10–15 minute video that is usually 5–10 main chapters, each at least about 45 s. A short sub-topic stays inside its chapter as a chip change, not a chapter of its own.
+- Title each chapter with what the viewer gets from it ("Where the AI went wrong"), not with a vague label ("Part 3"). Short enough to read in one glance.
+- YouTube rules: the first chapter starts at 0:00, at least three chapters in ascending order, each at least 10 s long, timestamps written with colons (`0:51`, not `0.51`), in the description (not in a comment). Chapters that break a rule fail silently.
+
+Propose the list with one line on why each chapter starts where it does. After approval, add `{"chapter": "..."}` items to the EDL. `cuts.py` prints a YouTube chapter list (`0:00 Intro …`) and writes `work/chapters.txt`. The on-screen veils and the YouTube list use the same times.
+
+A chapter transition on screen is a full-frame veil (see `reference/style.md`, section 9): the chapter number, the title, and a progress row. Put 0.3–0.6 s of the clip's own room tone before each chapter so the veil never wipes across the last word.
### 5. Graphics, range by range
@@ -101,9 +140,12 @@ python3 $SKILL/scripts/serve.py --project . --port 5600 # http://127.0.0.1:5
Work on one chapter or time range at a time, never the whole video at once. For each range:
-1. List the beats: the few things worth showing (numbers, steps, a comparison, a key idea, a source). **Do not put the narration on screen.** Cards are not subtitles; they carry what the voice cannot (structure, data, a picture).
-2. Lock every beat to a spoken word with `at('phrase')`. An element rises when its word is said (about 0.1 s before) and leaves only after its sentence ends.
-3. Check `?t=SECONDS` freezes at the beats, then hand over the URL.
+1. List the beats: the few things worth showing (numbers, steps, a comparison, a key idea, a source). **Do not put the narration on screen.** Cards are not subtitles; they carry what the voice cannot (structure, data, a picture). Use the creative direction above.
+2. Lock every beat to a spoken word with `at('phrase')`. An element rises when its word is said (about 0.1 s before) and leaves only after its sentence ends. `at()` returns the first match: for a phrase said more than once, pass `{ from: sectionStart }`. A number in speech may be a timestamp ("at zero eighteen" is 0:18 of a video, not 0.18 seconds); check the context before drawing it.
+3. Place the transitions (`reference/style.md`, section 9): a veil at each chapter, a blur dip where the picture jumps, a dark blur dip where a cut removes a whole stretch. Nothing on plain cuts.
+4. Check `?t=SECONDS` freezes at the beats, then hand over the URL. Always check `?t=0` too: the first frame is what YouTube and most players show before play, so nothing that belongs later may be visible there.
+
+After a re-cut, re-check every time that is tied to a source moment rather than to a word: a source time that was cut away no longer exists in the program.
Rules that apply to every frame are in `reference/style.md`. Run the layout audit before each handover:
@@ -113,7 +155,7 @@ node $SKILL/scripts/audit.mjs http://127.0.0.1:5600/scene/ --every 0.5
### 6. Sound effects (only if wanted)
-Generate the library, then cue effects from the scene's timeline with `cue(t, 'whoosh')`:
+Follow the profile. Without one, put no sound on transitions; use effects where a sound is the subject (showing what a whoosh at a given level sounds like, a click on the button being explained). Generate the library, then cue effects from the scene's timeline with `cue(t, 'whoosh')`:
```bash
python3 $SKILL/scripts/sfx.py lib --out scene/sfx # --gain -3 makes every effect 3 dB quieter
@@ -153,4 +195,4 @@ Requirements: Python 3.10+, numpy, ffmpeg + ffprobe, Node 20+, Google Chrome or
## Working notes
-Keep `work/NOTES.md` up to date: the answers from the intake, every rule the user gives ("no sound effects in this video", "effects one step quieter"), and the current version. Rules the user gives in one video usually apply to the next one; ask before assuming so.
+Keep `work/NOTES.md` up to date: the answers from the intake, every rule the user gives for this video ("effects one step quieter here"), and the current version. Rules meant for every video go into the profile (see "First run"); when you are not sure whether a rule is for this video or for all of them, ask.
diff --git a/docs/images/data.jpg b/docs/images/data.jpg
new file mode 100644
index 0000000..2901af6
Binary files /dev/null and b/docs/images/data.jpg differ
diff --git a/docs/images/hero.jpg b/docs/images/hero.jpg
new file mode 100644
index 0000000..0c6b031
Binary files /dev/null and b/docs/images/hero.jpg differ
diff --git a/docs/images/math.jpg b/docs/images/math.jpg
new file mode 100644
index 0000000..844b437
Binary files /dev/null and b/docs/images/math.jpg differ
diff --git a/docs/images/mistakes.jpg b/docs/images/mistakes.jpg
new file mode 100644
index 0000000..12d90d1
Binary files /dev/null and b/docs/images/mistakes.jpg differ
diff --git a/docs/images/profile.jpg b/docs/images/profile.jpg
new file mode 100644
index 0000000..f26695a
Binary files /dev/null and b/docs/images/profile.jpg differ
diff --git a/docs/images/proof.jpg b/docs/images/proof.jpg
new file mode 100644
index 0000000..fe5a5db
Binary files /dev/null and b/docs/images/proof.jpg differ
diff --git a/docs/images/rings.jpg b/docs/images/rings.jpg
new file mode 100644
index 0000000..ed5e7ea
Binary files /dev/null and b/docs/images/rings.jpg differ
diff --git a/reference/audio.md b/reference/audio.md
index 1955e78..69261aa 100644
--- a/reference/audio.md
+++ b/reference/audio.md
@@ -73,7 +73,7 @@ Levels (peak, effect on its own):
| Use | Start at |
|---|---|
-| Chapter transition whoosh | −32 dBFS |
+| Chapter transition whoosh (only when the profile asks for transition sounds) | −32 dBFS |
| UI tick / click / pop | −30 dBFS |
| Typing | −32 dBFS |
| Short (more energetic) | up to −26 dBFS |
@@ -81,7 +81,8 @@ Levels (peak, effect on its own):
- Effects must sit **under** the voice and never mask a word. Avoid placing a hit on top of a stressed syllable.
- Start quiet and let the user pull it up. Real corrections from practice: −32 dBFS was "can't hear it at all", −26 was "a bit less", −28 stuck. The same −28 whoosh was "a bit much" in a calmer video, and −34 stuck. The right level depends on the video; the user's ear decides.
- Normalize every effect type to a similar loudness so quiet types (a soft tick) are heard as well as loud ones (a whoosh).
-- Many videos are better with no effects at all (serious educational parts, emotional parts). Ask.
+- Many videos are better with no effects at all (serious educational parts, emotional parts). Ask, or follow the creator profile.
+- **Default: no sound on transitions.** Veils, dips and board changes are silent unless the profile asks otherwise. Effects belong where a sound is the subject: demonstrating a whoosh and its level, the click of the button being explained.
- **Sync:** effects are cued from the scene timeline (`cue(t, name)`). The render exports the cue list, and `sfx.py track` renders the full-length effects track from it. Picture and sound come from the same clock, so they cannot drift.
- **Typing sounds** must follow the typing animation: one key sound per revealed character group, at the reveal time, with small random variation in pitch, level and timing so it does not sound like a machine gun. Never lay a generic typing loop under a typing animation; that is the classic "the keys don't match the text" mistake.
diff --git a/reference/profile.md b/reference/profile.md
new file mode 100644
index 0000000..bd447b0
--- /dev/null
+++ b/reference/profile.md
@@ -0,0 +1,55 @@
+# The creator profile
+
+The profile is how this skill remembers a creator between videos. It is written on the first run (see "First run" in `SKILL.md`) and read at the start of every project.
+
+- Location: `~/.claude/video-edit/profile.md`
+- Logo and other brand files: `~/.claude/video-edit/brand/`
+- It is personal. It never goes into a shared project folder or a repository.
+
+## Format
+
+Plain Markdown, one field per line, so both the user and Claude can read and edit it. Leave a field out when the user skipped it; the defaults in `reference/style.md` and `reference/audio.md` apply then.
+
+```markdown
+# Creator profile
+
+name: Name Surname
+role: Developer · Tech creator
+channel: Channel name
+platforms: YouTube, Instagram
+spoken_language: en
+screen_languages: en # or "tr + en", both at the same size
+accent: "#2E7D6B"
+support_colors: "#F4F4F1", "#16181C"
+avoid_colors: red, neon green
+logo: ~/.claude/video-edit/brand/logo.svg
+logo_use: lower third, end screen
+font: default
+usual_videos: educational, tutorial
+motion: calm # calm / medium / energetic
+sound_effects: only when a sound is the subject # never / only when a sound is the subject / also quiet on transitions
+music: no
+loudness: YouTube -14 LUFS
+captions: yes, en
+deliverables: 4K, chapters list
+never: glows, italics, emoji
+
+## Lasting rules
+
+- 2026-01-15: no sound on transitions
+- 2026-01-15: chapter veils short, about 1.5 s
+```
+
+## How the fields are used
+
+| Field | Used for |
+|---|---|
+| `name`, `role` | the lower third (once, early) and the end screen |
+| `accent`, `support_colors` | the scene's `--accent` and secondary tokens; derive the text tint from the accent and check contrast (`reference/style.md`, section 2) |
+| `avoid_colors`, `never` | hard limits for every scene |
+| `logo`, `logo_use` | only where the user allowed it, small, never over the face |
+| `screen_languages` | one or two lines on every card, same size |
+| `motion`, `usual_videos` | the default video type and entrance speeds |
+| `sound_effects`, `music` | whether `cue()` is used at all, and where |
+| `loudness`, `captions`, `deliverables` | the final render and the hand-over list |
+| Lasting rules | everything the user said should hold for every video; add new ones with the date as soon as they are said |
diff --git a/reference/style.md b/reference/style.md
index 7948838..0918c6d 100644
--- a/reference/style.md
+++ b/reference/style.md
@@ -4,6 +4,8 @@ The graphics in this skill are web pages: HTML + CSS + GSAP, with three.js when
## 1. What goes on screen
+The goal of every graphic is understanding. Before building a beat, decide what would make the idea click for a viewer who has never heard of it (see "Creative direction" in `SKILL.md`): a drawing of the abstract idea, a small box that says what an unfamiliar tool is, the video's own measured data, a real screenshot, a before and after.
+
- **Never transcribe the narration onto the screen.** A card that repeats the sentence being spoken is a subtitle, not a graphic. Show what the voice cannot carry:
- structure (steps, a list of options, a before/after)
- numbers and data (counters, small charts)
@@ -16,7 +18,7 @@ The graphics in this skill are web pages: HTML + CSS + GSAP, with three.js when
## 2. Palette (neutral default)
-Use the channel's brand colour as the single accent if they have one. Otherwise use this neutral set. Keep one accent per video: two strong accents compete.
+Take the colours from the creator profile (`reference/profile.md`) when there is one: its accent becomes `--accent`, its support colours the secondary tokens, and its avoid list is a hard limit. Use the channel's brand colour as the single accent if they have one. Otherwise use this neutral set. Keep one accent per video: two strong accents compete.
Dark (default for talking heads and screen recordings):
@@ -115,12 +117,32 @@ Use 3D when it explains: a part being assembled, an object that is the topic, a
- Prewarm shaders and load every model and texture before the first frame (the template's `ASSETS` list); the renderer waits for them.
- Keep the camera calm; let the object move.
-## 9. Chapter transitions and recurring elements
+## 9. Transitions and recurring elements
+
+Transitions hide jumps and mark changes of topic. Use one where something actually changes, never as decoration. All of these are in `template/script.js`.
+
+| Transition | When | What it looks like |
+|---|---|---|
+| Chapter veil | a new main chapter | a full-frame dark pane wipes in from the left behind a thin accent edge, shows "CHAPTER 03 / 08", the title (and second language) and a row of chapter marks, then wipes off to the right. About 1.5 s in total. The cut happens under the closed pane, so the viewer never sees the jump. |
+| Text veil | a section that is not a chapter: an inserted clip, a montage of an older video, the goodbye | the same pane with its own short line ("Let's watch some clips from that video") |
+| Blur dip | a cut where the picture jumps (the speaker moves, the screen changes) | the frame blurs for about 0.18 s into the cut and clears in about 0.32 s |
+| Dark blur dip | a cut that removes a whole stretch and moves to another subject | blur plus about 80 % darkening in about 0.3 s, back in about 0.55 s |
+| Speaker dip | on a full-screen board, the speaker's cut-out jumps between two takes | only the cut-out blurs and dims for a moment; the board stays still |
+| Board in / out | a full-screen board (a diagram, data) replaces the video | the dark board fades in under a veil or over about 0.7 s, never in one frame; the speaker's cut-out slides to its place on the board and back. On a board without the speaker, the cut-out does not move at all. |
+
+Rules:
+
+- **No blur on plain cuts.** If neither the picture nor the subject jumps, a straight cut is best. Blur pulses on every cut look like a glitch.
+- **Let the last word finish.** A veil or a dip starts after the last word of the section has fully decayed, on 0.3–0.6 s of the clip's own room tone. Never wipe across a word.
+- **No sound on transitions by default.** Use transition sounds only when the profile asks for them. Sound effects belong to moments where a sound is the subject.
+- **Short and identical.** Veils last about 1.5 s and are gone right after the chapter starts. Every veil in a video uses the same pane, edge and type.
+
+Recurring elements:
-- **Chapter veil:** a full-frame glass panel wipes across (about 2–2.6 s in total), shows "CHAPTER 02 / 05", the title (and second language), and a progress row of all chapters, then wipes off. A soft whoosh is optional. Only main chapters get a veil.
- **Chapter chip:** a small chip in a top corner shows the current chapter number and title for the rest of the chapter.
-- **Lower third:** name and one-line role, once, early. It slides out from the edge or from behind the face cut-out and retracts the same way.
+- **Lower third:** the profile's name and role, once, early. It slides out from the edge or from behind the face cut-out and retracts the same way. The logo only if the profile allows it.
- **Like / subscribe:** if used, one short animation in the first minute and one at the end, never in the middle of an explanation.
+- **End screen:** a calm typographic goodbye in the creator's own words ("See you in the next video"), revealed as it is said, wiped in like a veil. The video ends about one second after the last word. Do not draw a portrait or likeness of the creator unless they ask for one.
## 10. Avoid
diff --git a/template/engine.js b/template/engine.js
index ea5f082..4e3fbc7 100644
--- a/template/engine.js
+++ b/template/engine.js
@@ -82,7 +82,9 @@
const hasVideo = () => video && video.src && !video.dataset.none;
function apply(t) {
- TL.seek(Math.min(t, TL.duration() || t), false);
+ // At least 0.1 ms: a paused timeline that is still at 0 does not render a seek to 0, so the TL.set(…, 0)
+ // calls that hide later cards never ran and every card showed on the first frame (the one YouTube shows).
+ TL.seek(Math.max(1e-4, Math.min(t, TL.duration() || t)), false);
frameHooks.forEach((f) => f(t));
}
diff --git a/template/script.js b/template/script.js
index 46a44d6..9624d61 100644
--- a/template/script.js
+++ b/template/script.js
@@ -27,8 +27,44 @@ window.buildScene = ({ TL, at, cue, chapters, duration, stage, still }) => {
'<text x="1000" y="610" fill="rgba(255,255,255,0.25)" font-family="Inter, sans-serif" font-size="26" text-anchor="middle">speaker</text>';
}
+ /* ---------- transitions (reference/style.md, section 9) ----------
+ * veil(a, z, …) full-frame pane: closes from a, opens from z. Chapters close it 0.55 s before the cut,
+ * so the jump happens under the closed pane. Use veilText() for a section that is not a chapter.
+ * blurDip(t) a cut where the picture jumps. darkDip(t) a cut that removes a stretch and changes subject.
+ * No sound on transitions unless the creator profile asks for it (TRANSITION_SOUND). */
+ const TRANSITION_SOUND = false;
+ const veil = (id, a, z, kick, title, subtitle = '', prog = '') => {
+ const v = $('#veil').cloneNode(true);
+ v.id = id;
+ $('#veil').after(v);
+ v.querySelector('.kick').textContent = kick;
+ v.querySelector('.t1').textContent = title;
+ v.querySelector('.t2').textContent = subtitle;
+ if (prog) v.querySelector('.prog').innerHTML = prog; else v.querySelector('.prog').remove();
+ TL.set(v, { autoAlpha: 0 }, 0);
+ TL.set(v, { autoAlpha: 1 }, a);
+ TL.fromTo(v.querySelector('.pane'), { clipPath: 'inset(0 100% 0 0)' }, { clipPath: 'inset(0 0% 0 0)', duration: 0.45, ease: MOVE, immediateRender: false }, a);
+ TL.fromTo(v.querySelector('.edge'), { x: 0, opacity: 1 }, { x: 1917, duration: 0.45, ease: MOVE, immediateRender: false }, a);
+ TL.set(v.querySelector('.edge'), { opacity: 0 }, a + 0.45);
+ TL.fromTo(v.querySelector('.inner'), { autoAlpha: 0, x: -30 }, { autoAlpha: 1, x: 0, duration: 0.5, ease: IN, immediateRender: false }, a + 0.2);
+ TL.to(v.querySelector('.inner'), { autoAlpha: 0, x: 30, duration: 0.3, ease: OUT }, z - 0.32);
+ TL.fromTo(v.querySelector('.pane'), { clipPath: 'inset(0 0% 0 0)' }, { clipPath: 'inset(0 0% 0 100%)', duration: 0.5, ease: MOVE, immediateRender: false }, z);
+ TL.set(v, { autoAlpha: 0 }, z + 0.52);
+ if (TRANSITION_SOUND) cue(a, 'soft-whoosh', -6);
+ };
+ const veilText = (id, a, z, kick, line, line2 = '') => veil(id, a, z, kick, line, line2);
+ const video = $('#v');
+ const dip = (t, blur, dark, tin, tout) => {
+ if (t == null) return;
+ TL.fromTo(video, { filter: 'blur(0px) brightness(1)' }, { filter: `blur(${blur}px) brightness(${1 - dark})`, duration: tin, ease: 'power2.in', immediateRender: false }, t - tin);
+ TL.to(video, { filter: 'blur(0px) brightness(1)', duration: tout, ease: 'power2.out' }, t);
+ TL.set(video, { filter: 'none' }, t + tout); // no filter left on the video between dips (it costs every frame)
+ };
+ const blurDip = (t) => dip(t, 16, 0, 0.18, 0.32);
+ const darkDip = (t) => dip(t, 18, 0.8, 0.32, 0.55);
+
/* ---------- chapters: a veil for every chapter after the first, a chip for each ---------- */
- const VEIL = 2.4; // seconds: wipe in, hold, wipe out
+ const VEIL = 1.5; // seconds: about 0.55 s before the chapter cut to 0.95 s after it
chapters.forEach((ch, i) => {
const no = String(i + 1).padStart(2, '0');
const chip = $('#chip').cloneNode(true);
@@ -38,29 +74,17 @@ window.buildScene = ({ TL, at, cue, chapters, duration, stage, still }) => {
chip.querySelector('.tt').textContent = ch.title;
$('#chip').after(chip);
const end = i + 1 < chapters.length ? chapters[i + 1].time : duration;
- const shown = i === 0 ? ch.time + 0.6 : ch.time + VEIL - 0.2;
+ const shown = i === 0 ? ch.time + 0.6 : ch.time + VEIL - 0.4;
cardIn(chip, shown, 0.6);
- cardOut(chip, Math.max(shown + 1, end - 0.05), 0.3);
+ cardOut(chip, Math.max(shown + 1, end - 0.6), 0.3);
if (i === 0) return;
- const v = $('#veil').cloneNode(true), t = ch.time;
- v.id = `veil${i}`;
- $('#veil').after(v);
- v.querySelector('.kick').textContent = `Chapter ${no} / ${String(chapters.length).padStart(2, '0')}`;
- v.querySelector('.t1').textContent = ch.title;
- v.querySelector('.t2').textContent = ch.subtitle || '';
- v.querySelector('.prog').innerHTML = chapters.map((c, k) => `<span class="${k === i ? 'on' : ''}">${String(k + 1).padStart(2, '0')}</span>`).join('<b></b>');
- TL.set(v, { autoAlpha: 1 }, t);
- TL.fromTo(v.querySelector('.pane'), { clipPath: 'inset(0 100% 0 0)' }, { clipPath: 'inset(0 0% 0 0)', duration: 0.9, ease: MOVE, immediateRender: false }, t);
- TL.fromTo(v.querySelector('.edge'), { x: 0, opacity: 1 }, { x: 1917, duration: 0.9, ease: MOVE, immediateRender: false }, t);
- TL.set(v.querySelector('.edge'), { opacity: 0 }, t + 0.9);
- TL.fromTo(v.querySelector('.inner'), { autoAlpha: 0, x: -30 }, { autoAlpha: 1, x: 0, duration: 0.6, ease: IN, immediateRender: false }, t + 0.45);
- TL.to(v.querySelector('.inner'), { autoAlpha: 0, x: 30, duration: 0.4, ease: OUT }, t + VEIL - 1.0);
- TL.fromTo(v.querySelector('.pane'), { clipPath: 'inset(0 0% 0 0)' }, { clipPath: 'inset(0 0% 0 100%)', duration: 0.8, ease: MOVE, immediateRender: false }, t + VEIL - 0.8);
- TL.set(v, { autoAlpha: 0 }, t + VEIL);
- cue(t, 'whoosh');
- cue(t + VEIL - 0.8, 'whoosh', -4);
+ const prog = chapters.map((c, k) => `<span class="${k === i ? 'on' : ''}">${String(k + 1).padStart(2, '0')}</span>`).join('<b></b>');
+ veil(`veil${i}`, ch.time - 0.55, ch.time + 0.95, `Chapter ${no} / ${String(chapters.length).padStart(2, '0')}`, ch.title, ch.subtitle || '', prog);
});
+ // Examples, not used by the demo: a text veil before an inserted montage, and dips at two kinds of cut.
+ // veilText('veilClips', t0, t0 + 1.9, 'From the last video', "Let's watch some clips");
+ // blurDip(timeOfAJumpCut); darkDip(timeOfATopicCut);
/* ---------- lower third: once, early ---------- */
const lower = $('#lower');