Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
ST8a: craft/story, stories as data in the guides: a router (which page, which lens), how to write, check, sample and score a story with raea/story, and a page per framework in our own words with its sources (McKee, the story spine, Storynomics, PAS, Campbell, Vogler, Harmon, Save the Cat, Kishotenketsu, Propp, Bernays). raea guide lists them as story/NAME; tools/skills.sh copies them into the skill's craft/story/.
shinyobjectz0fec51f6d9cc
diff --git a/docs/story.feature b/docs/story.featureindex 0dacddd5..8dc032c1 100644--- a/docs/story.feature+++ b/docs/story.feature@@ -187,3 +187,10 @@ Feature: Story: a story as ECS data, read through many frameworks, generated witScenario: ST8a. craft/story in the raea skillThen craft/story/ holds a router and a page per framework in our own words with sources, and how to write, check,sample and score a story with raea/story+ And raea guide story/router prints it, and the skill carries each page as a copy+ And the plan:+ | crate | file | lines | job |+ | guides | sdk/guides/craft/story/router.md | 50 | which page, which lens |+ | guides | sdk/guides/craft/story/write.md | 90 | the three layers, into the project |+ | guides | sdk/guides/craft/story/check.md | 60 | each finding and its fix |+ | guides | sdk/guides/craft/story/score.md | 50 | lenses, the critic, a real shape |diff --git a/engine/cli/src/guide.rs b/engine/cli/src/guide.rsindex dcf029c5..411ca6e2 100644--- a/engine/cli/src/guide.rs+++ b/engine/cli/src/guide.rs@@ -6,7 +6,7 @@ pub const GUIDE_NOTE: &str = "> These guides are written for the feed's agent. `/// `raea guide [NAME]` (or `raea craft`, its old name): one craft guide's text, or the list of them, from/// raea_io_home::home()'s sdk/guides/craft: the checkout, or an install's share/raea (tools/release.sh ships them)./// NAME is `craft` (the floor), `router`, or a guide's path there without .md, found in the folder itself, then modes/,-/// verbs/ and motion/: `rubric`, `pitch`, `quieter`, `music`, `motion/music`, `bevy`, `bevy/games`.+/// verbs/ and motion/: `rubric`, `pitch`, `quieter`, `music`, `motion/music`, `bevy`, `bevy/games`, `story/router`./// engine/cli/conformance/surface.test.ts checks every name the agent's context gives against this rule.pub fn guide(name: Option<&str>) -> R<String> {let craft = raea_io_home::home().join("sdk/guides/craft");@@ -17,12 +17,13 @@ pub fn guide(name: Option<&str>) -> R<String> {};// the craft system: the floor, read before every edit, and one guide per mode (docs/craft-system.md, D and G)let (modes, verbs, names, bevy) = (listed("modes"), listed("verbs"), listed("motion"), listed("bevy"));+ let story: Vec<String> = listed("story").iter().map(|n| format!("story/{n}")).collect();if names.is_empty() {return Err(format!("no craft guides at {}: reinstall raea (curl -fsSL https://raea.io/install | sh)", craft.display()));}let bevy: Vec<String> = bevy.iter().map(|n| format!("bevy/{n}")).collect();let Some(n) = name.map(|n| n.trim_end_matches(".md")) else {- return Ok(format!("raea guide NAME prints one.\n\nThe craft (router: the order of work and reading notes; craft right before any edit; a mode's guide when a brief names it):\n router\n craft\n rubric (how a critique is measured, judged and ranked)\n {}\n\nWhat a note asks for (read the one a note calls for before acting on it):\n {}\n\nWriting compositions (motion is the overview; read it first):\n motion\n {}\n\n3D and games drawn by Bevy (bevy is the overview; read it first):\n bevy\n {}\n coverage (what of Bevy and Blitz the SDK reaches, type by type)\n\n(the files: {})", modes.join("\n "), verbs.join("\n "), names.join("\n "), bevy.join("\n "), craft.display()));+ return Ok(format!("raea guide NAME prints one.\n\nThe craft (router: the order of work and reading notes; craft right before any edit; a mode's guide when a brief names it):\n router\n craft\n rubric (how a critique is measured, judged and ranked)\n {}\n\nWhat a note asks for (read the one a note calls for before acting on it):\n {}\n\nWriting compositions (motion is the overview; read it first):\n motion\n {}\n\n3D and games drawn by Bevy (bevy is the overview; read it first):\n bevy\n {}\n coverage (what of Bevy and Blitz the SDK reaches, type by type)\n\nStories as data, raea/story (story/router first; a page per framework):\n {}\n\n(the files: {})", modes.join("\n "), verbs.join("\n "), names.join("\n "), bevy.join("\n "), story.join("\n "), craft.display()));};// what of Bevy and Blitz the SDK reaches, type by type: generated by tools/sdk-coverage, shipped beside the guidesif n == "coverage" {diff --git a/sdk/guides/craft/story/bernays.md b/sdk/guides/craft/story/bernays.mdnew file mode 100644index 00000000..6374f8a8--- /dev/null+++ b/sdk/guides/craft/story/bernays.md@@ -0,0 +1,23 @@+# Bernays: arranged proof, never invented++Edward Bernays, *Propaganda* (1928; public domain). He described persuasion as engineering: arrange circumstances that+make your point evident (an event people see and talk about rather than an ad that tells them), let it be carried by+the voices a group already trusts, and tie it to what people already want. The book is candid that this can be used to+mislead, and it was.++raea keeps the craft and refuses the rest. In our words: **a claim is only ever arranged proof.** You choose which true+thing to show, when, and through whom. You never show a thing that isn't true, and never say what you can't show.++## The lens (`bernays`)++Stages: `desire` (the customer's want, at the start), `circumstance` (the beat by which the audience has seen the proof),+`witness` (someone besides the brand carrying it), `claim` (where the claim lands).++It finds:+- **invented proof** (error): the claim names proof no event makes true;+- **said before seen** (warn): the claim lands before the audience knows its proof;+- **only the brand vouches** (warn): no customer or third party makes or witnesses the proof;+- **beside the point** (note): the claim doesn't meet the customer's own want.++Reach for it on every piece that makes a claim, beside `storynomics`. A brand's numbers on screen must be true in+every frame; this lens is the story-level half of that rule.diff --git a/sdk/guides/craft/story/campbell.md b/sdk/guides/craft/story/campbell.mdnew file mode 100644index 00000000..35ffb308--- /dev/null+++ b/sdk/guides/craft/story/campbell.md@@ -0,0 +1,20 @@+# Campbell: the monomyth++Joseph Campbell, *The Hero with a Thousand Faces* (1949). From myths across cultures he drew one pattern in three+movements, departure, initiation and return, with stages inside each. In our words: someone is called out of the+known world, may refuse, gets help, crosses into the unknown, is tested on a road of trials down to an ordeal at the+bottom, takes what they came for (the boon), and brings it back to a world that needs it.++raea reads the monomyth as a curve: the ordeal is the lowest point before the boon, and the boon must lift the story+above it. Most of Campbell's seventeen stages don't fit a 30 second film and shouldn't be forced; the curve does.++## The lens (`campbell`)++Stages: `call`, `refusal` (beats after the call that turn down), `aid` (where a mentor or gift first acts), `threshold`+(the hero's first linked act after the call and the aid), `trials`, `ordeal`, `boon`, `return`.++It finds: no call (error), no mentor or gift (warn), no descent after the threshold (warn), a boon that doesn't lift+the story above the ordeal (error: the hero brings nothing back), no return (note).++Reach for it on journeys: a quest, a move, a first time. For the roles characters play along the way, read+[vogler](vogler.md).diff --git a/sdk/guides/craft/story/check.md b/sdk/guides/craft/story/check.mdnew file mode 100644index 00000000..37b0a0b8--- /dev/null+++ b/sdk/guides/craft/story/check.md@@ -0,0 +1,40 @@+# Checking a story++Three ways in, one set of checks:++- `bun test` or a script: `checkStory(story, telling)` gives findings, errors first.+- `raea check launch.story.ts`: the story alone, before anything is drawn (every taste rule whose check is over+ `"story"` or `"both"`, run once with no frames).+- `raea check EDIT.tsx`: the story and the film together, as an ordinary `raea/check` check.++The check is the project's own three lines, so it's explicit which story and which telling:++```ts+// checks/story.ts+import { storyCheck } from "raea/story/raea/checks";+import launch from "../launch.story";+export default storyCheck(launch, { telling: "30s", lenses: ["mckee", "pas"] });+```++and a taste line names it: `{ text: "The story holds and is on screen", check: "checks/story.ts" }`. On a composition+it also says when a beat has no Sequence named for it, when the shots come out of the telling's order, and when a+beat's line isn't spoken inside its shot.++## What each finding means, and the usual fix++| check | level | it means | fix |+|---|---|---|---|+| `cause` | error | an event has no cause, or its cause happens later | name the earlier event in `because`, or mark it `routine` |+| `belief` | error | a character acts on a fact they can't know yet | let an earlier event they're in set or teach it |+| `claim` | error | a claim with no proof, or proof not set by then | set the proof in an event shown at or before the claim |+| `arc` | warn | a want or need is never settled | `ends: { hero: "need" }` on the event that settles it |+| `setup` | warn | a setup never paid, or paid with none planted | pay it later, or cut it |+| `turns` | warn | a beat changes nothing | give a shown event a turn, or cut the beat |+| `and-then` | warn | a beat follows from nothing the audience saw | show the cause earlier |+| `surprise` | warn | a big turn nothing set up | plant a cause, pay a setup, or mark it `surprise: "meant"` |+| `idea` | warn | the focus value ends where it began | land the ending somewhere else |+| `rhythm` | note | four beats in a row turn the same way | break the run with a reversal |+| `dead-end` | note | an event causes nothing | let something follow from it, or cut it |++A lens adds its own (`mckee:crisis`, `bernays:invented`, ...), each explained on its page. A lens error is as real as an+exact one when the brief names that lens.diff --git a/sdk/guides/craft/story/harmon.md b/sdk/guides/craft/story/harmon.mdnew file mode 100644index 00000000..9f324283--- /dev/null+++ b/sdk/guides/craft/story/harmon.md@@ -0,0 +1,26 @@+# Harmon: the story circle++Dan Harmon's story circle, written up in his posts on story structure for Channel 101 and used across his series. A+circle in eight steps, halved by the line between the familiar and the unfamiliar. In our words:++1. **You**: a character in a zone of comfort.+2. **Need**: but they want something.+3. **Go**: they enter an unfamiliar situation,+4. **Search**: adapt to it,+5. **Find**: get what they wanted,+6. **Take**: pay a heavy price for it,+7. **Return**: go back to the familiar,+8. **Change**: having changed.++Its strength is the sixth step: getting what you wanted costs something. Its shape repeats, which is why it suits+episodes and game loops.++## The lens (`harmon`)++Stages: `you`, `need`, `go`, `search`, `find` (the want met, or the high point), `take` (the first fall after it),+`return`, `change`.++It finds: no step into the unfamiliar (warn), a want got at no cost (warn), a circle that closes with no need met or+lie dropped (warn), an ending at the level it began (note).++Reach for it on series, sitcoms, and a game's core loop. Most ads won't pay the price step, and shouldn't be held to it.diff --git a/sdk/guides/craft/story/kishotenketsu.md b/sdk/guides/craft/story/kishotenketsu.mdnew file mode 100644index 00000000..6c2fcfc9--- /dev/null+++ b/sdk/guides/craft/story/kishotenketsu.md@@ -0,0 +1,18 @@+# Kishōtenketsu: a turn, not a fight++The four-part form of classical Chinese poetry (qǐ chéng zhuǎn hé), carried into Japanese as ki-shō-ten-ketsu and into+the four-panel yonkoma comic. In our words: **ki** introduces, **shō** develops, **ten** turns (something new arrives+that makes what came before read differently), **ketsu** brings them together.++It needs no conflict. Nothing has to oppose anyone; the interest is in the turn of perspective. That makes it right+for a lot of what Western frameworks call broken: a calm brand film, a reveal, a piece about noticing.++## The lens (`kishotenketsu`)++Stages: `ki`, `sho`, `ten` (the first beat in the second half that reveals a fact, turns hard, or is marked `surprise:+"meant"`), `ketsu`.++It never asks for a crisis or a villain. It finds: no turn at all (error), a turn in the first half before there's+anything for it to change (warn), and a story that stops on the turn with no ketsu (warn).++Reach for it on quiet pieces and reveals, and to check a "nothing happens" note: often something does, late.diff --git a/sdk/guides/craft/story/mckee.md b/sdk/guides/craft/story/mckee.mdnew file mode 100644index 00000000..a34b36a2--- /dev/null+++ b/sdk/guides/craft/story/mckee.md@@ -0,0 +1,24 @@+# McKee: the shape of a designed story++Robert McKee, *Story: Substance, Structure, Style and the Principles of Screenwriting* (1997). In our words:++- **A story is a series of turns of value.** Every scene moves something the characters care about from one pole to+ the other (alive and dead, free and trapped, trusted and doubted). A scene that turns nothing is description.+- **The inciting incident** throws the protagonist's life out of balance and gives them something to want back.+- **Progressive complications** make getting it cost more each time; they escalate, they don't repeat.+- **The crisis** is a true dilemma: two goods, or the lesser of two evils. It's where character shows.+- **The climax** answers it, with the protagonist acting, and turns the value the story is about.+- **The resolution** shows the world after.+- **The controlling idea** is what the story argues, and the counter-idea is what it argues against.++## The lens (`mckee`)++Stages: `inciting`, `complications`, `crisis`, `climax`, `resolution`. It infers them from your world: the inciting+incident is the first event that turns a value by 2 or more, the crisis the first dilemma after it, the climax the+biggest turn of the focus value after that. A beat's own `stage: { mckee: "crisis" }` wins.++It finds: no inciting incident (error), one past the first third (warn), no crisis (error; it proposes "X must choose:+want, or need"), no climax, a climax that doesn't turn the focus value or where the protagonist doesn't act (warn),+complications that ease off (warn).++Reach for it on anything with a protagonist and a decision. It's the default.diff --git a/sdk/guides/craft/story/pas.md b/sdk/guides/craft/story/pas.mdnew file mode 100644index 00000000..00c1d111--- /dev/null+++ b/sdk/guides/craft/story/pas.md@@ -0,0 +1,18 @@+# PAS: problem, agitate, solve++A direct-response copywriting formula, decades old and with no single author: name the problem the viewer has, make+it hurt (agitate: what it costs, how it gets worse), then show the fix, then the proof. It's the shape of most good 15+and 30 second ads, because it's the shortest path from recognition to relief.++In our words: the problem must be the viewer's own (they recognise it), the agitation must cost something visible,+the solve must come from the product, and the proof must be shown.++## The lens (`pas`)++Stages: `problem` (a beat that turns the focus value down), `agitate` (lower still, or the cost made plain), `solve`+(the turn up, with the product), `proof` (a claim backed by a fact the story makes true).++It finds: no problem (error), a problem that arrives late for an ad (warn), no agitation (note), no solve (error), a+solve that doesn't show the product (warn), no proof (note).++Reach for it on short ads. On anything longer than 45 seconds it reads as a pitch; use `storynomics` and `mckee`.diff --git a/sdk/guides/craft/story/pixar.md b/sdk/guides/craft/story/pixar.mdnew file mode 100644index 00000000..91874686--- /dev/null+++ b/sdk/guides/craft/story/pixar.md@@ -0,0 +1,20 @@+# The story spine (and how Pixar uses it)++The spine is Kenn Adams' improv exercise (1991): *Once upon a time... Every day... Until one day... Because of that...+Because of that... Until finally... And ever since then...* Emma Coats passed it on in her rules of storytelling from+her time at Pixar (2011), and it's become the shorthand for Pixar's way of breaking a story. Ed Catmull's *Creativity,+Inc.* (2014) describes the other half, the Braintrust: candid notes that name a problem and leave the fix to the+director.++In our words: the routine first, so the change reads; then a chain where each step happens *because* of the last; then+the new normal. The test is the chain. If you can say "and then" between two beats, the spine is broken there.++## The lens (`pixar`)++Stages: `once`, `every-day` (routine events), `one-day` (the inciting event), `because` (linked beats between),+`finally` (the climax), `ever-since` (after).++It finds: no routine (warn; proposes an ordinary day), nothing breaking it (error), fewer than two "because of that"+(warn), a beat after the change that isn't a consequence (error), no resolution (error), no new normal (note).++raea's version of the Braintrust is the readers and the person's notes: say the problem, not the fix.diff --git a/sdk/guides/craft/story/propp.md b/sdk/guides/craft/story/propp.mdnew file mode 100644index 00000000..0426d414--- /dev/null+++ b/sdk/guides/craft/story/propp.md@@ -0,0 +1,20 @@+# Propp: the folktale's functions++Vladimir Propp, *Morphology of the Folktale* (1928; in English 1958). From a hundred Russian fairy tales he drew+thirty-one functions (what a character does for the plot, whoever does it) in a fixed order, and seven roles that+carry them: the villain, the donor, the helper, the sought-for person, the dispatcher, the hero and the false hero.++In our words, the spine every tale shares: a villainy or a lack; the hero leaves; a donor tests the hero and, if they+pass, gives them something; the hero struggles with the villain and wins; the lack is made good; the hero returns and+is recognised.++## The lens (`propp`)++Masks carry the roles: `shadow` is the villain, `mentor` or `gift` the donor, `herald` the dispatcher. Stages: `lack`,+`departure`, `test` (a dilemma before the gift), `gift`, `struggle` (the villain and hero in one event),+`liquidation` (the lack made good), `return`, `recognition` (a reveal after).++It finds: no lack or villainy (error), a lack never made good (error), a gift given with no test (note), and a villain+who never meets the hero (warn).++Reach for it on quests, game missions and anything told like a tale.diff --git a/sdk/guides/craft/story/router.md b/sdk/guides/craft/story/router.mdnew file mode 100644index 00000000..6dd933c8--- /dev/null+++ b/sdk/guides/craft/story/router.md@@ -0,0 +1,35 @@+# Story: the router++A story in raea is data you write in TypeScript (`raea/story`): who wants what, what happens and why, and how each cut+tells it. raea derives what you'd otherwise argue about (the value curve, what the audience knows at each beat, the+causes, the tension) and checks it before anything is drawn. Read this page first, then the one or two the task needs.++| You're... | Read |+|---|---|+| writing a story for a film, an ad, a game or dialogue | [write](write.md) (`raea guide story/write`) |+| finding out why it doesn't hold, or making `raea check` hold it | [check](check.md) |+| making several versions, or one pattern across many premises | [sample](sample.md) |+| judging a story: lenses, the critic, the launch shape | [score](score.md) |+| shaping it after a framework | the framework's page, below |++## The frameworks, as lenses++Each is a page in our own words with its sources, and a lens in `raea/story` that maps its stages onto your beats,+says where it breaks and proposes what's missing. Pick by what you're making, not by fame:++| Lens | Reach for it when | Page |+|---|---|---|+| `mckee` | any story with a protagonist and a choice: the default | [mckee](mckee.md) |+| `pixar` | a short with a clear before and after; checking the causal chain | [pixar](pixar.md) |+| `storynomics` | a brand film or ad: the customer is the hero | [storynomics](storynomics.md) |+| `pas` | a 15 to 30 second ad that sells a fix | [pas](pas.md) |+| `campbell` | a journey: leaving, being tested, coming back changed | [campbell](campbell.md) |+| `vogler` | a journey where characters' roles (mentor, shadow, herald) matter | [vogler](vogler.md) |+| `harmon` | episodes, sitcoms, game loops: a circle that comes home | [harmon](harmon.md) |+| `save-the-cat` | a commercial feature or trailer; pacing by position | [save-the-cat](save-the-cat.md) |+| `kishotenketsu` | a piece with no villain: a turn of perspective, not a fight | [kishotenketsu](kishotenketsu.md) |+| `propp` | a folk tale, a quest, a game's mission | [propp](propp.md) |+| `bernays` | any piece that makes a claim: proof shown, never invented | [bernays](bernays.md) |++Two or three lenses at most. A story that passes every framework is usually a story no one remembers: the lenses find+holes, they don't write the film.diff --git a/sdk/guides/craft/story/sample.md b/sdk/guides/craft/story/sample.mdnew file mode 100644index 00000000..0583fe26--- /dev/null+++ b/sdk/guides/craft/story/sample.md@@ -0,0 +1,25 @@+# Sampling: many stories from one++Put a choice where you'd otherwise pick: `choose(["the backlog doubles", "a client walks"])` for an event's `does`, a+beat, or a whole telling. A story with choices is a space of stories; a seed picks one.++```ts+import { choose, sample, samples, matrix } from "raea/story";++const one = sample(launch, { seed: 7, telling: "30s", lenses: [mckee] }); // the first passing story from seed 7+const five = samples(launch, 5, { telling: "30s" }); // five different passing ones+```++`sample` walks seeds from the one you give until a story passes the exact checks and every lens you name, so a sampled+story always holds. The same seed gives the same story.++## One pattern, many premises++`matrix(pattern, themes)` runs one story pattern (a function from a premise to a story) over many premises and says how+often each holds and which checks fail where. Use it before committing to a structure for a series: if the pattern+only works for one premise, it's that premise working, not the pattern.++## Choices in a telling++`choose([beatA, beatB, null])` in a telling makes a beat optional (`null` leaves it out). That's how one story yields a+15, 30 and 45 second cut, or a game's branches, all checked the same way.diff --git a/sdk/guides/craft/story/save-the-cat.md b/sdk/guides/craft/story/save-the-cat.mdnew file mode 100644index 00000000..bc589c4d--- /dev/null+++ b/sdk/guides/craft/story/save-the-cat.md@@ -0,0 +1,21 @@+# Save the Cat: the beat sheet++Blake Snyder, *Save the Cat! The Last Book on Screenwriting You'll Ever Need* (2005). Fifteen beats placed by page+number in a 110-page script. In our words: an opening image; the theme said aloud by someone; the set-up; a catalyst;+a debate; a break into a new world; a B story; fun and games (the premise's promise); a midpoint where the stakes rise+(a false victory or a false defeat); the bad guys closing in; all is lost; a dark night; a break into the finale; the+finale; and a final image that mirrors the first, changed. The title names a moment early on where the hero does+something that makes us like them.++raea places the beats by share of the telling, not by page, so a 30 second ad and a feature are held to the same+shape. It can't see likeability or theme spoken aloud, and doesn't pretend to.++## The lens (`save-the-cat`)++Stages: `opening-image`, `catalyst`, `debate`, `break-into-two`, `midpoint`, `bad-guys-close-in`, `all-is-lost`,+`finale`, `final-image`.++It finds: a catalyst past the first third (warn), no midpoint turn in a telling of five beats or more (note), the+lowest point in the first half (warn), and a final image at the same level as the opening one (warn).++Reach for it on trailers and longer films where pacing by position matters.diff --git a/sdk/guides/craft/story/score.md b/sdk/guides/craft/story/score.mdnew file mode 100644index 00000000..a490564b--- /dev/null+++ b/sdk/guides/craft/story/score.md@@ -0,0 +1,31 @@+# Scoring a story++A story that passes its checks holds together. Whether it's good is a different question, answered three ways.++## 1. Read it through lenses++`readThrough(story, [LENSES.mckee, LENSES.pas], telling)` gives each lens's map (which beats are which stage), its+findings and its proposals: what's missing, as a beat to add (`{ stage, after, onScreen, feel, why }`). A proposal is+a starting point for a beat, not a beat. Read [router](router.md) to pick the lens.++## 2. Ask the critic++The critic is a small model (about 0.6B parameters, on this machine) trained on exact labels: valid stories, and the+same stories with a beat cut, two beats swapped or a stranger's beat spliced in, each labelled by `checkStory`. It+reads a script as prose, numbered by beat, and answers `{ breaks: [{ beat, check, level }] }` under a schema, so its+answer is always data. Use it where there's no story data yet: a script someone wrote, a transcript, a cut you were+handed. Its held-out numbers against an untrained model and a frontier judge are in docs/story.md.++The generator is its partner: given a story with a beat missing, it writes the beat under that story's own schema+(its references can only be the story's keys), and the beat it writes is checked like any other.++## 3. Hold it to a real shape++A fingerprint of real films that did well (raea fingerprint) says what their shape was: how fast the problem+arrives, when the product is first seen, how long the proof holds. A story's telling can be scored against it before+anything is drawn. Shape is evidence, not a rule: hold it loosely, and never copy a film's beats.++## What none of these can tell you++Whether it's funny, whether the line lands, whether the person will like it. Show the script to the person before+the film, and believe what they say over any score.diff --git a/sdk/guides/craft/story/storynomics.md b/sdk/guides/craft/story/storynomics.mdnew file mode 100644index 00000000..f2311f42--- /dev/null+++ b/sdk/guides/craft/story/storynomics.md@@ -0,0 +1,16 @@+# Storynomics: the customer is the hero++Robert McKee and Thomas Gerace, *Storynomics: Story-Driven Marketing in the Post-Advertising World* (2018). In our+words: a brand story is told about the customer, not the brand. The customer's life has a core value out of balance+(time, confidence, safety); the brand is the mentor or the gift that helps them act; the customer makes the decisive+move; the value is restored. A brand that's the hero of its own ad tells a story no one asked for.++## The lens (`storynomics`)++Stages: `at-stake` (the customer's value going wrong), `the-gift` (where the brand first acts), `the-act` (the+customer's decisive move), `restored`.++It finds: no customer at the centre (error), the brand making the decisive move instead of the customer (error), a+brand that never appears as mentor or gift (warn), and a value that doesn't end above its lowest point (error).++Reach for it on every brand film and ad, beside `pas` for short ones and `bernays` when it makes a claim.diff --git a/sdk/guides/craft/story/vogler.md b/sdk/guides/craft/story/vogler.mdnew file mode 100644index 00000000..c12b62f0--- /dev/null+++ b/sdk/guides/craft/story/vogler.md@@ -0,0 +1,21 @@+# Vogler: the writer's journey++Christopher Vogler's memo on Campbell for Disney's story department (1985), grown into *The Writer's Journey* (1992,+third edition 2007). He put the monomyth into twelve stages in three acts, for screenwriters, and treated the+archetypes as masks: functions a character takes on for a scene, not fixed types. The mentor can turn shadow; the+herald may be a phone call.++In our words: ordinary world, call, refusal, meeting the mentor, crossing the threshold, tests and allies and enemies,+the approach, the ordeal, the reward, the road back, the resurrection (a last test, where the change is proven), and+the return with the elixir.++## The lens (`vogler`)++Stages: `ordinary-world`, `call`, `refusal`, `mentor`, `threshold`, `tests`, `approach`, `ordeal`, `reward`,+`road-back`, `resurrection` (the climax), `return`.++It checks masks by what they do: a `herald` must act in the call, a `shadow` must act against the hero (an event that+turns the focus value down), a hero mask should exist. It finds a missing reward after the ordeal (warn) and a missing+resurrection, a hero never tested a last time (note).++Reach for it when the cast matters: who helps, who opposes, who brings the news.diff --git a/sdk/guides/craft/story/write.md b/sdk/guides/craft/story/write.mdnew file mode 100644index 00000000..a17a2728--- /dev/null+++ b/sdk/guides/craft/story/write.md@@ -0,0 +1,57 @@+# Writing a story++A story is a module, `NAME.story.ts`, with one default export made by `story()`. tsc checks its references: a beat+that shows an event you didn't write, an agent you didn't declare, a setup nobody planted, won't compile.++```ts+import { story, value } from "raea/story";++export default story({+ title: "Halden Outdoor: the first tent",+ idea: { value: "nerve", side: "you're braver than your gear", counter: "only experts go out" },+ values: { nerve: value("afraid", "bold") },+ facts: { pitched: "the tent goes up in one pull" },+ agents: {+ june: { want: "a night outside", need: "to trust herself", role: "customer", mask: "hero" },+ tent: { role: "brand", mask: "gift" },+ },+ world: { // what happens, in the order it happens+ stays: { who: "june", does: "watches the hills from her window", routine: true, turns: { nerve: -1 } },+ dusk: { who: "june", does: "drives out as the light goes", because: "stays", turns: { nerve: -1 }, dilemma: ["turn back", "keep going"] },+ pitch: { who: "june", with: ["tent"], does: "pulls the tent up in one go", because: "dusk", sets: ["pitched"], turns: { nerve: 3 }, ends: { june: "need" } },+ },+ tellings: { // how each cut tells it+ "20s": [+ { id: "hook", shows: ["pitch"], hides: ["pitched"], asks: ["pitched"], setup: "how", feel: "curiosity", onScreen: "A tent glows on a dark hill." },+ { id: "before", shows: ["stays"], feel: "recognition" },+ { id: "dusk", shows: ["dusk"], feel: "concern" },+ { id: "pull", shows: ["pitch"], reveals: ["pitched"], pays: "how", feel: "delight" },+ ],+ },+ lenses: ["mckee", "storynomics"],+});+```++## The three layers++- **The world** is what happens: events in story order, each with who acts, why (`because`: the earlier event that+ caused it), what it makes true (`sets`), what it moves (`turns`: a value, -3 to 3) and what it settles (`ends`).+ An event that's just how things are is `routine`.+- **A telling** is how one cut tells it: beats in the order the audience sees them. A beat `shows` events (a hook can+ show the ending first), `hides` and `asks` what the audience doesn't know yet, `reveals` it later, plants a `setup`+ and `pays` it. Give each beat an `id`: a composition names its Sequence by it and `raea check` looks for it.+- **The render** is the film: `compileScript(story, telling)` makes the brief's script (a scene a beat, each naming its+ `beat`), and `<Beat times={...} id="hook">` in a composition is a Sequence timed from the telling.++## Into the project++The brief imports the story explicitly: `brief({ ..., story })` (raea keeps it as written). A check imports it too,+`checks/story.ts` (see [check](check.md)). Nothing finds a story by itself: what uses it says so.++## Rules that save a rewrite++- Write the world before any telling. Two cuts of one world (a 15 s and a 45 s) share their causes.+- Every event after the first has a cause or is routine. "And then" is the most common hole.+- A value is a pair of poles ("buried", "free"), not a topic. The `idea.value` is the one the story is about.+- Facts are keys, not sentences: `believes`, `needs`, `sets`, `proof`, `asks` all name declared facts.+- A claim (`claim`) names its `proof`, facts an event makes true. Never write proof nothing shows.diff --git a/tools/skills.sh b/tools/skills.shindex 15bd5afc..862c9ff0 100755--- a/tools/skills.sh+++ b/tools/skills.sh@@ -47,13 +47,15 @@ copies() {for g in ROUTER.md floor.md rubric.md NOTICE; do printf '%s\tcraft/%s\n' "sdk/guides/craft/$g" "$g"; donefor g in sdk/guides/craft/modes/*.md; do printf '%s\tcraft/modes/%s\n' "$g" "${g##*/}"; donefor g in sdk/guides/craft/verbs/*.md; do printf '%s\tcraft/verbs/%s\n' "$g" "${g##*/}"; done+ # stories as data (raea/story): the router, how to write, check, sample and score, and a page per framework+ for g in sdk/guides/craft/story/*.md; do printf '%s\tcraft/story/%s\n' "$g" "${g##*/}"; done# the worked checks a note's ask copies into its project (DR6): each a raea/check system with its values and cheatsfor g in sdk/guides/craft/checks/*.ts; do printf '%s\tcraft/checks/%s\n' "$g" "${g##*/}"; done# the match-cut kit a storyboard's chain copies into its project (raea guide match-cuts): chain, plan, thirds, boardfor g in sdk/guides/craft/match-cuts/*; do printf '%s\tcraft/match-cuts/%s\n' "$g" "${g##*/}"; done}# the folders whose every file is a copy (a file there with no source is one whose guide was removed or renamed)-COPY_DIRS="3d motion craft craft/modes craft/verbs craft/checks craft/match-cuts"+COPY_DIRS="3d motion craft craft/modes craft/verbs craft/story craft/checks craft/match-cuts"SKILL_ONLY="3d/plugins.md 3d/rows.md"HEAD_LINE="<!-- generated by tools/skills.sh gen; do not edit -->"# the feed app: APP, APP_REV, app_show and app_grep