The bible
A bible uses the grammar of every Récit story: front matter, scenes --- id=, :::
directives. One scene is one entry. entry= is one of character, set, style, prompt,
beats, brief, rule, series, promise and clue.
Markdown
| Element | Role |
|---|---|
kind: bible | the file is a bible, not a story |
## heading, then a paragraph | name and summary of the entry (translated) |
:::identity | the frozen identity block, copied word for word into every prompt; never translated |
:::traits | key: value lines; a colour is a hex (a theme token in a described character) |
{inferred} at the end of a line | proposed, not yet validated by a human |
::pose, ::expression, ::shot | short ids the stories refer to |
:::avoid | what no image may show |
::reference{src role} | a reference image: canonical, turnaround, style or set |
A described character (preview)
A character can also be described in text, so that @recit/ draws it, in vector and in
pixel art, in every pose and every image of an animation (CharacterImage from
@recit/, characterToSvg and characterToPixelSvg, schemas in
@recit/). The description is optional: a bible without it stays valid. Its palette is
the palette trait, and a value may be a theme token (skin=bg), so the character follows the site
and dark mode.
Markdown
| Element | Role |
|---|---|
::part{…} | a part of the tree: shape (ellipse, rect, capsule, pear, cloud, limb, mitten, foot, path) or slot (eyes, brows, mouth), w, h, parent, at, pivot, z, fill, stroke, d, lobes, and the profile overrides side-shape, side-w, side-h, side-at, side-pivot, side-z, side-d, side-hidden |
:::pose{id expression mirror view} | a pose that moves parts: one line per part, rotate, dx, dy, scale, bend, hidden; mirror flips the figure horizontally; view (front or side) switches to the side profile; the paragraph is its label |
::expression{…} | the shapes of the face: eyes, brows, mouth, from closed lists |
:::expression{id eyes brows mouth} | an expression that also transforms parts: one line per part (rotate, dx, dy, scale, bend, hidden), like :::pose, merged after the pose; the paragraph is its label |
::render{…} | how to draw it: vector (stroke, width, shade=cel) or pixel (size, outline); the first is the default |
::variant[label]{…} | palette=, hide=a,b, scale: never a new part |
::forbid{…} | face shapes no expression may use, an error and not a warning |
:::animation{id fps loop parts} | a cycle of the model: - <at>ms:; parts makes it a layer |
```pixel render= | a grid written by hand for a pose of a pixel render: a legend of palette keys, a blank line, the rows |
On a shape=limb part, bend (parts.bend in JSON) bends the part at its middle, in degrees
(clockwise), and anything attached to its lower half follows:
Markdown
A pose can hide a part (and its children) for that pose alone with hidden on its move line
("hidden": in JSON), and the mirror flag ("mirror": in JSON, on
:::pose{id= or ::pose[…]{id=) flips the whole figure horizontally across the
centre of its frame without rewriting its parts or moving its viewBox, in both vector and pixel
renders:
Markdown
The side view
A pose switches to profile with view=side on :::pose{id= or
::pose[…]{id= ("view": on poses.view in JSON; front when omitted). On
::part{…}, the attributes side-shape, side-w, side-h, side-at, side-pivot, side-z,
side-d and the side-hidden flag ("side": on parts.side in JSON: side.shape,
side.w, side.h, side.at, side.pivot, side.z, side.d, side.hidden) replace the front
fields of that part in the side view, or hide the part and its children when side-hidden is set.
The profile faces right, and adding mirror (:::pose{id=) turns it to face
left; an animation between a front pose and a side pose flips view halfway through, while the
character's viewBox stays fixed across both views so turning never shifts the frame:
Markdown
Validation emits a warning when a pose sets view=side on a model where no part has an active
side override (hasPartSide: the side view changes nothing), when a bend is outside ±170
degrees (clamped to ±170 at render), or when a shape=limb part has w > h (its caps have radius
w/2, so keep h >= w).
When a character's face is built from parts instead of slot features (or alongside them), the
block form :::expression{id eyes brows mouth} (expressions. in JSON) transforms parts by
id with the same move lines as :::pose, merged channel by channel after the active pose.
Validation emits a warning when an expression defines no parts and sets facial slots (eyes,
brows, mouth) that the model does not have:
Markdown
Every problem has its line: an unknown parent, two roots, a missing palette key, an unknown part or
pose, a forbidden shape, a grid larger than its render. recit character sheet cast.md writes the
codex-pet-v1 sheet of the character, --render pix in pixel art; the example is
examples/.
From TypeScript, @recit/ exports the DOM-free posture and render helpers
(characterFrameAt, expandAnimation, codexPetAnimations, characterDrawing, characterToSvg,
characterPixelGrid, characterToPixelSvg, characterPortraitSvg, characterSheetSvg,
characterSheetProvenance), @recit/ exports CharacterImage and
CharacterPortrait (styled by @recit/), and @recit/ holds
CharacterSchema, AnimationSchema, hasPartSide and characterOfEntry. Stories whose front
matter names cast: draw the character with ::character{…} in
decks,
films,
web stories, webtoons and
books. In a
site, ::character is drawn in a deck, a web story, a
webtoon, a film and a book when @recit/ and @recit/ are installed alongside
@recit/.
Portrait
A portrait is the character's bust — head, crown or hair, face and shoulders — framed in a square
and quantized into pixel art from the same model, with no external dependency. A model with no
facial slot part falls back to its upper body at rest, and theme tokens in the palette stay CSS
variables.
characterPortraitSvg(character, options) returns a standalone pixel SVG, named <name>, portrait
by default (characterPortraitLabel). Its options are pose ("rest" by default), expression,
variant, render (a pixel render id; the model's first pixel render by default, else a
32×32 grid), size (grid width and height in cells, an integer from 8 to 128, 32 by default
or the render's size; any other value throws), scale (pixels per cell, 8 by default), locale
("en" by default), alt ("" makes the SVG decorative) and fill (paint function for a legend
colour). characterPortraitGrid returns the { grid, legend } data and characterPortraitFrame
the square frame in character units (spanning both front and side rest views when any part has an
active side).
In React, CharacterPortrait from @recit/ (styled by
@recit/) renders the bust as role="img" with the accessible name
<name>, portrait by default (alt="" makes it decorative). Its props are character, pose,
expression, render, variant, cells (grid resolution in cells, from 8 to 128, the
render's size or 32), size ("fit" to fill its box, or pixels per cell, 8 by default),
locale, alt and className.
TSX
Sets and styles
Markdown
Beat templates
A beat template is data, not code: an ordered list id — description. Write your own in the bible.
Markdown
Pick the template by the length of the story: one scene per beat is the skeleton that
story_ writes. Copy one of these three into your bible and reword it.
| Template | Beats | For |
|---|---|---|
hook- | 3 | a micro-film, a web story, a short webtoon episode (3 to 5) |
three-act | 3 | a longer story whose acts each hold several scenes |
save-the-cat | 15 | a book, a long webtoon, a series arc: one chapter or episode |
Markdown
save-the-cat follows the fifteen beats of Blake Snyder's Save the Cat!. The share of the story
in each description is a reading aid, not a rule: sources disagree on the figures, and the template
stays a checklist, not a mould.
Markdown
Brief, rules, series and debts
brief, rule, series, promise and clue entries (along with the character interview traits)
serve the guided writing workshop (recit://).
entry=brief (one per bible) records a short summary in prose and the fourteen closed brief traits
in :::traits:
Markdown
The brief can also come from a form in steps: examples/
asks the first four steps of the workshop in format: form, one field per brief trait
(name=logline, name=…) plus name=title. briefFromAnswers(answers) of
@recit/ turns its answers into the entry=brief, every trait validated by the author; a
blank answer stays out of the entry, and the fields of steps 3 and 4 (art direction, characters) are
not part of the brief.
The workshop keeps its state next to the bible in atelier.md (the entry mode, the current step,
the skipped steps, the next action, the table Locked decisions and the list Open questions).
parseAtelierState(markdown) of @recit/ reads it, with an atelier- diagnostic and
its line for a step out of 1 to 9, a date that is not YYYY-MM-DD or a decision locked after the
current step; lockDecision(state, { step, decision, date }) closes a gate by appending one dated
decision, never rewriting a locked one, and formatAtelierState(state) writes the file back.
entry=rule states one rule of the world, with cost and taboo in :::traits:
Markdown
entry=series (one per bible) sets the serial's engine, goal, contract, rhythm and episode leads:
Markdown
entry= and entry=clue track narrative debts with separator attributes: status
(planned, planted, paid-off or dropped, required), planted-in (episode id) and paid-in
(episode id). planted-in is required when status is planted or paid-off, and paid-in when
it is paid-off (the JSON Schema cannot say it; recit validate does, with the line):
Markdown
Languages
cast.fr.md is a complete bible, with the same entries and the same ids. Names, summaries, beat
descriptions, voice, forbidden, values, the seven dramatic traits of a character (want,
need, wound, lie, arc, contradiction, fear) and every trait of brief, rule and
series (spark, what-if, logline, …) translate; died-in is an episode id and never
translated, and :::identity, visual-token, prompts, palettes, poses and ids stay in
bible., so every language shares the same images.
Showing the bible on a page
@recit/ draws the bible: CharacterSheet, SetCard, PromptCard, BeatSheet
and ProvenanceBadge. They take the typed entries of the JSON twin
(recit convert cast.), so a page shows exactly what the prompts are built from. An
inferred trait keeps its badge, and a stale or missing image is said in words. When a character has
a model, CharacterSheet (and BibleGallery) draws its decorative pixel portrait in the header;
pass portrait= to hide it.
TSX
BibleGallery shows a whole bible straight from its Markdown — characters, sets, prompts and beats,
or only the sections listed in show — and lists the errors with their line when the bible does not
validate. Register it in mdx., then import the file as text:
MDX
A bible as a deck
recit convert cast. turns the bible into a deck to present the world: one
slide per character (a pitch) and per set (a moodboard), with the name and the summary on the slide
and the traits and the long text in the speaker notes; one slide per style, its identity; one per
beat template, its numbered beats. Prompts, the brief, rules, series, promises and clues are the
writer's tools, not slides: they are left out, and a warning lists them. A summary too long for a
slide is an error with the line of its entry, nothing is written; shorten it, the long text goes to
the entry's body. The translated bible (cast.fr.md) gives the deck in its language.
A bible as a book's dramatis personae
recit convert cast. writes the characters of the bible as one chapter
of a book, its "Dramatis personae": a # Dramatis personae heading, then each character in the
bible's order, its name in bold and its summary. The traits and the long text of an entry stay in
the bible: a reader sees who is who, not their secrets. The other entries are left out, and a
warning lists them; a bible without a character is an error, nothing is written. List the file at
the end of the entry's chapters, unnumbered:
book.md
The heading reads "Dramatis personae" in every language; rename it in the chapter, which is yours
once written. The translated bible (cast.fr.md) gives the chapter in its language, and
-o cast.json writes the chapter's typed JSON twin.
A screenplay in Fountain
Fountain is the plain-text screenplay syntax. Récit reads and writes
the useful part of it, without dependency, to bring a script in and send it back out; it never
becomes a source syntax. recit convert script. turns a screenplay into a
webtoon episode, the script to draw:
| Fountain | Webtoon episode |
|---|---|
title page (Title, Author, Date) | title, author, date; the other keys are left out with a warning |
scene heading (INT.) | a new panel, set=, the heading kept in its notes |
| action, centered text | a caption; an action after a dialogue opens the next panel |
| character and dialogue | a stacked bubble, cast= the character's name as an id |
parenthetical (whispering) | *(whispering)* at its place in the bubble |
extension (V.O.), (O.S.) | a bubble without tail (tail=none) |
transition (CUT TO:), note [[…]] | the panel's notes |
section, synopsis, boneyard /* … */ | left out, with a warning and its line |
The panels have no image yet: add src= and alt= once they are drawn, and declare the bible
(cast:) so that recit validate checks the set= and cast= ids. -o episode.json (or
--to json) writes the typed twin, --locale fr sets the episode's language.
recit convert episode. writes an episode back as a screenplay:
a change of set= opens a scene, a caption or a sound effect is an action, a bubble with cast= a
dialogue, a transition or a note of the panel a transition or a [[note]]. A character's name is
written back from its id, in capitals and without accents (cast=elea gives ELEA). The images,
the character layers and a bubble without cast= have no place in a screenplay: a warning lists
them.
The JSON twin
recit convert cast. writes the bible's typed JSON twin (kind:,
version: 1), and --to md converts it back to Markdown. Fields marked "JSON only"
(entries., entries.tags, entries.see, entries., entries. and
entries.) are not written to Markdown by bibleToMarkdown, so converting from JSON
to Markdown drops them. The twin is validated by
bible.json (BibleSourceSchema of @recit/,
recit schema bible, preview).
Top level
| Path | Description |
|---|---|
$schema | Optional JSON Schema URI ("https://). |
kind | "bible" (required). |
version | 1 (required). |
meta | Document metadata object (required). |
meta.title | Bible title, as a string or per-locale Record<string, string> (title: in front matter). |
meta.lang | Optional language tag of at least 2 characters (lang: in front matter). |
settings | Optional bible settings (bible: in front matter), unchanged across translated bibles. |
settings. | Optional prompt language tag of at least 2 characters, independent of meta.lang. |
settings. | Optional default style entry id (^[a-) for prompts that omit entries.. |
settings. | Optional default beats entry id (^[a-). |
entries | Array of bible entries in document order (required; one per --- id= in Markdown). |
Entries
entries is a discriminated union on entries. ("character", "set", "style",
"prompt", "beats", "brief", "rule", "series", "promise" and "clue"), extending the
shared entry fields (id, name, aliases, summary, body, tags, see, source).
| Path | Entry kind | Description |
|---|---|---|
entries.id | all | Stable entry id (^[a-, required; --- id=… in Markdown). |
entries. | all | "character", "set", "style", "prompt", "beats", "brief", "rule", "series", "promise" or "clue" (--- entry=…). |
entries.name | all | Localized string or Record<string, string> (## heading; required on every entry type but "prompt" and "beats"). |
entries. | all | Optional string[] or per-locale Record<string, string[]> of alternate names (JSON only). |
entries. | all | Optional localized string or Record<string, string> (first prose paragraph outside "prompt" and "beats"). |
entries.body | all | Optional localized string or Record<string, string> (later prose paragraphs outside "prompt" and "beats"). |
entries.tags | all | Optional array of non-empty tag strings (JSON only). |
entries.see | all | Optional array of non-empty related entry ids (JSON only). |
entries. | all | Optional external source object (JSON only). |
entries. | all | http: or https: URI of entries. (required when entries. is set). |
entries. | all | Optional non-empty licence string for entries.. |
entries. | character, set, style | Frozen visual description (:::identity), never translated; required on "style", optional on "character" and "set". |
entries. | character, set, style | Optional array of reference images (::reference{src=). |
entries. | character, set, style | Non-empty image path relative to the bible (required on each item). |
entries. | character, set, style | "canonical", "turnaround", "style" or "set" (required on each item). |
entries. | character | Optional array of non-empty negative-prompt strings (:::avoid). |
entries. | character | Optional forbidden facial slot shapes (::forbid{…}, preview). |
entries. | character | Optional array of forbidden eye shapes from the closed eyes list. |
entries. | character | Optional array of forbidden brow shapes from the closed brows list. |
entries. | character | Optional array of forbidden mouth shapes from the closed mouth list. |
entries. | character | Optional sprite sheet descriptor (::sheet{src=). |
entries. | character | Non-empty sprite-sheet path relative to the bible (required when entries. is set). |
entries. | character | "codex- (required when entries. is set). |
entries. | prompt | Id of a "character" entry (subject=…, required; see Prompts and provenance). |
entries.set | prompt | Optional id of a "set" entry (set=…). |
entries. | prompt | Optional id of a "style" entry (style=…; defaults to settings.). |
entries.shot | prompt | Id of a shot (shot=…, required; checked against entries. of entries.set when entries.set is set). |
entries.pose | prompt | Optional id of a pose in entries. or a row of entries. on entries. (pose=…). |
entries. | prompt | Optional id of an expression in entries. on entries. (expression=…). |
entries. | prompt | Optional id of a cycle in entries. on entries. (animation=…, preview). |
entries. | prompt | Aspect ratio matching ^\d+:\d+$ such as "9:16" (aspect=…, required). |
entries. | prompt | Non-empty action description in settings. (prose body of a "prompt" entry, required). |
entries.seed | prompt | Optional integer seed (seed=…). |
entries. | prompt | Optional output descriptor object (JSON only). |
entries. | prompt | Non-empty output path string (required when entries. is set). |
entries. | prompt | "transparent", "chroma" or "scene" (required when entries. is set). |
entries. | beats | Non-empty ordered array of beat items (1. in Markdown, required). |
entries. | beats | Beat id (^[a-, required on each item), unchanged across languages. |
entries. | beats | Localized string or Record<string, string> beat description (required on each item). |
entries. | promise, clue | "planned", "planted", "paid-off" or "dropped" debt status (required; status=… in Markdown). |
entries. | promise, clue | Optional episode id (^[a-) where the debt is planted (planted-in=… in Markdown; required when status is "planted" or "paid-off", checked by recit validate with the line since the JSON Schema cannot say it). |
entries. | promise, clue | Optional episode id (^[a-) where the debt is paid off (paid-in=… in Markdown; required when status is "paid-off", checked by recit validate with the line since the JSON Schema cannot say it). |
Traits
On "character", "set", "brief", "rule" and "series" entries, entries.
(:::traits) maps each allowed trait name to a { value, inferred? record: value
(required) is a localized string or Record<string, string> — except palette, whose value
maps lowercase palette keys (^[a-) to hex colours, theme tokens or "transparent",
visual-token, whose value is a plain string (never translated), and died-in, whose value
is an episode id (^[a-, checked as an id) — inferred is optional literal true
({inferred}, a warning in recit validate and an error with --strict), and source is an
optional non-empty string recording where the trait was read (JSON only). On "character", voice,
forbidden, values and want through fear (want, need, wound, lie, arc,
contradiction, fear) translate across languages, while visual-token is a plain string in
settings. (it feeds prompts and is never translated) and died-in is an episode id
(episode-3), checked as an id and never translated; every trait of "brief", "rule" and
"series" translates across languages, and the remaining traits stay in settings..
| Path | Entry kind | Description |
|---|---|---|
entries. | character, set, brief, rule, series | Optional object of structured traits (:::traits). |
entries. | character | Optional species trait record. |
entries. | character | string or Record<string, string> (required when species is set). |
entries. | character | Optional true when species is unvalidated. |
entries. | character | Optional non-empty source string for species (JSON only). |
entries. | character, set | Optional colour palette trait record. |
entries. | character, set | Record<string, string> of palette keys to hex colours, tokens or "transparent". |
entries. | character, set | Optional true when palette is unvalidated. |
entries. | character, set | Optional non-empty source string for palette (JSON only). |
entries. | character | Optional localizable voice and tone trait record. |
entries. | character | string or Record<string, string> (required when voice is set). |
entries. | character | Optional true when voice is unvalidated. |
entries. | character | Optional non-empty source string for voice (JSON only). |
entries. | character | Optional localizable forbidden-traits record. |
entries. | character | string or Record<string, string> (required when forbidden is set). |
entries. | character | Optional true when forbidden is unvalidated. |
entries. | character | Optional non-empty source string for forbidden (JSON only). |
entries. | character | Optional localizable character-values trait record. |
entries. | character | string or Record<string, string> (required when values is set). |
entries. | character | Optional true when values is unvalidated. |
entries. | character | Optional non-empty source string for values (JSON only). |
entries. | character | Optional localizable conscious-goal trait record. |
entries. | character | Optional localizable inner-need trait record. |
entries. | character | Optional localizable formative-wound trait record. |
entries. | character | Optional localizable false-belief trait record. |
entries. | character | Optional localizable character-arc trait record. |
entries. | character | Optional localizable character-contradiction trait record. |
entries. | character | Optional localizable fear trait record. |
entries. | character | Optional visual-token trait record whose value is a plain string in settings. (feeds prompts, never translated). |
entries. | character | Optional trait record whose value is the episode id where the character dies (episode-3, checked as an id ^[a-, never translated). |
entries. | set | Optional time-of-day trait record (feeds {set} in prompts). |
entries. | set | string or Record<string, string> (required when time is set). |
entries. | set | Optional true when time is unvalidated. |
entries. | set | Optional non-empty source string for time (JSON only). |
entries. | set | Optional lighting trait record (feeds {set} in prompts). |
entries. | set | string or Record<string, string> (required when light is set). |
entries. | set | Optional true when light is unvalidated. |
entries. | set | Optional non-empty source string for light (JSON only). |
entries. | set | Optional ambience trait record (feeds {set} in prompts). |
entries. | set | string or Record<string, string> (required when ambience is set). |
entries. | set | Optional true when ambience is unvalidated. |
entries. | set | Optional non-empty source string for ambience (JSON only). |
entries. | set | Optional props trait record (feeds {set} in prompts). |
entries. | set | string or Record<string, string> (required when props is set). |
entries. | set | Optional true when props is unvalidated. |
entries. | set | Optional non-empty source string for props (JSON only). |
entries. | brief | Optional localizable origin-spark trait record. |
entries. | brief | Optional localizable what-if trait record. |
entries. | brief | Optional localizable logline trait record. |
entries. | brief | Optional localizable thematic-question trait record. |
entries. | brief | Optional localizable premise trait record. |
entries. | brief | Optional localizable counter-premise trait record. |
entries. | brief | Optional localizable personal-stakes trait record. |
entries. | brief | Optional localizable relational-stakes trait record. |
entries. | brief | Optional localizable world-stakes trait record. |
entries. | brief | Optional localizable target-audience trait record. |
entries. | brief | Optional localizable character-tone word record. |
entries. | brief | Optional localizable event-tone word record. |
entries. | brief | Optional localizable reference-works trait record. |
entries. | brief | Optional localizable content-limits trait record. |
entries. | rule | Optional localizable rule-cost trait record. |
entries. | rule | Optional localizable world-taboo trait record. |
entries. | series | Optional localizable series-engine trait record. |
entries. | series | Optional localizable season-goal trait record. |
entries. | series | Optional localizable audience-contract trait record. |
entries. | series | Optional localizable release-rhythm trait record. |
entries. | series | Optional localizable episode-leads text record. |
Poses, expressions and shots
| Path | Entry kind | Description |
|---|---|---|
entries. | character | Optional array of character poses (::pose or :::pose; "rest" is reserved as the implicit reference pose). |
entries. | character | Pose id (^[a-, required on each item). |
entries. | character | Optional non-empty pose description in settings. ([label] or :::pose paragraph; feeds {pose}). |
entries. | character | Optional id from entries. shown in this pose. |
entries. | character | Optional "front" or "side" view of the figure (default "front"; "side" faces right, view=…). |
entries. | character | Optional boolean flipping the figure horizontally across its frame (mirror). |
entries. | character | Optional map of part ids to { rotate? transforms (:::pose move lines). |
entries. | character | Optional array of facial expressions (::expression or :::expression). |
entries. | character | Expression id (^[a-, required on each item). |
entries. | character | Optional non-empty description in settings. ([label] or :::expression paragraph; feeds {expression}). |
entries. | character | Optional "open", "wide", "closed", "happy", "look-l" or "look-r". |
entries. | character | Optional "flat", "up", "down" or "none". |
entries. | character | Optional "smile", "smile-wide", "o", "flat", "oops" or "none". |
entries. | character | Optional map of part ids to { rotate? transforms, merged after the pose. |
entries. | set | Optional array of camera shots (::shot[label]{id=). |
entries. | set | Shot id (^[a-, required on each item). |
entries. | set | Optional non-empty shot description in settings. ([label]; feeds {shot}). |
Character model
Every entries. path belongs to entry: (preview; see
A described character and
Images of an animation).
| Path | Description |
|---|---|
entries. | Optional described-character model object ({ parts, renders?, preview). |
entries. | Non-empty array of part objects (::part{…}, required when entries. is set; see above). |
entries. | Optional side-view overrides object applied when poses.view is "side" (side-… attributes on ::part{…}). |
entries. | Optional "ellipse", "rect", "capsule", "pear", "cloud", "limb", "mitten", "foot" or "path" on a shaped part (side-shape=…). |
entries. | Optional positive width in character units overriding w (side-w=…; effective w and h required for non-"path" shapes). |
entries. | Optional positive height in character units overriding h (side-h=…; effective w and h required for non-"path" shapes). |
entries. | Optional [x, y] number tuple in character units overriding at (side-at=x,y). |
entries. | Optional [x, y] number tuple in character units overriding pivot (side-). |
entries. | Optional integer drawing order overriding z (side-z=…). |
entries. | Optional absolute SVG path (M L H V C S Q T Z, no arc) when the effective shape is "path" (side-d=…). |
entries. | Optional boolean hiding the part and its children in the side view when true (side-hidden). |
entries. | Optional array of render definitions (::render{…}; the first item is the default render). |
entries. | Render id (^[a-, required on each item). |
entries. | "vector", "pixel", "sheet" or "frames" (required on each item). |
entries. | Optional palette key (^[a-) of the default outline on a "vector" render. |
entries. | Optional outline width in character units (> 0, <= 4, default 0.3) on a "vector" render. |
entries. | Optional "none" or "cel" shading (default "none") on a "vector" render. |
entries. | Optional integer grid side in cells (8 to 128, default 32) on a "pixel" render. |
entries. | Optional palette key (^[a-) of the outline cells on a "pixel" render. |
entries. | Optional hand-written pixel grids (```pixel render=) overriding the quantized model per pose. |
entries. | Pose id or "rest" replaced by the grid (required on each grid). |
entries. | Record<string, string> mapping single-character symbols to palette keys or "transparent" (required). |
entries. | Non-empty string[] of equal-width cell rows within size × size (required). |
entries. | Optional array of visual variants (::variant[label]{…}). |
entries. | Variant id (^[a-, required on each item). |
entries. | Optional string or Record<string, string> label ([label]). |
entries. | Optional Record<string, string> overriding keys of entries. with hex colours, tokens or "transparent". |
entries. | Optional string[] of part ids from entries. to hide. |
entries. | Optional positive number scaling the figure. |
entries. | Optional array of reusable animation cycles (:::animation{…}). |
entries. | Animation cycle id (^[a-, required on each item). |
entries. | Optional string or Record<string, string> ([label] or :::animation inner paragraph, written back as that paragraph). |
entries. | Optional integer frames per second (1 to 60; a film's fps wins in motion). |
entries. | Optional boolean; when true, the last key leads back to the first. |
entries. | Optional non-empty string[] of part ids driven as a layer while other parts stay unaffected. |
entries. | Array of keyframes starting at 0 ms with strictly increasing instants (required on each cycle). |
entries. | Non-negative integer instant in milliseconds (0 on the first key, required). |
entries. | Pose id of the character or "rest" (required on each key). |
entries. | Optional expression id of this key, shown until the next key (defaults to the pose's expression). |
entries. | Optional "linear", "in", "out", "in-out" or "step" curve from the previous key (default "linear"). |
Validating a bible
Bash
recit validate checks the entries, the references between them (a prompt's set, subject and
pose), the beat templates and the languages, and reports each problem as
✖ cast.. --strict turns what a draft may keep into errors: a trait still marked
{inferred}, a placeholder image and an image with no
provenance.
Gates and continuity
Bash
recit validate -- (n an integer from 1 to 9; checkStage in @recit/)
checks the workshop gates on a bible and on any story whose front matter sets cast: (on a story
without cast:, it prints a warning that stage gates require a bible). Each missing entry, missing
required trait, empty trait, or trait still marked {inferred} is reported as an error
(atelier-) at the trait's or entry's line, or at the bible's front matter when an entry is
missing. Gate n requires every gate up to n (stages 7 to 9 add no further bible
requirement):
- Gate 1 (spark and theme) — an
entry=briefwith non-emptylogline,question,premise,counter-,premise stakes-,personal stakes-andrelational stakes-world, and no empty or{inferred}trait on those keys or onsparkandwhat-if. - Gate 2 (tone and limits) — the
briefalso sets non-emptyaudience,character-,word event-wordandlimits, with no empty or{inferred}trait left onentry=brief. - Gate 3 (art direction) —
bible.style(settings.) names an existingstyle entry=style. - Gate 4 (characters) — at least one
entry=, with no empty orcharacter {inferred}character trait (a character'svisual-tokentrait is a plain string, never translated, and enters the prompt text built bybuildPrompt/promptValuesalongside:::identity, keeping that visual anchor consistent across prompts). - Gate 5 (world and sets) — at least one
entry=ruleand oneentry=set, with no empty or{inferred}trait. - Gate 6 (series) — an
entry=serieswith non-emptyengineandseason-goal, and no empty or{inferred}trait onentry=series.
When an atelier.md sits next to the bible, recit validate cast.md (and the MCP tool
check_) also reads it with parseAtelierState: a step out of 1 to 9, a date that is
not YYYY-MM-DD, or a decision locked for a step after Current step is an error
(atelier-) at its line of atelier.md (checkAtelierBeside in @recit/).
recit validate also runs the continuity rules on every bible and on every story with cast:
(reporting scene diagnostics at the scene's separator line --- id=… in Markdown; in the bible, a
character's visual-token is a plain string, never translated, and died-in is an episode id).
Episode ids come from the file name without its .story suffix, extension or locale
(episode- and episode- → episode-3; s1.ep-10.md → s1.ep-10). A
character with died-in may appear in that episode itself (died- in prologue.md),
and a died-in naming no episode file (.md, .mdx or .json) of the story's folder warns
(continuity-, at the bible entry's line). Two episode ids are compared by their
trailing integer (episode-3 < episode-10) only when their prefix before that final number is
identical, so multi-season ids with different prefixes (s1-ep3 and s2-ep1) are not compared
across seasons. On any format: story — with or without a bible (cast:) —
recit validate also checks panel bubble density (checkWebtoonContinuity): the webtoon density
warnings and their two flags --max- and --max- (positive
integers; maxPanelBubbles and maxBubbleWords in @recit/, defaulting to
MAX_ = 2 and MAX_ = 25) apply whether or not the story sets
cast::
| Code | Severity | Where | Rule |
|---|---|---|---|
continuity- | error | bible (promise, clue) | paid-in (paidIn) comes before planted-in (plantedIn) within the same episode prefix, at the entry's line. |
continuity- | error | story with cast: | A scene references a character whose died-in episode comes before this episode — via cast=, :::bubble{cast=, ::character{character=, :::animation{cast= or the subject of prompt=. |
continuity- | warning | story with cast: | A character's died-in names no episode file of the story's folder (at the bible entry's line), or has no trailing number to compare against another episode when folder episodes are unknown. |
continuity- | warning | story with cast: | A promise or clue with status= was planted 5 or more episodes (DEBT_WINDOW) before this episode, at the bible entry's line. |
webtoon- | warning | any format: story | A panel has more than MAX_ (2 by default, or --max-) :::bubble blocks, with or without a bible (cast:), at the panel's separator line. |
webtoon- | warning | any format: story | A :::bubble exceeds MAX_ (25 words by default, or --max-), with or without a bible (cast:), at the panel's separator line. |