Przejdź do treści
Biblioteka skilli
Marketing i treści · Budowanie i kod

make-episode-hf

/make-episode-hf

Tworzy pełny odcinek YouTube Shorts z animowanymi wycinankami w HyperFrames, lektorem i napisami oraz niezależnymi bramkami przeglądu.

Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Tworzy pełny odcinek YouTube Shorts z animowanymi wycinankami w HyperFrames, lektorem i napisami oraz niezależnymi bramkami przeglądu.

Wyzwalacze z opisu

make episode <slug>make this week
Oryginalny opis (EN)

Full Opus track (the default): produce a YouTube Short with paper cut-out sprites animated by HyperFrames rigs (HTML/GSAP, rendered locally) plus 2 short Seedance clips, offline Kokoro voice, Whisper-checked captions and independent review gates. 22–30 s, about 66–100 Krea units. Use for "make episode <slug>", "make this week's batch".

Jak działa

  1. 0. Setup (done 2026-11-12)
  2. 1. Script + bible (status → scripted), 0 units
  3. 2. Script gate BEFORE any TTS, 0 units
  4. 3. Layers + voice + shot plan (≈ 15 + 30 units)
  5. 4. Combined gate → the owner approval
  6. 5. Seedance clips (≥ 2, 3–4 s each, ~7.7 units/s)
  7. 5b. Code clips (lemo-opuscar bridge, 0 units)
  8. 6. Compose, self-check, render (status → animated → assembled), 0 units
  9. 7. Final gate (expect ≤ 2 rounds)
  10. 8. Publish pack, report
Sekcje z nagłówków SKILL.md, w oryginale · 178 linii, 2 175 słów
Podgląd SKILL.md
---
name: make-episode-hf
description: Full Opus track (the default): produce a YouTube Short with paper cut-out sprites animated by HyperFrames rigs (HTML/GSAP, rendered locally) plus 2 short Seedance clips, offline Kokoro voice, Whisper-checked captions and independent review gates. 22–30 s, about 66–100 Krea units. Use for "make episode <slug>", "make this week's batch".
---

# Make episode(s): default track (HF sprite rigs + 2 Seedance clips)

**This is the DEFAULT** (the owner, 2026-11-12):
- Motion must be captivating: camera pans alone fail.
- 22–30 s long.
- At least 2 Seedance clips.
- Cap 150 units; over-cap needs the owner.

**Best result so far:** emu-war, 7/10 APPROVE at 125 units, built with **positioned sprite cut-outs + rigs**. Sliced plates (molasses) stalled at 6/10, and camera-only HF scored 5.4.

`run_id = YYYY-MM-DDTHHMMZ_hf-episode-<slug>`.
- Log every step per `_system/LOGGING.md`, one event per job as it happens, with render seconds.
- Before any Krea job, run the never-pay-twice check.
- **Use the LOGGING.md schema exactly:** every event has an `actor`; Krea events use `krea_job_id`, `units_est` (plus the measured balance delta in `ref`) and `local_path`. Never-pay-twice depends on these field names.
- Log verdicts in the order they happened, and log render seconds for every render.

## 0. Setup (done 2026-11-12)
- Node ≥ 22. HyperFrames lives in `hf/`.
- Always run `hf/node_modules/.bin/hyperframes` with `HYPERFRAMES_NO_TELEMETRY=1 HYPERFRAMES_NO_UPDATE_CHECK=1 DO_NOT_TRACK=1`.
- **Never run `hyperframes init`** (it installs skills globally). No HeyGen cloud features.
- ffmpeg-full gives libass. Run Python as `python3 -I`.

## 1. Script + bible (status → scripted), 0 units
- Write `make-episode` §1: five beats, ≤ 60 written words with numbers spelled out (about 2.2 words/s), every claim sourced.
- In `script.md`, give each claim a source line with the **URL actually opened** and its tier. ytmanager copies these URLs into the description. Never write "Wikipedia" without the link.
- Bible: subject designs, **screen direction** (who moves which way, who is behind whom) and period-correct props. Examples: a Lewis gun has a top drum magazine and a thick barrel shroud; use an interwar tank, not a modern one.
- **History rule for pictures:** a shot must never merge two separate incidents into one image. Example: the gun that jammed at a dam ambush is not the truck gun.

## 2. Script gate BEFORE any TTS, 0 units
Spawn a FRESH `episode-director`, gate **script** (text only).
- Apply its FIX items.
- REVISE: at most 2 rounds.
- **No TTS until this gate passes.** Both discarded voice takes (60 units) came from voicing a script the gate then changed.

