Write talking-head scripts and produce Instagram reels and YouTube shorts
96%
Does it follow best practices?
Impact
98%
1.07xAverage score across 8 eval scenarios
Low
Low-risk findings worth noting
Owner of every shape below: scripts/pipeline.py for state.json,
scripts/provenance.py for the fingerprint format the others share. Readers
treat a record they cannot parse, or one stamped with a schema they do not
know, as "no usable prior state". A record is a last-seen snapshot: anything
it claims about a file is checked against the file on disk before use.
{"path": str, "size": int, "mtime_ns": int} — provenance.file_fp(). A file
"matches" its fingerprint only while path, size and mtime are unchanged. Every
render writes a new file, so a re-render never matches an old fingerprint.
Writer: pipeline.py only. Fields:
| field | type | since | meaning |
|---|---|---|---|
schema_version | int | 1 | 5 |
target_duration | number | 1 | seconds |
mode | music-video | talking-head | 2 | default music-video |
resolution | 1080 | 4k | 3 | default 1080 |
aspect | 9:16 | 16:9 | 1:1 | 4 | default 9:16; picks the export deliverables |
captions | bool | null | 4 | null = not asked |
grade | string | null | 5 | null = the mode's default (gritty / clean) |
gates["1"|"2"].state | pending | presented | approved | nle-wait | 1 | the recorded decision |
gates[n].artifact | fingerprint | 5 | the file the decision was about |
gates[n].qc | {kind: status} | 5 | QC results at decision time |
gates[n].accepted_unverified | string | 5 | reason given to approve over a SKIPPED check |
gates["1"].plan_mtime_at_wait | number | 1 | NLE round-trip guard |
A recorded presented/approved counts only while artifact still matches the
current preview (gate 1) or work/master.mp4 (gate 2) and that render is
current. Otherwise pipeline.py reads the gate as pending and warns. Records
older than v5 have no artifact; their approvals read as pending until made
again. pipeline.py upgrades the version on load and writes v5 on the next save.
Writers: render_reel.py, resolve_render.py, after the output is published.
Reader: pipeline.py.
{"schema_version": 1,
"output": <fingerprint of the render>,
"plan": {"path": "plan/cut_plan.json", "sha256": "..."},
"inputs": {"music": <fp|null>, "vo": <fp|null>, "duck_words": <fp|null>,
"lut": <fp|null>, "srt": <fp|null>, "clips": [<fp>, ...]},
"settings": {"engine": "ffmpeg|resolve", "grade": ..., "aspect": ..., ...}}A record whose output no longer matches is ignored (it described an earlier
file). A render is current while the plan's sha256 and every non-null input
fingerprint still match.
Writers: check_cuts.py (work/qc*.json), qa_render.py (work/qa*.json),
verify_cut.py --out (work/verify*.json). Each carries "video_fp", the
fingerprint of the file checked. pipeline.py uses only reports whose
video_fp matches the render under review.
| check | pass | fail | other |
|---|---|---|---|
check_cuts | defects empty | any defect | review items are listed, never block |
qa_render | defects empty | any defect | as above |
verify_cut | status PASS | FAIL | SKIPPED — approval needs --accept-unverified |
Writer: export_variants.py. Reader: pipeline.py.
{"schema_version": 1, "master": <fp>, "shape": "vertical|square|landscape", "captioned": <fp|null>, "sidecar": <fp|null>, "outputs": [<fp>, ...]}.
Exports are complete when every name in export_variants.DELIVERABLES[aspect]
exists and the manifest's master and outputs still match. With captions on
(state.json captions: true), each name also needs <name>_captioned.mp4,
captioned must match work/master_captioned.mp4, and sidecar
(captions.srt) must be present.
plan/brief.json (brief.py), plan/selects.json (selects.py),
plan/shortlist.json (shortlist.py), plan/hooks.json (hooks.py),
plan/story.json (story_plan.py) and plan/package.json (package.py)
each carry schema_version 1. Their formats live in the owning script's header;
the script validates and never migrates — a file with another version is
refused with a message naming the version it reads.
Owner and only writer: library.py index (rebuilt whole each run; never
migrated — re-index on a schema change). {"schema_version": 1, "roots": [..], "projects": [..], "records": [record, ...]}. A record: id (m:/s:/c:
prefix for moment / speech / clip), kind, project, source (resolved
path), fp (fingerprint of the source at index time), start, end, and per
kind: moments carry what, purpose, value, concerns, who, shot,
sheet; speech carries text, transcript; clips carry text (the stem) and
sheet. Readers check fp before trusting source.
Owner and only writer: publish_log.py; it reads v1 and upgrades it on load
(adds decisions: {} to each post), writing v2. One per series, beside the project
folders. {"schema_version": 1, "posts": [post, ...]}, each post:
id (<project>/<platform>), project, platform, posted (YYYY-MM-DD),
url, structure, duration_s, band (duration band), hook,
hypothesis (brief viewer: promise), observations (list of {at, views, avg_watch_pct, retention_3s_pct, saves, shares, comments, notes}, any subset),
next_experiment, and (v2) decisions — hook_variant, hook_line_kind
(recorded/pickup), hook_on_screen_text, series, grade, captions,
captions_burned, any subset, read from the project by add --project-dir. A log with another schema_version is refused, not
rewritten.
Writer: shortlist.py promote only, once per promoted project. Readers: the
agent, when it writes plan/layout.json (slides.start) and plan/cut_plan.json
(speech_end); no script reads it.
| field | type | since | meaning |
|---|---|---|---|
schema_version | int | 2 | 2 |
source | fingerprint | 1 | the long recording |
start, end | number | 1 | the shortlist entry's speech range, source seconds |
excerpt_start, excerpt_end | number | 2 | the range raw/excerpt.mp4 covers, handles included |
handles | {"head", "tail"} | 2 | seconds added before start and after end |
speech_end | number | 2 | where the last word ends, in excerpt seconds |
shortlist_id, transcript | string | 1 | the entry and its recorded words |
A record without schema_version is version 1. It is no usable prior state
for a reader: run the owner's migration first, then read the version 2 record.
uv run --no-project --python '>=3.11' scripts/shortlist.py migrate --project .The migration is exact: a version 1 excerpt was cut at start–end, so it
becomes zero handles, excerpt_start = start and speech_end = end - start.
Only the record is rewritten; raw/excerpt.mp4 is untouched. For real handles,
promote the entry into a new project. A record newer than the installed
shortlist.py is refused; update the skill.
Writer: talk_layout.py only (build, and hyperframes when it writes the
project), before the layout clip renders. Reader: talk_layout.layout_status,
which pipeline.py's layout stage calls; no other script reads it.
| field | type | meaning |
|---|---|---|
schema_version | int | 2 (version 1 had no fonts; it reads stale and is rebuilt) |
engine | build | hyperframes | which renderer the clip comes from |
spec | string | the layout spec's path |
spec_sha256 | string | sha256 of the spec's bytes when the record was written |
camera | fingerprint | the spec's camera.file |
slides | fingerprint | null | the spec's slides.file; null when the spec has none |
fonts | {key: fingerprint} | every style.fonts entry that is a file (a font name has none) |
The clip is done only while: the record is version 2; the recorded fonts are
the spec's font files and each still matches; its spec_sha256
matches the spec; every input the spec names is recorded at the same path and
still matches its fingerprint (and none is recorded that the spec dropped); the
clip is newer than the record; and the clip's frame size is the project's.
Anything else, including a missing or unreadable record, is stale: rebuild the
layout, which writes a new record. Readers never repair a record.
Owner: skills/reel-builder/scripts/plan_schema.py. Every script writes a plan through
plan_schema.write() (build_cut_plan.py, import_timeline.py,
resolve_bridge.py) and reads one through plan_schema.load() (renderers, QC,
timeline export, pipeline.py). The agent also writes plans by hand; the first
read stamps them. plan_schema.py check <plan> validates one.
| key | type | since | meaning |
|---|---|---|---|
schema_version | int | 2 | 2 |
segments | list | 1 | {"clip", "in", "duration"} each (plus optional note, pan) |
music, music_start, bpm | string, s, number | 1 | the music spine (montage) or bed |
total_duration | s | 1 | defaults to the sum of the segments |
vo | {"file", "start", "words"} | 1 | a continuous voice under the picture |
audio | "segments" | 1 | the speech is cut with the picture on purpose |
speech_end | s | 1 | where the last word ends; the closing fade starts no earlier |
fade_out | {"seconds", "video"} | 1 | closing fade length; video fades the picture too |
fps | number | null | 1 | resolve_bridge.py timeline rate |
Version 1 is the same keys without schema_version (every plan before 0.51.0).
load() upgrades it by adding the stamp and rewriting the file; renders bound
to the old plan's hash read stale once and re-render. A plan newer than the
installed skill is refused. Readers never migrate a plan themselves.
.tessl-plugin
skills
reel-builder
assets
references
scripts
yap-writer