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
- 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) andvideos/(one project per video, numbered). - Next.
loop.mjs nextreads 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. - Make. The 21 stages as usual (
guides/lifecycle.md,project.mjs, oragents.mjswith a gate at every stage).loop.mjs checkholds the script to the rules the channel has learned. - Publish gate.
loop.mjs publishchecks 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. - Measure. At 2, 7 and 28 days,
loop.mjs duelists the numbers to collect. Log them withloop.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. - Learn. Every result rebuilds
formula.md. Every retention curve adds rules for the next script. - 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.
| State | Rule |
|---|---|
| Proven | 3 or more videos with it, each beating the best other option, by 10% or more at the median |
| Ruled out | 3 or more videos with it, 10% or more behind the best other option |
| Testing | tried, not yet decided |
| Not tried | an option in channel.json no video has used |
The next experiment.
- The first 3 videos are a baseline: the same picks every time, so the channel has a usual to compare with.
- After that, each video tests one thing: the first part of the formula that is not proven, with the option tried least. Ruled-out options are never tried again.
- Every fourth video repeats the best picks, to check that they still win.
- When every part is proven, a winning formula is in place: the loop keeps making it and still tests one change every fourth video, because audiences and platforms drift.
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 sees | The 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 line | no 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:
- Any assistant with analytics connectors (YouTube, Instagram and TikTok analytics through tools such as NexLev or vidIQ): run
loop.mjs due <channels> --json, look up each video's numbers at its check-in, and log them withloop.mjs result. - A daily scheduled task that does exactly that, so 2-, 7- and 28-day numbers are logged on time. When nothing is due it stops at once.
- No connectors: YouTube Studio's export (
measure.mjs --read) and each app's insights screen. Facebook has no export that works well yet: type the numbers in.
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
- change two things in one video and credit one of them
- judge a video at 48 hours
- delete a video that lost: it is evidence
- copy a winning formula from another channel without testing it on your own audience
- let the loop post: the maker approves every upload
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.