Agents / skills / oxframe-check

oxframe-check skill

Read and fix oxframe check reports: storyboard.png and report.json with named rules (out_of_frame, text_overflow, too_fast, low_contrast, dead_time…). Use after any change to an oxframe scene, or when check exits 1.

npx skills add oxygenframe/oxframe-sdk

Installs every oxframe skill into Claude Code, Codex, Cursor, Copilot and other agents. The source is skills/oxframe-check in oxframe-sdk.

What the skill tells the agent

Uses the oxframe skill (workflow, full API cheat sheet); install both with npx skills add oxygenframe/oxframe-sdk.

oxframe check type-checks the project, runs every scene and writes out/check/storyboard.png and out/check/report.json. It exits 1 on errors; warnings do not fail it. oxframe --json check prints the report on stdout.

Each issue has rule, severity, a time range, a node, file:line and (from oxframe 0.20.1) docs, a link to the rule's section of https://oxframe.dev/docs/check-rules with a before and after picture. An issue tied to one node also has bounds, its rect [x0, y0, x1, y1] in scene units (origin at the frame center, y down, as in inspect) at the start of the range, and (from oxframe 0.21) crop, a full-resolution PNG of that part of the frame with the node outlined in red, relative to out/check/ (for example issues/01-out_of_frame.png). Open the crop to see the problem up close instead of finding it on the storyboard. Fix errors first, then warnings, then run check again until it exits 0. Look at the storyboard before reporting: a clean report is necessary, not sufficient.

RuleWhat it meansUsual fix
out_of_frameA node leaves the frame or the safe areaSmaller size, pct(), to_edge(Edge::…), or move the camera
text_overflowText wider than its box or the frameShorter text, .caption()/.body() instead of a heading, a wider box
text_overlapText on top of textnext_to, a Layout, or fade one out first
covers_textA shader drawn over textAdd the shader before the text, or move the text out of its box
low_contrastText too close to its backgroundA theme role: .fill(Text) on Surface, OnAccent on Accent
too_fastText not on screen long enough to read, or a large move too quickwait_for(…) after it appears, a longer tween
dead_timeNothing changes for too longShorten the wait or animate something
voice_cut / voice_overlapA spoken line runs past the scene, or two lines overlapline.await before the scene ends; start the next line after
shader_error, param_unknown, shader_slowShader problemsSee the Shaders section of the cheat sheet
nondeterministicTwo paints of one frame differDraw only from signals and ctx.time(); randomness from ctx.rng(seed)
video_unavailableA clip cannot be openedCheck the path and the video feature; install ffmpeg

report.json also lists motion: every node that travels, when it moves (moves, in seconds), where it starts and ends, and its file:line; read it to check timing ("does the title arrive before the voice says its name?") without watching the video. out/check/trajectories/<scene>.png draws those paths over the scene's last frame, numbered as in motion.

To see what an edit changed, keep the frames from before it and compare: oxframe check --frames --out out/before, edit, then oxframe check --against out/before. Each changed frame is listed with the share of pixels that moved and a diff/ picture (changed pixels in red); an edit that changed frames it should not have shows up at once. Hard cuts between scenes appear on the storyboard as the last frame of one scene and the first of the next.

oxframe inspect --at <seconds> prints the node tree (kind, name, bounds, text) when the picture is unclear; --graph adds the render passes. oxframe snapshot --at <seconds> writes one frame (960×540; --size for another). Thresholds live in oxframe.toml under [check]; change them only when the user asks.