Then write the approved hook and angle back to the topic row in `_system/topics/topics_YYYY-MM.csv`, with status `scripted`, so the CSV never disagrees with the script.

## 3. Layers + voice + shot plan (≈ 15 + 30 units)
**Layers:**
- **Plates:** backgrounds, 2 units each.
- **Cut-outs:** every object that moves on its own (including sub-parts that must move separately, like a gun off a truck), on magenta. Use the style lock (or `_system/style-locks/<style>.md`) and end with "isolated on a perfectly flat solid magenta background (#FF00FF)…".
- **Keying:** run `python3 hf/scripts/key_cutout.py <in> <out_sprite> [--bg flood --tol 0.44] [--holes] [--split 2 --names a,b]` and check the result on a teal background.
  - Krea often paints the "magenta" as textured crimson paper. Use `--bg flood`, a hue flood from the border that also removes the cast shadow.
  - Add `--holes` for enclosed pockets (wheels, legs), but not on figures with pink or magenta paint.
  - Generate matched variants as one image side by side (e.g. a painted and a bare soldier) and `--split` it.
- **Sub-parts:** cut them from a sprite with PIL at 0 units (e.g. `C2_gun.png` + `C2_nogun.png`).
- **Never** slice a moving object out of a flat plate.

**Voice (default Kokoro, 0 units):**
- Before rendering, check the word count (≤ 60) so the read lands at 22–28 s.
- Run `.venv/bin/python scripts/tts_kokoro.py <ep>`. It uses voice `bm_george`, turns digits into words, and reads years aloud ("nineteen seventy-four").
  - To change how any line is spoken, add a `## Spoken text` section to script.md.
  - It writes `audio/vo.mp3` and `audio/words.json` and runs the Whisper check.
- Exit 0 means similarity ≥ 0.90: use it. Exit 3 means it is still below 0.90 after one slower retry.
- **Backup only:** use ElevenLabs (`elevenlabs/tts`, George `JBFqnCBsd6RMkjVDRZzb`, ~30 units via Krea) only in these two cases:
  - Kokoro exits 3. Then run `voice_check.py` on the ElevenLabs file too.
  - The episode or channel needs a tone or voice Kokoro can't give.
- Log the engine and the reason. Never mix engines within one episode.
- Use `words.json`'s `line_starts_s` in `episode.json.voice.line_starts_s`.

**Shot plan in `episode.json` (per shot):**
- `duration_s`, `layers: ["P1"]` (the plate), `sprites: [{id, src, x, y, w, z, shadow}]` (px in 1080×1920; feet = y + h), `rigs: [...]`, `cam: [scale0, scale1]`, `sfx_at: [rel s]`, optionally `plate_filter` and `overlap`.
- Clip shots get `clip` (set after generation) and **`start_layout: {plate, sprites}`**, the same sprite format.
- `python3 hf/scripts/compose_start.py <ep>` renders `keyframes/<id>_start.png` from `start_layout`. That still is the Seedance start image, so the clip matches the layers. Keep the layout in the JSON; never hand-compose a start frame in a scratch script.

**Timing rules:**
- Time every hero beat to the **spoken word** (from `line_starts_s`).
- Slide-in transitions start 0.3 s early, so a payoff word must not sit inside a transition.
- A Seedance clip shorter than its beat is stretched locally (`setpts=PTS*k`, k ≤ 1.2) rather than re-rolled.

**Captions:** after ytmanager writes `captions/vo.ass`, run `.venv/bin/python scripts/retime_captions.py <ep>`. It snaps every card to its first word and flags cards under 0.7 s. Fix flagged cards by merging them into 3–5-word cards (still ≤ 19 characters, one line); terracotta-army had 10 cards under 0.7 s.

## 4. Combined gate → the owner approval
- Run the storyboard contact sheet (start frames + sprite layout renders) through a FRESH `episode-director`, gate **storyboard**.
- Then show the owner the boards, the voice and the estimate. This is the only video-spend approval.

## 5. Seedance clips (≥ 2, 3–4 s each, ~7.7 units/s)
- Put them on the hook and the twist, or the most physical beats.
- **3–4 s clips keep the paper look**; longer ones drift glossy or CGI.
- **What Seedance can and can't do:**
  - Good: physical reveals and motion (soil flaps peeling back, running animals, a lurching truck).
  - Bad: surface changes on a figure (paint flaking, colour change). terracotta-army s05 gave confetti, then bare skin.
  - Build surface changes with the HF `peel` rig: painted strips over a locally desaturated copy of the plate. It costs 0 units.
