What does fruit-stories do?
Everything lives in <clay-stories>. Run all commands from that folder.
You write ONE file, episodes/<slug>/episode.json. Scripts do the voices, animation, music,
captions and the final video. Nothing costs money and nothing leaves this machine.
The one thing that matters most: a stranger must be able to follow the story on first watch. the author rejected an earlier episode as too hard to follow and cut off at the end.
The cast are clay people (since 2026-11-23): eight neighbours of Orchard Row. Their ids are
still the old fruit words, but those are only ids: fig = Fenn, a small young man in green
overalls and glasses; lemon = Madame Citra, a tall lady in a teal dress and pearls; mango =
Manny, a plump man in a mustard jacket with a moustache; radish = Ruby, a little girl with red
pigtails; coconut = Old Coco, an old man in a grey cardigan; pear = Perla, a woman in a green
dress and white apron; chili = Chad, a tall young man in a white tracksuit; onion = Inspector
Allie, a woman with a silver bob in a trench coat. Never call anyone a fruit or a vegetable
in a title, logline or line, and never write a line that only makes sense for a fruit.
Step 1. See what you can use
python scripts/lint_episode.py --library
You may ONLY use names from that list. If the story needs something that is not there, pick the closest thing that is.
Then get your assignment, so this video is different from the ones before it:
python scripts/variety.py
It prints which hero, wrongdoer and helper to use, the outcome, how to open, which proofs and set pieces are fresh, and what recent videos already did. Follow it. The linter fails any episode that repeats a recent pairing, proof, outcome or set of places. Also invent a new thing to fight over and new place ids; do not reuse the template's shop, moneybag or key.
Last, get the rules learned from the reels the author sends:
python scripts/learned.py
Follow every rule it prints, like the rules below. If it prints new limits (number of clips, total seconds), those replace the numbers written in this skill. If it says there are none, carry on.
Step 2. Plan a story that is easy to follow AND worth finishing
Your assignment names a plot. There are five story shapes; never write the same shape as the last video. Fill in the plot's sentence before writing anything else.
| plot | The story in one sentence | answers.wrongdoer is | answers.proof is | outcome |
|---|---|---|---|---|
backfire | SCHEMER sets a sneaky trick with an OBJECT to cheat HERO. The trick goes wrong and hits the schemer. | the schemer | the trick object | trick_backfires |
misjudged | HERO is sure OTHER is up to no good (sneaking, hiding an OBJECT). Hero follows and finds OTHER was secretly doing something kind. | the one who looked bad | the object that shows the kindness | misjudged_was_kind |
test | An ELDER secretly tests two others with an OBJECT. The GREEDY one fails; honest HERO passes and is rewarded. | the greedy one | the test object | honest_one_rewarded |
underdog | BOASTER mocks small HERO before a contest. HERO uses one humble OBJECT cleverly and wins fairly. | the boaster | the humble object | underdog_wins |
framed | HERO is blamed for what WRONGDOER did. A helper finds PROOF and the truth comes out. | who really did it | the wrongdoer's own object | one of wrongdoer_caught, wrongdoer_says_sorry, hero_gets_it_back, hero_forgives |
What makes it interesting (a reader rates this, and under 4/5 fails):
- Open on a question. Clip 1 must make the viewer wonder something: why is she sneaking out at night? what is he hiding in that sack? will the trick work?
- The twist must not be guessable from clip 1. The viewer should expect one thing and get another: the "thief" was feeding a hungry friend; the trap catches the one who set it.
- Show the object early, pay it off late. The OBJECT is on screen before the twist, and the twist changes what it means.
- Raise the stakes once in the middle: it gets worse, or the schemer gets closer to winning.
- End on a feeling: a laugh at the schemer, a hug, a prize. Not a lecture.
Rules for every plot:
- Exactly 3 characters: the hero, the other main character, and one more (helper, elder or judge). Use the three from your assignment.
- One problem, one object, one ending. No side plots, no "to be continued".
- OBJECT is one prop from the library, from the list in your assignment.
- Keep it all-ages: no romance beyond hand-holding, no hitting, no weapons.
- If the user's idea names specific characters or a plot, theirs win; keep the rest of the assignment.
Step 3. Write episode.json
Copy episodes/_template/episode.json to episodes/<slug>/episode.json
(slug: lowercase-with-dashes) and replace every value. Keep the same keys.
Episode fields:
series:Orchard Row.part: 1.plot: the plot from your assignment (the template is aframedstory; change it).title:<Who> <does what>, But <reversal>or..., Then <reversal>. 8-16 words. Must be true.logline,moral,twist: one sentence each.answers:{ "hero": cast id, "wrongdoer": cast id, "proof": prop name, "outcome": ... }with the meanings from the plot table in step 2. These are the facts a viewer must be able to work out. The reviewer is tested against them.locations: 3 places, each{ "kind": "indoor" or "outdoor", "time": ..., "ground": "#rrggbb", "wall": "#rrggbb" (indoor only), "elements": [...] }.elements: 3-8 set pieces writtenname@slotorname@slot:#rrggbb. Slots:bl bc br(back),ml mr(middle sides),fl fr(front edges). One ground piece per slot.- Give each place a different
timeso every change of place is obvious.
clips: 7-10 clips. Every plot starts withhook, has asetupat clip 2, at least oneescalation, one silentreaction, onetwistat 35-85% of the runtime, and ends onpayoff. What each beat holds depends on the plot:
| beat | backfire | misjudged | test | underdog | framed |
|---|---|---|---|---|---|
hook | Schemer shows the trick object and boasts | Hero spots the other sneaking with the object | Elder says "I will test them" and shows the object | Boaster mocks the hero | The accusation or the loss |
setup | Hero, unaware, says what they are about to do | Hero says what they think is going on | Hero and the greedy one arrive; hero says what they need | Hero says they will still try | Hero says they did not do it |
escalation | The trick is set; it looks like it will work | Hero follows; it looks worse and worse | The greedy one grabs or hides the object and lies | Contest starts; boaster is far ahead | It gets worse; helper says where they will look |
reaction (silent) | The moment before the trick springs | Hero peeks into the place | The elder watching, hidden | Hero thinking, holding the object | Helper searching |
twist | The object does the opposite: it hits the schemer | The object is revealed as a gift or help | The elder steps out and names the object as a test | Hero uses the object and overtakes | Helper holds up the proof and names it |
consequence | Schemer says what they tried to do | Hero says they were wrong | The greedy one admits they kept it | Boaster admits the hero was clever | Wrongdoer says what they did |
payoff | Hero wins or is safe; a last funny line | They share it; hero says sorry or thanks | Hero gets the reward | Hero holds the prize | The result, already done |
Plant the object. The answers.proof prop must be seen (held or placed) before the twist,
and held or placed again in the twist clip, whose line says its name. In a framed story it must
be the wrongdoer's own thing, in the wrongdoer's hands in clip 1, and nobody else holds it until
the twist. Clips 1 and 2 are in the same place. Never cut to a place for one shot and straight back.
The hero speaks in clip 1 or 2 and the other main character speaks in the first three clips.
Lessons from failed reviews: a look is not enough, characters must say what they did or thought. The ending must show the result already done (the prize is in their hands, the bell is fixed), not a promise. Before a silent shot, a line must say where that character is going and why. Do not have a character carry an object that belongs to someone else unless a line says so.
Clip fields:
beat,location(an id fromlocations).shot:medium(two characters),closeorextreme_close(one face; needsfocus),wide(three characters or a walk),low_wide(someone powerful).move:static push_in pull_out orbit_left orbit_right tilt_up handheld. Usepush_inon reveals.focus: a cast id on screen, orall. A cast id is required forcloseandextreme_close.staging: 1-3 characters, each{ "who": id, "at": "left|center|right", "gesture": ..., "emotion": ..., "holds": prop, "look": "other|camera|up|down" }. One character goes atcenter; two go atleftandright. Every character needs anemotion.speaker+line: optional, always together. The speaker must be instaging.duration: only for clips with no line, 1.5-5 seconds.placed: props standing in the scene:{ "prop": name, "at": position, "y": 0.3, "scale": 2 }.yis height above the floor;scale2-3.5 so it reads. With two characters on screen usefar_leftorfar_right, nevercenter.sfx: sounds asname@seconds, for example"[email protected]".music:quirky(light),tense(threat, reveal),sad(loss),none.
How to write lines people can follow:
- 2-10 words, one idea, a complete sentence ending in
.!or?. Never trail off. - Everyday words. If a 9-year-old would not know the word, change it.
- Say names. Start lines with the name of the person being spoken to:
Chad, you took it!A character never says their own name. - Say what things are. The twist line must contain the object's name:
Look, a note! - Say what you see. A line should match what is on screen in that clip.
- No hints, no riddles. If a fact matters, a character says it out loud.
- The last line closes the story: who was right, and what happens now.
Other rules the linter checks: twist starts at 35-85% of the runtime and its music differs from the clip before; at least one clip has no line; never more than 3 clips in a row in one place; not the same place AND shot twice in a row.
Step 4. Lint until it passes
python scripts/lint_episode.py episodes/<slug>
Fix every ERROR exactly as it says and rerun until it prints PASS. Fix WARN lines too.
Step 5. Cold-reader review (do not skip, do not do it yourself)
You wrote the story, so it will always seem clear to you. Someone who has not seen your plan must read it and prove they understood it.
python scripts/story_review.py episodes/<slug> --packet
Start a fresh subagent (Agent tool, model haiku) with exactly this prompt and nothing more:
Read the file
<packet path printed above>. Follow its instructions. Write your JSON answers to<answers path printed above>. Do not read any other file in that folder. Reply "done".
Then grade it:
python scripts/story_review.py episodes/<slug> --grade
REVIEW PASS: go on.REVIEW FAIL: it lists what the reader got wrong, or says the story was not interesting enough (rewrite the hook to raise a question and make the twist less guessable). Rewrite the lines to fix exactly that (usually: name the person, say the fact out loud, simplify the ending), lint again, run--packetagain, and use a new subagent. Never edit the answers file and never tell the reviewer the intended answers. If it still fails after 3 rounds, start over with a simpler story.
Step 6. Draft render and look at it
python scripts/render_episode.py episodes/<slug> --draft
One to two minutes. It renders two stills per clip, in order, into episodes/<slug>/out/sheet.jpg.
Read that image and check: every character fully in frame and not hidden; the proof clearly
visible in the twist clip; the two stills of a clip are not identical; front set pieces are not
in front of a character. Fix by editing at, shot, focus, gesture or placed, lint, redraft.
(Changing lines, gestures or held props means running the review again.)
Step 7. Final render
python scripts/render_episode.py episodes/<slug>
About 40 minutes on this laptop: run it in the background and wait. Output:
episodes/<slug>/out/<slug>.mp4. Quality is chosen automatically (see "The look" below); add
--quality film or --quality gpu only when the user asks for a specific one.
Step 8. Quality gate
python scripts/prepublish.py episodes/<slug>
This listens to the finished audio (speech-to-text) and checks that the scripted lines, including
the last one, are really audible; checks picture, length and loudness; and requires the story
review to have passed for this exact script. READY means it is good to post. BLOCKED lists why.
Step 9. Report
Tell the user: the mp4 path, its length, the title, the reviewer's one-line retelling of the story, and the gate result.
Do not
- Do not use any name that
--librarydid not print. - Do not use characters, names or designs from other channels, shows or memes.
- Do not edit files in
scripts/orconfig/while making an episode. - Do not add a narrator. Do not end on a cliffhanger.
The look: claymation (settings, not something to redo per episode)
The picture is made to look like plasticine puppets on a tabletop set, shot as stop motion.
the author's reference (2026-11-23) is the "clay stories" genre: a clay family with big heads, bead
eyes, strand hair and scored clothes, shot close with a soft blurred backdrop. He rejected fruit
puppets with a clay coating as "still the same look", so the cast is now sculpted people.
It is switched in config/config.json -> render:
cast:people(default; the sculpted clay people inscripts/blender/clay_people.py) orfruit(the earlier fruit puppets infruit_render.py). Same ids, names and voices, so every episode file works with either. One run:FS_CAST=fruit. Each cast entry inconfig/cast.jsonhas apersonblock (height, skin, hair style, top, bottom, extras) beside the fruitmodel.look:clay(default) orclassic(the earlier smooth look). One run:FS_LOOK=classic.quality:autopicksfilmwhen Blender's Cycles finds a graphics card andlaptopwhen it does not.laptop= Eevee at full 1080x1920, 24 samples (this machine: Intel Arc, no Cycles GPU; measured about 6 s a photo with the clay people and sets, so a 30 s episode is about 45 minutes).fast= Eevee at 810x1440 upscaled (3 s a photo).gpu= Eevee at 1080x1920, 64 samples.film= Cycles path tracing on the card, 128 samples, denoised: the best picture, meant for the desktop with the NVIDIA card.filmon this laptop runs on the CPU at about 8 minutes per full-size frame: only use it here for a single still.step: 2 = every pose is held for two frames ("on twos"), so only half the frames are rendered.
What makes it read as clay (keep these if you touch the renderer):
- Nothing is exactly round or flat: every mesh is pushed in and out by soft dents (
lumpy,lump_d), boxes are pressed slabs with round edges, a character's clothes follow its lumps. - Hand marks at four sizes in one shared node group (
clay_group): thumb dents, dragged tool strokes, finger prints, fine grain. Creases are a little darker; pressed patches a little shinier. - Each material is the tabletop version of itself: cloth is a ribbed slab, wood is scored, metal is painted foil. Eyes, lamps and glass stay clean and glossy for contrast.
- Stop-motion timing: poses on twos, mouths snapped to a few shapes, a tiny re-posing wobble on whoever is being animated, and finger marks on characters that shift every few holds ("boil").
- Soft, close light and shallow focus, so the set reads as small.
- The people are real sculpted geometry, not a texture on a ball (
clay_people.py): an egg head with bead eyes under rolled lids, a stuck-on nose and ears, hair laid on as ropes of clay (HAIRstyles: fringe, sidepart, quiff, bob, long, bun, backbun, pigtails, ponytail, bald), clothes as thick slabs with real ribs and pleats plus scored tool lines (pmatpatterns), and ready-made mouths swapped per photo. People stand shoulder to shoulder (place) and the camera frames them by head size (Cam.update, thepeoplebranch). - The sets are hand-made too (
scripts/blender/clay_sets.py, called frombuild_partsandbuild_setwhen the look is clay). The library still describes set pieces as plain boxes, balls, cylinders and cones; the near ones are swapped for model-maker versions: a 4-sidedroofcone becomes rows of pressed-on tiles, aleafball becomes a clump of balled-up lumps, awoodcylinder gets bark or staves,woodboxes are scored into planks along their long side,stoneis pressed into blocks, houseplastershows brick patches. Rooms get wallpaper, a wainscot and floorboards; outdoor sets get hills far behind and grass tufts, flowers and pebbles on the ground (kept clear of where the puppets stand). Everything is seeded from the place's description, so a place looks the same in every shot. The far backdrop (CHEAP) stays plain because it is out of focus.
The first render after any change to the materials compiles shaders once on this laptop (about
10 minutes, then cached by the graphics driver). To judge a look change, render one still:
blender -b --factory-startup -P scripts/blender/fruit_render.py -- <episode>/work/scene.json <abs out dir> --stills 1 --clips 2 --quality film --scale 0.5 --samples 32
(about a minute on the CPU, no shader compile). Finished samples are in samples/clay_people/.
When the author sends a reel to learn from
He sends Instagram reels, TikToks and Shorts as references ("learn how they make these"). Do not
make a video in reply. Study the reel: follow research/reels/README.md (watch it with the yt-watch
script in reel mode, write one breakdown, update research/reels/PATTERNS.md and _Index.md), then
apply it as section 4 there says: each lesson goes into use at once through scripts/learned.py
(a rule the writer reads in step 1, a setting inside fixed bounds, or one small script change behind a
test gate that can be put back). We take principles, never their characters, lines or look. Changes
to the clay look are not applied by a run: they wait for his yes.
Reels also arrive without a message: he shares them from his phone to the contact Reel Study
(his own mail address with +reels), and they queue in research/reels/inbox.md. When he says
"check the reels" or "check the inbox", or you are about to study a reel anyway, do an inbox run
(section 0 of that README; scripts/reel_inbox.py keeps the queue). The scheduled task
reel-inbox-check does the same four times a day (research/reels/scheduled-check.md).
Comparison shorts (a second series, since 2026-11-28)
When he asks for a "comparison short", a "split-screen short" or "another one like the plant one":
that is not an episode. It is 12 to 15 seconds, one unbroken shot, no dialogue, a few yellow labels,
made with the same clay people. Read shorts/README.md and copy shorts/001-forgotten-plant/.
None of the episode steps above (variety, lint, review, prepublish) apply to it.
Extending the library (only when the user asks, or as a gated change for a learned lesson)
A lesson from a reel may add a prop, set piece, gesture or sound cue without him asking, but only
the way research/reels/README.md section 4c says: python scripts/learned.py backup first, the
gate after, and never the files that hold the clay look.
Everything a story can use is plain data in scripts/blender/library.py: PROPS, ELEMENTS
(set pieces), EMOTIONS, GESTURES, SHAPES and SKINS. Parts are built from boxes, balls,
cylinders, cones and tori with a material name (clay, metal, wood, cloth, paper, stone, leaf,
glow, glass, plaster, roof). A new gesture also needs its pose in Person.update in
scripts/blender/clay_people.py (and Character.update in fruit_render.py for the fruit cast).
New character: config/cast.json (give it both a model and a person). New hair style: HAIR
in clay_people.py. New sound: scripts/sfx.py.
The linter reads the library, so new names work at once. Render a draft and look at it.