autoproduce
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
Runs one topic all the way to shipped files with no human gate — the unattended twin of storyboard plus produce. Use when the user asks to "이 주제로 영상 하나 만들어", "주제만 주면 영상까지 만들어줘", "자동으로 쇼츠 만들어", "make a short about X end to end", or when a growth loop needs to refill its publish queue by itself. Researches, writes 3 seven-item scenario candidates and has them judged in one batched reviewer read, authors scenes.js, loops the narration alone to 95 on content and then on wording (three reads each, handed inline), generates 9:16 backgrounds, synthesizes narration, and builds the video plus per-platform text under data/[channel]/episodes/[topic]/output/. Machine gates replace human approval: facts, the batched scenario read, the two narration loops, the style and contract checkers, build report, one content-reviewer read at 95 with zero P0, and a cost cap. Boundary — storyboard plans and stops, produce builds an approved episode, autoproduce does both without stopping.
- Reads credentials
- Deletes or force-pushes
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brandingSkill
- channelSkill
- datagoSkill
- grow-instagramSkill
- grow-threadsSkill
- grow-youtubeSkill
- ingestSkill
- introSkill
- platform-guideSkill
- produceSkill
- publishSkill
- review-recentSkill
- setup-instagramSkill
- setup-threadsSkill
- setup-youtubeSkill
- storyboardSkill
- topic-scoutSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 9 are distinctive, and 19 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
19
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Before reading profile.md, call portal_channel_sync with action: "pull".
- Distinctive: line 85
Before storyboard authoring, follow visual-style.md.
- Very specific: line 86
Ask for one of the STYLES presets (cinematic-miniature, photoreal, webtoon, claymation, paper-cutout, ink-wash, toon-3d, arcade-2d) and use …
- Distinctive: line 89
Read production-mode.md. Human invocations choose the six render ratios with estimated first-pass and retry-inclusive video cost before any …
- Very specific: line 131
Keep storyboard/ in its entirety — the unattended gates can't be audited without evidence, and the publish, queue, and QA harnesses all …
- Very specific: line 192
Read today's and this week's totals from $G/autoproduce.json (create if missing).
- Very specific: line 220
If a topic came in as the argument, use it as-is.
- Distinctive: line 320
Before offering the three directions, then again before the first scene, run the exit checks the storyboard skill runs — the agent that did …
- Very specific: line 348
Before gate 6a judges the three candidates, run node ${CLAUDE_PLUGIN_ROOT}/skills/storyboard/references/check-scenario.js …
- Very specific: line 381
Read ../storyboard/references/object-state-quality.md when planning HTML slides.
- Very specific: line 386
Write window.COMPREHENSION before the scenes: one governing question, one answer, one takeaway, no cross-scene branch in a short …
- Very specific: line 451
A short is always hook → drip (1–n) → cta: Do not default to answer-first.
- Very specific: line 511
Read the tail STORYBOARD_REVIEW: mode=narration score=NN p0=N.
- Very specific: line 570
Keep explicit channel constraints and justify every generated-video slot with visual.why.
- Distinctive: line 571
Do not lower the copied policy or the channel profile to make an unattended episode pass.
- Very specific: line 595
Check the escalation conditions in references/cost-tiers.md.
- Very specific: line 603
Write the projected tally to .work/cost-estimate.tsv.
- Distinctive: line 668
Never add a paid comparison by default or exceed the standing budget for an upgrade.
- Very specific: line 759
After every call, append one line of actual usage to .work/cost-tally.tsv — this file, not §5's estimate file.
- Very specific: line 803
If slide.arts is set, generate each plate into slides/assets/ first — the same recipe as produce §3.6: tactile 3D illustration or photoreal …
- Very specific: line 813
Run node $SB/check-slide.js storyboard/ --require-all, render the sheet with render-motion-slide.mjs --sheet --png-only --keep-frames, and …
- Distinctive: line 843
If the local engine fails with "Python interpreter not found" / "No module named 'supertonic'", abort right there — do not switch to Gemini.
- Very specific: line 887
Never eyeball T — cardend <after> (produce §6) sums the confirmed lengths of card 0..after, and that value is the scene's end time.
- Very specific: line 891
If the storyboard has 2 b-roll slots, pass both clips in a single invocation (call it twice and the second run wipes the first splice).
- Distinctive: line 964
If the channel skips research, state that too (copy is scored out of 85 and the tail rescaled to 100).
- Very specific: line 973
Add the totals (daily/weekly count·usd) and a producedTopics entry to autoproduce.json
- Distinctive: line 975
Update the storyboard.md frontmatter
- Distinctive: line 1005
Don't let escalation become a habit: When the metrics recover, the next episode is back on economy baseline.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
From one topic to a finished video — unattended authoring
Before reading profile.md, call portal_channel_sync with action: "pull". A 409 conflict
holds this queue item. A missing key, network error, 401 or 5xx gets one warning line, then
continue with the local profile and shared assets.
For pending portal render requests, follow the six-ratio allocation contract: portal_render_allocation read → host LLM reasons over every shot → submit requestId/baseRevisionNo and all assignments → pull. New choices persist PRODUCTION.renderRatioVersion:1; neither a pending request nor ratio selection approves spending.
Read story-quality.md before candidate writing, including skip-research channels. It overrides mandatory closing questions and modern parallels. Write STORY with the story pass; use gate 6f's existing narration read for the four quoted findings. After vocabulary edits revalidate and run check-story.js storyboard/ before any generation. Missing, failed or stale reviews stop production with queue hold, not merely publication. A closing beat may have cta:"none". An ask stays optional; a forwardable thing does not — an ask requests behaviour from the viewer, while a forwardable thing is one sentence, figure or verdict they can pass on as-is. Asking to be shared is an ask, not a trigger.
Runs storyboard → produce end to end without human approval. The input is a
single topic string; the output is a publishable output/ set.
This does not replace those two skills. Contracts, templates, and builders are all used as-is from them — this document decides only two things: who judges when no human is present and which model to use.
/social-flow:autoproduce <channel> "<topic>" # human invocation — confirm the result at the end
/social-flow:autoproduce <channel> ["<topic>"] unattended <platform> # growth-loop invocation — no questions.
# <platform> (threads · instagram · youtube) names the calling plan
# growth/<platform>/growth-plan.md; with no topic the plan's topic_source
# decides; the loop pastes the §2 insights it just read into the delegationWhat stands in for the human gates
The pipeline's safety used to hang on three HITL gates (the narration approval at storyboard
§4.6, the storyboard approval at §7, the publish approval). Unattended mode puts the machine verdicts in
their place. If even
one fails, the video still gets made but does not enter the queue (queue_*: hold)
— meaning it won't publish until a human looks at it.
The reviewer reads are two, both on the narration alone (storyboard §4.4·§4.5): the story
read and the vocabulary read, each looped to ≥95 · P0 = 0 with a cap of three reads and
the sentences handed inline. The scenario candidates get one batched read before the pick
(§2.2). The six board reads, the plan review and the slide review of 0.49 are not called on
this path any more (0.50.0 — measured over 358 reviewer runs, the delegations were more than
half of an episode's tokens and most of its wall time). check-scenes.js, check-slide.js
and the author's own look at each image and sheet stand there. What stops the run is a
chain still short at the third read, a topic with no candidate at 95 after the re-read, or
a contract checker at exit 1.
| What a human used to check | Unattended replacement | On failure |
| Are the facts right | Time-sensitive values cross-checked against 2 independent sources + 3 or more verified facts | Topic discarded (§2) |
| Does the copy read like a human wrote it | check-style.py exit ≤ 1 per surface (4 = not Korean, so unchecked — it needs a human, and unattended runs stop at it) | Fix and retry; abort after 2 failures (§4·§9) |
| Is the story worth telling (both formats) | three seven-item candidates judged in one batched storyboard-reviewer read on the wow (a belief the viewer holds, overturned in a named 전개 item) and curiosity · fear · intrigue · comedy → the highest at ≥95 · P0 = 0 (one improving re-read of the best page at most) | Topic dropped (§2.2) |
| Does the narration alone carry the episode | storyboard-reviewer narration mode on the inline sentences, looped → ≥95 · P0 = 0 (cap 3 reads) | Authoring aborted (§3.5) |
| Is the wording what a person would say | storyboard-reviewer vocabulary mode on the same sentences, looped → ≥95 · P0 = 0 (cap 3 reads) | Authoring aborted (§3.6) |
| Does the video hold together | build-report.txt drift 0 · 0 missing reveals · voice-to-bed separation ≥ 4 LU | Abort (§8) |
| Is it fit to publish | content-reviewer copy ≥95 · P0 = 0 (one read) | queue_*: hold (§10) |
| Is the spend allowed | cost-report.sh --cap exit 0 | Escalation cancelled, back to economy baseline (§5) |
Absolute rules
Before storyboard authoring, follow visual-style.md.
Ask for one of the STYLES presets (cinematic-miniature, photoreal, webtoon, claymation, paper-cutout, ink-wash, toon-3d, arcade-2d) and use the actual choice for all new storyboard images.
Unattended authoring needs an explicit standing style choice; otherwise wait for HITL.
Read production-mode.md. Human invocations choose the six render ratios with estimated first-pass and retry-inclusive video cost before any assets. Unattended calls use a written standing mode, cap and attempt limit; legacy standing plans retain hybrid, never silently full_video. A mode/budget conflict holds before spending. An explicitly authorized full_video episode follows full-video.md for source images, prompts, separate narration, every generated clip and QA; this replaces the hybrid-only baseline/one-slot clauses below. All spend, narration and publish gates still apply.
- Banned subject matter is inherited — profile §2's banned expressions and
subjects and profile §3's banned subjects, plus the growth plan's banned list
on unattended calls. A phrase
market-keywords.mdflags as banned is not an eligiblescouttopic either, top of the table or not. Politics, religion, nationality-based disparagement, and unverified regulatory information go out through no path. - Never invent facts — numbers that failed verification stay out, and a range is never collapsed into its upper bound. Automated authoring doesn't lower the bar.
- Never change the TTS engine/voice set in profile §2 — don't move a
geminichannel to local because local is cheaper. The narrator would change from episode to episode. - Start at the economy baseline —
references/cost-tiers.mdis the source of truth for the model ladder and escalation conditions. Escalate only when observed metrics say so. - Unattended mode does not publish — this skill goes no further than stamping the queue markers. Publishing is done by the growth loop's slot step or the publish skill.
- Never author without the lock — two growth loops can run on the same channel at once (§0). Enter without the lock and the same topic gets made twice, and paid for twice.
- No more than 2 episodes per platform loop per day — the YouTube plan and
the Instagram plan each get at most 2 a day. Successes and failures count
together, per caller (plan) — that's why
autoproduce.json's daily bucket keeps callers separate. A plan'sdaily_produce_capcan only lower this, never raise it. Calls made directly by a human sit outside this cap — the human is deciding the episode count right there. - Never tell the same story twice — a candidate topic must pass §1's
check-duplicate.pyverdict. Different slug, same content is still a rehash, and a rehash costs you both Instagram's originality assessment and the channel's credibility.
Deliverables
Keep storyboard/ in its entirety — the unattended gates can't be audited
without evidence, and the publish, queue, and QA harnesses all read these files.
data/<channel>/episodes/<topic-slug>/
├── storyboard/
│ ├── research.md # sources, check dates, verification status — for automated authoring this is the only audit trail
│ ├── candidates/ # d1.md · d2.md · d3.md — three candidate scenarios, scored once in scenario mode (gate 6a)
│ ├── scenario.md # the winner, copied after the pick
│ ├── scenes.js # SoT
│ ├── storyboard.md # status, auto_produced, queue markers in the frontmatter
│ ├── storyboard.html
│ └── images/
├── .work/
│ ├── cost-estimate.tsv # pre-spend projection — for cap verdicts only (§5)
│ ├── cost-tally.tsv # what was actually used and how much (appended line by line from §6 on)
│ └── …
└── output/
├── video/ # video.mp4 (clean) · video-sub.mp4 (burned-in) · subs.srt · cover.jpg
│ # · build-report.txt · cost-report.txt
├── instagram/caption.md · youtube/meta.md · (per platform)
└── publish-log.mdProcedure
0. Load · lock · budget
Load data/<channel>/profile.md (abort if missing). On an unattended call,
also read the calling growth plan's autoproduce: block
(growth/<platform>/growth-plan.md — the <platform> argument): enabled, topic_source,
min_queue, daily_produce_cap, duplicate_threshold, max_cost_per_video, daily_cost_cap,
weekly_cap, mark_queues, and the two standing previz answers previz_renderer and
video_model (§5 — absent, no generated cut is planned).
The lock is per channel — two growth loops share one channel, so a
per-platform lock is useless. Use mkdir's atomicity.
G=data/<channel>/growth; LOCK=$G/.autoproduce.lock
TOKEN=$(uuidgen) # ownership token for this run
mkdir -p "$G"
# held longer than 60 minutes = dead lock (Veo async takes at most 6 minutes, so the margin is generous)
[ -d "$LOCK" ] && [ -n "$(find "$LOCK" -maxdepth 0 -mmin +60 2>/dev/null)" ] && rm -rf "$LOCK"
mkdir "$LOCK" 2>/dev/null || { echo "another loop is authoring — skipping this tick"; exit 0; }
printf '%s %s <platform>\n' "$TOKEN" "$(date -u +%FT%TZ)" > "$LOCK/owner"Once you hold the lock, release it no matter how the run ends — success, failure, or abort. Forget, and the next tick waits 60 minutes. But before deleting, check the lock is still yours.
grep -qF "$TOKEN" "$LOCK/owner" 2>/dev/null && rm -rf "$LOCK"An unconditional rm -rf fails like this — while my run drags past 60 minutes,
the next tick declares the lock dead, reclaims it, and creates its own. My run
finishes late and deletes someone else's lock. A third loop then slips
through the gap and authoring overlaps on the same channel.
Read today's and this week's totals from $G/autoproduce.json (create if
missing). If any of the following trips, don't author — report the reason.
- Unattended call: today's authored count for this caller (plan)
(successes + failures combined) ≥ min(plan
daily_produce_cap, 2) — the 2 is absolute rule 7's per-platform hard cap, which no plan can raise. Human calls (user) get no episode cap. - Accumulated cost (channel-wide — summed across all callers) exceeds the
plan's
daily_cost_caporweekly_cap
{
"channel": "ttalkkak-lab",
"daily": { "2026-08-11": { "counts": { "youtube": 1, "instagram": 0, "user": 0 }, "usd": 0.054 } },
"weekly": { "2026-W33": { "count": 3, "usd": 0.162 } },
"producedTopics": [
{ "slug": "20260811-visa-fee", "title": "비자 수수료 인상", "at": "2026-08-11T09:12:00+09:00",
"usd": 0.054, "tier": "economy", "by": "youtube", "queues": ["youtube", "instagram"] }
]
}Counts are per caller (counts), cost is channel-wide (usd) — episode caps
are meant to apply per platform, while the money comes out of the same wallet
no matter which loop spent it.
1. Settle the topic
If a topic came in as the argument, use it as-is. On an unattended call with no
argument, follow the plan's topic_source.
pool(default) — one unused entry from the plan'stopic_pool. The list was human-approved, so there's no subject-matter risk. If it's empty, don't author — report "topic pool exhausted" — never make topics up.keywords— runnaver_search(type: "kin")on the plan'stopic_keywordsand pick something people are actually asking. On Naver Knowledge-iN, "what people don't know" sits there in their own question wording — raw material for hooks. Use this mode only when the user explicitly picked it at init.scout— use one topic picked indata/<channel>/growth/keywords/market-keywords.md(or the top of the keyword table if none is marked). These are phrases/social-flow:topic-scoutextracted from videos at 5x or more the channel median. If the file is missing or older than 14 days, don't author — point to topic-scout. Don't re-call the tool every tick — search.list costs 100 units per call.
Topic-axis gate — check the candidate against profile §1's topic areas and
target. pool usually passes naturally (it's a human-approved list); what this
gate actually catches is keywords search results and topics passed in as
arguments. Off-axis: unattended mode drops the candidate and moves to the next
(same counter as the duplicate gate — two drops combined and this run gives
up). Human-invocation mode shows where it diverges and asks whether to
continue. If the topic areas are empty, treat it as a pass but note it in the
report.
Duplicate gate (absolute rule 8) — once a candidate is set, judge it before
authoring starts. Exact slug matches (producedTopics, existing directories)
were filtered earlier, but the same story in different words — like
"비자 수수료 인상" and "베트남 비자 수수료 오른다" (two phrasings of "visa fees
are going up") — has to be caught without a human, so run the deterministic
checker.
REF=${CLAUDE_PLUGIN_ROOT}/skills/autoproduce/references
python3 $REF/check-duplicate.py --channel-dir data/<channel> \
--title "<candidate title>" --message "<one-sentence core message>"; echo "dup_exit=$?"It compares against every existing topic on the channel (human-made ones
included), extracting the slug, the storyboard.md title, and the scenes.js
cover title from each. Read dup_exit literally —
0 new / 2 suspected duplicate / 1 verdict unavailable / 3 input error.
- 2 — unattended mode drops the candidate and moves on (as in §2, two drops and this run gives up). Human-invocation mode shows the closest existing topic and asks whether to continue — only a human can judge a follow-up on the same material (a different angle).
- Never read 1 as new — it means the channel directory couldn't be read, so abort and report.
- Channels whose titles share a series prefix trip the threshold easily. Raise
the plan's
duplicate_threshold(default 0.5) and pass it via--threshold, or have a human make that channel's episodes with storyboard.
Build the slug by profile §7's rules.
2. Research & verification (gate 1)
Research per profile §5 policy. Tool order and quota thrift:
references/cost-tiers.md §non-money budgets — serp_* at most twice per
episode.
Research is the step before any scene is written, and it follows the storyboard skill's §2 shape inside the quota — two passes, a pick in between:
- First research (§2.1) — write the direction-finding question map (3–5 rows:
what people ask, what's true, which explanations compete), search per question
from two directions (
kin·news·blogon naver_search, WebSearch,datagofor government-origin figures), log ten or more searches, then find the wow points inresearch.md§Wow — three or more rows, what the viewer walks in believing → what the evidence shows (claim #N, a type; the 실제로는 half gets a 진짜?, not a 그렇구나 — storyboardscenario-stage.md§The wow first), then decide three messages for the viewer living now in §Messages — what they understand, reconsider or can do after the episode, each the so-what of one wow (W#), three different ones, each on Verified rows — and write three directions in §Directions, one topic cut from each message (M#· 주제 with its question · hook form · primary engine · hero · what the second pass still owes), not three wordings of the same two lookups. Three different primaries fromcuriosity·fear·intrigue·comedy. A topic is never a report of ignorance — "X는 알 수 없다", "X는 아직 모른다" is not an episode; the message and the 주제 name what the evidence establishes, andcheck-research.jsrejects those sentences (user directive 2026-09-07; storyboardscenario-stage.md§Messages first). - Three candidates, then pick one (gate 6a / §2.2 below) — don't start the
second pass before
Chosen:is on the page. - Additional research (§2.3) — rewrite the question map to the chosen
episode's 5–8 questions, write off the unchosen directions' questions, search
the remaining claims. The two
serp_*calls go to the freshness check on the most time-sensitive value. One counter-evidence search on each key claim. Record [question map · directions + pick · claim · source link · date checked · verification status · counter-evidence result] in the storyboard-template.md structure. Time-sensitive values (prices, tax rates, deadlines, effective dates) need 2 or more independent sources, and a question that ends unanswered is written off — it never becomes a claim or a caption.
Fewer than 3 verified facts after the first pass: drop the topic and move to the next candidate. This is where a human would stop and say "there's no video in this." Push on short of facts and what you end up with is an empty video that only looks the part. Two dropped candidates and the run gives up and reports.
Before offering the three directions, then again before the first scene, run the exit checks the storyboard skill runs — the agent that did the searching is the one writing the line that says the searching was enough:
SB=${CLAUDE_PLUGIN_ROOT}/skills/storyboard/references
node $SB/check-research.js storyboard/ --direction # exit 1 = not enough to pick → drop the topic
node $SB/check-research.js storyboard/ # exit 1 = the research does not close → drop the topic2.2 Scenario candidates (gate 6a — storyboard-reviewer scenario mode, one batched read)
Both formats. After the three messages, the three direction rows and check-research.js
--direction exit 0, write three candidate pages — the message verbatim under the title, the
wow line under it (믿는 것 → 실제로는 · claim · type · wow_lands, the 전개 item where the
reversal is first said plainly — the 훅 stages the belief and withholds it), then
the seven items, in order, on every one: 주제 (the subject cut from the message — what the
episode is about and the question it answers; never "…는 알 수 없다") · 훅 (a
dramatised scene that invents no fact) · 전개 #1 (what actually happened) · 전개 #2 (what it
makes the next development necessary) · 전개 #3 (evidence, consequence or limit) · 마무리
(earned resolution, naming the one forwardable thing — the fact, verdict, line or checklist
a viewer could pass on as-is) · CTA (optional, otherwise 없음 with reason), per storyboard §2.2 and
../storyboard/references/scenario-stage.md. A page that only explains, a wow the viewer
already believed, a hook that is the
start of the timeline, or a feel curve that never dips costs nothing to fix here and costs
the whole board later. Three different primaries. Naming an engine is not enough — the
items have to run it.
Before gate 6a judges the three candidates, run node ${CLAUDE_PLUGIN_ROOT}/skills/storyboard/references/check-scenario.js storyboard/candidates/ and reach P0 = 0.
Run the word check on each page before delegating — the same one storyboard §2.2 runs:
check-style.py --surface narration --json candidates/d<n>.md, reading only the findings
whose id starts with E. These sentences become narration: match the audience and voice
(korean-style §Eye level). E findings are suggestions; keep natural adult expressions
and precise terms. A match alone never requires a rewrite. The rest of the verdict is noise on a page of headings and notes.
Delegate all three candidates/d<n>.md to the storyboard-reviewer agent (Agent) in
"scenario mode" in one call — the three candidate paths, research.md, profile.md,
scenario-craft.md, scenario-stage.md, and each page's claimed primary. The reviewer
judges the three in one context and returns one tail per page:
STORYBOARD_REVIEW: mode=scenario candidate=d<n> score=NN p0=N primary=<engine> secondary=<engine|none>.
- Pick the highest at ≥95 with
p0 = 0. Unattended does not ask. Copy it toscenario.md, writeChosen: D#, then §2.3. - None at the bar: apply the findings to the best page, P0 first, and read that one page
once more — the second and last call. Still short: drop the topic, same counter as a
facts-floor drop. Write
storyboard.mdwithstatus: draft·queue_*: holdand the last tails in the body, then report. Nothing has been generated yet.
3. Authoring scenes.js
../storyboard/references/scenes-schema.md is the contract's source of truth;
design rules follow storyboard skill §4 as-is, including its two passes — the story
layer first (beat·shot.feel·shot.info·shot.infoType·shot.share/shot.shareType·narration·arc·hookType/hookForm·title, checked
with check-scenes.js --draft), the machine layer after §3.6 clears.
Write storyboard/scenario.md at §2.2 (the scored winner — storyboard
../storyboard/references/scenario-stage.md) and freeze it before the board. Both
formats. If §2.3 extra research breaks a beat, patch that page yourself before §4 — it is
not read again.
The rules automated authoring breaks most often:
- Read
../storyboard/references/object-state-quality.mdwhen planning HTML slides. Editorial diagrams requirequality:"object-state-v1"andsubject.changesfrom the storyboard stage. Missing plans fail even--draft. Apply the same baked-object and visual review gates as produce; unattended mode cannot substitute camera motion or skip the review. - Write
window.COMPREHENSIONbefore the scenes: one governing question, one answer, one takeaway, no cross-scene branch in a short informational episode, and every unfamiliar term paired with its exact same-shot plain wording. A scene whoseshot.inforeaches neither the answer nor the takeaway is removed. - A short informational episode plans its moving diagram slides (no fixed count — CLAUDE.md
§Choose each cut by purpose) with
treatment:"editorial". Each carries arole(evidence·relationship·mechanism·timeline·statistic·transition·verdict) and one repeated episode-widemotif. A photo-backed moving diagram usestreatment:"photo-action"and changes the photographed subject or evidence itself; moving a rectangle, caption, glow, or whole photo does not qualify. - Classify each narrated beat before picking the image: ordered periods or dated events are
shot.infoType:"timeline", measured counts·rates·shares·comparisons are"statistic", causes·mechanisms·state changes are"principle", and the rest is"other". The first three use the mandatory moving editorial diagram and mapped role, with one allowedslide.motionBeatsprimitive per narration group, on the studio stage, to the bar ofdocs/research/2026-09-04-rendered-object-slide/reference-slide.html. They never fall back to a still or to a clip with marks over it. treatment:"footage"is retired (user directive 2026-09-05 — nothing is drawn over video; CLAUDE.md §Nothing is drawn over video).check-scenes.jsrejects it, so ascenes.jsthat carries one stops at the contract check; rewrite the beat as an editorial slide (an explanation) or a motion background with nothing drawn on it (an event, a place). A principle frame sits 3D actors (slide.arts·h.fig, produce §3.6's material) and draws relation lines (h.stem·h.bus·h.chamber·h.ring·h.press). Named states may skip arts. Shape primitives require arts, generated at §6.6.- Cover title within 16 characters + topic word required. All stimulus and no subject gets swiped past. Open the title with a problem a stranger already feels, not a method or a tool (platform-playbook §1 ② · scenes-schema §cover).
- Narration is an array of segments (sentences) — one sentence, one reveal. Character caps: cover ≤40, points/quote ≤50, 8–25 per sentence.
ttsholds the Korean phonetic spelling ("4,700만"→"사천칠백만"),subthe original notation.- THEME copies profile §3's values verbatim.
- Structure: hook + drip (1–n) + spoken CTA (4–12 shots, typically 2–5 drips);
main body inside the channel's band — profile.md's
length_min_secondsandlength_max_seconds; unset, the preset's 35–120 seconds stands, of which 35–75s is the recommendation and going over it needs a design reason. No profile key raises the 180-second hard cap. Read the band off the profile every run; do not carry the preset band into a channel that set its own. The shared outro is not the spoken close, and a channel withshortform_outro: offin profile.md has no outro on a short at all (onwhen the key is absent) — the spoken close is then the whole ending, and §8 writesOUTRO=0so the builder and the speed pass agree. - The opening leads with one of fear, empathy, curiosity or spoiler — exactly one
per episode, always. Pick it before authoring and record it on the cover shot
as
hookType(fear·empathy·curiosity·spoiler). A short may open on the result —spoileris legal here, and the drips then owe the why and the proof. The cover title, segment ①, and the platform titles all carry that stimulus. Continuity applies to the stimulus, not to the outcome — playbook §2 governs the title and description whatever the cover's hookType is. Fear needs the threat backed in research.md or cushioned with possibility phrasing, and the drip shots must answer it — in the unattended loop, unbacked fear is blocked by copy-gate P0-4 (scenes-schema §the four opening strategies). - Next to
hookTypewritehookForm— the shape of the first line, one ofparadox·gap·payoff·identify·number·secret(scenes-schema §the six hook forms),payoffincluded on a short. Whatever the form, close what it opens: a gap the last drip never closes or a secret the drips never reveal is the early-exit trap the platform now punishes (user-relayed, 2026-08-23 — field-practice grade), and apayoffcover opens its loop on the why, so that is the loop the drips close. The first frame has no logo, no intro, no greeting (big title, strong frame, movement in it), and the first second is the floor under the first three — at t=0 the topic word or the figure is legible and the picture is already moving, and the first subtitle cue is up inside 1.0 s, which §8 measures on the shipped file. Every narration sentence opens curiosity, moves the information forward, or puts evidence down — or it's cut (copy-gate P0-11). Subtitles are written for muted viewing — one sentence, one subtitle, 4–7 words. - A short is always hook → drip (1–n) → cta. Do not default to
answer-first. Writebeat:"hook"on the cover,beat:"drip"on every middle shot,beat:"cta"on the last narrated shot. n ≥ 1. Do not writehooking·result·body·turn. The cover opens the loop the rest of the episode closes — a cover ridinghookType:"spoiler"orhookForm:"payoff"may speakCOMPREHENSION.answerin the first line, any other cover reaches it no earlier than the last drip; each non-final drip pays one piece and opens the next gap; the closing beat is spoken, carriesshot.shareand may have no ask. An ask stays optional; a forwardable thing does not — an ask requests behaviour from the viewer, while a forwardable thing is one sentence, figure or verdict they can pass on as-is. Asking to be shared is an ask, not a trigger. An outro asset is not the spoken close. Copy the approved anchor lines into thescenes.jsheader comment: the opening, resolution, the share trigger and any chosen CTA. Lay the seven items onto beats with scenario-stage's item-to-beat map (a short: hook · drip × 전개 · cta, with 마무리's forwardable line landing on the cta shot asshot.share; long-form by the cover's arc —storyputs 전개 #2 at the turn,answer-firstplays its present answer as the result first). Long-form still follows the cover'sarc—answer-first(default): cover → hooking → result → body;story: cover → hooking → body → turn → result. Material that is an unfinished sentence on its own is story material on long-form only (scenes-schema §playback order). - One entry is one shot. Write
scene·sceneSlug·shot.feel·shot.size·shot.angle·shot.info·shot.infoType·shot.spaceandvisual.picture·visual.overlay(source of truth: scenes-schema §grammar units and production layers). On a short'sctashot also writeshot.share— the one sentence, figure or verdict a viewer would forward as-is, written likeshot.info— andshot.shareType, one offact·verdict·line·checklist·none.check-scenes.jsfails the episode when that shot has noshot.shareor under 8 compacted characters of one, so an unattended run stops before generation rather than shipping a close nobody would pass on. Feel first — say what the audience should feel on the shot, then take the size and the angle (and the move and length on a generated shot) from the feel → technique table (../storyboard/references/directing-grammar.md§5). Writeshot.space(frame: "camera",layoutfrom the camera,facingas the visible result,linewhen two people, or a person and what they look at, share the scene) and assemblebgPromptwith../storyboard/references/assemble-bg-prompt.js— do not writeleft view of, object-centric left/right, or metres. Hook cut and speech clips ateye, one close-up (cu·choker·ecu) per scene. Never merge AI video and HTML staging into one slot.
3.5 Narration read-through gate (gate 6f — storyboard-reviewer narration mode)
The story layer is done when the spoken sentences alone carry the episode (user
directive, 2026-09-02) — unattended there is nobody to hear the gap a picture was
going to fill, so this reads for it before any money goes out. Runs after
check-scenes.js --draft exits 0 and before the style gate, because it rewrites
narration.
Hand the sentences over inline — the reviewer opens no file for this read:
PG=${CLAUDE_PLUGIN_ROOT}/skills/platform-guide/references
node ${CLAUDE_PLUGIN_ROOT}/skills/storyboard/references/check-story.js storyboard/ --textDelegate to the storyboard-reviewer agent (Agent) in "narration mode" with that
numbered list first, then COMPREHENSION, STORY and relevant research excerpts with row IDs,
plus the scenario path if present. No scenes.js, research.md or profile.md file read is needed.
Map findings with check-story.js storyboard/ --map and record the four quoted judgments in
STORY.review. Revalidate after vocabulary edits before setting a fresh hash — shot.share
sits inside that hash, so rewriting the share trigger stales the read exactly as rewriting
a narration sentence does.
Read the tail STORYBOARD_REVIEW: mode=narration score=NN p0=N.
- Apply the directives as spoken sentences — an antecedent, the present link,
what the case has to do with the topic, the term's plain wording — never as a
caption or a picture. Re-run
--draft, extract again, re-delegate saying what you applied. - Loop until ≥95 · P0 = 0. Cap 3 reads. Still short at the cap: stop the run —
storyboard.mdwithstatus: draft·queue_*: hold, the last verdict in the body, and report. Nothing has been generated yet.
3.6 Vocabulary gate (gate 6c — storyboard-reviewer vocabulary mode)
Same sentences, one layer down — are these the words this audience would use and understand (korean-style §Eye level; no universal age target). The style checker catches only the forms written into its rules, so a hard word it has no entry for passes with exit 0; this read covers that layer. Keep natural adult wording and precise terms. Replace awkward wording only when meaning and voice survive. A necessary term unfamiliar to this audience needs its explanation, which is a sentence — that one goes back to §3.5. It runs on the narration only, before a title or caption exists, so a swap here changes nothing a picture depends on.
node $PG/extract-text.js ./storyboard/scenes.js narration > .work/text-narration.txt
python3 $PG/check-style.py --surface narration .work/text-narration.txt; echo "gate_exit=$?"Delegate to the storyboard-reviewer agent (Agent) in "vocabulary mode" with the
numbered sentence list (the same check-story.js --text list §3.5 handed over), the checker's output above
pasted verbatim, and the profile.md path (§1 target audience · §2 plain-language principle
— who the listener is). Read the tail
STORYBOARD_REVIEW: mode=lexicon score=NN p0=N worst=<sentence number> — score is the
lowest sentence's score.
- Swap only the flagged words, in
scenes.js. Where a swap would rewrite the sentence, re-read that sentence against the §3.5 chain yourself before the next read. Don't touch figures, proper nouns, orttsspellings. - Loop until ≥95 · P0 = 0. Cap 3 reads. Still short at the cap: stop the run as in §3.5.
The machine layer goes in after this gate — camera, space, clip prompts, sound,
window.MOTION_POLICY — and the full contract runs before anything is generated:
Apply ../storyboard/references/retention-direction.md §2–§4 here. Write its scene/group
table under storyboard.md's "hand to produce" note. Use the unattended one-bed sound
design from the start, with supported drops and available SFX. Each middle beat must
deliver evidence or change the viewer's expectation, and the main promise must have a
specific payoff before the closing invite — spoken at the cover on a spoiler open,
by the last drip otherwise. The cta shot's shot.share is that payoff made forwardable,
not the invite: an ask requests behaviour from the viewer, a forwardable thing is one
sentence, figure or verdict they can pass on as-is, and only the ask is optional.
Resolve missing essential assets before spending.
SB=${CLAUDE_PLUGIN_ROOT}/skills/storyboard/references
node $SB/check-scenes.js storyboard/ # exit 1 = authoring stops before generationThe profile's true-motion floor and still-run limits are hard gates here. Ken Burns, caption
changes and still swaps do not count toward that floor. Select each cut with storyboard
references/render-routing.md and write shot.render; the hook has no default video requirement.
Read visual-direction.md and
chart-design.md. Copied directions, text-led episode
plans and unsupported modes fail before assets; an economy tier cannot waive these checks.
Keep explicit channel constraints and justify every generated-video slot with visual.why.
Do not lower the copied policy or the channel profile
to make an unattended episode pass. What the scene, camera and sound reads of 0.49 looked at
is now your own pass against storyboard §4's rules — directing-grammar.md §5·§6 for the
feel and the dials, scenes-schema §camera · §cut length · §sound for the slots, the cue names
and the clip audio — and the checker's exit code is what gates it.
4. Style gate — video surfaces (gate 2)
PG=${CLAUDE_PLUGIN_ROOT}/skills/platform-guide/references
for S in narration subtitle screen; do
node $PG/extract-text.js ./storyboard/scenes.js $S > .work/text-$S.txt || { echo "[$S] gate_exit=3"; continue; }
python3 $PG/check-style.py --surface $S .work/text-$S.txt; echo "[$S] gate_exit=$?"
done0 pass / 1 warning / 2 S1 detected / 3 means the gate didn't run — that is
not a pass. On 2, fix scenes.js and redo from §4 — fixing only
.work/text-*.txt desyncs it from the video.
Still 2 after two fixes: abort and report — this keeps the unattended loop from
polishing the same sentence forever.
5. Tier decision + pre-spend estimate (gate 5)
Check the escalation conditions in references/cost-tiers.md. On an unattended
call, the growth loop passes in the insights it just read (YouTube
averageViewPercentage / Instagram reels_skip_rate) and the verdict is a
trend — average of the last 3 episodes vs. the 3 before, escalate only on a
worsening of 5+ points. Under 6 published episodes, or fewer than 3
new-baseline episodes since a hook-contract revision: no escalation (both
rules canonical in cost-tiers).
Write the projected tally to .work/cost-estimate.tsv. It stays separate
from the actual ledger (cost-tally.tsv) for one reason — pile estimates and
actuals into one file and §wrap-up's post-hoc report counts the same spend
twice.
REF=${CLAUDE_PLUGIN_ROOT}/skills/autoproduce/references
$REF/cost-report.sh .work/cost-estimate.tsv --cap <plan max_cost_per_video>; echo "cost_exit=$?"exit 2 (over the cap): cancel the escalation and come back down to economy
baseline — not an abort. If the baseline itself is over the cap (a plan still
at $0.30 with hook_video on), there is nothing lower to fall to: stop before
spending, release the lock, and report the cap as the reason (cost-tiers §The
cap). exit 1 (verdict unavailable): abort. Never spend money without knowing
the price.
6. Visual generation
- Host tools first (owner directive 2026-09-07) — read your own tool list before the
engines below.
image_genpresent (Codex, Grok): every background and slide art goes to it,image.hostat $0,PRODUCTION.imageProvider:"host".image_to_videopresent (Grok): the selected hook and any escalated clip go to it,engine:"host",video.hostat $0,videoProvider:"host"— the cap check then sees only what the API lanes still bill. The gpt/local/seedance/veo lines below are the Claude Code path. - Backgrounds — 1 cover + 2–4 points —
size: "1088x1920".- Cover background =
gpt_image_text2imgquality: "high"(the host image tool first under Codex/Grok) — a person only when the shot needs one, and then profile §3's target, never a demographic default (absolute rules 11·12; the visual-style preset overrides the photo default) — the cover frame becomes cover.jpg (the thumbnail) as-is. Make the topic legible at a glance; useseen from behind, face turned awayinstead offace not visible. On escalated episodes this PNG doubles as the veo source. - Points backgrounds:
image_local_generate(local Z-Image — the default, $0 per image), 2–4 photorealistic shots of the topic — the photo is the star (absolute rule 14), so reusing one image turns the whole body into a single frozen frame. Change the shot when the content axis changes, but keep continuity: same person and space, different angle. Prompts follow storyboard §5's conventions — oneassemble-bg-prompt.js --from scenes.js --shot <n>call (<n>from 1, the same number asscene-<n>.png) with--scene,--mood(profile §3) and--exclude(the required negative directives — the image tools have no exclusion argument, so the noun list rides in the body), stdout stored asvisual.bgPrompt. The engine split and what disqualifies a picture are../produce/references/still-generation.md; on this path the plan and the call happen in one step, since no approval sits between them.storyboard/images/scene-<n>.png. Each image takes minutes — no problem on the unattended path, but avoid running alongside the video render. On a machine without mflux, the tool fails with install guidance — fall back togpt_image_text2img(quality: "low", $0.007 an image) for that episode only — inside the $1.00 template cap; a plan still at the old $0.30 needs the cap verdict re-run first (cost-tiers §The cap). - Check the plan yourself before generating — produce absolute rule 13's list: no still life as a source, no real person, the target person on a target channel, no text expected from the engine, the exclusions written, a duration the cut earns, no minor in frame, the engine the route names. The plan review of 0.49 is not called on this path.
- Cover background =
- Per-cut Seedance escalation — apply produce
references/video-model-selection.md§Seedance per-cut selection. A selected simple video hook uses 1.5 Pro; essential complex action may use 2.0, reference panels use 2.0 (2.5 above nine), and fixed voice uses 2.5 on a speaking/b-roll slot. Record purpose, reason, face eligibility and reference paths before generating. Readcost-preview.js --jsonand use the Seedance row's resolvedgenerationarguments. Replace the baseline video projection in.work/cost-estimate.tsvwith those model-specific rows and rerun the full episode cap check, including spent attempts. Never add a paid comparison by default or exceed the standing budget for an upgrade. - Hook motion background (only when selected by the cut plan, and only with standing
answers) — every generated cut is a 3D previz cut with two HITL choices behind it
(CLAUDE.md §AI video cuts are pre-rendered in 3D first): the previz renderer and the video
model. The unattended loop cannot ask, so it plans a
generated_videocut only when the growth plan'sautoproduce:block names both —previz_renderer: threejs(Blender needs a machine with it) andvideo_model: dreamina-seedance-2-0-mini-260615 720p(or another 2.x grade) — and records them asPRODUCTION.previz/PRODUCTION.videoModelwithselection.kind: "standing"and the plan as the reference. Without both,hook_videostays off and the opening is a still with a camera move;production-mode.jsrefuses the board otherwise. With them: render the three.js previz (previz-template.html→render-motion-slide.mjs --previz), edit the cover still from its first frame, and callseedance_referencewith the previz asreferenceVideoPaths, the storedvisual.video.promptverbatim,generateAudio: false, the cover'sduration(4–8 s; input plus output seconds are billed on the…-videorows — 2.0 mini 720p ≈ $0.54 for a 6 s cut, 2.0 1080p ≈ $2.74). The builder keeps only the video track, so the narration, subtitles and the code-rendered title stay. NoARK_API_KEYmeans no hook video (the previz has no Veo fallback)..work/motion/motion-i0.mp4. This is the one slot the baseline pays for (cost-tiers §economy baseline). Opening b-roll (only when escalated) —
veo_img2video(aspectRatio: "9:16",resolution: "1080p",durationSeconds: 8, modelveo-3.1-lite-generate-preview— in blind-arena testing the three tiers' quality was statistically identical, so use the cheapest). The source is the cover-background PNG already made in §6 — produce absolute rule 8 bansveo_text2video(the same prompt renders a different scene every time, so there's no baseline to roll back to). This slot is Veo-only because of sound — under absolute rule 9 the b-roll segment uses the clip's own audio, so it's no place for the cheaper-but-silent Seedance. A photorealistic adult person in the cover background is accepted as-is by Veo's image lane (measured 2026-08-15). But if the source shows anyone who reads as a child or teenager, this lane is blocked (Support code 17301594) — the plan gate catches it first as P0-10, but if generation drops into no-response, remake the person as an adult and retry that episode.Existing 720p clips follow the
visual.reusesource contract. New Seedance or host clips follow the selected model resolution. The Veo 1080p preference below applies only to new Veo b-roll requests; missing old metadata never requires regeneration.Generate 8 seconds (1080p is 8-second-only); use only the broll scene's
duration(default 4s) — per produce §6's trim+mix conventions, cut from the head of the original and keep the original. No upscaling (the body is 1080×1920 — user decision 2026-08-11 not to go down to 720p). Send the scene's storedvisual.promptverbatim — on lite withoutnegativePrompt(lite takes nonegativePrompt(the API returns 400 andvideo-client.tsrefuses the argument before the call) — every exclusion goes into the prompt body as positive description; scenes-schema §clip prompt); an older scenes.js with no stored prompt gets the fallback assembly — English, motion only, one line of audio directives at the end. Re-describing what's already visible in the source image makes the model redesign the scene..work/broll/broll-a<after>.mp4(broll-a0.mp4for the opening slot).- The unattended loop escalates at most 1 slot on its own (cost-tiers §escalation). The schema allows 2, but veo bills on generated length, so one more slot doubles the episode's spend. Still, if the storyboard has 2 slots written in, make both as written — dropping an approved scene over cost makes the video diverge from the plan.
- The cover's text is never generated — Veo can't write Korean (absolute rule 10). The cover's title stays code-rendered over its motion background; the b-roll goes in the segment after the cover and is the one generated cut a short has left (the format cap is 2, and the hook took the first).
- No narration over that segment (absolute rule 9) — the video's own
sound plays. That scene is
narration: []with no subtitles either, so after the §8 buildsplice-clip.shshifts the later subtitles by the measured inserted length. No palindrome loops — the audio plays backwards.
- BGM — unattended runs take one bed: the storyboard step leaves
window.MUSICout and this step copies or generates a single.work/bgm.wav. If the channel has a shared bed, just copy it.python3 ${CLAUDE_PLUGIN_ROOT}/skills/channel/references/resolve-asset.py data/<channel> bgm default— if a path comes back, copy it to.work/bgm.wav. Otherwise, with a portal key,portal_assets_searchtype: ["music"],querythe episode's mood words; a hit goes throughportal_assets_getdownload: trueto.work/portal/<sourceId>.m4aand then ffmpeg (-vn -ac 2 -ar 48000) to.work/bgm.wavat no cost. Only when the library has nothing put a 30-secondmusic_generate_clipinstrumental at.work/bgm.wav. Include "leaves space for a spoken voiceover, no melody in the vocal frequency range" in the prompt. To reuse the same tone next episode, copy it toassets/audio/bgm/default.wavand add it to the catalog with its provenance in the note (lyria-clip · <prompt> · <date>, assets-catalog-template.md). One bed still opens out of the way: the builder holds it a further 6 LU down under card 0 (BGM_HOOK_LU) and ramps back from card 1. Nowindow.MUSICcues unattended. Cues are made withmusic_generate(variable length), whose price is unconfirmed inprices.tsv—cost-report.shwould answer "verdict unavailable" and §5 would abort the run (cost-tiers §BGM says the same: the economy tier takes one bed, not cues). If a scenes.js arrives withwindow.MUSICanyway, remove it and every shot'ssound.cuebefore §6 and go on with one bed; cue-based scoring is the human produce path. Never callsuno_*unattended — vocals fight the narration. An episode where the song is the content is the human produce path'ssuno_generate. The level is not a decision here: the builder measures the narration, sets the bed 10 LU under it, and stops the run if the separation lands under 4 LU (producereferences/bgm-scoring.md).
After every call, append one line of actual usage to .work/cost-tally.tsv —
this file, not §5's estimate file. Line format and units (veo = generated
length, tts = characters ÷ 1000) are canonical in references/cost-tally.md,
and the manual path (storyboard·produce) writes the same-named file under the
same conventions.
6.5 Image check (the author's own read)
Plan checked, image out — now look at each images/scene-*.png once yourself (Read),
against what that scene says. The image review of 0.49 is not called on this path; here
this look is the only eye, so it is not skipped. What disqualifies an image: a picture
unrelated to what the scene says, a baked-in pseudo-character, readable text or lookalike
glyphs, a bright lower third that will drown the subtitles.
- What the clip brought back — every returned clip runs
check-clip-artifacts.js(produce §3). A finding gets one regeneration off the same still with the artifact negatives added; a finding on the second take is written to the run's findings and the run waits, the same as a speech warning — it does not approve its own warnings, and a clip with text on the picture is never assembled unflagged. - Room tone —
sound.ambiencefollows the SFX rule below: a loop entry that resolves or can be generated is laid, one that cannot is left off the shots rather than named. - SFX — unattended runs use only effects that resolve. A
window.SFX{ prompt }entry is generated once withsfx_elevenlabs_generateinto the channel catalog (assets/audio/sfx/<id>.wav, produce §3) whenELEVENLABS_API_KEYis set — about $0.002 a second, logged assfx.elevenlabs. Without the key, an id with no catalog file is a build stop later, so the storyboard step leavessound.sfxoff those shots rather than naming one it cannot make. One effect per ~10 s, on the cut that changed (scenes-schema §sound effects). - Regenerate only what fails, once. When you decide to regenerate, put that line on
.work/cost-estimate.tsvfirst and rerun the--capverdict as in §5 — over the cap (exit 2) means hold right there instead of regenerating. Don't run the verdict on the actual ledger: at that point it's missing spend that hasn't gone out yet (BGM, narration), the total looks small, and a cap-busting regeneration passes. When the call finishes, write actual usage to.work/cost-tally.tsv(§6 as-is). - A remake you still would not ship: finish the video anyway, but at §10 wrap-up
write
queue_*: holdwith what is wrong with it. An off-context cover becomes the thumbnail as-is, so a human has to see it.
6.6 Authored motion-frame gate
For every visual.slide scene, follow storyboard
references/slide-authoring.md before narration:
- If
slide.artsis set, generate each plate intoslides/assets/first — the same recipe as produce §3.6: tactile 3D illustration or photoreal 3D object, soft studio light, consistent material and camera, transparent background, no readable text (the host image tool under Codex/Grok, elseimage_local_generate). Log the call. Sit a principle actor withh.fig. Then author the HTML from the matching template. A principle frame is a.castof actors plus relation lines (h.stem·h.bus·h.chamber). Editorial diagrams use the declaredroleandmotif; they compose the whole frame rather than placing callouts over an unchanged photo. Withslide.object, bake the sheet first (bake-object.pywith the scene's keys · frames,rendered-object.md§3;bake-blender.pywith the recipe and--segsforrenderer:"blender",blender-objects.md§4) —check-slide.jsrefuses a slide whose sidecar is missing. - Run
node $SB/check-slide.js storyboard/ --require-all, render the sheet withrender-motion-slide.mjs --sheet --png-only --keep-frames, and stop on either failure. For timeline, statistic, and principle scenes the render also matches every declaredmotionBeatsprimitive with the same group'sdata-primitive; a label reveal cannot stand in for the promised explanation. - Open the sheet's end frames yourself (
sheet/g<k>-end.pngfor the last group of every slide) and confirm that what the scene claims is on it, inside the zone, and that the ground is a plate and not a flat fill (slide-design.md §1·§6). The slide review of 0.49 is not called on this path;check-slide.js --require-alland the renderer's summary line are the machine gate. A sheet that shows a photo with an animated rectangle, text outside the zone, or a figure that contradictslabelsor research.md is re-authored once.
This gate is mandatory in unattended mode. A failed slide is not replaced with a still and the motion policy is not lowered to get around it; still wrong after the re-author, abort before TTS and build.
7. Narration
Exactly produce skill §5 and ../produce/references/tts-quality.md: call
tts_generate_checked once per scene with engine/voice pinned to profile §2 and all
tts sentences joined with periods, the same sentences as segments, and the profile's
playback speed as playbackSpeed. Keep the WAV and its .quality.json sidecar (plus
.sentences.json on every single-voice engine) in .work/pcm/. It reviews actual speech
and retries up to three takes at fixed settings (one episode seed stays fixed across retakes).
A take that ends fail is a warning for the user (../produce/references/tts-hitl.md):
unattended, write the findings and wait — the run does not approve its own warnings — and an
unavailable review sets queue_*: hold; never reset attempts or substitute a raw unchecked take. Include paid
Gemini audio review in the allowance even for local TTS; an older local-only budget is insufficient.
If the local engine fails with "Python interpreter not found" / "No module named 'supertonic'", abort right there — do not switch to Gemini. A video with a changed voice publishing automatically is this pipeline's worst possible accident.
8. Render & build (gate 3)
Build with build-reel.sh .work storyboard/; its source-plan check is mandatory. Follow produce skill §2 (frame.html
regeneration) · §4 (reveal capture) · §6 (manifest) as-is. The overflow check
runs here too — produce §4's --dump-dom one-liner needs no browser tooling, so
unattended mode gets the same ovf=0 verdict. On top of it, verify the captured
state PNGs are non-zero-size and the per-scene state counts match the manifest.
Settle the outro before the build. shortform_outro in profile.md is a short-form-only
key — absent means on, and a youtube-long-16x9 episode writes OUTRO=1 whatever the
profile says, because long-form always splices outro-16x9.mp4. On a short with the key on
or absent, resolve and copy the asset under format.env's OUTRO_ASSET name exactly as
produce §6 does and write OUTRO=1; the build stops on a missing file instead of shipping an
episode with no ending. Only a short with off skips that resolve and copy and writes
OUTRO=0, because build-reel.sh and speedup.sh decide by the variable, not by what
happens to sit on disk — a leftover outro.mp4 from an earlier run would otherwise get
spliced on and left at 1.0x with its cues mistimed.
grep -qF '${OUTRO:=' .work/format.env \
&& echo "format.env already carries OUTRO — edit that line instead of appending" \
|| echo ": \"\${OUTRO:=<1, or 0 when this is a short and profile.md says shortform_outro: off>}\"" >> .work/format.env
grep -F '${OUTRO:=' .work/format.env # echoes the line the build and the speed pass readThe build-report.txt verdict follows ../produce/references/pipeline.md
§report gate table.
drift ≠ 0, a missing reveal state, or an unused final reveal blocks
progress. In unattended mode, blocked progress means abort — nothing enters
the queue.
If b-roll was made, splice it here (end of produce §6 — trim+mix first, then splice):
mix_broll 0 4 # produce §6's mix_broll — broll-a0-mixed.mp4
$REF_P/splice-clip.sh .work .work/broll/broll-a0-mixed.mp4 "$(cardend 0)"Never eyeball T — cardend <after> (produce §6) sums the confirmed lengths
of card 0..after, and that value is the scene's end time. Never splice the
raw original — skip the mix step and the veo sound sits 4+ dB under the body
while the BGM cuts out for just that stretch.
If the storyboard has 2 b-roll slots, pass both clips in a single
invocation (call it twice and the second run wipes the first splice).
In the splice output confirm 0 straddled cues and matching clean/burned
lengths. If they diverge, don't queue it.
Then run the speed pass — every episode, no exception (produce §7.5). It picks the spliced set on its own when a splice ran:
The factor comes from .work/format.env, which build-reel.sh and speedup.sh
both source. Write it when §6's build step writes the file (produce §1) — nothing
else in this skill does, and without the line a channel that chose a factor in
profile.md §2 ships at speedup.sh's default 1.0 with nobody watching.
grep -qF '${SPEED:=' .work/format.env \
|| echo ": \"\${SPEED:=<the factor from profile.md §2>}\"" >> .work/format.env
grep -F '${SPEED:=' .work/format.env # echoes the line the pass will use
$REF_P/speedup.sh .workUnattended, the marker is the check: build-report.txt has to gain a
── speedup x… line and a PASS final speech rate line. The pass blocks more than 6.2
spoken characters/s after every TTS and speed choice has taken effect. A non-zero exit aborts
the episode — nothing enters the queue. §9 moves that pass's -fast set to output.
The same pass adds a ── first cue …s line and writes the t=0 frame to
.work/qa/first-frame.png. Past 1.0 s the line arrives as ⚠ first cue … — the opening
second carried no words. That one is a warning, never an abort: the build is already paid
for by the time it is measured. Copy the number into the wrap-up report and hand it to the
content reviewer with the frame.
9. Finalize output + platform text
cp .work/reel-fast.mp4 output/video/video.mp4
cp .work/reel-sub-fast.mp4 output/video/video-sub.mp4
cp .work/subs-fast.srt output/video/subs.srt
cp .work/cover.jpg .work/build-report.txt .work/delivery-proof.json output/video/ # publish checks the files against the proof (produce §9)
[ -f .work/chapters-fast.txt ] && cp .work/chapters-fast.txt output/video/chapters.txtThe -fast files are the deliverables. Copy reel.mp4 or subs.srt here
and the episode publishes un-sped with subtitles on the wrong timeline.
Publishing is complete only with all three files — the clean master and
subs.srt go to YouTube and Facebook, the burned-in copy to Instagram
(publish skill rule 8).
Rewrite the platform text per platform following the platform-guide playbooks,
and run the per-surface style check right after saving (produce §9's script
as-is, check-meta.js on output/youtube/meta.md included — the title and
description withhold the result, playbook §2). A spoiler cover buys nothing here:
continuity applies to the stimulus, not to the outcome — playbook §2 governs the title
and description whatever the cover's hookType is, and on a short the answer-leak check
runs either way. exit 2: fix and rerun; two
failures and that platform's queue marker doesn't get stamped. Also run produce §9's batch check (check-batch) — on
the unattended path nobody is around to notice "this reads just like the last
one", and since the growth loops call this skill repeatedly, this is where
channel homogenization piles up fastest. There's no verdict (rankings only) —
if a recycled phrase shows up in this episode, fix that sentence and move on.
10. Quality gate (gate 4) + wrap-up
First run ../storyboard/references/retention-direction.md §5 on the final -fast video.
Save .work/experience-review.md and pass it to the content reviewer with build-report.txt
and the storyboard's handoff table. An unresolved promise, missing essential sound or
unverified motion/listening check sets queue_*: hold; screenshots and numeric scores
cannot stand in for those checks. Preserve that hold through wrap-up even if copy scores 95.
Delegate to the content-reviewer agent — frames pulled from the burned-in
copy (the clean master has no subtitles, so typos and clipping don't show),
the t=0 frame and §8's first-cue start among them,
the platform copy, scenes.js, and §4·§9's exit codes.
If the channel skips research, state that too (copy is scored out of 85 and the
tail rescaled to 100).
One read. Apply its directives; if the tail (CONTENT_REVIEW:) came back under copy 95
or with P0 > 0, don't delegate again — write queue_*: hold with the unresolved findings at
wrap-up and let a human decide.
Wrap-up order:
cost-report.sh .work/cost-tally.tsv > output/video/cost-report.txt- Add the totals (daily/weekly count·usd) and a
producedTopicsentry toautoproduce.json - Update the storyboard.md frontmatter
status: produced
auto_produced: true
approved_by: autoproduce/<calling growth plan, or user>
tier: economy # economy | escalated
queue: ready # approved platforms only — hold while P0s are unresolved
queue_instagram: ready
queue_at: 2026-08-11- Release the lock (
rm -rf "$LOCK") - Report — topic, slug, total length, tier, cost, queues stamped, the scenario and narration scores (with the read count), unresolved findings
Human-invocation mode presents the result here via AskUserQuestion and asks whether to stamp the queue markers (paths, total length, cost, cover title, key figures). Unattended mode doesn't ask — the plan is already the authorization.
Pitfalls
- Never write
statusbefore stampingqueue_*. Flip the order and a gate-failed video can become visible to another loop onstatus: producedalone. - Skip the lock release and the channel freezes for 60 minutes. Check it on every abort path.
- Never call
serp_*repeatedly in the research loop — 250 calls a month is gone within a few automated episodes. - Don't let escalation become a habit. When the metrics recover, the next episode is back on economy baseline.
- Stop when the topic pool runs dry. The moment automation starts inventing material, fact verification stops meaning anything.
Additional Resources
Reference Files
references/cost-tiers.md— model ladder, escalation conditions, tiers banned from autonomous use, cap verdicts (source of truth)references/prices.tsv— generation-tool price SoT (with evidence grade and source;?= unconfirmed)references/cost-report.sh— tally × prices → report. The same calculator serves the pre-spend estimate and the post-hoc reportreferences/cost-tally.md— per-episode ledger conventions (file location, line format, units, reading exits). The manual storyboard·produce path writes the same file under these conventionsreferences/check-duplicate.py— topic duplicate verdict (character-bigram overlap against every existing topic, threshold 0.5 · 11--selftestfixture pairs)
Contracts reused from other skills
../storyboard/references/scenes-schema.md— the scenes.js data contract../storyboard/references/scenario-stage.md— three candidates, viewer engines, the one batched read../storyboard/references/storyboard-template.md·storyboard-html-template.html../produce/references/pipeline.md— build contract, report-gate verdict table, palindromes../produce/references/speedup.sh— the required speed pass (produce §7.5)../produce/references/build-reel.sh— the compositing pipeline../platform-guide/references/platform-playbook.md·korean-style.md·check-style.py../../docs/guides/ai-video-production/index.html— why hybrid is the default, Veo hard specs, prompt rules
Attachment sync and rights evidence: follow portal attachments. Check attachments.complete before removing local originals. Retry files only with portal_attachments_sync.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

