CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

gamussa/reels-producer-skill

Write talking-head scripts and produce Instagram reels and YouTube shorts

1.07x
Quality

96%

Does it follow best practices?

Impact

98%

1.07x

Average score across 8 eval scenarios

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

state-schema.mdskills/reel-builder/references/

State and provenance records

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.

Fingerprint

{"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.

state.json (schema_version 5)

Writer: pipeline.py only. Fields:

fieldtypesincemeaning
schema_versionint15
target_durationnumber1seconds
modemusic-video | talking-head2default music-video
resolution1080 | 4k3default 1080
aspect9:16 | 16:9 | 1:14default 9:16; picks the export deliverables
captionsbool | null4null = not asked
gradestring | null5null = the mode's default (gritty / clean)
gates["1"|"2"].statepending | presented | approved | nle-wait1the recorded decision
gates[n].artifactfingerprint5the file the decision was about
gates[n].qc{kind: status}5QC results at decision time
gates[n].accepted_unverifiedstring5reason given to approve over a SKIPPED check
gates["1"].plan_mtime_at_waitnumber1NLE 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.

.render.json (schema_version 1)

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.

QC reports

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.

checkpassfailother
check_cutsdefects emptyany defectreview items are listed, never block
qa_renderdefects emptyany defectas above
verify_cutstatus PASSFAILSKIPPED — approval needs --accept-unverified

exports/manifest.json (schema_version 1)

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 files the agent authors

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.

../footage-library.json (schema_version 1)

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.

../publish-log.json (schema_version 2)

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.

raw/excerpt.provenance.json (schema_version 2)

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.

fieldtypesincemeaning
schema_versionint22
sourcefingerprint1the long recording
start, endnumber1the shortlist entry's speech range, source seconds
excerpt_start, excerpt_endnumber2the range raw/excerpt.mp4 covers, handles included
handles{"head", "tail"}2seconds added before start and after end
speech_endnumber2where the last word ends, in excerpt seconds
shortlist_id, transcriptstring1the 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.

.inputs.json (schema_version 2)

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.

fieldtypemeaning
schema_versionint2 (version 1 had no fonts; it reads stale and is rebuilt)
enginebuild | hyperframeswhich renderer the clip comes from
specstringthe layout spec's path
spec_sha256stringsha256 of the spec's bytes when the record was written
camerafingerprintthe spec's camera.file
slidesfingerprint | nullthe 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.

plan/cut_plan.json (schema_version 2)

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.

keytypesincemeaning
schema_versionint22
segmentslist1{"clip", "in", "duration"} each (plus optional note, pan)
music, music_start, bpmstring, s, number1the music spine (montage) or bed
total_durations1defaults to the sum of the segments
vo{"file", "start", "words"}1a continuous voice under the picture
audio"segments"1the speech is cut with the picture on purpose
speech_ends1where the last word ends; the closing fade starts no earlier
fade_out{"seconds", "video"}1closing fade length; video fades the picture too
fpsnumber | null1resolve_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.

skills

tile.json