Skip to content

armgit / raea

Public Imported from GitHub
0

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.

One raea skill, in raea-skills (skills/): raea pins it, and its release ships it from the pin (#58)

shaneeaf5406f3941
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index ceec0ec2..c575185d 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -6,6 +6,6 @@
"homepage": "https://raea.io",
"repository": "https://github.com/shinyobjectz/raea",
"license": "FSL-1.1-ALv2",
- "skills": ["./sdk/skills/"],
+ "skills": ["./skills/skills/raea"],
"keywords": ["video", "motion-graphics", "game-development", "rendering", "bevy", "react", "agent-skills"]
}
diff --git a/README.md b/README.md
index a58df808..f5fa91df 100644
--- a/README.md
+++ b/README.md
@@ -94,9 +94,9 @@ floor (`raea check hello.mp4`). `raea init` starts a project, and `raea --help`
## Use it from your agent
-- **Agent skills.** [`sdk/skills/raea`](sdk/skills/raea/SKILL.md) teaches an agent to write, render and check raea
- compositions; [`sdk/skills/raea-bevy`](sdk/skills/raea-bevy) covers 3D and games. The installer adds both to
- `~/.claude/skills`.
+- **Agent skills.** They live in [raea-skills](https://github.com/shinyobjectz/raea-skills), pinned here as
+ [`skills/`](skills): `raea` teaches an agent to write, render and check raea compositions, 3D and games
+ included. The installer adds it to `~/.claude/skills`, and `raea skills install --agent NAME` to other agents.
- **Claude Code plugin.** `/plugin marketplace add shinyobjectz/raea`, then `/plugin install raea@raea`.
- **Craft guides.** `raea guide` prints the floor every edit is held to and the guides for pitches, explainers, stories,
games, motion, music and layout. `raea context PROJECT` says what to read before working on a project.
diff --git a/docs/engine.md b/docs/engine.md
index 544a9403..39cf30ce 100644
--- a/docs/engine.md
+++ b/docs/engine.md
@@ -56,7 +56,7 @@ second host beside Blitz, for native apps, video and layers in Bevy.
## Skills that stay true
-The public agent skills (`raea`, `raea-bevy` and the craft guides) are generated from the code where they can be and
+The public agent skill (`raea`, in raea-skills) and the craft guides are generated from the code where they can be and
checked against it where they can't, so they don't drift from the engine.
## Releases
diff --git a/engine/cli/conformance/surface.test.ts b/engine/cli/conformance/surface.test.ts
index 306b4267..1a12c2a2 100644
--- a/engine/cli/conformance/surface.test.ts
+++ b/engine/cli/conformance/surface.test.ts
@@ -49,11 +49,12 @@ const listed = new Set([...help.matchAll(/raea ([a-z][\w-]*)/g), ...help.matchAl
const shellVerbs = JSON.parse(/const SHELL: &\[&str\] = &(\[[^\]]*\]);/.exec(readFileSync(join(raea, "engine/cli/src/verbs.rs"), "utf8"))![1]) as string[];
const handled = new Set([...cli.matchAll(/case "(\w+)":/g)].map((m) => m[1]).filter((c) => c !== "--help" && c !== "help"));
-/** the hand-written text under dir: a skill's reference/ is the help itself, written by tools/skills.sh gen */
+/** the hand-written text under dir: a skill's reference/ is the help itself, written by tools/skills.sh gen, and raea-skills'
+ * _template is a skill's placeholder text */
function files(dir: string, out: string[] = []): string[] {
for (const f of readdirSync(dir)) {
const p = join(dir, f);
- if (lstatSync(p).isDirectory()) f !== "reference" && files(p, out);
+ if (lstatSync(p).isDirectory()) f !== "reference" && !f.startsWith("_") && files(p, out);
else if (f.endsWith(".md")) out.push(p);
}
return out;
@@ -79,7 +80,7 @@ describe("raea's surface", () => {
});
test.skipIf(missing || stale)("every `raea <command>` in the agent's context exists", () => {
- const sources = [...files(join(raea, "sdk/guides")), ...files(join(raea, "sdk/skills")), "AGENTS.md (cli NOTES)"];
+ const sources = [...files(join(raea, "sdk/guides")), ...files(join(raea, "skills/skills")), ...(existsSync(join(raea, "sdk/skills")) ? files(join(raea, "sdk/skills")) : []), "AGENTS.md (cli NOTES)"];
const bad: string[] = [];
for (const src of sources) {
const text = src.startsWith("AGENTS.md") ? /const NOTES = `([\s\S]*?)`;/.exec(cli)![1] : readFileSync(src, "utf8");
@@ -107,7 +108,7 @@ describe("raea's surface", () => {
const host = join(raea, "apps/app/host");
const sources = [
...files(join(raea, "sdk/guides")),
- ...files(join(raea, "sdk/skills")),
+ ...files(join(raea, "skills/skills")), ...(existsSync(join(raea, "sdk/skills")) ? files(join(raea, "sdk/skills")) : []),
// the feed's prompts (apps/app is a submodule: an export without it checks the rest)
...(existsSync(host) ? readdirSync(host) : []).filter((f) => f.endsWith(".ts") && !f.endsWith(".test.ts")).map((f) => join(host, f)),
"AGENTS.md (cli NOTES)",
diff --git a/engine/cli/src/skill.rs b/engine/cli/src/skill.rs
index 203e0cf6..336151b9 100644
--- a/engine/cli/src/skill.rs
+++ b/engine/cli/src/skill.rs
@@ -41,10 +41,10 @@ pub fn version() -> String {
.unwrap_or_else(|| format!("{}-checkout", env!("CARGO_PKG_VERSION")))
}
-/// The skills raea ships: an install's share/raea/skills, or the checkout's sdk/skills.
+/// The skills raea ships: an install's share/raea/skills, or a checkout's skills/skills (the raea-skills submodule).
fn shipped() -> R<PathBuf> {
let home = raea_io_home::home();
- ["skills", "sdk/skills"].iter().map(|d| home.join(d)).find(|d| d.join("raea/SKILL.md").is_file()).ok_or_else(|| format!("no skills under {}: reinstall raea (curl -fsSL https://raea.io/install | sh)", home.display()))
+ ["skills", "skills/skills"].iter().map(|d| home.join(d)).find(|d| d.join("raea/SKILL.md").is_file()).ok_or_else(|| format!("no skills under {}: reinstall raea (curl -fsSL https://raea.io/install | sh), or in a checkout, git submodule update --init skills", home.display()))
}
/// SKILL.md with `version: V` in its front matter (replacing one that's there), so a copy says which raea it came with.
@@ -65,7 +65,7 @@ pub fn skill(args: &[String]) -> R<String> {
}
let dir = shipped()?.join(name);
if !dir.join("SKILL.md").is_file() {
- return Err(format!("no skill {name:?}: {}", installed_names()?.join(", ")));
+ return Err(format!("no skill {name:?}{}: {}", if name == "raea-bevy" { " (raea-bevy is the raea skill's 3D guide now: 3d.md beside its SKILL.md)" } else { "" }, installed_names()?.join(", ")));
}
match reference {
Some(r) => {
@@ -81,19 +81,14 @@ pub fn skill(args: &[String]) -> R<String> {
}
fn installed_names() -> R<Vec<String>> {
- let mut v = Vec::new();
- for e in std::fs::read_dir(shipped()?).map_err(|e| e.to_string())?.flatten() {
- // raea-work is internal (work.raea.io's pages): a checkout has it, a release doesn't ship it
- let name = e.file_name().to_string_lossy().into_owned();
- if name != "raea-work" && e.path().join("SKILL.md").is_file() {
- v.push(name);
- }
- }
+ // raea-work is internal (work.raea.io's pages); raea-skills' _template starts a skill and isn't one
+ let ok = |e: &std::fs::DirEntry, n: &str| n != "raea-work" && !n.starts_with('_') && e.path().join("SKILL.md").is_file();
+ let mut v: Vec<String> = std::fs::read_dir(shipped()?).map_err(|e| e.to_string())?.flatten().filter_map(|e| Some(e.file_name().to_string_lossy().into_owned()).filter(|n| ok(&e, n))).collect();
v.sort();
Ok(v)
}
-/// Copies a folder, following links (raea-bevy's topic files link to the craft guides in a checkout).
+/// Copies a folder, following links.
fn copy(from: &Path, to: &Path) -> R<()> {
std::fs::create_dir_all(to).map_err(|e| format!("{}: {e}", to.display()))?;
for e in std::fs::read_dir(from).map_err(|e| e.to_string())?.flatten() {
@@ -128,6 +123,8 @@ pub fn install(args: &[String]) -> R<String> {
std::fs::write(&md, stamp(&text, &v)).map_err(|e| e.to_string())?;
out += &format!("{}: {name} {v}\n", dst.display());
}
+ let old = to.join("raea-bevy"); // an older raea's copy (stamped `version:`), whose text is the raea skill's 3d.md now
+ if std::fs::read_to_string(old.join("SKILL.md")).is_ok_and(|t| t.contains("\nversion: ")) && std::fs::remove_dir_all(&old).is_ok() { out += &format!("{}: removed, now raea's 3d.md\n", old.display()); }
// pinned moves (SK10): a skill per move, so an agent's /quieter loads the one guide
for (i, a) in args.iter().enumerate() {
if a == "--pin" {
@@ -164,7 +161,7 @@ mod tests {
let core = skill(&[]).unwrap();
assert!(core.starts_with("---\nname: raea\n") && core.contains(&format!("\nversion: {}\n---\n", version())), "{}", &core[..200.min(core.len())]);
assert!(skill(&["--reference".into(), "cli".into()]).unwrap().contains("raea render"));
- assert!(skill(&["raea-bevy".into()]).is_ok());
+ assert!(skill(&["raea-bevy".into()]).unwrap_err().contains("3d.md") && installed_names().unwrap() == ["raea"]);
assert!(skill(&["../x".into()]).is_err());
assert!(skill(&["--reference".into(), "../../x".into()]).is_err());
}
diff --git a/engine/cli/src/tests.rs b/engine/cli/src/tests.rs
index 14c11f29..cb79602d 100644
--- a/engine/cli/src/tests.rs
+++ b/engine/cli/src/tests.rs
@@ -194,7 +194,7 @@ fn the_skill_states_the_core_rules_as_motion_md_does() {
let core = motion.split("## The core rules").nth(1).unwrap().split("\n## ").next().unwrap();
let titles: Vec<&str> = core.lines().filter_map(|l| l.split_once(". **").filter(|(n, _)| n.trim().parse::<u32>().is_ok())).filter_map(|(_, t)| t.split_once("**").map(|(t, _)| t)).collect();
assert_eq!(titles.len(), 10, "{titles:?}");
- let skill = include_str!("../../../sdk/skills/raea/SKILL.md");
+ let skill = &std::fs::read_to_string(concat!(env!("CARGO_MANIFEST_DIR"), "/../../skills/skills/raea/SKILL.md")).expect("raea-skills: git submodule update --init skills");
let rules = skill.split("Rules that keep renders right").nth(1).unwrap().split("\n\n").next().unwrap();
assert!(rules.contains("`raea guide motion` has all ten"), "{rules}");
let mut bullets: Vec<String> = Vec::new();
diff --git a/sdk/guides/craft/bevy/NOTICE b/sdk/guides/craft/bevy/NOTICE
index 77acbced..4146eada 100644
--- a/sdk/guides/craft/bevy/NOTICE
+++ b/sdk/guides/craft/bevy/NOTICE
@@ -1,4 +1,4 @@
-raea's Bevy skills library (sdk/guides/craft/bevy.md and bevy/*.md, mirrored in sdk/skills/raea-bevy/) is written for
+raea's Bevy skills library (sdk/guides/craft/bevy.md and bevy/*.md, copied into the raea skill's 3D topic files in raea-skills (skills/skills/raea/3d/)) is written for
raea/3d. No text was copied from other packs. Its layout (a short router, one file per topic, each with a
checked example and a list of common mistakes) follows EnzeD/r3f-skills (no license stated; cited, not copied),
chrisgliddon/bevy-skills (MIT) and gamedev-skills' bevy-ecs (Apache-2.0). Bevy API facts come from Bevy's own v0.19.1
diff --git a/sdk/guides/craft/bevy/prompts.md b/sdk/guides/craft/bevy/prompts.md
index 5a5a50af..4cb0c230 100644
--- a/sdk/guides/craft/bevy/prompts.md
+++ b/sdk/guides/craft/bevy/prompts.md
@@ -96,7 +96,7 @@ Paste it as it is, with the brackets filled from the brief.
```text
You build one 3D scene in raea, the TSX/Bevy engine, from brief.ts, its plans and its reference pictures. The scene
-lives in EDIT.tsx and is frame-pure. Read the raea-bevy skill's scenes.md, meshes.md and materials.md first.
+lives in EDIT.tsx and is frame-pure. Read `raea guide bevy/scenes`, `raea guide bevy/meshes` and `raea guide bevy/materials` first.
THE BAR
The target picture media/ref/target.png is a real in-engine screenshot of this scene from the hero camera. The
diff --git a/sdk/raea/README.md b/sdk/raea/README.md
index dc370b44..88ef88ad 100644
--- a/sdk/raea/README.md
+++ b/sdk/raea/README.md
@@ -25,7 +25,7 @@ raea render title.tsx -o title.mp4
- Time anchored to words in a transcript (`word()`, `findPhrase()`), so cues follow the speech when the cut moves.
- Games as a pure step from input to state (`useGameState`, `useInput`, `useGameEvents`): played live, rendered from a
logged play, the same pixels.
-- 3D and an ECS world in the same tree, drawn by Bevy (`raea/3d`, `/ecs`); see skills/raea-bevy.
+- 3D and an ECS world in the same tree, drawn by Bevy (`raea/3d`, `/ecs`); see the raea skill's 3D guide (skills/skills/raea/3d.md).
- Sound made on your Mac as values: `Tone.tokensynth()` instruments for music and `sao()` foley, cached by prompt,
seed and settings; `raea sounds` fetches open sample libraries for a Tone.js `Sampler`.
- The same code renders on the Mac and the iPhone.
diff --git a/sdk/raea/docs/bevy-coverage.md b/sdk/raea/docs/bevy-coverage.md
index 259cab93..12d4d65d 100644
--- a/sdk/raea/docs/bevy-coverage.md
+++ b/sdk/raea/docs/bevy-coverage.md
@@ -197,7 +197,7 @@ export declare function stepBodies(bodies: Body[], dt: number, gravity?: Vec3):
## Existing Bevy knowledge packs (surveyed 2026-10-18)
-What the skills library (`sdk/guides/craft/bevy/`, mirrored in `sdk/skills/raea-bevy/`) took from each. Nothing was
+What the skills library (`sdk/guides/craft/bevy/`, copied into `skills/skills/raea/3d/` (raea-skills)) took from each. Nothing was
copied from a pack without a permissive license; the library is written for our SDK, so most packs informed its
structure and its list of mistakes rather than its text.
diff --git a/sdk/raea/docs/bevy-plugins.md b/sdk/raea/docs/bevy-plugins.md
index 9923b54a..4599179d 100644
--- a/sdk/raea/docs/bevy-plugins.md
+++ b/sdk/raea/docs/bevy-plugins.md
@@ -717,7 +717,7 @@ be treated as non-exact.
3. **Generate the TypeScript, then curate it.** Keep the generator as the source of the types and wrappers, and add a
per-plugin allow-list so agents see `RigidBody`, `ColliderConstructor`, `Restitution`, `Friction`, `LinearVelocity`
and `Gravity`, not `SolverBody` or `LastPhysicsTick`. Put the result in `raea` behind the plugin's feature,
- such as a `./physics` entry, and teach it in the raea-bevy skill.
+ such as a `./physics` entry, and teach it in the raea skill's 3D guide.
4. **Hand-write only the asset and event edges**, as reflected components of ours that build the plugin's runtime
objects from numbers (hanabi's `Particles`), so the generator covers them too.
5. **Physics first.** avian3d is the best fit: deterministic, step-driven and data-described, with exact render equals
diff --git a/sdk/skills/README.md b/sdk/skills/README.md
deleted file mode 100644
index 887701ee..00000000
--- a/sdk/skills/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# skills
-
-Agent skills for working with raea, in the `SKILL.md` format agents such as Claude Code load.
-
-- [`raea/`](raea/SKILL.md): write, render and check `raea` compositions, cut footage by its words, build
- small games, and drive the raea app through its MCP server.
-- [`raea-bevy/`](raea-bevy/SKILL.md): 3D scenes and games in `raea/3d`, drawn by Bevy, and how to extend
- that SDK.
-
-The repository's Claude Code plugin (`.claude-plugin/`) installs them. The raea app's agent learns from a longer library of
-the same material in [`sdk/guides/craft/`](../../sdk/guides/craft).
diff --git a/sdk/skills/raea-bevy/SKILL.md b/sdk/skills/raea-bevy/SKILL.md
deleted file mode 100644
index f1ba25f3..00000000
--- a/sdk/skills/raea-bevy/SKILL.md
+++ /dev/null
@@ -1,73 +0,0 @@
----
-name: raea-bevy
-description: Writing 3D scenes and 3D games in raea's TypeScript SDK (raea/3d), which Bevy 0.20 draws, and extending that SDK. Use when writing or fixing TSX with Camera3d, Mesh3d, lights, StandardMaterial and other materials, Model (glTF), ImagePlane, Bloom/Fog/ToneMapping or an ECS world drawn with Entities; when a 3D render or play looks wrong; or when adding a Bevy feature to the SDK (the TSX component, its raea-render rows, the engine system).
----
-
-# raea-bevy: Bevy through raea/3d
-
-Agents write TSX; raea compiles each frame's 3D elements to raea-render rows and its engine draws them with Bevy 0.20. You
-never write Rust or shaders to make a scene, and you never use Bevy's API directly from TSX. A render and a live play
-draw the same rows with the same code, so they match whenever every value comes from the frame.
-
-This is the same library the feed's agent reads with `raea guide bevy/NAME` (`sdk/guides/craft/bevy.md` routes it);
-the topic files here link to those, except `rows.md` and `plugins.md`, which only this skill has.
-
-## Which file to open
-
-| You are... | Open |
-|---|---|
-| setting up the camera, camera moves, entities, 2D under and over 3D | `scene.md` |
-| lighting: sun, bulbs, spots, ambient, shadows, brightness | `lights.md` |
-| surfaces: colour, metal, glass, glow, clearcoat, picture maps, toon (cel) shading and ink outlines (`ToonMaterial`), wear (`WearExtension`), decals (`Decal`), a model's materials re-covered (a material inside its `Model`) | `materials.md` |
-| a whole scene to build and make believable: brief, routing (which tool makes which object: solid, field, generator, Tripo HD or Smart Mesh, stock), build order, review sheets (`raea render --review`), the judge, stall rules | `scenes.md` |
-| the words to paste for a whole scene: the brief template, the builder prompt, the fresh-context judge prompt | `prompts.md` |
-| shapes: primitives, Manifold solids, blended organic bodies (`sdf`), trees, terrain, rocks, plants, lofts (`grow`), Text3D | `meshes.md` |
-| people: Anny bodies posed by goals (a hand on a point, feet, gaze, a seat), motion capture clips, motion matching along routes round the furniture (`Character`, `perform`) | `characters.md` |
-| interiors: rooms, runs of units, windows and bays, seats turned to tables (`faceToward`), layout checks, wall decor (`hang`), the garden outside, daylight, 3D sound (`Sound3D`) | `rooms.md` |
-| motion: spins, springs, Sequences, model clips | `animation.md` |
-| a 3D game: state, input, entities, collisions, state machines | `games.md` |
-| a game's sound: one-shots on transitions (`<Tone.Sfx>`), buses, a bed ducked under a voice (Tone.js on raea) | `games.md` (Sound), then `raea guide motion/music` |
-| glTF models, pictures in space, media files | `assets.md` |
-| a check names a Blender script (`fix: raea blender run blender/X.py`): convert, decimate, repair, split, bake, rig, cloth; one saved script per asset step, never the scene | `blender.md` |
-| gaussian splats: a real scene or object trained from footage (`raea splat train`), `<Splat>` and its reveal, assemble, disperse, explode, wave, twist, morph, pulse | `splats.md` |
-| liquids and goo: coffee dumped from a mug, a tap's stream, honey, things melting (`<Goo>`, sph or mpm, baked) | `liquids.md` |
-| bloom, fog, tone mapping, exposure, fisheye and lens distortion, motion blur, fire (`<Fire>`), frame looks (pixel, ink, painted illustration `<Look mode="paint">`, cartoon `<Look mode="cartoon">`) | `post.md` |
-| budgets, render-equals-play rules, what isn't there yet | `limits.md` |
-| adding a Bevy feature to the SDK, or debugging the rows | `rows.md` |
-| using a Bevy plugin (physics, networking, particles, any crate): declaring it, its generated TypeScript, calling it from a program (`BevyApp`), BRP as a dev tool | `plugins.md` |
-
-## The rules that keep a render equal to its play
-
-1. Every value from the frame (`useCurrentFrame()`, `interpolate`, `spring`, a game's state at the frame). No
- `useState`, `useEffect`, refs or `useFrame`; `Math.random()` draws new numbers every frame (seed what holds still).
-2. Rotation in radians (`Quat.fromEuler`, a `fov`); Manifold's `.rotate()` in degrees.
-3. Colours are hex strings (CSS variables don't reach the 3D).
-4. Name parts that come and go (`<Mesh3d name="...">`); parts are matched by name, else kind and shape in tree order.
-5. A part's shape is fixed; animate its `transform`, colour, opacity, emissive, roughness, metallic.
-6. One camera (the first), one set of effects (the first frame's; the lens and MotionBlur animate per frame).
-7. Import each component from its Bevy-named module (`raea/mesh`, `raea/pbr`, `raea/light`, `raea/camera`,
- `raea/transform`) or `raea/prelude`; `Entity`, `Model` (and `Canvas3D` for `layered`) from `raea/3d`; hooks, `Sequence`, `staticFile`
- from `raea`.
-8. Render and look: `raea render EDIT.tsx --frame N -o F.png`.
-
-## The modules, in the order a frame is made
-
-raea's modules are named as Bevy's crates are (`raea/camera` is bevy_camera's names), so a name is where a Bevy
-developer would look. Read them in the pipeline's order; the order is for reading, not a set of import paths:
-
-| stage | what happens | modules |
-|---|---|---|
-| sources | images, video frames, audio, generated content | `raea/asset`, `raea/image`, `raea/video`, `raea/audio` |
-| evaluate | state for a time or a simulation step | `raea/time`, `raea/state`, `raea/app` (systems), `raea/animation`, `raea/math`, physics |
-| compose | content, layers, cameras, effects combined | `raea/transform`, `raea/ui`, `raea/sprite`, `raea/mesh`, `raea/pbr`, `raea/light`, `raea/camera` |
-| render | pixels or render targets (the engine draws; nothing chooses CPU or GPU) | `raea/post_process` |
-| output | presentation, capture, encoding | `raea/app`'s window, the export's settings |
-
-A camera or a material belongs to more than one stage, which is why the stages aren't packages. An import is one of
-two kinds: `raea/prelude` for everything, or one Bevy-named module when a file wants one subject.
-
-## Checks in the raea repo
-
-- `sdk/raea/bench/bevy/check.sh [EDIT.tsx]`: render against baked play with 3D (SSIM >= 0.999) on the fixtures.
-- `sdk/raea/bench/bevy/skills.sh`: every example in this library renders.
-- `sdk/raea/docs/bevy-coverage.md`: the full coverage matrix and the proposed API for what's missing.
diff --git a/sdk/skills/raea-bevy/animation.md b/sdk/skills/raea-bevy/animation.md
deleted file mode 120000
index 6f39225a..00000000
--- a/sdk/skills/raea-bevy/animation.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/animation.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/assets.md b/sdk/skills/raea-bevy/assets.md
deleted file mode 120000
index d342b976..00000000
--- a/sdk/skills/raea-bevy/assets.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/assets.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/blender.md b/sdk/skills/raea-bevy/blender.md
deleted file mode 120000
index ddd53bd8..00000000
--- a/sdk/skills/raea-bevy/blender.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/blender.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/characters.md b/sdk/skills/raea-bevy/characters.md
deleted file mode 120000
index b4069f0e..00000000
--- a/sdk/skills/raea-bevy/characters.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/characters.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/games.md b/sdk/skills/raea-bevy/games.md
deleted file mode 120000
index bd742403..00000000
--- a/sdk/skills/raea-bevy/games.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/games.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/lights.md b/sdk/skills/raea-bevy/lights.md
deleted file mode 120000
index d5e18781..00000000
--- a/sdk/skills/raea-bevy/lights.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/lights.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/limits.md b/sdk/skills/raea-bevy/limits.md
deleted file mode 120000
index 54c6a5b3..00000000
--- a/sdk/skills/raea-bevy/limits.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/limits.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/liquids.md b/sdk/skills/raea-bevy/liquids.md
deleted file mode 120000
index 77b44fdb..00000000
--- a/sdk/skills/raea-bevy/liquids.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/liquids.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/materials.md b/sdk/skills/raea-bevy/materials.md
deleted file mode 120000
index b9d15e65..00000000
--- a/sdk/skills/raea-bevy/materials.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/materials.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/meshes.md b/sdk/skills/raea-bevy/meshes.md
deleted file mode 120000
index 5c9abd65..00000000
--- a/sdk/skills/raea-bevy/meshes.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/meshes.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/plugins.md b/sdk/skills/raea-bevy/plugins.md
deleted file mode 100644
index b167785d..00000000
--- a/sdk/skills/raea-bevy/plugins.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Bevy plugins from TypeScript: declare, build, generate, call
-
-Any Bevy plugin (crates.io, git or a local path) joins raea without hand-written Rust, unless it needs a protocol or a
-predicted simulation. The design and results are in `sdk/raea/docs/bevy-plugins.md`.
-
-**A plugin in the catalog needs no declaration of your own.** The catalog (`sdk/raea/bench/bevy-plugins/package.json`)
-is generated into the SDK, so any project imports a plugin's wrappers, types and handle by its name:
-
-```tsx
-import { ColliderConstructor, RigidBody } from "raea/plugins/avian";
-import { Bloom } from "raea/plugins/bevy";
-import { avian, tnua } from "@raea/plugins"; // every catalog plugin's handle, by name
-```
-
-The plugin build renders and plays them (`tools/bevy-plugins.sh build sdk/raea/bench/bevy-plugins`). Declare a plugin
-yourself, as below, only when the catalog doesn't have it.
-
-## Scenario: physics with a raycast, in a scene and in a program
-
-**1. Declare the plugin** in the project's `package.json`. Its key is the plugin's name, which is also its cargo
-feature. Give one version per Bevy minor, so the 0.20 bump only reads a different line:
-
-```json
-"raea": { "plugins": {
- "avian": {
- "crate": "avian3d",
- "versions": { "0.19": "=0.7.0", "0.20": "=0.8.0" },
- "features": ["3d", "f32", "parry-f32", "collider-from-mesh"],
- "plugin": "avian3d::prelude::PhysicsPlugins::default()",
- "calls": "avian",
- "headless": ["assets", "mesh"]
- }
-} }
-```
-
-(`raea.bevy.plugins`, the key's first name, is still read.) `plugin` is the expression `app.add_plugins` takes. The plugin's default features are always off, so list the ones
-you need. A source can be `{"git": URL, "rev": HASH}` or `{"path": DIR}` in place of a version.
-
-**2. Build and generate:**
-
-```sh
-tools/bevy-plugins.sh build DIR # sync engine/bevy-plugins, build raea-bevy-sdk, regenerate when versions moved
-tools/bevy-plugins.sh check DIR # fails on drift: versions, Bevy minor, or the generated TypeScript
-```
-
-This writes `DIR/bevy/avian.gen.tsx`, generated from the built App's TypeRegistry:
-- a TypeScript type for every reflected type;
-- a TSX wrapper per component and resource;
-- `<AvianSettings>` for the plugin's resources;
-- an `avian` object of typed handles for every component, resource, event, message and state.
-
-It also writes `DIR/bevy/plugins.lock.json`, which holds each crate's resolved version and a hash of its schema.
-
-**3a. In a scene (render equals play)**, put the wrappers inside the Mesh3d they belong to. Mark the Mesh3d `driven`,
-because the plugin owns its Transform. Keep the composition in DIR, beside `bevy/`: a baked play copies only the
-composition's folder, so an import of `../bevy/` from a subfolder fails there:
-
-```tsx
-import { AvianSettings, ColliderConstructor, RigidBody } from "./bevy/avian.gen";
-<AvianSettings Gravity={[0, -9.81, 0]} />
-<Mesh3d name="ball" driven transform={Transform.fromXyz(0, 3, 0)}>
- <Sphere radius={0.4} /><StandardMaterial base_color="#e11d48" />
- <RigidBody value="Dynamic" />
- <ColliderConstructor value={{ Sphere: { radius: 0.4 } }} />
-</Mesh3d>
-```
-
-**3b. In a program (a headless App, any plugin, any call)**, run it with `raea-bevy-sdk motion run FILE.ts`:
-
-```ts
-import { BevyApp, at, with as w } from "raea/bevy";
-import { avian } from "./bevy/avian.gen";
-const app = BevyApp.open({ plugins: ["avian"], fps: 60 });
-const ball = app.spawn(w(avian.RigidBody, "Dynamic"), w(avian.ColliderConstructor, { Sphere: { radius: 0.5 } }), at(0, 4, 0)); // a body starts from its Transform
-app.step(90); // Time moves one frame per step, as in a render
-app.get(ball, avian.Position); // typed: [number, number, number]
-app.call("avian3d/cast_ray", { origin: [0, 10, 0], direction: [0, -1, 0] }); // the call bridge
-```
-
-Every App answers bevy_remote's methods:
-- `world.query`, `world.get_components`, `world.insert_components`;
-- `world.trigger_event`, `world.write_message` and `world.observe+watch` (`app.trigger`, `app.write`, `app.observe`);
-- `registry.schema` and `schedule.list`.
-
-It also answers raea's `raea/state.get` and `raea/state.set` (`app.state`, `app.setState`), and each plugin's
-own methods. `app.methods` lists them all. `BevyApp.stepTogether([client, server], n)` steps several Apps in lockstep,
-as a network's peers need.
-
-**4. A dev tool:** `BevyApp.open({ plugins, serve: 15703 })` serves the same methods over BRP's HTTP. Use curl or
-any BRP client.
-
-## When Rust is still needed (the escape hatch)
-
-Name a module in `engine/bevy-plugins/src/`:
-- `"calls": "name"` adds methods next to a plain plugin;
-- `"adapter": "name"` registers the plugin itself.
-
-Write Rust only for:
-- **non-component APIs**: SystemParam methods (`SpatialQuery::cast_ray`) and events that aren't reflected (avian's
- `CollisionStart`). Each becomes a few-line BRP method.
-- **protocols and predicted simulations**: lightyear's `app.component::<T>().replicate().predict()` and the movement
- system that rollback re-runs. See `src/lightyear.rs`.
-- **assets and closures**: a `Handle<EffectAsset>` or a tween's lens. Make it a reflected component of yours that
- builds the plugin's object from numbers, as hanabi's `Particles` does.
-- **generic plugins**: `InputPlugin::<A>` needs a concrete type, so the adapter names it.
-- **render-equals-play fixes**: a seed, a run condition on `advancing`, or WinitPlugin turned off.
-
-A plugin that opens a window (bevy-inspector-egui, anything egui) doesn't run headless. Use the BRP server as its dev
-tool instead.
-
-## The catalog: look before declaring
-
-`sdk/raea/bench/bevy-plugins/package.json` already declares Bevy's optional features (the builtin `bevy` entry:
-gamepads, picking, every image and audio format, gizmos, dev tools, the PBR textures and LUTs, meshlets, Solari) and
-about 70 ecosystem plugins: input, character controllers, tiles, asset formats, particles, cameras, UI, pathfinding,
-tweening, noise, networking and dialogue. Copy an entry from there rather than writing one; each has its 0.19 and 0.20
-pins, and `null` where a plugin has no release for that Bevy yet (a build on it leaves the plugin out).
-
-Generic plugins already have adapters that TypeScript drives:
-- input: `leafwing/player` and `leafwing/state` (leafwing), `enhanced_input/pawn` and `enhanced_input/state`;
-- a character: `tnua/character`, then write `TnuaInput {motion, jump, crouch, dash}` each frame;
-- data files: `common_assets/load` and `common_assets/get` (JSON, RON, TOML, YAML, MessagePack, CBOR, CSV);
-- noise: `noise/sample`, `noise/grid`;
-- schedules as Graphviz: `debugdump/schedule`.
-
-A headless program presses keys and mouse buttons with `app.call("raea/input", { key: "Space" })` (`pressed: false`
-releases). `run.sh catalog` proves each plugin alone; see "The catalog" in `sdk/raea/docs/bevy-plugins.md`.
diff --git a/sdk/skills/raea-bevy/post.md b/sdk/skills/raea-bevy/post.md
deleted file mode 120000
index 55d51770..00000000
--- a/sdk/skills/raea-bevy/post.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/post.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/prompts.md b/sdk/skills/raea-bevy/prompts.md
deleted file mode 120000
index d6dbfb61..00000000
--- a/sdk/skills/raea-bevy/prompts.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/prompts.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/rooms.md b/sdk/skills/raea-bevy/rooms.md
deleted file mode 120000
index a369239d..00000000
--- a/sdk/skills/raea-bevy/rooms.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/rooms.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/rows.md b/sdk/skills/raea-bevy/rows.md
deleted file mode 100644
index 3dc23197..00000000
--- a/sdk/skills/raea-bevy/rows.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# The rows path: adding a Bevy feature to raea/3d
-
-For coding sessions in raea. A feature is four pieces and two checks.
-
-## 1. The component (sdk/raea/src/3d.tsx)
-
-- A function component that validates its props (throw a `TypeError`/`RangeError` naming the prop and the value) and
- returns `node3d("Kind", props)`: a `<div data-3d=Kind data-props=JSON>`. Normalise colours with `toHex`.
-- Anything time-based is computed here from `useCurrentFrame()` and passed as a plain number (Model's `time`), so the
- engine never reads a clock.
-- Export it, add it to `sdk/raea/spec/motion.feature` ("3D: the rest of a scene") and, if it's a geometry, give it a
- Manifold expression (`geometry(...)` or `data-shape`).
-
-## 2. The rows (runtime/scene)
-
-- `walk` maps the element kind to an item kind (and composes Group transforms). `tracks` matches items across frames.
-- Emit a row per track in `rows_into` (or a camera column in `camera`). Use `column(p, row, id, name, &per_frame)`
- for anything that may change: it writes the first value and keys every frame only when the value changes.
- Static values (strings, flags) come from the track's first frame.
-- `RAEA_SCENE_ROWS=1 raea render EDIT.tsx --frame N -o x.png` prints the 3D rows.
-
-## 3. The engine (runtime/scene3d/src/lib.rs, hooked from engine/render/src/engine.rs `load_shared`)
-
-- Spawn: insert Bevy 0.20 components for the row (required components, no bundles). Names to know:
- `shadow_maps_enabled` on lights, `WorldAssetRoot` for glTF scenes, `bevy::post_process::bloom::Bloom` (requires
- `Hdr`), `bevy::camera::Exposure`, `AnimationGraph::from_clip`, `AnimationGraphHandle`, `GlobalAmbientLight` vs the
- per-camera `AmbientLight`.
-- Per frame: a `sync_*` system reads `frame.vals(entity)` (the row's values at the clock) and writes the component,
- only for columns the row has (old rows must draw as before) and only when the value changed.
-- Anything loaded asynchronously must be awaited in `load_shared` before the first frame (see `await_models`).
-- Never advance anything by Bevy's `Time`: seek, set or compute from the row.
-
-## 4. A fixture (sdk/raea/bench/bevy/NAME/edit.tsx)
-
-A 60-frame composition that uses the feature with motion, media under `media/`.
-
-## Checks
-
-```sh
-lane build -- cargo build --release -p raea-cli -j 6
-sdk/raea/bench/bevy/check.sh # render vs baked play with 3D, SSIM >= 0.999 on every fixture
-sdk/react/bench/games/replay.sh arena3d # a 3D game played live vs a render of its logged input
-sdk/raea/bench/bevy/skills.sh # every skills example renders
-lane build -- cargo test --release -p raea-render -j 6 # raea-render's tests
-sdk/react/bench/timelines/check.sh # 2D render vs play
-(cd sdk/raea && bun test conformance)
-```
-
-Then update `sdk/raea/docs/bevy-coverage.md` and the topic file in `sdk/guides/craft/bevy/` with a working example.
-
-## Sources
-
-Bevy's own v0.20.0 examples (MIT OR Apache-2.0; also in the cargo cache under `bevy-0.20.0/examples`) and the
-[0.19 to 0.20 migration guide](https://bevy.org/learn/migration-guides/0-19-to-0-20/) are the API references. The
-survey of other agent packs, with licenses, is at the end of `sdk/raea/docs/bevy-coverage.md`.
diff --git a/sdk/skills/raea-bevy/scene.md b/sdk/skills/raea-bevy/scene.md
deleted file mode 120000
index 640ff60e..00000000
--- a/sdk/skills/raea-bevy/scene.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/scene.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/scenes.md b/sdk/skills/raea-bevy/scenes.md
deleted file mode 120000
index e0498447..00000000
--- a/sdk/skills/raea-bevy/scenes.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/scenes.md
\ No newline at end of file
diff --git a/sdk/skills/raea-bevy/splats.md b/sdk/skills/raea-bevy/splats.md
deleted file mode 120000
index 6e1fca3e..00000000
--- a/sdk/skills/raea-bevy/splats.md
+++ /dev/null
@@ -1 +0,0 @@
-../../guides/craft/bevy/splats.md
\ No newline at end of file
diff --git a/sdk/skills/raea/SKILL.md b/sdk/skills/raea/SKILL.md
deleted file mode 100644
index c24849dd..00000000
--- a/sdk/skills/raea/SKILL.md
+++ /dev/null
@@ -1,206 +0,0 @@
----
-name: raea
-description: Make video, motion graphics, games and 3D scenes with raea, the Render Anything Engine, by writing React/TypeScript compositions with raea and rendering them on the GPU with the raea CLI (or playing games live). Use when the user names raea, or wants 3D scenes (Bevy materials, lights, physics, Gaussian splats), 3D placed into footage (matchmove), a playable game, footage cut by its words, cuts timed to a song's beat map, or foley and instruments made locally on the Mac. Also for rendered video, captions and motion graphics from code, and frames rendered headlessly.
----
-
-# raea
-
-raea renders compositions written in TypeScript and React with a GPU engine built on Bevy. A composition is a function
-of the frame: give it frame N and it draws frame N. The same file renders to video, plays live as a game, or renders
-single frames to check.
-
-Each step below says where it runs. **HEADLESS**: the `raea` CLI alone, in any shell. **HOST**: needs the raea app
-running on this machine (its host answers). **PAGE**: needs the person's feed open in the app. **PERSON**: only the
-person can do it. Every PAGE step says what a headless agent does instead.
-
-## 1. Install (once) — HEADLESS
-<!-- sources: tools/release.sh apps/site/public/install engine/cli/src/skill.rs -->
-
-- macOS (Apple Silicon) or Linux (x86_64): `curl -fsSL https://raea.io/install | sh`. Windows 10 or 11, in
- PowerShell: `irm https://raea.io/install.ps1 | iex`. Either puts `raea` under `~/.raea`, puts it on your PATH, and
- adds this skill and raea-bevy to `~/.claude/skills`. Run it again to update. `raea help` lists every verb.
-- Another agent: `raea skills install --agent claude|codex|kimi|gemini` puts the skills where that agent reads them.
- `--pin quieter` (any move) adds a `/quieter` that loads one move. For Claude it also adds a hook that runs
- `raea check --quick` after a composition is saved and hands you what it finds.
-- This file's front matter names the raea it shipped with (`version:`). If `raea --version` prints another, read
- `raea skill` instead: it is this skill as your raea ships it.
-- From a checkout of the repository: `cargo build --release -p raea-cli`; the binary is `target/release/raea`.
-- Optional settings live in `~/.raea/env` (`docs/settings.md`). Rendering needs none of them.
-
-## Reference
-
-Generated from the code by `tools/skills.sh gen`, so they're current. Read the one you need instead of guessing a flag:
-- [reference/cli.md](reference/cli.md): every `raea` verb, its flags and where it runs (`raea help` prints the same).
-- [reference/feed.md](reference/feed.md): the raea app's tools for an agent it launches, and which need its page.
-- [reference/files.md](reference/files.md): a workspace's and a project's files, what lives in `~/.raea`, and each
- spec's fields (brief.ts, NAME.script.ts, taste.ts, plan.ts, controllers/ID.ts).
-- [reference/sdk.md](reference/sdk.md): what each `raea` import gives a composition.
-- [reference/app.md](reference/app.md): driving the raea app's window over MCP, as a person would (HOST).
-
-## 2. The workspace and its projects — HEADLESS
-<!-- sources: apps/workspace/src -->
-
-Work lives in a workspace: a git repo under raea.root (`~/Studio` unless `git config --global raea.root` says
-otherwise), one per studio or client, holding projects and controllers. In the raea app a project shows as a channel.
-- `raea workspace init NAME` makes one; `raea workspace adopt DIR` makes an existing folder one. `raea workspace`
- shows it (`--json` for the projects and their paths).
-- `raea project new NAME` adds a project: its folder with `brief.ts`, `media/`, `out/` and `brand/`. A project can
- live inline or as its own repo (`raea project split NAME`, `raea project join NAME`); both keep its history.
-- Work in the project's folder. Footage and other media go in `media/`, renders in `out/`.
-
-## 3. Read before you make — HEADLESS
-<!-- sources: engine/cli/src/guide.rs apps/workspace/src core/brief/src -->
-
-- `raea context .` in the project prints everything to read first, in order: the person's taste
- (`~/.raea/taste/taste.ts`; a line there beats any guide's default), the workspace's taste, the brief, the look, the
- workspace's controllers, the craft floor and each of the brief's modes' guides. Read all of it.
-- Run it once a session. If it refuses, say so in one line ("raea context failed: its message; reading the brief and
- controllers directly") and read `brief.ts`, any `*.script.ts`, `~/.raea/taste/taste.ts` and `raea controller ls`
- yourself. A `CONTEXT_STALE` line means `raea doctor` finds files from another version: run `raea doctor --fix`.
-- With no request in hand, `raea next` lists the two or three useful next steps from the brief, the compositions,
- the renders and their checks. Offer them; never run one unasked.
-- The controllers (`raea controller ls`, `raea controller get PATH`) are the workspace's settings and workflows:
- delivery specs, who reviews what, the tools every agent gets. Work to them. Change one only when the person asks:
- `raea controller set PATH VALUE` (each change is a commit).
-- If the brief isn't shaped (no `believe`, no `mode`), shape it before making anything: ask who it's for and the one
- thing they should believe, or write your best guess and add its field to the brief's `assumed` list.
-- For a pitch, an explain or a story, plan first: write the deliverable's storyboard as `NAME.script.ts` beside the
- brief (`export default script({...})` from "raea/brief": scenes of beats, what's on screen and what each scene must
- land; its fields are in reference/files.md), name it on the deliverable, and add a task "storyboard approved" tagged `gate`. `raea spec NAME.script.ts`
- checks it. Render nothing until the person approves it (PERSON).
-- The person's footage and files: `raea library search "WORDS"` finds them by meaning across the libraries they've
- indexed (HEADLESS once indexed; adding a folder waits for the person's yes, PERSON).
-- Right before any edit to a composition, even a one-line change, read the floor: `raea guide craft`. Read
- `raea guide router` once for the order of work.
-
-## 4. Make an item — HEADLESS
-<!-- sources: sdk/raea/src/index.tsx sdk/raea/src/3d.tsx -->
-
-One `.tsx` file whose root registers compositions (`raea init` in a footage project writes the files to start from):
-
-```tsx
-import { AbsoluteFill, Composition, Sequence, interpolate, registerRoot, useCurrentFrame } from "raea";
-
-function Card({ text }: { text: string }) {
- const f = useCurrentFrame();
- const opacity = interpolate(f, [0, 12], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
- return <AbsoluteFill style={{ background: "#000", color: "#fff", justifyContent: "center", alignItems: "center", fontSize: 96 }}><span style={{ opacity }}>{text}</span></AbsoluteFill>;
-}
-
-registerRoot(() => (
- <Composition id="piece" width={1080} height={1920} fps={30} durationInFrames={90} component={() => (
- <><Sequence from={0} durationInFrames={45}><Card text="One" /></Sequence><Sequence from={45} durationInFrames={45}><Card text="Two" /></Sequence></>
- )} />
-));
-```
-
-Rules that keep renders right (`raea guide motion` has all ten, under "The core rules"; every file needs these):
-- **Frame-pure.** Everything that moves reads `useCurrentFrame()`; `useState`, `useEffect` and timers don't animate a
- render. `Math.random()` is seeded per frame, so seed what should hold still from an index.
-- **Clamp every interpolate.** Do it unless you mean the line to run on past its ends.
-- **Cue on words, not on guessed frames.** `word("phrase")` is the frame where it's said, so cues follow the cut.
-- Footage: `<Video>` and `<Audio>`. Games: `useGameState(initial, step)` with a pure `step`, keys from `useInput()`.
-- Brand: the kit's `--brand-*` variables in `brand/brand.css` (`raea brand DOMAIN` reads them from a site), then
- `import { css } from "./styles.gen"` and Tailwind classes like `bg-brand-bg`.
-- 3D: read the raea-bevy skill first; an asset to fix first (scale, pivot, FBX to .glb) goes through Blender
- (`raea setup blender`, then `raea guide bevy/blender`).
-- Sound: `raea guide sound` and `raea guide music`; to cut to a song, run `raea song FILE --plot FILE.song.png` and
- time cuts from its map, never a constant BPM. npm packages and React apps: `raea guide apps`.
-- Generated media: `raea guide gen` before the first `raea gen`.
-
-`raea check --quick piece.tsx` checks three stills' text (clipped, cramped, safe areas) in about a second: run it
-after each save when no hook does. Then render, and look before you call it done:
-
-```sh
-raea render piece.tsx --at 0,45,89 -o frames/ # stills to look at: text fits, nothing overlaps
-raea render piece.tsx --alpha -o frames/ # transparent PNGs, for an overlay in another editor
-raea render piece.tsx -o out/piece.mp4 --manifest out/render.json
-raea check out/piece.mp4 --manifest out/render.json --taste ~/.raea/taste/taste.ts -o out/piece.check.json # P0-P3; exits 1 on a P0 or P1
-```
-
-`raea guide rendering` covers stills, the check, bitrate and quality; `raea guide rubric` covers judging the rest.
-
-## 5. Show it and read the notes — PAGE, PERSON
-<!-- sources: sdk/skills/raea/reference/feed.md -->
-
-- In the raea app, post the render to the project's feed with `feed_post` (a watch, look, listen or play item); the
- person watches, plays and leaves notes on it there (PERSON). `feed_items` reads the items and their notes.
-- Headless instead: leave the file in the project's `out/`, give the person its path, and take their notes as text.
-- Every note, from the feed or as text, gets a move before any edit: pick the one it asks for (quieter, bolder,
- distill, clarify, retime, recut, regrade, remix, harden, layout, typeset, animate, delight, adapt, optimize, extract,
- generate, polish, critique) on the part or moment it names, and run `raea guide MOVE` before you touch the
- composition. Answer in their words, and never name the move to them.
-
-## 6. The next version — HEADLESS, then PAGE
-<!-- sources: sdk/skills/raea/reference/feed.md -->
-
-- Change the composition under the person's hand edits (the `edit` segments and `<Nudge>` props the app writes; see
- `raea guide rendering`), render again and check again.
-- Render each version to a new file beside the old (`piece-v2.mp4`), never over it: the earlier version stays
- watchable. In the app, post it with `feed_post` naming the item it `replaces`, so the feed keeps both as versions.
-
-## 7. Deliver — HEADLESS
-<!-- sources: runtime/export/src -->
-
-- Final exports: `--quality master` for motion graphics and type; name files with lowercase letters, digits and
- hyphens only (`spring-launch-9x16.mp4`).
-- A render is a standard MP4 but large: H.264 High and AAC on a Mac (VideoToolbox), H.264 Constrained Baseline and
- Opus on Windows and Linux (openh264), yuv420p on all. Hand over a share copy too, which any player takes:
- `ffmpeg -i film.mp4 -c:v libx264 -preset slow -crf 23 -maxrate 2600k -bufsize 5200k -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart film-share.mp4`.
-- Deliver to the controllers' specs (sizes, platforms, loudness) when the workspace sets them.
-
-## Apps: web or native — HEADLESS
-<!-- sources: docs/targets.feature apps/targets/src sdk/ui/src/app.ts sdk/rune/src -->
-
-An app is a React file with a default export: DOM elements, inline `style` or Tailwind `className`, on @raea/ui. One
-setting picks the host that draws it. Both are desktop windows that draw every pixel themselves (neither uses the
-OS's widgets or a browser), with the same kind of text and layout engines. **web** (the default) is Blitz on Bevy: a
-browser engine, so all of CSS (grid included), web npm UI packages and the 3D world. **native** is Rune, an app UI
-framework: springs on every change, GPU effects and kit components, a screen-reader tree (AccessKit), a ~27 MB host
-against web's ~175 MB, a subset of CSS (no grid) and no 3D yet. The SDK is the same; only the setting differs. Pick
-native for a small, motion-heavy app with no 3D that passes its check; anything else stays on web. A composition or a
-game stays a composition; an app is an application's interface.
-
-- Say the target in the app's own file, as a literal (anything else is refused at its line):
- `export const app = { target: "native", title: "Notes", size: [480, 640], minSize: [360, 480] };`. With no
- `app` export, or no `target` in it, the target is `"web"`. `--target web|native` on the command line overrides it.
-- The verbs, the same on both targets: `raea app run app.tsx` opens it in a window; `raea app check app.tsx` runs it
- headless; `raea app bundle app.tsx -o Notes.app` makes a Mac app. `raea app bundle` signs ad hoc unless you give
- `--identity "Developer ID Application: ..."` (or RAEA_SIGN_IDENTITY) and `--notarize PROFILE` (a notarytool
- keychain profile): it always signs with your own identity, never raea's.
-- Check before you show it. Give the app its input as `export const steps = [{ press: "add" }, { type: "Ada", into: "name" }, { key: "Tab" }, { wheel: "list", dy: 120 }, { frames: 30 }];`
- (elements by `data-testid`), or as `--script steps.json`. `raea app check app.tsx --png out/` writes a PNG after
- the mount and after each step (00-mount.png, 01-press-add.png, ...) and tree.json (each element's role, label,
- text and box). Read the PNGs. Check on both targets when the app should run on both: `--target web` and
- `--target native`.
-- What the check holds each target to. **native** fails on any prop Rune doesn't map or call its host doesn't
- answer, naming each with its element's path (unmapped.json, unanswered.json). Change the prop, or keep the app on
- web. **web** passes when it draws, and says what native wouldn't draw and which Rune props it ignores.
-- Native draws flex layout (no grid), sizes, padding, margin, gap, absolute insets, scroll, colours and gradients,
- borders, radius, shadows and rings, outlines, opacity, transforms and transitions, text, images and video, fonts
- from the app's folder, and Tailwind's classes with hover:, focus:, focus-visible:, active:, disabled:, dark: and
- sm: to 2xl:. Anything else is reported, never dropped. An empty unmapped.json means the page maps whole.
-- What only Rune does is typed props from `@raea/rune`:
- `<div {...rune({ motion: "pop", transition: { effect: { push: "top" }, enter: "pop" } })}>`, plus `lead`,
- `instant`, `blur`, `backdropBlur` and `glass`, and its `Badge`, `Spinner`, `Progress`, `RollingText` and
- `Switch`. On web, a preset motion becomes a CSS transition and an entrance a keyframe, blur and glass become filters,
- and the rest is ignored and listed by the check. Without these props an element lands at once, as in a browser.
-- Part of a web page can be Rune's: `<RuneLayer className="w-80 h-48">...</RuneLayer>` from `@raea/rune` draws its
- children with Rune, on the GPU, in its box, and the rest of the page stays Blitz's. Give it a size: the layer is
- its content box. Clicks and wheel reach its elements, and their handlers run as anywhere else. A
- `getBoundingClientRect` inside one is zero, and keys don't reach a field in one yet. In a browser it's a plain
- div. `RAEA_RUNE_LAYERS=0` draws it with Blitz.
-- Host calls (`call` and `callSync` from `@raea/ui/wire`), answered on both targets: `net.fetch`, `net.ws.*`,
- `net.storage.*`, `net.clipboard.*`, `os.open` (http, https, mailto), `fs.pick`, `fs.save`, `fs.read`, `fs.write`
- and `dialog.message`. Headless, a step answers a dialog: `{ pick: ["a.txt"] }`, `{ save: "out.txt" }`,
- `{ dialog: 0 }`. `world.*` (BRP on the 3D world) is web's only: native refuses it with "no world on the native
- target".
-- Examples ship with raea and pass the check on both targets: `sdk/rune/examples/signin.tsx` (Tailwind only) and
- `sdk/rune/examples/motion.tsx` (Rune's props). On a native app, `raea app check --video out/app.mp4 [--audio
- music.wav]` films it on the virtual clock at 60 fps, with a cursor gliding to each element it presses. The same app
- and steps give the same frames.
-
-## Go further
-
-- The guides: `raea guide` lists them; `raea guide NAME` prints one (`motion` first; `bevy` and `bevy/NAME` for 3D).
-- The SDK's behaviour: `sdk/raea/spec/motion.feature`; what 3D reaches: `raea guide coverage`.
diff --git a/sdk/skills/raea/reference/app.md b/sdk/skills/raea/reference/app.md
deleted file mode 100644
index 3b8b5d3b..00000000
--- a/sdk/skills/raea/reference/app.md
+++ /dev/null
@@ -1,44 +0,0 @@
-<!-- generated by tools/skills.sh gen; do not edit -->
-
-# The app's window over MCP
-
-The raea app's window (raea-page-host, `raea-window` inside raea.app) can serve an MCP server on
-`http://127.0.0.1:PORT/mcp`: Streamable HTTP, JSON answers. It is how an agent drives the app as a person would and sees
-what they see: real input events, the interface's elements with their `data-testid`s, the window as a PNG, and any Bevy
-Remote Protocol method. Access: HOST. The packaged app serves it only when started with RAEA_PAGE_MCP_PORT set
-(tools/raea-app/launch.sh; RAEA_APP_HEADLESS=1 runs it with no window, as its own checks do); a page host started by
-hand serves 7477 unless RAEA_PAGE_MCP_PORT says otherwise (0: none). The conformance suite (sdk/ui/conformance) drives
-the app through `input` and `ui`.
-
-## input
-
-One input event in window points, posted as the window gets it (the messages winit writes, picking and focus see them as real): move {x,y}; down/up {x,y,button,clicks}; leave; wheel {x,y,dy,dx?,unit: pixel|line,phase?}; key {key, mods, state?: down|up} (no state: down then up); text {text}; ime {marked?, commit?}; resize {w,h}. Returns {frame}: the frame it landed before (the first frame that saw it).
-
-## ui
-
-The interface as presented in the latest frame: {frame, window: {w,h}, nodes: [{id, role, name, rect: {x,y,w,h} (window points), visible, hovered, focused, pressed, selected, value, scroll?: {top, max}, text?}]}, one per element with a data-testid.
-
-## frame_png
-
-The composited window as a PNG (the render target read back from the GPU).
-
-## state
-
-The app's state: frame, window, scale, and what the app adds.
-
-## actions
-
-The page's actions, as it names them (its emit("actions", ...)): [{name, about, args}].
-
-## action
-
-Runs one of the page's actions as a click there would: {name, args?}. Returns what it returned.
-
-## brp
-
-Any Bevy Remote Protocol method on the running app, by name: Bevy's own (world.query, world.get_components, world.insert_components, world.mutate_components, world.get_resources, world.write_message, world.trigger_event, registry.schema, schedule.list, schedule.graph, ...), the host's (page.*) and any plugin's. A +watch method answers with its first result. See brp_methods.
-
-## brp_methods
-
-The Bevy Remote Protocol methods this app answers (rpc.discover): [name].
-
diff --git a/sdk/skills/raea/reference/cli.md b/sdk/skills/raea/reference/cli.md
deleted file mode 100644
index 185904db..00000000
--- a/sdk/skills/raea/reference/cli.md
+++ /dev/null
@@ -1,425 +0,0 @@
-<!-- generated by tools/skills.sh gen; do not edit -->
-
-# raea CLI
-
-Every verb `raea help` lists, with its forms, its flags (and how many values follow each) and where it runs:
-HEADLESS needs nothing running; HOST needs the raea app's host; PERSON waits on a click. A verb refuses a flag
-or an argument its usage doesn't name, so these lists are what it takes.
-
-## raea render
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea render EDIT.tsx -o OUT.mp4|OUT.png|DIR [--frame N | --at A,B] [--composition ID] [--w W] [--h H] [--fps FPS] [--frames N] [--words W.json] [--perception P.json] [--input I.json|inputs.rrl] [--manifest render.json] [--stage WxH] [--10bit] [--aov] [--alpha] [--kbps N | --quality draft|high|master|0..1] [--clay] (also: --lite --comps)
-raea render EDIT.tsx --review DIR [--frame N] (fixed cameras hero, front, right, top, iso, low in colour and clay: DIR/colour.png, clay.png, review.json)
-raea render PAGE.html -o OUT.mp4|OUT.png|DIR [--at A,B] [--alpha] (an HTML composition)
-raea render --bundle NAME.comp.js -o OUT.png|DIR [--dir DIR] [--frame N] (a bundle from raea bundle, as render_bundle draws it)
-```
-
-Flags: `--10bit`, `--alpha`, `--aov`, `--at` (1), `--bundle` (1), `--clay`, `--composition` (1), `--comps`, `--dir` (1), `--fps` (1), `--frame` (1), `--frames` (1), `--h` (1), `--input` (1), `--kbps` (1), `--lite`, `--manifest` (1), `--perception` (1), `--quality` (1), `--review` (1), `--stage` (1), `--w` (1), `--words` (1), `-o` (1).
-
-## raea media
-
-Access: HEADLESS. Its arguments go to a parser of its own: `raea media` alone lists them.
-
-```
-raea media probe|still|sheet|audio|loudness|motion|cuts|freezes|proxy|trim|concat FILE ... | ffmpeg ARGS | ffprobe ARGS (media work, native: media help)
-```
-
-## raea bundle
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea bundle EDIT.tsx --composition-bundle -o OUT.js [--portable DIR] (a composition for render_bundle, on the Mac or the iPhone)
-```
-
-Flags: `--composition-bundle`, `--portable` (1), `-o` (1).
-
-## raea add
-
-Access: HEADLESS. Arguments besides flags: any number.
-
-```
-raea add PKG[@RANGE]... [--dev] | remove NAME... | install [--offline] [--in DIR] (npm packages for the project: raea.lock, node_modules)
-```
-
-Flags: `--dev`, `--in` (1), `--offline`.
-
-## raea sao
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea sao "PROMPT" [--seconds 2] [--seed 1] [--dir EDIT_DIR] [-o OUT.wav] (foley, local)
-```
-
-Flags: `--dir` (1), `--seconds` (1), `--seed` (1), `-o` (1).
-
-## raea tokensynth
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea tokensynth "TIMBRE" [--notes C2,C3,C4] [--seconds 2] [--velocity 100] [--seed 1234] [--precision fp16] [--dir EDIT_DIR] [-o OUT_DIR] (an instrument's notes, local)
-```
-
-Flags: `--dir` (1), `--notes` (1), `--precision` (1), `--seconds` (1), `--seed` (1), `--velocity` (1), `-o` (1).
-
-## raea setup-audio
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea setup-audio [--check] [sao|tokensynth] (install or check the local audio models)
-```
-
-Flags: `--check`.
-
-## raea song
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea song FILE [-o OUT.song.json] [--srt S.srt|none] [--plot OUT.png] [--size 2400x1350] (the song's energy map: beats, sections, builds, drops, stops, hits, cuts per bar; also: --backend NAME)
-```
-
-Flags: `--backend` (1), `--plot` (1), `--size` (1), `--srt` (1), `-o` (1).
-
-## raea sounds
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea sounds [WORDS] | sounds get PACK/INSTRUMENT [--notes ..|--all] [-o DIR] (open sample libraries for a Sampler)
-```
-
-Flags: `--all`, `--notes` (1), `-o` (1).
-
-## raea track
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea track CLIP.mp4 [--subject X,Y,W,H] [--from S] [--seconds N] [--height M] [--fov DEG] [--smooth F] [--dir EDIT_DIR] [-o OUT.json] (the clip's camera solved, for <Matchmove>)
-```
-
-Flags: `--dir` (1), `--fov` (1), `--from` (1), `--height` (1), `--seconds` (1), `--smooth` (1), `--subject` (1), `-o` (1).
-
-## raea library
-
-Access: HOST, then PERSON to add a folder. Arguments besides flags: any number.
-
-```
-raea library [new NAME [--cloud] | add LIBRARY PATH | files LIBRARY | tag SHA TAGS | status | scan ...] | raea library search "WORDS" [--library LIBRARY] [--kind KIND] [--limit N] [--sound] (the person's libraries in the raea app: folders and drives indexed on this machine, searched by meaning; a folder an agent adds waits for the person's yes)
-```
-
-Flags: `--cloud`, `--kind` (1), `--library` (1), `--limit` (1), `--sound`.
-
-## raea spec
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea spec FILE.ts [--as brief|script|taste|plan|controller] (a spec's default export as JSON, checked against its schema: brief.ts, script.ts, taste.ts, plan.ts, controllers/ID.ts)
-```
-
-Flags: `--as` (1).
-
-## raea workspace
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea workspace init [NAME] [--layout LAYOUT] | raea workspace adopt DIR [--name NAME] | raea workspace [--json] (a workspace: a git repo of projects and controllers under raea.root, ~/Studio unless git config says)
-```
-
-Flags: `--json`, `--layout` (1), `--name` (1).
-
-## raea project
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea project new NAME [--storage inline|submodule] | raea project split NAME [--remote URL] | raea project join NAME | raea project [--json] (a project in the workspace: its folder, brief.ts, media/, out/; split and join keep its history)
-```
-
-Flags: `--json`, `--remote` (1), `--storage` (1).
-
-## raea controller
-
-Access: HEADLESS. Arguments besides flags: 3.
-
-```
-raea controller ls [--json] | raea controller get PATH [--json] | raea controller set PATH VALUE [--project] [--by NAME] | raea controller write FILE.ts [--by NAME] | raea controller rm ID [--by NAME] (the workspace's controllers, controllers/ID.ts; PATH is controller.group.field; every change a commit)
-```
-
-Flags: `--by` (1), `--json`, `--project`.
-
-## raea check
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea check EDIT.tsx --quick [--shape S] [--platform P] [--taste T] [-o check.json] (three stills of a composition checked for text: clipped, cramped, safe areas, sizes; about a second)
-raea check VIDEO.mp4 [--manifest render.json] [--words W.json] [--perception P.json] [--shape 16:9|9:16|4:5|1:1] [--platform tiktok|reels|shorts] [--taste taste.ts|DIR] [-o check.json] (an export against the floor: clipped text, contrast, safe areas, freezes, flashing, cues, loudness, blotching, a placeholder brand kit; P0-P3)
-```
-
-Flags: `--manifest` (1), `--perception` (1), `--platform` (1), `--quick`, `--shape` (1), `--taste` (1), `--words` (1), `-o` (1).
-
-## raea hook
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea hook claude (Claude Code's PostToolUse hook: the quick check after a composition is saved)
-```
-
-## raea next
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea next [DIR] (the two or three useful next steps for the project, from its brief, compositions, renders and checks)
-```
-
-## raea doctor
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea doctor [--fix] [DIR] (what doesn't match this raea: old brief files, an older workspace format, an agent's skill from another version)
-```
-
-Flags: `--fix`.
-
-## raea app
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea app run|check|bundle APP.tsx [--target web|native] [--size WxH] [--script steps.json] [--png DIR] [-o App.app] (a TSX app on @raea/ui: its window, the headless check, a Mac app; web is Blitz on Bevy, native is Rune; the app's `export const app` sets the target, web when it doesn't; raea rune ... is --target native)
-```
-
-Flags: `--png` (1), `--script` (1), `--size` (1), `--target` (1), `-o` (1).
-
-## raea skill
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea skill [NAME] [--reference cli|feed|files|sdk] | raea skills install --agent claude|codex|kimi|gemini [--pin MOVE]... [--no-mcp] [--no-hooks] (the agent skill this raea ships, for its version, which raea --version prints: an agent whose copy names another version reads this; install puts raea's skills where that agent reads skills, adds the blender MCP server unless --no-mcp, makes each --pin MOVE a /MOVE of its own, and for claude adds the quick-check hook unless --no-hooks)
-```
-
-Flags: `--agent` (1), `--no-hooks`, `--no-mcp`, `--pin` (1), `--reference` (1).
-
-## raea skills
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea skill [NAME] [--reference cli|feed|files|sdk] | raea skills install --agent claude|codex|kimi|gemini [--pin MOVE]... [--no-mcp] [--no-hooks] (the agent skill this raea ships, for its version, which raea --version prints: an agent whose copy names another version reads this; install puts raea's skills where that agent reads skills, adds the blender MCP server unless --no-mcp, makes each --pin MOVE a /MOVE of its own, and for claude adds the quick-check hook unless --no-hooks)
-```
-
-Flags: `--agent` (1), `--no-hooks`, `--no-mcp`, `--pin` (1), `--reference` (1).
-
-## raea setup
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea setup blender [--check] [--download] (find Blender or download the LTS into ~/.raea/tools/blender, and install its MCP add-on)
-```
-
-Flags: `--check`, `--download`.
-
-## raea blender
-
-Access: HEADLESS. Its arguments go to a parser of its own: `raea blender` alone lists them.
-
-```
-raea blender run SCRIPT.py [ARGS...] (blender --background --python SCRIPT.py -- ARGS, headless; blender/X.py missing from the project is copied from the library: convert, decimate, repair, split, bake, rig, cloth)
-```
-
-## raea init
-
-Access: HEADLESS. Arguments besides flags: 0.
-
-```
-raea init (a project's files where they're missing: edit.tsx, cuts.ts, components/, AGENTS.md)
-```
-
-## raea cut
-
-Access: HEADLESS. Arguments besides flags: any number.
-
-```
-raea cut TAKE "line" ... | --at A-B ... [--append] (cuts.ts and words.json: a take under media/ cut in the pauses around each line it says, transcribed first if it has no TAKE.words.json; or at those seconds)
-```
-
-Flags: `--append`, `--at` (1).
-
-## raea frame
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea frame TAKE [--at S] (how a take fits the edit: a talking take for <FaceFrame>, a screen for <ScreenFit>, from where its face is)
-```
-
-Flags: `--at` (1).
-
-## raea part
-
-Access: HEADLESS. Arguments besides flags: any number.
-
-```
-raea part list | raea part add NAME ... [--force] (a ready part copied into components/, yours to change)
-```
-
-Flags: `--force`.
-
-## raea brand
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea brand DOMAIN|URL (the brand kit read from its website on this machine: brand/brand.css, brand/brand.json, BRAND.md, logos in media/brand; says when a plain fetch saw too little)
-```
-
-## raea guide
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea guide [NAME] (craft, the floor read before any edit; the modes: pitch, explain, story, play, tool; motion, music, layout and the rest; bevy and bevy/NAME for 3D)
-```
-
-## raea context
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea context PROJECT (what to read before working on a project: taste, brief, look, the floor and its modes' guides)
-```
-
-## raea solid
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea solid info FILE.ts [--json] [--set k=v,...] [--expect E.json] [--walk] (volume, box, pieces, genus per part; joints; predictions and mutants)
-raea solid view FILE.ts -o DIR [--set k=v,...] [--json] (the solid's parts in colour and clay from fixed cameras)
-raea solid export FILE.ts -o OUT.glb [--set k=v,...] [--part NAME] [--colour #RRGGBB] (the solid as one .glb for a Blender step, read back and checked)
-```
-
-Flags: `--colour` (1), `--expect` (1), `--json`, `--part` (1), `--set` (1), `--walk`, `-o` (1).
-
-## raea judge
-
-Access: HEADLESS. Arguments besides flags: any number.
-
-```
-raea judge DIR [--by clef|kimi|claude] [--brief brief.ts] [--target T.png] [--json] [--dry] | judge eye DIR (CATEGORY=SCORE ... [--pass yes|no] | --by kimi|claude) | judge calibrate [--json] (a --review folder's sheets judged blind: clef-omni on the frozen rubric, or a fresh kimi or claude session on the judge prompt; the pass decided in code; clef advises until calibrated against your eye or an agent's)
-```
-
-Flags: `--brief` (1), `--by` (1), `--dry`, `--json`, `--pass` (1), `--target` (1).
-
-## raea play
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea play EDIT.tsx [--input | --input-script KEYS.json] [--size WxH] [--seconds N|end] (a game, live; also: --input-log FILE --offscreen --snapshot T FILE --json FILE --seek F FILE --scrub N --baked --autoplay --no-vsync --master --3d)
-```
-
-Flags: `--3d`, `--autoplay`, `--baked`, `--input`, `--input-log` (1), `--input-script` (1), `--json` (1), `--master`, `--no-vsync`, `--offscreen`, `--scrub` (1), `--seconds` (1), `--seek` (2), `--size` (1), `--snapshot` (2).
-
-## raea export-game
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea export-game EDIT.tsx -o OUT [--target mac-app|mac-cli] [--name NAME] [--icon PNG] [--keys SETS] [--player BIN] [--no-strip] (a game as a program of its own: a Mac app or a command)
-```
-
-Flags: `--icon` (1), `--keys` (1), `--name` (1), `--no-strip`, `--player` (1), `--target` (1), `-o` (1).
-
-## raea scene
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea scene lint|explain|light EDIT.tsx [--composition ID] [--frame N] [--part NAME] [--json] (what each 3D part rests on: floating, sunk and clipping parts; light: the scene's lighting)
-```
-
-Flags: `--composition` (1), `--frame` (1), `--json`, `--part` (1).
-
-## raea physics
-
-Access: HEADLESS. Its arguments go to a parser of its own: `raea physics` alone lists them.
-
-```
-raea physics bake REQUEST.json [-o OUT.json] | physics goo SPEC.json | physics part SRC.glb NODE... (the bakes <Physics> and <Goo> make)
-```
-
-Flags: `-o` (1).
-
-## raea splat
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea splat train VIDEO|IMAGE_DIR -o OUT.ply [--frames 150] [--steps 20000] [--max-res 1600] [--from S] [--seconds N] [--max-splats 2000000] [--matte none|black] [--match sequential|exhaustive] [--credit TEXT] [--license TEXT] [--dir EDIT_DIR]
-raea splat setup (footage trained into a Gaussian splat for <Splat>; setup installs its tools)
-```
-
-Flags: `--credit` (1), `--dir` (1), `--frames` (1), `--from` (1), `--license` (1), `--match` (1), `--matte` (1), `--max-res` (1), `--max-splats` (1), `--seconds` (1), `--steps` (1), `-o` (1).
-
-## raea run
-
-Access: HEADLESS. Arguments besides flags: 1.
-
-```
-raea run SCRIPT.ts (a TypeScript program on the engine, headless: its default export is called, what it prints is the answer; a check like a room's checkLayout; also: --timeout S)
-```
-
-Flags: `--timeout` (1).
-
-## raea gen
-
-Access: HEADLESS. Its arguments go to a parser of its own: `raea gen` alone lists them.
-
-```
-raea gen image|video|music|sfx|speech|mesh|text "PROMPT" | gen plan|run FLOW.ts|FLOW.json | gen comfy import|export|run|schema FILE | gen models | gen balance (generated media through made.app, fal, Replicate, OpenRouter, Modal or ComfyUI; ComfyUI workflows both ways: raea gen alone lists its flags)
-```
-
-## raea neural
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea neural mlxdlss DIR -o OUT [--model M.dlssmodel] [--intensity X] [--profile P] [--skin-structure X] [--local-structure X] [--steady A] (DLSS 5 neural rendering on a `render --aov` folder, with its motion and depth: your own MLX-DLSS build and weights, RAEA_MLXDLSS and RAEA_DLSS_MODEL)
-```
-
-Flags: `--intensity` (1), `--local-structure` (1), `--model` (1), `--profile` (1), `--skin-structure` (1), `--steady` (1), `-o` (1).
-
-## raea mezz
-
-Access: HEADLESS. Arguments besides flags: any number.
-
-```
-raea mezz [--check] PATH... (an intra-only ProRes copy of each long-GOP source over 1080p, for smooth scrubbing; --check says which would get one)
-```
-
-Flags: `--check`.
-
-## raea traces
-
-Access: HEADLESS. Arguments besides flags: 2.
-
-```
-raea traces [show [N|last|DIR]] (the sessions raea left, newest first: how each ended, its glitches; show tells one in full)
-```
-
diff --git a/sdk/skills/raea/reference/feed.md b/sdk/skills/raea/reference/feed.md
deleted file mode 100644
index d864203f..00000000
--- a/sdk/skills/raea/reference/feed.md
+++ /dev/null
@@ -1,163 +0,0 @@
-<!-- generated by tools/skills.sh gen; do not edit -->
-
-# The feed's tools
-
-The tools the raea app offers every agent it launches, as the MCP server `feed` (apps/app host/acp/feed-mcp.ts).
-PAGE: the feed's page answers it, so the app must be open (or a windowless page); PERSON: a click finishes it.
-With no page, use the CLI instead: `raea controller` for the controllers, `raea context .` for the brief.
-
-## feed_post
-
-Access: PAGE.
-
-Post an item to the project's feed: a render to watch (.mp4), a still to look at (.png/.jpg), audio to listen to (.wav/.mp3/.m4a) or a game to play (its .tsx). The person sees it in the feed and leaves notes on it; a new version of an item names the one it replaces.
-
-| input | | |
-|---|---|---|
-| `type` | required | watch, look, listen or play |
-| `title` | required | what the person sees on the card |
-| `file` | required | absolute path of the file to post |
-| `replaces` | optional | the id of the item this is a new version of |
-| `controls` | optional | play: the game's controls |
-
-## feed_propose
-
-Access: PAGE, then PERSON (accept).
-
-Propose a planned item for the person to accept: what you would make next, before making it.
-
-| input | | |
-|---|---|---|
-| `type` | required | string |
-| `title` | required | the item you would make |
-| `why` | optional | one line on why |
-
-## feed_brief
-
-Access: PAGE.
-
-Read the project's brief as it stands now, as brief.ts (`export default brief({...})` from "raea/brief"): what to make, for whom, the one thing to believe, its deliverables and staged tasks.
-
-No input.
-
-## workspace_read
-
-Access: PAGE (Chat only).
-
-Read the workspace: its channels (id, name, logline), its agents, and its repo as raea keeps it (repo: its folder, layout, and each project's path, storage and id, from .raea/workspace). Workspace sessions (Chat) only.
-
-No input.
-
-## controllers_read
-
-Access: PAGE.
-
-Read the workspace's controllers: each controller's groups and fields with their paths (controller.group.field), types and values, as text and as JSON.
-
-No input.
-
-## controller_write
-
-Access: PAGE.
-
-Add a controller to the workspace, or replace the one with its id. A controller is { id?, title, help?, groups: [{ id?, title, help?, fields: [{ id?, label, help?, type, value, ... }] }] }; field types: toggle, choice (options), number (unit, min, max, step), text (placeholder, multiline), list, agents, channels, workflow (value: [{ name, by, back }], channels), servers, skills. The person sees it at once, and every agent works to it.
-
-| input | | |
-|---|---|---|
-| `controller` | required | the controller, whole |
-
-## controller_set
-
-Access: PAGE.
-
-Set one field's value by its path (controller.group.field), checked against its type.
-
-| input | | |
-|---|---|---|
-| `path` | required | controller.group.field |
-| `value` | required | the new value, of the field's type |
-
-## controller_remove
-
-Access: PAGE.
-
-Remove a controller from the workspace.
-
-| input | | |
-|---|---|---|
-| `id` | required | the controller's id |
-
-## channel_create
-
-Access: PAGE.
-
-Make a channel (a client, a game, a show) from one sentence on what it is. Returns its id.
-
-| input | | |
-|---|---|---|
-| `about` | required | one sentence on what the channel is |
-
-## feed_items
-
-Access: PAGE.
-
-List the project's items, newest first: id, type, title, status, what each replaces, and the notes people left on it.
-
-No input.
-
-## whiteboard_read
-
-Access: PAGE.
-
-Read a whiteboard item: its plan (what you or another agent wrote) and every element on the board by id, with its text, the frame it's in, what an arrow joins, and by: plan or person (what people drew by hand).
-
-| input | | |
-|---|---|---|
-| `board` | required | the whiteboard item's id |
-
-## whiteboard_write
-
-Access: PAGE.
-
-Make a whiteboard (a plan, with no board) or change one (board plus a plan to replace its plan, or a patch). Say what is on it and how it's grouped; the feed lays it out, so never give positions. Sections become frames side by side: notes stacks cards, flow stacks them with arrows between, refs shows feed items' posters. People's own drawing on the board is kept.
-
-| input | | |
-|---|---|---|
-| `board` | optional | the whiteboard to change; leave out to make a new one |
-| `plan` | optional | the whole board |
-| `patch` | optional | changes by id to the board's plan |
-
-## flow_board
-
-Access: PAGE.
-
-Put a ComfyUI workflow (UI or API format JSON, for example one a raea gen flow ran) on a whiteboard in the feed: each node a card with its settings, links as arrows, groups as frames, input and output images beside their nodes. The workflow is copied into the project and stays the source of truth.
-
-| input | | |
-|---|---|---|
-| `workflow` | required | absolute path of the workflow's .json on this machine |
-| `title` | required | the board's title |
-
-## flow_write
-
-Access: PAGE.
-
-Change a flow board's workflow (whiteboard_read shows its nodes and settings by name): settings' values, a node's mode (on, bypass, mute), and notes. The board is laid out again from it.
-
-| input | | |
-|---|---|---|
-| `board` | required | the flow board's item id |
-| `widgets` | optional | settings to change |
-| `modes` | optional | array |
-| `notes` | optional | a Note node's new text, or a new note (no node) |
-
-## flow_run
-
-Access: PAGE.
-
-Run a flow board's workflow as it stands through raea gen (ComfyUI). Its outputs go on the board and into the feed as look items, each a new version of the last run's.
-
-| input | | |
-|---|---|---|
-| `board` | required | the flow board's item id |
-
diff --git a/sdk/skills/raea/reference/files.md b/sdk/skills/raea/reference/files.md
deleted file mode 100644
index cd9f7488..00000000
--- a/sdk/skills/raea/reference/files.md
+++ /dev/null
@@ -1,246 +0,0 @@
-<!-- generated by tools/skills.sh gen; do not edit -->
-
-# Files
-
-## A workspace and its project
-
-What `raea workspace init Example` and then `raea project new Launch` make, under raea.root (`git config
---global raea.root`, else ~/Studio). The workspace is one git repo; media/ and out/ go to LFS.
-
-```
-example
- .gitattributes
- .raea
- workspace
- controllers
- .gitkeep
- projects
- .gitkeep
- launch
- .raea
- project
- AGENTS.md
- brand
- .gitkeep
- brief.ts
- media
- .gitkeep
- out
- .gitkeep
- taste.ts
-```
-
-## ~/.raea
-
-The files and folders under ~/.raea that raea's CLI, its engine and the raea app keep, the environment variable
-that moves each (when there is one) and the files that name them.
-
-| path | moved by | named in |
-|---|---|---|
-| `~/.raea/Library/Caches` | | apps/app/host/acp/fence.ts |
-| `~/.raea/account.json` | `RAEA_ACCOUNT` | apps/app/host/auth.ts |
-| `~/.raea/actions.jsonl` | | io/shell/src/fs/mod.rs |
-| `~/.raea/bin` | | io/assets/src/lib.rs, runtime/bundle/lib/src/lib.rs, runtime/page/src/faces.rs |
-| `~/.raea/cache` | | apps/app/host/take.ts |
-| `~/.raea/env` | `RAEA_ENV_FILE` | apps/app/host/director.ts, io/gen-core/src/fal.rs, io/gen-core/src/fish.rs, io/gen-core/src/made.rs, io/gen-core/src/modal.rs, io/gen-core/src/openrouter.rs, io/gen-core/src/replicate.rs, io/gen-core/src/tripo.rs, io/home/src/lib.rs |
-| `~/.raea/evals/skills` | | apps/app/host/evals/skills.ts |
-| `~/.raea/feed/media` | | apps/app/host/paths.ts |
-| `~/.raea/library` | `RAEA_LIBRARY_HOME` | apps/app/host/library/local.ts |
-| `~/.raea/library/granted.json` | `RAEA_LIBRARY_GRANTS` | apps/app/host/library/service.ts |
-| `~/.raea/library/hashes.json` | `RAEA_LIBRARY_STATE` | apps/app/host/library/scan.ts |
-| `~/.raea/library/requests.json` | `RAEA_LIBRARY_REQUESTS` | apps/app/host/library/service.ts |
-| `~/.raea/models` | `RAEA_MODELS` | apps/app/host/library/embed.ts, apps/app/host/library/words.ts |
-| `~/.raea/node.json` | `RAEA_NODE_FILE` | apps/app/host/link.ts, apps/app/host/reach.ts |
-| `~/.raea/npm` | `RAEA_NPM_HOME` | io/npm/src/store.rs |
-| `~/.raea/npm/store` | | io/npm/src/lib.rs, io/npm/src/store.rs |
-| `~/.raea/objects` | | io/shell/src/fs/mod.rs |
-| `~/.raea/onboarding.json` | `RAEA_ONBOARDING_FILE` | apps/app/host/onboard-account.ts, apps/app/host/onboard.ts |
-| `~/.raea/publish/drive.json` | `RAEA_DRIVE_PICKS` | apps/app/host/publish-source.ts |
-| `~/.raea/publish/ready.json` | `RAEA_PUBLISH_READY` | apps/app/host/publish-ready.ts |
-| `~/.raea/taste` | `RAEA_TASTE` | apps/app/host/taste.ts, engine/cli/src/guide.rs, engine/cli/src/spec.rs |
-| `~/.raea/taste/corrections.jsonl` | | apps/app/host/taste.ts |
-| `~/.raea/taste/taste.ts` | | engine/cli/src/guide.rs |
-| `~/.raea/update` | `RAEA_UPDATE_DIR` | apps/app/host/onboard.ts, apps/app/host/update.ts |
-
-## The spec files
-
-Each spec's fields, as raea/brief's types (sdk/raea/src/brief.gen.ts, generated from the schemas in core/brief that
-`raea spec` checks against): brief.ts is a Brief, NAME.script.ts a Script, taste.ts a Taste, plan.ts a Plan and
-controllers/ID.ts a Controller. A field marked ? may be left out.
-
-```ts
-export type Brief = { title: string, logline?: string,
-/**
- * who the work is for (a person or a client)
- */
-for?: string,
-/**
- * YYYY-MM-DD
- */
-due?: string,
-/**
- * who watches or plays it, and where
- */
-audience?: string,
-/**
- * the one thing they should think afterwards
- */
-believe?: string,
-/**
- * pitch, explain, story, play, tool: an open set, one guide each; a piece can mix two
- */
-mode?: Array<string>,
-/**
- * the narrator and the tone
- */
-voice?: string, sound?: string,
-/**
- * the project's committed world: palette by role, type, camera language, light, references
- */
-look?: string,
-/**
- * the anti-goals
- */
-notDoing?: Array<string>,
-/**
- * facts an agent wrote and the person hasn't confirmed, by key ("voice", "audience")
- */
-assumed?: Array<string>,
-/**
- * prose sections beyond the fields above (Goal, Background), in order
- */
-sections?: Array<Section>, deliver?: Array<Deliverable>, references?: Array<Reference>,
-/**
- * the tasks, in stages ("Act one", "The cut")
- */
-stages?: Array<Stage>, agents?: Array<Agent>, };
-export type Section = { heading: string, text: string, };
-export type Deliverable = { name: string,
-/**
- * "90 s", "16:9", "with sound"
- */
-specs?: Array<string>,
-/**
- * the feed item it lands as
- */
-item?: string,
-/**
- * its own brief module, when it differs from the project in mode, look or audience
- */
-brief?: string,
-/**
- * its script module (storyboard or screenplay)
- */
-script?: string, };
-export type Reference = { target: string, note?: string, };
-export type Stage = { name: string, tasks: Array<Task>, };
-export type Mark = "todo" | "done" | "dropped";
-export type Task = { text: string,
-/**
- * a task linked to an item takes the item's state (the work is the truth); this is for unlinked ones
- */
-mark?: Mark, agents?: Array<string>, item?: string, tags?: Array<string>, due?: string,
-/**
- * the craft verb it was written as ("quieter"): agents read it, the page shows the text
- */
-verb?: string, };
-export type Agent = { name: string, role?: string, };
-export type Script = { title: string, logline?: string, scenes: Array<Scene>, };
-export type Scene = {
-/**
- * where and when ("INT. SENATE - NIGHT", or "The brief page")
- */
-heading?: string, beats: Array<Beat>,
-/**
- * what the scene must land
- */
-payoff?: string, };
-export type Beat = {
-/**
- * what's seen (a screenplay's action)
- */
-onScreen: string,
-/**
- * the move ("push in on the knife", "orbit left, keeps moving through the cut")
- */
-camera?: string,
-/**
- * how this beat is cut into ("match on motion", "hard cut")
- */
-cut?: string, lines?: Array<Line>,
-/**
- * sound and music cues ("strings drop out", "the theme's second hit")
- */
-cues?: Array<string>, seconds?: number,
-/**
- * the word the beat cuts on, so a new take keeps the cut in sync with the transcript
- */
-onWord?: string, };
-export type Line = {
-/**
- * a character, or "narrator"
- */
-who: string, says: string,
-/**
- * a screenplay's parenthetical ("quietly")
- */
-how?: string, };
-export type Taste = { title: string,
-/**
- * when this file is read ("Read for pitch, explain and story")
- */
-note?: string, for?: string,
-/**
- * the kinds of work with their own taste file (motion, games, sound, ui)
- */
-kinds?: Array<string>, sections: Array<TasteSection>, };
-export type TasteSection = {
-/**
- * "Always", "Never", "Camera"
- */
-heading: string, rules: Array<Rule>, };
-export type Rule = { text: string, check?: Check, };
-export type Check = { "form": "text-hold", "value": number } | { "form": "text-above", "value": number } | { "form": "text-below", "value": number } | { "form": "text-margin", "value": number } | { "form": "loudness", "value": number } | { "form": "still-max", "value": number };
-export type Plan = { concept: Concept,
-/**
- * by name; the build's parts are typed from these keys, so a planned part the build skips is a tsc error
- */
-parts: { [key in string]: Part }, };
-export type Concept = {
-/**
- * what it is ("flight feather", "toy rocking horse")
- */
-what: string, style: string,
-/**
- * its largest extent, in metres
- */
-size: number,
-/**
- * how close it's seen, in metres: sets how much detail up close must hold
- */
-seenFrom: number, material?: string, use?: string, };
-export type Level = "primary" | "secondary" | "tertiary";
-export type Count = number | { min: number, max: number, };
-export type Part = {
-/**
- * the label it carries into the world ("seat", "leaf", "gem")
- */
-role: string, level: Level,
-/**
- * the part it sits on or in; none for the root
- */
-parent?: string, count?: Count,
-/**
- * its own, else its parent's, else the concept's
- */
-material?: string, style?: string,
-/**
- * what a near crop of it must show
- */
-near?: string, };
-export type Controller = { id: string, title: string, help?: string, groups: Array<Group>, };
-export type Group = { id: string, title: string, help?: string, fields: Array<Field>, };
-export type Field = { id: string, label: string, help?: string, } & ({ "type": "toggle", value: boolean, } | { "type": "choice", options: Array<string>, value: string, } | { "type": "number", value: number, unit?: string, min?: number, max?: number, step?: number, } | { "type": "text", value: string, placeholder?: string, multiline?: boolean, } | { "type": "list", value: Array<string>, placeholder?: string, } | { "type": "agents", value: Array<string>, } | { "type": "channels", value: Array<string>, } | { "type": "workflow", value: Array<Step>, channels?: Array<string>, } | { "type": "servers", value: Array<string>, } | { "type": "skills", value: Array<string>, });
-export type Kind = { "type": "toggle", value: boolean, } | { "type": "choice", options: Array<string>, value: string, } | { "type": "number", value: number, unit?: string, min?: number, max?: number, step?: number, } | { "type": "text", value: string, placeholder?: string, multiline?: boolean, } | { "type": "list", value: Array<string>, placeholder?: string, } | { "type": "agents", value: Array<string>, } | { "type": "channels", value: Array<string>, } | { "type": "workflow", value: Array<Step>, channels?: Array<string>, } | { "type": "servers", value: Array<string>, } | { "type": "skills", value: Array<string>, };
-export type Step = { name: string, by?: string, back?: string, };
-```
diff --git a/sdk/skills/raea/reference/sdk.md b/sdk/skills/raea/reference/sdk.md
deleted file mode 100644
index 48e3c649..00000000
--- a/sdk/skills/raea/reference/sdk.md
+++ /dev/null
@@ -1,111 +0,0 @@
-<!-- generated by tools/skills.sh gen; do not edit -->
-
-# The raea SDK
-
-What each import gives a composition, a game or a spec (values only; their types come along). Components start
-with a capital, hooks with `use`. A component's props are in its file.
-
-## `raea` (sdk/raea/src/index.tsx)
-
-`ACTION_KEY`, `AbsoluteFill`, `Animate`, `Audio`, `Clock`, `Composition`, `Easing`, `FEED_KEY`, `Freeze`, `Img`, `InputRegion`, `Loop`, `MEDIA_ROOT`, `Mix`, `Nudge`, `Overlay`, `Region`, `SPACE_KEY`, `Sequence`, `Series`, `SongPlot`, `Stagger`, `Video`, `actionsIn`, `applyActions`, `curve`, `curveFn`, `delay`, `fade`, `feedIn`, `fill`, `findPhrase`, `firstDecider`, `fish`, `getCompositions`, `gridDelay`, `inState`, `interpolate`, `isGeneratedAsset`, `keyEdges`, `lyria`, `machine`, `measureSpring`, `move`, `moves`, `overlays`, `parallel`, `pop`, `proofBoxes`, `propsFingerprint`, `pushIn`, `regionBand`, `registerRoot`, `replayDecider`, `reverse`, `rise`, `sampleAnimation`, `sao`, `sequence`, `sequenceGap`, `slam`, `slide`, `song`, `songAt`, `spring`, `stagger`, `stateOf`, `staticFile`, `stepAll`, `strike`, `tick`, `tickClocks`, `timeline`, `toMove`, `track`, `transitionOf`, `useCurrentFrame`, `useGameEvents`, `useGameState`, `useInput`, `useRegion`, `useSong`, `useVideoConfig`, `useWords`, `wipe`, `word`
-
-## `raea/3d` (sdk/raea/src/3d.tsx)
-
-`Body`, `Echoes`, `Goo`, `MeshSequence`, `Part`, `Physics`, `ZFight`, `about`, `bodyPose`, `gooSpec`, `hash01`, `lastBeat`, `part`, `physicsRequest`, `quatAxis`, `quatMul`, `snapPose`, `teleport`, `useBake`, `useGoo`, `usePhysics`
-
-## `raea/animation` (sdk/raea/src/animation.ts)
-
-`clipEvents`
-
-## `raea/app` (sdk/raea/src/app.ts)
-
-`App`, `BevyApp`, `First`, `FixedFirst`, `FixedLast`, `FixedPostUpdate`, `FixedPreUpdate`, `FixedUpdate`, `Last`, `PluginGroup`, `PostStartup`, `PostUpdate`, `PreStartup`, `PreUpdate`, `RunFixedMainLoop`, `SpawnScene`, `Startup`, `StateTransition`, `Update`, `conditions`, `definePlugin`
-
-## `raea/asset` (sdk/raea/src/asset.ts)
-
-`MEDIA_ROOT`, `staticFile`
-
-## `raea/audio` (sdk/raea/src/audio.ts)
-
-`Audio`, `Tone`, `music`
-
-## `raea/brief` (sdk/raea/src/brief.ts)
-
-`brief`, `controller`, `plan`, `script`, `taste`
-
-## `raea/camera` (sdk/raea/src/camera.ts)
-
-`Camera3d`, `Canvas3D`, `Hdr`, `Matchmove`, `TextureView`, `checkMatchmove`, `matchmoveIndex`, `matchmoveView`, `useMatchmove`
-
-## `raea/color` (sdk/raea/src/color.ts)
-
-`Hsla`, `LinearRgba`, `Okhsla`, `Oklaba`, `Oklcha`, `Srgba`, `Xyza`, `kelvin`, `toHex`
-
-## `raea/feathers` (sdk/raea/src/feathers.ts)
-
-`AngleDegrees`, `Dimensionless`, `FeathersButton`, `FeathersCheckbox`, `FeathersColorInput`, `FeathersColorPlane`, `FeathersColorSlider`, `FeathersColorSwatch`, `FeathersDisclosureToggle`, `FeathersLazyMenu`, `FeathersListRow`, `FeathersListView`, `FeathersMenu`, `FeathersMenuButton`, `FeathersMenuDivider`, `FeathersMenuItem`, `FeathersMenuPopup`, `FeathersMenuToolButton`, `FeathersNumberInput`, `FeathersRadio`, `FeathersScrollbar`, `FeathersSelect`, `FeathersSlider`, `FeathersTextInput`, `FeathersTextInputContainer`, `FeathersToggleSwitch`, `FeathersToolButton`, `LengthMeters`, `NumberInputRange`, `NumberInputValue`, `StandardUnitKind`, `ThemeBackgroundColor`, `ThemeBorderColor`, `ThemeContext`, `ThemeTextColor`, `ThemedText`, `TimeSeconds`, `UiTheme`, `VirtualKeyboard`, `caption`, `channel_range`, `context_color`, `create_dark_theme`, `flex_spacer`, `fonts`, `gradient_ends`, `group`, `group_body`, `group_header`, `icon`, `icon_untinted`, `icons`, `label`, `label_dim`, `label_small`, `list_rows_from_strings`, `palette`, `pane`, `pane_body`, `pane_header`, `pane_header_divider`, `size`, `slider_label`, `subpane`, `subpane_body`, `subpane_header`, `to_border_radius`, `tokens`, `useInheritedColor`, `useThemeColor`
-
-## `raea/gizmos` (sdk/raea/src/gizmos.ts)
-
-`Gizmo`
-
-## `raea/image` (sdk/raea/src/image.ts)
-
-`ImagePlane`, `Img`, `Plate`
-
-## `raea/input` (sdk/raea/src/input.ts)
-
-`keyEdges`, `useInput`, `wireKeys`
-
-## `raea/light` (sdk/raea/src/light.ts)
-
-`AmbientLight`, `Atmosphere`, `DirectionalLight`, `Environment`, `EnvironmentMapLight`, `GlobalAmbientLight`, `Pathtracer`, `PointLight`, `RectLight`, `Shadows`, `Skybox`, `SolariLighting`, `SpotLight`, `light_consts`
-
-## `raea/math` (sdk/raea/src/math.ts)
-
-`Affine2`, `curve`, `curveFn`, `hash01`, `quatAxis`, `quatMul`
-
-## `raea/mesh` (sdk/raea/src/mesh.ts)
-
-`BufferMesh`, `Capsule`, `Capsule3d`, `Cone`, `ConicalFrustum`, `Cuboid`, `Cylinder`, `Instances`, `Mesh2d`, `Mesh3d`, `MeshSequence`, `Plane3d`, `Sphere`, `Torus`, `scatter`
-
-## `raea/pbr` (sdk/raea/src/pbr.ts)
-
-`AmbientOcclusion`, `Decal`, `ExtendedMaterial`, `Fire`, `Fog`, `FogFalloff`, `FogVolume`, `GridExtension`, `Lightmap`, `PaintExtension`, `ProceduralExtension`, `Refinish`, `ShaderExtension`, `ShaderMesh`, `StandardMaterial`, `SurfaceShader`, `ThreeShaderMaterial`, `ToonExtension`, `ToonMaterial`, `VolumetricFog`, `WearExtension`
-
-## `raea/post_process` (sdk/raea/src/post_process.ts)
-
-`AntiAliasing`, `Bloom`, `Compute`, `DepthOfField`, `Fisheye`, `FramePass`, `Grade`, `LensDistortion`, `Look`, `MotionBlur`, `Outline`, `ToneMapping`
-
-## `raea/remote` (sdk/raea/src/remote.ts)
-
-`BevyApp`
-
-## `raea/sprite` (sdk/raea/src/sprite.ts)
-
-`Circle`, `ColorMaterial`, `Ellipse`, `Mesh2d`, `Rectangle`, `RegularPolygon`, `Shape2D`, `Sprite`
-
-## `raea/state` (sdk/raea/src/state.ts)
-
-`stepAll`, `useGameEvents`, `useGameState`
-
-## `raea/text` (sdk/raea/src/text.ts)
-
-`RichText`, `Span`, `Text3D`, `loadFont`
-
-## `raea/time` (sdk/raea/src/time.ts)
-
-`Clock`, `useCurrentFrame`, `useLocalTime`, `useVideoConfig`
-
-## `raea/transform` (sdk/raea/src/transform.ts)
-
-`Quat`, `Transform`, `eulerOf`, `surfaceTurn`
-
-## `raea/ui` (sdk/raea/src/ui.ts)
-
-`AbsoluteFill`, `AngularColorStop`, `BorderRadius`, `BoxShadow`, `BoxShadowSamples`, `ColorStop`, `ConicGradient`, `CornerRadius`, `EditableText`, `FontAtlasSet`, `FontCx`, `FontFeatureTag`, `FontSource`, `FontVariationTag`, `FontWidth`, `GhostNode`, `GlobalUiDebugOptions`, `GridPlacement`, `GridTrack`, `ImageNode`, `ImagePlugin`, `InlineImage`, `LinearGradient`, `MaterialNode`, `Node`, `Overflow`, `OverflowClipMargin`, `RadialGradient`, `RepeatedGridTrack`, `Rot2`, `Scrollbar`, `ScrollbarThumb`, `Text`, `Text2d`, `TextShadow`, `TextSpan`, `TextureAtlasLayout`, `UiPosition`, `UiRect`, `UiScale`, `UiTargetCamera`, `UiTexture`, `UiTransform`, `Val2`, `Viewport`, `auto`, `percent`, `px`, `targetImage`, `vh`, `vmax`, `vmin`, `vw`
-
-## `raea/video` (sdk/raea/src/video.ts)
-
-`Freeze`, `Loop`, `Sequence`, `Series`, `Video`
-
diff --git a/skills b/skills
index 80fd33ce..8fa445cf 160000
--- a/skills
+++ b/skills
@@ -1 +1 @@
-Subproject commit 80fd33ce2f4c39f33ccf1d8612ca1e2027df29e5
+Subproject commit 8fa445cf35370b89cccbe9fa12259b16e35b544c
diff --git a/tools/dupes.sh b/tools/dupes.sh
index 1c1a0b12..1ad999ed 100755
--- a/tools/dupes.sh
+++ b/tools/dupes.sh
@@ -11,9 +11,9 @@
set -u
ROOT=$(cd "$(dirname "$0")/.." && pwd)
cd "$ROOT" || exit 2
-# tools/rask is its own repository (a submodule, empty in the fresh checkout L1 uses), so it never counts
+# tools/rask and skills (raea-skills) are their own repositories (submodules, empty in a fresh export), so they never count
X=(--exclude vendor --exclude target --exclude sdk/ui/conformance --exclude-tests --exclude tests.rs --exclude engine/bevy-plugins/src/declared.rs \
- --exclude tools/rask)
+ --exclude tools/rask --exclude skills)
command -v cargo-dupes >/dev/null || { echo "dupes: cargo-dupes isn't installed (cargo install cargo-dupes --locked)"; exit 1; }
[ "${1:-}" = report ] && exec cargo dupes report "${X[@]}"
diff --git a/tools/release.sh b/tools/release.sh
index aa0f596c..44495f83 100755
--- a/tools/release.sh
+++ b/tools/release.sh
@@ -63,7 +63,14 @@ raea_bin=$bin/raea; [ -f "$raea_bin.exe" ] && raea_bin=$raea_bin.exe
# none. There, RAEA_SKILLS_PASSED=SHA stands for it: the gate passed at SHA where the feed app is (a maintainer's
# checkout), and it counts for REF only when what the gate reads (the skills and guides, the glossary, the CLI's usage,
# skills.sh) is the same at both. With neither, the release refuses (T1f, 11-07)
-gate_inputs=(sdk/skills sdk/guides docs/skills.glossary.md engine/cli/src tools/skills.sh)
+# the raea skill lives in the raea-skills submodule (skills/), so its pointer stands for their text
+gate_inputs=(skills sdk/guides docs/skills.glossary.md engine/cli/src tools/skills.sh)
+# raea-skills (skills/) at the commit REF pins, written into DIR: a submodule isn't in REF's own archive
+skills_at() {
+ local pin; pin=$(git rev-parse "$ref:skills") || { echo "release.sh: $ref pins no raea-skills (skills/)" >&2; return 1; }
+ git -C skills cat-file -e "$pin^{commit}" 2>/dev/null || git -C skills fetch -q origin "$pin" || { echo "release.sh: raea-skills has no commit $pin (git submodule update --init skills)" >&2; return 1; }
+ mkdir -p "$1" && git -C skills archive "$pin" | tar -x -C "$1"
+}
if [ ! -f "$root/apps/app/src/acp/protocol.ts" ]; then
[ -n "${RAEA_SKILLS_PASSED:-}" ] || { echo "release.sh: no feed app here (apps/app), so the skills gate can't run; run tools/skills.sh check in a checkout with the feed app, then name the commit it passed on as RAEA_SKILLS_PASSED (release.yml: a \"skills-passed: <sha>\" line in the annotated tag's message, or the skills_passed input when run by hand)" >&2; exit 1; }
git rev-parse -q --verify "$RAEA_SKILLS_PASSED^{commit}" >/dev/null || { echo "release.sh: RAEA_SKILLS_PASSED=$RAEA_SKILLS_PASSED isn't a commit here (a full SHA, fetched)" >&2; exit 1; }
@@ -74,6 +81,7 @@ if [ ! -f "$root/apps/app/src/acp/protocol.ts" ]; then
RAEA_BIN="$(cd "$(dirname "$raea_bin")" && pwd)/$(basename "$raea_bin")" bash tools/skills.sh check-cli || { echo "release.sh: cli.md doesn't match $raea_bin's help" >&2; exit 1; }
else
git archive "$ref" | untar "$gate" || { echo "release.sh: the skills gate couldn't unpack $ref" >&2; exit 1; }
+ skills_at "$gate/skills" || exit 1
git -C "$gate" init -q && git -C "$gate" add -A && git -C "$gate" -c gc.auto=0 -c maintenance.auto=false -c user.name=release -c [email protected] commit -qm "$ref" --no-verify
if ! (cd "$gate" && SKILLS_STRICT=1 SKILLS_CHANGED= RAEA_BIN="$raea_bin" RAEA_APP="$root/apps/app" RAEA_APP_REV="$(git -C "$root" rev-parse "$ref:apps/app")" bash tools/skills.sh check); then
echo "release.sh: tools/skills.sh check failed on $ref with $raea_bin; fix the skills (tools/skills.sh gen) before releasing" >&2
@@ -90,6 +98,9 @@ since=${RAEA_SINCE:-$(git describe --tags --abbrev=0 --match 'v*' "$ref" 2>/dev/
echo
if [ -z "$since" ]; then range=("$ref"); elif git rev-parse -q --verify "$since^{commit}" >/dev/null; then range=("$since..$ref"); else range=(--since="$since" "$ref"); fi
git log --no-merges --format='- %s' "${range[@]}" -- sdk/skills sdk/guides ':!sdk/skills/raea-work' | cut -c1-200
+ # and raea-skills' own, between the commit the last release pinned (none before the move) and this one
+ from=$( [ -n "$since" ] && git rev-parse -q --verify "$since:skills" 2>/dev/null || true )
+ git -C skills log --no-merges --format='- %s' ${from:+"$from.."}"$(git rev-parse "$ref:skills")" -- skills | cut -c1-200
} > "$out/raea-$version-skills.md"
case $platform in
linux-x86_64)
@@ -134,13 +145,13 @@ copy sdk/react/tw/node_modules/tailwindcss "$stage/share/raea/sdk/react/tw/node_
# (raea_io_home::models: ~/.local/share/raea-models, %LOCALAPPDATA%\raea\models on Windows); every platform since #43
mkdir -p "$stage/share/raea/models/beat-this"
cp ~/.local/share/raea-models/beat-this/beat_this_small0.onnx "$stage/share/raea/models/beat-this/"
-# the agent skills (sdk/skills: raea, raea-bevy), which the installer copies into ~/.claude/skills; raea-bevy's topic files
-# are links to the craft guides, so they go as the files they point to
+# the agent skill (raea: raea-skills at the commit REF pins), which the installer copies into
+# ~/.claude/skills; raea-work (sdk/skills, work.raea.io's showcase pages) is internal and stays out, and _template is
+# raea-skills' start of a new skill
skills=$(mktemp -d)
-git archive "$ref" sdk/skills sdk/guides | tar -x -C "$skills"
-# raea-work is internal (work.raea.io's showcase pages), so it stays out, as the public export drops it
-rm -rf "$skills/sdk/skills/raea-work"
-cp -RL "$skills/sdk/skills" "$stage/share/raea/skills"
+skills_at "$skills" || exit 1
+rm -rf "$skills/skills/_template"
+cp -R "$skills/skills" "$stage/share/raea/skills"
# the runtime's packages, as installed here
copy sdk/react/js/node_modules "$stage/share/raea/sdk/react/js"
rm -rf "$stage/share/raea/tools/tokensynth/__pycache__" "$skills"
diff --git a/tools/skills.sh b/tools/skills.sh
index 7eb0f1e2..6a2a2fe0 100755
--- a/tools/skills.sh
+++ b/tools/skills.sh
@@ -1,9 +1,12 @@
#!/bin/bash
-# The raea skill's generated references (docs/skills.feature SK1-SK2): the hand-written core, sdk/skills/raea/SKILL.md,
+# The raea skill's generated references (docs/skills.feature SK1-SK2): the hand-written core, skills/skills/raea/SKILL.md
+# (the raea-skills submodule, where the raea skill lives),
# links these instead of repeating them, so a verb, a flag, a feed tool or an export changes its reference in the
# same commit.
#
-# tools/skills.sh gen write sdk/skills/raea/reference/{cli,feed,files,sdk,app}.md
+# tools/skills.sh gen write skills/skills/raea/reference/{cli,feed,files,sdk,app}.md, and copy the Bevy craft guides
+# (sdk/guides/craft/bevy/*.md) into skills/skills/raea/3d/ as its 3D topic files, so a clone of
+# raea-skills reads whole without raea; commit both in raea-skills, then the pointer here
# tools/skills.sh check the drift gate (SK3, in L0): fails on a stale reference, a retired word, a flag a verb
# doesn't take, a RAEA_* variable nothing reads, or a relative link that goes nowhere, each
# with its file, line and fix. engine/cli/conformance/surface.test.ts checks the verbs and
@@ -28,7 +31,9 @@
set -euo pipefail
ROOT=$(cd "$(dirname "$0")/.." && pwd)
cd "$ROOT"
-OUT=${SKILLS_OUT:-sdk/skills/raea/reference}
+SK=skills/skills
+OUT=${SKILLS_OUT:-$SK/raea/reference}
+BEVY_OUT=${SKILLS_BEVY_OUT:-$SK/raea/3d}
HEAD_LINE="<!-- generated by tools/skills.sh gen; do not edit -->"
APP=${RAEA_APP:-apps/app}
# check-cli reads only raea's help, so it runs where the feed app isn't (a public checkout: release.yml's runners)
@@ -187,7 +192,7 @@ gen_sdk() {
# the hand-written text the gate reads: the skills (not their generated references) and the craft guides
-texts() { git ls-files -co --exclude-standard -- 'sdk/skills/raea*' sdk/guides/craft | grep -E '\.md$' | grep -v '/reference/' | grep -v '^sdk/skills/raea-work/'; }
+texts() { { git ls-files -co --exclude-standard -- sdk/guides/craft; [ -d "$SK" ] && find "$SK/raea" -type f; } | grep -E '\.md$' | grep -v '/reference/'; }
# the raea is older than the help's sources as committed: its help would be stale (L0's cli surface step rebuilds it)
help_stale() {
@@ -202,32 +207,48 @@ help_stale() {
check() {
local fail=0 tmp; tmp=$(mktemp -d "${TMPDIR:-/tmp}/skills-check.XXXXXX")
+ [ -f "$SK/raea/SKILL.md" ] || { echo "FAIL skills: $SK/raea/SKILL.md:1: missing; fix: git submodule update --init skills (raea-skills, at the commit raea pins)"; rm -rf "$tmp"; return 1; }
# 1. stale references: what gen writes now, against what's committed beside the skill
if help_stale; then
echo "skills: note $R is older than the help's sources; cli.md and the flags aren't checked (rebuild raea-cli)"
fi
local stale_help=0; help_stale && stale_help=1
- SKILLS_OUT=$tmp/ref R=$R SKIP_CLI=$stale_help "$0" gen-into >/dev/null || { echo "FAIL skills: tools/skills.sh gen failed"; rm -rf "$tmp"; return 1; }
+ SKILLS_OUT=$tmp/ref SKILLS_BEVY_OUT=$tmp/bevy R=$R SKIP_CLI=$stale_help "$0" gen-into >/dev/null || { echo "FAIL skills: tools/skills.sh gen failed"; rm -rf "$tmp"; return 1; }
for f in cli feed files sdk app; do
[ "$f" = cli ] && [ $stale_help = 1 ] && continue
- if ! diff -q "$tmp/ref/$f.md" "sdk/skills/raea/reference/$f.md" >/dev/null 2>&1; then
+ if ! diff -q "$tmp/ref/$f.md" "$SK/raea/reference/$f.md" >/dev/null 2>&1; then
# the shared GitButler tree holds every applied lane's code, so what gen writes there isn't what main + one lane
# gives: a note here, a failure in L1's export (origin/main + the lane)
if [ "${SKILLS_STRICT:-0}" = 1 ]; then
- echo "FAIL skills: sdk/skills/raea/reference/$f.md:1: differs from what this release generates; fix: tools/skills.sh gen with this raea, and commit it"
+ echo "FAIL skills: $SK/raea/reference/$f.md:1: differs from what this release generates; fix: tools/skills.sh gen with this raea, and commit it"
fail=1
elif [ "$(git symbolic-ref -q HEAD 2>/dev/null)" = refs/heads/gitbutler/workspace ]; then
- echo "skills: warning sdk/skills/raea/reference/$f.md differs from what this tree generates (other lanes' code is applied here; L1's export decides)"
+ echo "skills: warning $SK/raea/reference/$f.md differs from what this tree generates (other lanes' code is applied here; L1's export decides)"
elif [ "$f" = cli ] && [ "$(cd "$(dirname "$(realpath "$R")")/../.." && pwd)" != "$ROOT" ]; then
# the help is the binary's, built from another tree (L1's export runs the shared raea, which holds every
# applied lane): a note here; a clean checkout with its own build (release.sh) fails on it
- echo "skills: warning sdk/skills/raea/reference/cli.md differs from the help of $R, built from another tree"
+ echo "skills: warning $SK/raea/reference/cli.md differs from the help of $R, built from another tree"
else
- echo "FAIL skills: sdk/skills/raea/reference/$f.md:1: stale; fix: tools/skills.sh gen on origin/main + this lane (the shared tree holds other lanes too), and commit it"
+ echo "FAIL skills: $SK/raea/reference/$f.md:1: stale; fix: tools/skills.sh gen on origin/main + this lane (the shared tree holds other lanes too), and commit it"
fail=1
fi
fi
done
+ # the 3D topic files (raea/3d/): copies of the Bevy craft guides, so raea-skills reads whole on its own (and on GitHub)
+ local g c
+ for g in sdk/guides/craft/bevy/*.md; do
+ c=$SK/raea/3d/${g##*/}
+ cmp -s "$g" "$c" && continue
+ if [ "$(git symbolic-ref -q HEAD 2>/dev/null)" = refs/heads/gitbutler/workspace ]; then
+ echo "skills: warning $c differs from $g (other lanes' code is applied here; L1's export decides)"
+ else
+ echo "FAIL skills: $c:1: isn't a copy of $g; fix: tools/skills.sh gen, and commit it in raea-skills, then the pointer"; fail=1
+ fi
+ done
+ for c in "$SK"/raea/3d/*.md; do
+ case ${c##*/} in plugins.md | rows.md) continue ;; esac
+ [ -f "sdk/guides/craft/bevy/${c##*/}" ] || { echo "FAIL skills: $c:1: copies sdk/guides/craft/bevy/${c##*/}, which is gone; fix: delete it in raea-skills, or name the guide that replaced it"; fail=1; }
+ done
# 2. retired words (docs/skills.glossary.md), whole words where they start with a letter
local words g=${RAEA_GLOSSARY:-docs/skills.glossary.md} # the glossary is the maintainers' (private); without it, no retired words
words=$( [ -f "$g" ] && sed -n '/<!-- retired -->/,/<!-- \/retired -->/p' "$g" | sed '1d;$d' || true )
@@ -306,6 +327,8 @@ cochange() {
for s in $src; do grep -qE "^${s//./\\.}(/|$)" <<< "$changed" && hit="$hit $s"; done
[ -n "$hit" ] || continue
# the section counts as touched when its file changed within its lines (or, with no history here, at all)
+ # (a skill in raea-skills counts as touched when the pointer moved: raea's history doesn't see inside it)
+ case $f in "$SK"/*) grep -qx skills <<< "$changed" && continue ;; esac
if grep -qx "$f" <<< "$changed"; then
[ -n "${SKILLS_CHANGED:-}" ] && continue
git diff -U0 "$(git merge-base HEAD origin/main 2>/dev/null || echo HEAD)" -- "$f" | grep -E '^@@' | sed -E 's/^@@ [^+]*\+([0-9]+)(,([0-9]+))?.*/\1 \3/' |
@@ -318,8 +341,9 @@ cochange() {
# every section with sources, by how many commits to them it has missed since its own lines last changed
stale() {
sections | while IFS=$'\t' read -r f a b head src; do
- local t n
- t=$(git blame -L "$a,$b" --porcelain -- "$f" 2>/dev/null | awk '/^committer-time / { if ($2 > m) m = $2 } END { print m + 0 }')
+ local t n bl
+ case $f in "$SK"/*) bl=(git -C skills blame -L "$a,$b" --porcelain -- "${f#skills/}") ;; *) bl=(git blame -L "$a,$b" --porcelain -- "$f") ;; esac
+ t=$("${bl[@]}" 2>/dev/null | awk '/^committer-time / { if ($2 > m) m = $2 } END { print m + 0 }')
[ "$t" -gt 0 ] || t=$(date +%s)
# shellcheck disable=SC2086
n=$(git rev-list --count --since="$t" HEAD -- $src 2>/dev/null || echo 0)
@@ -337,6 +361,7 @@ case "${1:-}" in
gen_files > "$OUT/files.md"
gen_sdk > "$OUT/sdk.md"
gen_app > "$OUT/app.md"
+ mkdir -p "$BEVY_OUT" && cp sdk/guides/craft/bevy/*.md "$BEVY_OUT/"
if [ "$1" = gen ]; then wc -l "$OUT"/*.md; fi
;;
check)
@@ -349,8 +374,8 @@ case "${1:-}" in
[ -x "$R" ] || { echo "FAIL skills: no raea to read the help from (RAEA_BIN, or build raea-cli)"; exit 1; }
d=$(mktemp)
# a Windows checkout has CRLF line ends (Git's autocrlf) and the help's are LF: only the text is compared
- if ! diff -u --strip-trailing-cr sdk/skills/raea/reference/cli.md <(gen_cli) > "$d"; then
- echo "FAIL skills: sdk/skills/raea/reference/cli.md:1: differs from the help of $R; fix: tools/skills.sh gen with a raea built from this tree, and commit it"
+ if ! diff -u --strip-trailing-cr $SK/raea/reference/cli.md <(gen_cli) > "$d"; then
+ echo "FAIL skills: $SK/raea/reference/cli.md:1: differs from the help of $R; fix: tools/skills.sh gen with a raea built from this tree, and commit it"
head -40 "$d"; rm -f "$d"; exit 1
fi
rm -f "$d"