oxframe scenes
The project is on oxframe 0.24.3: docs https://oxframe.dev/docs/0.24, model text https://oxframe.dev/docs/0.24/llms.txt (and https://oxframe.dev/docs/0.24/llms-full.txt), API https://docs.rs/oxframe/0.24.3/oxframe/. oxframe mcp exposes check, notes, note_take, note_done, storyboard, inspect, render_frame, render_graph, list_components, docs_search and render. oxframe --json check prints one JSON object.
No project yet
When the user wants a video and there is no oxframe project (no oxframe.toml):
- Install the CLI:
curl -fsSL https://github.com/oxygenframe/oxframe-cli/releases/latest/download/install.sh | sh(orcargo install oxframe-cli). Rendering needs ffmpeg. oxframe init my-videocreates the project:src/main.rswith one scene,oxframe.toml, and this skill with project notes inAGENTS.md.cd my-video, write the scenes, then follow the workflow below.oxframe renderwritesout/my-video.mp4.
Rust is needed on the machine, but the user does not need to know it: the scenes are short async functions, and oxframe check tells you what is wrong.
Workflow
- Read
src/main.rsand the scene'ssrc/<scene>.meta.json(markers/tunables already tuned by a human — keep them). - Make the change. Prefer small, readable steps: one
.awaitper beat of the story,all((..))for things that happen together. oxframe check. Fix compile errors first (see AGENTS.md, "Common compile errors"). Then openout/check/storyboard.pngandout/check/report.json. Each issue names a rule, a time range, a node andfile:line. An issue on a node also hascrop, a close-up PNG underout/check/issues/with the node outlined: open it. Most issues carryfix, the change with the numbers worked out (movebydx/dypx,shrink, a textcolor,widenby px orfont_scale,holdorslowin seconds): start from it, and keep the design in mind (moving a title 140 px may call for moving its neighbours too). Issues with rulereview_notecome first: a person marked something in theoxframe deveditor and wrote what to change (note_text, with the time, the node,file:lineand acrop). Take it first (oxframe notes take <id>, MCPnote_take: the editor shows the person that you are on it), do what the note asks, even when nothing else is wrong there, then close it:oxframe notes done <id> --reply "what you changed"(MCP:note_done). The reply shows under the note in the editor. If a note is unclear or asks for something you cannot do, ask in the reply oftakeand leave it open. While the person reviews inoxframe dev, keepoxframe notes waitrunning in the background: it returns with the next new note.- Fix and run
oxframe checkagain until it exits 0. Warnings do not fail the command; errors do. oxframe inspect --at <t>when a frame looks wrong and you need the node tree (kind, name, bounds, text). Add--graphto see render passes.oxframe snapshot --at <t>for one still (960×540;--sizefor another).- Only then report. Mention the storyboard and which issues you fixed.
Never run oxframe dev (interactive server). Never hand-edit meta.json unless asked.
When the user asks for a link to the video, oxframe publish --title "…" renders it and prints a public oxframe.dev link (30 days, up to 30 s: --range 0..30). Never publish unasked: anyone with the link can watch.
API
The full cheat sheet is in reference.md: nodes and their properties, flow functions, easing, signals, text, layout, effects, meta helpers.
Recipes
Reach for the right node before writing the scene:
- Explaining code (what an expression does, why a line matters, a bug fix): a
Codenode is the tool, not plainTxt. Show the source, then walk attention through it with.focus(first, last)or.focus_lines(a, b, secs)and.dim(0.3)on the rest; to explain parts of one expression, light each piece in turn with.focus_text("(hi - lo)", secs), not oneTxtper token. Morph to the next version with.code().to(next, secs), or use.insert/.remove/.replace. For a line-by-line walkthrough with a note per step,CodeExplainer::new(src).step(line, line, "note"). - Vertical (9:16) or square short:
Project::new(..).size(1080, 1920)for portrait,(1080, 1080)for square — orProject::aspects([Aspect::Portrait])andoxframe render --aspect 9:16.view.is_portrait()adapts the layout. - Charts and math:
Axes/NumberLinewith.plot(..),bars,scatter;Matrix,axes.vector(..). A title, bullets or an end card: the components (TitleCard,BulletList,EndCard), not hand-placedTxt.