shorts-edit
/shorts-edit
Zamienia surowe nagrania mówione w gotowe pionowe shorty: tnie, czyści dźwięk, dodaje napisy słowo po słowie i grafiki ruchome, a potem sprawdza jakość.
- Autor
- timscheuerai ↗
- Repozytorium
- content-vault ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 14.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 21
- Skrypty
- 19
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 14.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 19 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/assets.py, scripts/behind.py, scripts/brand_lint.py, scripts/build.py, scripts/caption_render.py, scripts/ci.py, scripts/make_captions.py, scripts/motion.py, scripts/motion_scout.py, scripts/paths.py, scripts/polish.py, scripts/qa.py, scripts/render_final.py, scripts/tierboard.py, scripts/tighten_edl.py, scripts/verify_captions.py, scripts/verify_cuts.py, scripts/verify_motion.py, scripts/
Co robi i kiedy
Zamienia surowe nagrania mówione w gotowe pionowe shorty: tnie, czyści dźwięk, dodaje napisy słowo po słowie i grafiki ruchome, a potem sprawdza jakość.
Oryginalny opis (EN)
Turn raw talking-head recordings (OBS, webcam, screen capture) into finished vertical shorts — cut the retakes and dead air, clean the audio, burn word-by-word captions, add cue-anchored motion graphics and retention pattern-interrupts, all in a single video encode, then prove it with a QA gate. Use when asked to edit/cut/clip raw talking-head footage, remove retakes or dead air, denoise recording audio, add captions or motion graphics to a talking-head video, or improve a video's retention.
Jak działa
- The prime directive
- Subskills
- Project layout
- SETUP
- The pipeline
- Hard rules (violating any of these produces a silent failure)
- What shipped
- Fix the capture, not the edit
Podgląd SKILL.md
---
name: shorts-edit
description: Turn raw talking-head recordings (OBS, webcam, screen capture) into finished vertical shorts — cut the retakes and dead air, clean the audio, burn word-by-word captions, add cue-anchored motion graphics and retention pattern-interrupts, all in a single video encode, then prove it with a QA gate. Use when asked to edit/cut/clip raw talking-head footage, remove retakes or dead air, denoise recording audio, add captions or motion graphics to a talking-head video, or improve a video's retention.
---
# shorts-edit
The orchestrator. Raw takes in, postable vertical shorts out.
Built and hardened on a real session: 14 OBS recordings, 57 minutes of raw → 21 minutes of
cut. **Every rule below exists because a defect got through review looking fine.**
## The prime directive
> **Nothing is done until `qa.py` passes. Not "looks good" — passes.**
Every single bug in this pipeline's history was invisible to eyeballs and obvious to a
measurement. A caption verifier that sampled long words reported perfect while short words
were silently wrong. A tier grade was revealed 5.7s before it was spoken and every frame
looked fine in isolation. Audio "sounded weird" and the cause was a filter silently
changing mode. **Do not trust your eyes on this material. Measure.**
## Subskills
| Skill | Owns |
|---|---|
| **shorts-cut** | take selection, dead air, why ASR word-ends are fiction |
| **shorts-audio** | the two silent audio traps, and why the answer was no denoiser |
| **shorts-motion** | scout → plan → render, cue anchoring, the brand, the tier board |
| **shorts-qa** | the gate. 7 checks. Run it before anything ships. |
Read the one you need. Read **shorts-qa** always.
## Project layout
```
<project>/
raw/ source recordings (untouched)
clips/ <name>_final.mp4 <- deliverables
edit/ everything derived
transcripts/ cached word-level ASR — NEVER re-transcribe
edl_parts_tight/ the cut decisions — SOURCE OF TRUTH
motion.json the graphics plan (cue-anchored)
word_fixes.json ASR corrections + caption inserts
caption_work/ per-frame PNG sequence + schedule.json
```
Scripts find the project via `$SHORTS_PROJECT`, `--project <dir>`, or by walking up from
the cwd for `raw/`.
## SETUP
```bash
brew install ffmpeg # every stage shells out to it
pip install pillow numpy # the renderers
# transcription runs through the vendored video-use helpers
export ELEVENLABS_API_KEY=...
```
Then point two shell vars at this vault so the pipeline below copy-pastes:
```bash
V=~/.claude/skills/content-vault/skills # wherever you cloned content-vault
S=$V/shorts-edit/scripts
```
Optional, all with sane fallbacks — see `scripts/assets.py`:
| Env | Default | If unset |
|---|---|---|
| `SHORTS_FONT` | macOS Helvetica Neue `.ttc` | on Linux/Windows, set it — there is no fallback face |
| `SHORTS_SFX_DIR` | `shorts-edit/assets/sfx/` | synthesised whoosh/impact/riser, measures clean |
| `SHORTS_BRAND_MD` | `shorts-edit/assets/BRAND.md` | ships conformant; edit it to your brand |
## The pipeline
```bash
export SHORTS_PROJECT="/path/to/project"
# 1. transcribe (word-level, CACHED)
python $V/video-use/helpers/transcribe_batch.py "$SHORTS_PROJECT/raw" \
--edit-dir "$SHORTS_PROJECT/edit" --workers 4
python $V/video-use/helpers/pack_transcripts.py --edit-dir "$SHORTS_PROJECT/edit"
python $S/words_dump.py
# 2. pick takes -> edit/edl_parts/*.json (see shorts-cut)
# 3. tighten dead air inside kept takes
python $S/tighten_edl.py # -> edit/edl_parts_tight/
# 4. plan graphics (see shorts-motion)
python $S/motion_scout.py "<clip>" # find the visualizable moments
# -> hand-write edit/motion.json, CUE-ANCHORED
# 5. build — cut + captions + audio + graphics + polish, ONE encode
python $S/build.py "<clip>" --polish
# 6. THE GATE — nothing ships until this passes
python $S/qa.py "<clip>"
```
## Hard rules (violating any of these produces a silent failure)
1. **ONE video encode.** Trim → concat → zoom → overlay → encode, all in one filtergraph.
Two encodes softened a 246 kbps source from SSIM 0.998 to 0.977. Never re-encode a
finished clip to add something to it.
2. **ASR word END times are fiction.** They pad into the following silence and can be
phantom words over dead-silent audio. Word STARTs are reliable. **All silence reasoning
comes from the audio (`silencedetect`/RMS), never the transcript.**
3. **Never let ffmpeg derive caption/graphic timing from durations.** The concat demuxer
re-times to CFR and rounds boundaries as it pleases. Use one PNG per output frame.
4. **Never use `loudnorm` for gain.** See shorts-audio. It silently pumps.
5. **Graphics are cue-anchored, never hand-timed.** See shorts-motion.
6. **Fades only at real cut edges.** A mid-beat framing change is not a cut — the audio
runs straight through it. A 30ms fade there dips the voice audibly.
7. **`concat` wants inputs interleaved** `v0,a0,v1,a1,…` — not all video then all audio.
The two are identical for one segment, so a single-segment test clip hides the bug.
8. **PIL's ImageDraw with a partial-alpha fill OVERWRITES pixels, it does not composite.**
Draw at full opacity on a layer, then fade the layer. Otherwise a fading element punches
a transparent hole through whatever is beneath it.
## What shipped
| | |
|---|---|
| video | libx264 CRF 6, preset slow, native res/fps, bt709/tv — SSIM 0.9996 vs source |
| audio | highpass 60Hz + a constant gain to −1.5 dBTP. **No denoiser.** |
| captions | Helvetica Neue Medium, lowercase, 18px, tracking −1, no stroke |
| graphics | cue-anchored, on-brand, drawn per frame at 30fps |
| retention | pattern interrupt every ≤4.8s; dead-air 0% |
## Fix the capture, not the edit
The source was **360×640, 246 kbps, −43 LUFS**. No post-processing recovers detail that was
never recorded. Raising the OBS canvas and input gain improves every future edit for free.
Pliki w paczce (21)
- SKILL.md 6 KB
- assets/BRAND.md 2 KB
- scripts/assets.py 2 KB
- scripts/behind.py 5 KB
- scripts/brand_lint.py 6 KB
- scripts/build.py 9 KB
- scripts/caption_render.py 3 KB
- scripts/ci.py 6 KB
- scripts/make_captions.py 6 KB
- scripts/motion.py 39 KB
- scripts/motion_scout.py 3 KB
- scripts/paths.py 2 KB
- scripts/polish.py 13 KB
- scripts/qa.py 12 KB
- scripts/render_final.py 13 KB
- scripts/tierboard.py 8 KB
- scripts/tighten_edl.py 3 KB
- scripts/verify_captions.py 5 KB
- scripts/verify_cuts.py 5 KB
- scripts/verify_motion.py 6 KB
- scripts/words_dump.py 2 KB
Wersje
W bazie nie ma innych skilli o nazwie shorts-edit.
Migawka bazy z 13.11.2026 · wersja paczki efb2ee1f808f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 3 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100edit-footage-with-code
Montuje surowe nagrania z agentem: usuwa martwą ciszę i pomyłki, dodaje napisy, grafiki i dźwięk w HyperFrames lub Remotion, sprawdzając wynik liczbowo. - 100edit-footage-with-code
Montuje surowe nagrania z agentem: usuwa martwą ciszę i pomyłki, dodaje napisy, grafiki i dźwięk w HyperFrames lub Remotion, sprawdzając wynik liczbowo. - 100shorts-cut
Tnie surowe nagrania mówione do użytecznych ujęć: wybiera ostatnie pełne podejście, usuwa nieudane starty i martwą ciszę. - 100edit-footage
Zamienia własne surowe nagranie mówione w pionową rolkę lokalnie i bez kosztów: transkrypcja, wybór właściwego ujęcia, usuwanie pauz i napisy. - 100edit
Montuje filmy z mówiącą osobą od początku do końca: tnie ciszę i wpadki, dodaje napisy zgrane ze słowami, normalizuje dźwięk do -14 LUFS i eksportuje na Reels, TikTok i Shorts. - 90edit-video
Zamienia nagranie z mówiącą głową w gotowy pionowy short: transkrypcja, cięcie ciszy, napisy, grafiki zsynchronizowane z mową i kontrola jakości.