- Prompt: ONE action with direction, distance and duration, plus "the camera holds". End with the CLAUDE.md ending. Pin colours ("navy folded paper, never green").
- Run them async in pairs, poll `get_job`, and follow the outage policy (`make-episode` §5).
- Download to `clips/sNN.mp4`. Check a frame strip: paper look, the direction matches the bible, nothing passing through anything.
- Log the measured balance delta.

## 5b. Code clips (lemo-opuscar bridge, 0 units)
Use a code clip when a beat needs a look our paper rigs can't do and Seedance would be wrong or costly, such as a map route, an ink-wash reveal or a diagram.
- **Write the clip** as a lemo-opuscar film page in `<ep>/code/<shot>/index.html`:
  - it must set `window.DUR`, `window.render(t)` (deterministic, a pure function of t) and `window.READY = true`;
  - lay it out for 1080×1920;
  - use the separate install's docs (`$LEMO_OPUSCAR_HOME (default ~/lemo-opuscar)/TECHNIQUE.md`, `styles/<slug>/STYLE.md`) for technique only. Never copy its docs into this repo (CC BY-NC).
- **Run `scripts/opuscar_clip.sh <ep>/code/<shot> <ep> <shot>`.** It renders with lemo-opuscar's own renderer and fits the clip to the shot's `duration_s`. It writes `clips/<shot>_code.mp4` and sets `clip`, `engine: "code (lemo-opuscar)"` and `code_src` on the shot. It also moves the shot's sprites, rigs and effects to `replaced_*` keys, and logs a 0-unit event.
  - `--keep-overlays` keeps our paper sprites on top of the clip.
  - Then rebuild with `build_layered.py`.
- **Review:** code clips count as clips for the gates. The director fact-checks everything they show, maps especially, using our rules, never lemo-opuscar's AGENTS.md map rules. Code clips don't count toward the ≥ 2 Seedance clips.
- **Tested** 2026-11-12 on a scratch copy of terracotta-army: a 4.2 s map route rendered in about 4 s, and it played under our captions and cuts.

## 6. Compose, self-check, render (status → animated → assembled), 0 units
Spawn `hf-composer` with the episode folder (or run it yourself). It does the following:
1. `python3 -I hf/scripts/build_layered.py <ep>`. Sprite shots use `hf/scripts/sprite_rigs.py`.
2. Lint (0 errors), render (`-q standard -w 4`, ~40 s), then `hf/scripts/finish.sh <ep>` (−14 LUFS).
3. `python3 scripts/review_frames.py <ep> <round>` writes `review/<round>/`: a 0.25 s motion strip per shot, cut and key frames, and `holds.txt`. That file must say `none` before the final gate: give every flagged hold a move.
4. **Motion self-check before any gate.** These four items caused most director notes:
   - **Direction:** every move matches the story and bible (a scatter flees the gun; the truck stays behind).
   - **No dead holds:** no stretch over ~1.5 s with nothing moving except camera scale. Add a step, bob or settle.
   - **Payoff on the word:** the hero beat lands on its spoken word and isn't covered by a transition or a caption. Overshoots stay out of the caption band (about y 1330–1430).
   - **Hidden until built:** sprites that fold up are hidden until their own build starts (flat slivers read as smears).
   - Also: hook subject in frame at 0.0 s and changing within 0.5 s; ≥ 85 % of seconds with visible change; the loop's last frame matches the hook's first.

**Rig library** (`sprite_rigs.py`; every rig follows the hf-composer Motion principles):
- flock-build
- wheat-flatten (+ `instant` for continuity)
- truck-in / truck-out
- scatter (`away`)
- gun-jam
- step
- bob
- flip-morph (A→B with overshoot, shake, dust, `ground_y`)
- tags (+ `swap_src` loop; `n: 0` gives a pure cross-fade loop)
- peel (surface strips curl off over an underlayer)
- seam (a paper flap opens and snaps shut: "sealed", "unopened")

Add a new rig when a story needs it; keep each one generic (an id plus a time).

