Style BibleGitHub

The content loop

One video teaches you almost nothing. A channel that changes one thing per video, reads the numbers and keeps what wins finds its formula. This guide turns the 21 stages into a loop that never ends: make, post, measure, learn, make the next one better. scripts/loop.mjs keeps the books, so the maker only makes and approves.

node scripts/loop.mjs channel channels/strange-history --name "Strange History" --for shorts --look "risograph,film-noir"
node scripts/loop.mjs next channels/strange-history --title "The molasses flood"     # a project with its one test already picked
node scripts/project.mjs next channels/strange-history/videos/<video>               # make it, stage by stage
node scripts/loop.mjs check <video>                                                  # the script against the channel's rules
node scripts/loop.mjs publish <video>                                                # the gate: video, cover, package, rules
node scripts/loop.mjs publish <video> --approve --date 2027-01-15                    # after YOU posted it
node scripts/loop.mjs due channels                                                   # which numbers are due (2, 7, 28 days)
node scripts/loop.mjs result <video> --at 7d --views 4800 --retention 71 --stayed 64 # the formula updates itself
node scripts/loop.mjs retention <video> curve.csv                                    # where people left becomes a script rule
node scripts/loop.mjs formula channels/strange-history                               # proven, testing, ruled out, next video

The loop

  1. Channel. One folder per channel: channel.json (what to test and the options for each), formula.md (what is proven, what is being tested, what is ruled out, the script rules and the next video) and videos/ (one project per video, numbered).
  2. Next. loop.mjs next reads the formula and makes the next project with its picks already set and its experiment written into the brief: what changes, from what, to what, and why. Everything else stays the same.
  3. Make. The 21 stages as usual (guides/lifecycle.md, project.mjs, or agents.mjs with a gate at every stage). loop.mjs check holds the script to the rules the channel has learned.
  4. Publish gate. loop.mjs publish checks the export, the cover, the package and the script rules. Nothing is posted by the skill. The maker posts or schedules it, then records it with --approve.
  5. Measure. At 2, 7 and 28 days, loop.mjs due lists the numbers to collect. Log them with loop.mjs result --at 48h|7d|28d. The 7-day numbers are the ones compared; 48 hours is too early to judge and 28 days is for long-tail videos.
  6. Learn. Every result rebuilds formula.md. Every retention curve adds rules for the next script.
  7. Back to 2.

How it decides

The score. Each video is scored on its main numbers against the channel's own usual (the median of its videos): for Shorts, Reels and TikTok, how much of the video was watched (retention) and how many stayed instead of swiping (stayed); for long YouTube videos, click-through (ctr) and retention. Views are recorded but not scored: they follow the other numbers and swing with luck.

Separating the picks. When a hook wins, every later video carries it, so a look tested beside it would look good too. The loop fits each pick's own effect (an additive model on the log of the scores), so the hook gets the credit and the look is judged on its own.

The states.

StateRule
Proven3 or more videos with it, each beating the best other option, by 10% or more at the median
Ruled out3 or more videos with it, 10% or more behind the best other option
Testingtried, not yet decided
Not triedan option in channel.json no video has used

The next experiment.

What it tests. By default: hook, length, look, thumb and title (the kind of title: how, why, number, story). Edit the options in channel.json to your own: your hook stances, the style slugs you can make well, your thumbnail looks. Add a dimension by adding its name to test and a list to options. Record what you picked with project.mjs pick <what> <value>; loop.mjs check warns when a video changes more than the plan says.

Script rules from retention

Export the audience retention line (YouTube Studio: the video, Analytics, Engagement, the retention graph. Where there is no export button, type a few points into a CSV: position in percent, audience left in percent). loop.mjs retention <video> curve.csv matches the drops to the script lines and writes rules the next scripts must pass:

What it seesThe rule it writes
Too many gone in the first 3 seconds (30 for long videos)the first line must end a second earlier and name the topic
A dip far steeper than the rest, on a long lineno spoken line over that many words, minus two
Many leaving in the last 15%end within 2 seconds of the last word

Rules are rewritten, not stacked: the newest evidence of each kind wins. loop.mjs check and loop.mjs publish hold every new script to them.

Results that arrive by themselves

The loop is file-based so it works anywhere. To fill the numbers in without typing:

How many videos

Expect 10 to 20 videos with 7-day results before a part is proven. Fewer videos means each decision is closer to luck. Post on a steady schedule: a loop with one video a month learns in a year what one video a day learns in a month.

Never

Three levels

First video. Make the channel folder, keep the first three videos the same, and log their 7-day numbers.

Getting good. One test per video from loop.mjs next, retention rules from every video, and the publish gate before every post.

Pro. Several channels on one daily check-in, your own dimensions in channel.json (voice, music, pace, director), and the formula reviewed every month for drift.

Browse the styles