**Sound design** (generate the kit once with `.venv/bin/python scripts/make_paper_sfx.py`):
- Every visible action gets a sound that matches its material. `sfx_at` takes `{"t": s, "kind": "snap"}` with these kinds:
  - **snap:** pop-up or fold-up.
  - **thump:** landing or heavy object.
  - **creak:** hinge, flap or lid.
  - **whoosh:** fast slide or page air.
  - **flutter:** falling paper.
  - **tear:** peel.
- A plain number still plays a rustle. Paper rustle stays on every cut.
- One near-silence (no SFX, music dipped) just before the twist. The first sound after it is the twist's own hit.
- At least once, let a sound cross a cut: start the next shot's sound 0.2–0.4 s early, or let this shot's hit ring over the cut.

**Directing rules** (from the lemo-opuscar review, 2026-11-12, in our own words):
- Pop-ups rise from the back to the front of the scene; the far pieces settle first.
- A turn or flip is a 2D `scaleX` mirror, never a 3D `rotationY`.
- The shadow is the cut-out's own silhouette, never a rectangle.
- One "native move" per episode at the emotional peak: a moment only paper can do (a fold that becomes the next scene, a flap that seals, a strip that peels).
- At key moments the subject fills at least a third of the frame height.

**Older effects** (`hf_effects`, sliced plates) still work: fold-in, tear-in, pop-up, page-turn, fold-away, crease-light, strip-build, layer-build, facade-fall, v-fold, wave-surge/sweep, plate-split, scraps, shake. Prefer sprites.

## 7. Final gate (expect ≤ 2 rounds)
Send a FRESH `episode-director`, gate **final**:
- `script.md`, `episode.json`, `captions/vo.ass`, `hf/index.html`;
- `review/<round>/` (motion strips + frames);
- duration, LUFS, VO line starts, and a one-line motion description per shot.

Apply FIX items in the generator or `episode.json` (0 units). Redo at most 1 clip per episode. Re-gate with a FRESH instance until APPROVE.

## 8. Publish pack, report
- Spawn `ytmanager`, mode **publish-pack**. It uses the URLs from `script.md` and the director's recommended thumbnail frame.
- Set the topic row to `assembled`.
- Report to the owner: duration, units, verdict, title, flags, and the ASK OWNER fields still open in `_system/channel.md`.
- Schedule **only** after his explicit approval.

## 9. Evaluate
Every 4 episodes, or after any new technique, spawn `pipeline-evaluator` and append its table to `_system/pipelines/comparison.md`.

## Costs (measured)
- Images: 2 units.
- Voice: Kokoro 0 units (default). ElevenLabs backup ~30 units per call.
- Seedance 1.0 Pro Fast: about 25.5 units per 3–4 s clip in practice (emu-war: 51.0 for 4 s + 3 s).
- A clean episode is about **66 units**: ~16 for layers, 0 for the Kokoro voice, ~51 for clips. Before Kokoro: emu-war 125, terracotta-army 117.

## Known limits
- Rigid sprites can't do liquids, fire or cloth: that's what the clips are for.
- HF's own mix is about −21 LUFS, so `finish.sh` must run.
- A 3D `rotationY` page flip renders invisibly; use a 2D scaleX turn.
- A timed `<video>` must sit at the root, not inside a timed scene, or lint fails.
- On sprite shots the camera must move the card (`cam`), not the plate, or sprites drift off their ground.

Wersje

W bazie nie ma innych skilli o nazwie make-episode-hf.

Migawka bazy z 13.11.2026 · wersja paczki 018801b3080b (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100make-episode
    Tworzy krótki film na YouTube prawie wyłącznie w Krea, z klatkami kluczowymi i klipami Seedance, składanym w ffmpeg, w trybie szybkim.
  • 100shorts
    Przygotowuje pionowe klipy 9:16 z odcinka podcastu według listy fragmentów, w stałym stylu z napisami karaoke.
  • 100show-next
    Pisze kolejny odcinek serii wideo AI albo rozciąga jeden odcinek do historii od 3 do 5 minut z połączonych scen po 15 sekund.
  • 100ytshort-setup
    Zakłada fabrykę Shorts YouTube w bieżącym folderze: pliki CLAUDE.md, skrypty, renderer i zainstalowane lokalnie narzędzia do wideo i mowy.
  • 100explainer-reel
    Tworzy krótkie pionowe filmy edukacyjne dla małej firmy z jej materiałów, lektorem offline, napisami i okładką.
  • 100distribute
    Dystrybuuje odcinek podcastu i jego krótkie klipy: wysyła wideo na YouTube, planuje posty na LinkedIn i prowadzi kampanię promocyjną.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.