@anvpx/motion 0.1.50 → 0.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +39 -1
  2. package/dist/main.js +0 -0
  3. package/mcpb/motion-kit-0.1.52.mcpb +0 -0
  4. package/package.json +15 -12
  5. package/plugins/motion-kit/.claude-plugin/plugin.json +10 -1
  6. package/plugins/motion-kit/README.md +39 -24
  7. package/plugins/motion-kit/commands/mk-draft.md +2 -2
  8. package/plugins/motion-kit/commands/mk-new.md +4 -4
  9. package/plugins/motion-kit/commands/mk-render.md +2 -2
  10. package/plugins/motion-kit/icon.png +0 -0
  11. package/plugins/motion-kit/skills/motion-kit/SKILL.md +31 -25
  12. package/plugins/motion-kit/skills/motion-kit/references/amplify.md +258 -216
  13. package/plugins/motion-kit/skills/motion-kit/references/authoring-scene.md +4 -0
  14. package/plugins/motion-kit/skills/motion-kit/references/authoring-style.md +4 -0
  15. package/plugins/motion-kit/skills/motion-kit/references/common-mistakes.md +71 -58
  16. package/plugins/motion-kit/skills/motion-kit/references/content-pack.md +10 -1
  17. package/plugins/motion-kit/skills/motion-kit/references/craft-composition.md +43 -0
  18. package/plugins/motion-kit/skills/motion-kit/references/craft-critique.md +26 -1
  19. package/plugins/motion-kit/skills/motion-kit/references/craft-motion.md +28 -0
  20. package/plugins/motion-kit/skills/motion-kit/references/craft-sound.md +2 -0
  21. package/plugins/motion-kit/skills/motion-kit/references/craft-type.md +2 -0
  22. package/plugins/motion-kit/skills/motion-kit/references/critique-repair.md +9 -0
  23. package/plugins/motion-kit/skills/motion-kit/references/decision-packet.md +10 -0
  24. package/plugins/motion-kit/skills/motion-kit/references/density.md +12 -5
  25. package/plugins/motion-kit/skills/motion-kit/references/direction.md +27 -61
  26. package/plugins/motion-kit/skills/motion-kit/references/faux-ui.md +16 -1
  27. package/plugins/motion-kit/skills/motion-kit/references/free-storyboard.md +8 -2
  28. package/plugins/motion-kit/skills/motion-kit/references/index.md +70 -0
  29. package/plugins/motion-kit/skills/motion-kit/references/intake.md +32 -3
  30. package/plugins/motion-kit/skills/motion-kit/references/knowledge-routing.md +5 -1
  31. package/plugins/motion-kit/skills/motion-kit/references/longform.md +4 -0
  32. package/plugins/motion-kit/skills/motion-kit/references/outline.md +13 -2
  33. package/plugins/motion-kit/skills/motion-kit/references/patching.md +4 -0
  34. package/plugins/motion-kit/skills/motion-kit/references/patterns.md +46 -66
  35. package/plugins/motion-kit/skills/motion-kit/references/quality-bar.md +41 -93
  36. package/plugins/motion-kit/skills/motion-kit/references/review.md +17 -8
  37. package/plugins/motion-kit/skills/motion-kit/references/scene-recipes.md +111 -333
  38. package/plugins/motion-kit/skills/motion-kit/references/setup.md +4 -0
  39. package/plugins/motion-kit/skills/motion-kit/references/slop.md +46 -40
  40. package/plugins/motion-kit/skills/motion-kit/references/storyboard-json.md +9 -3
  41. package/plugins/motion-kit/skills/motion-kit/references/themes.md +4 -0
  42. package/plugins/motion-kit/skills/motion-kit/references/troubleshooting.md +81 -75
  43. package/plugins/motion-kit/skills/motion-kit/references/voice.md +10 -0
  44. package/plugins/motion-kit/skills/motion-kit/references/worked-decisions.md +4 -0
  45. package/plugins/motion-kit/skills/motion-kit/references/worked-example.md +4 -0
  46. package/skills/motion-kit/SKILL.md +31 -25
  47. package/skills/motion-kit/references/amplify.md +258 -216
  48. package/skills/motion-kit/references/authoring-scene.md +4 -0
  49. package/skills/motion-kit/references/authoring-style.md +4 -0
  50. package/skills/motion-kit/references/common-mistakes.md +71 -58
  51. package/skills/motion-kit/references/content-pack.md +10 -1
  52. package/skills/motion-kit/references/craft-composition.md +43 -0
  53. package/skills/motion-kit/references/craft-critique.md +26 -1
  54. package/skills/motion-kit/references/craft-motion.md +28 -0
  55. package/skills/motion-kit/references/craft-sound.md +2 -0
  56. package/skills/motion-kit/references/craft-type.md +2 -0
  57. package/skills/motion-kit/references/critique-repair.md +9 -0
  58. package/skills/motion-kit/references/decision-packet.md +10 -0
  59. package/skills/motion-kit/references/density.md +12 -5
  60. package/skills/motion-kit/references/direction.md +27 -61
  61. package/skills/motion-kit/references/faux-ui.md +16 -1
  62. package/skills/motion-kit/references/free-storyboard.md +8 -2
  63. package/skills/motion-kit/references/index.md +70 -0
  64. package/skills/motion-kit/references/intake.md +32 -3
  65. package/skills/motion-kit/references/knowledge-routing.md +5 -1
  66. package/skills/motion-kit/references/longform.md +4 -0
  67. package/skills/motion-kit/references/outline.md +13 -2
  68. package/skills/motion-kit/references/patching.md +4 -0
  69. package/skills/motion-kit/references/patterns.md +46 -66
  70. package/skills/motion-kit/references/quality-bar.md +41 -93
  71. package/skills/motion-kit/references/review.md +17 -8
  72. package/skills/motion-kit/references/scene-recipes.md +111 -333
  73. package/skills/motion-kit/references/setup.md +4 -0
  74. package/skills/motion-kit/references/slop.md +46 -40
  75. package/skills/motion-kit/references/storyboard-json.md +9 -3
  76. package/skills/motion-kit/references/themes.md +4 -0
  77. package/skills/motion-kit/references/troubleshooting.md +81 -75
  78. package/skills/motion-kit/references/voice.md +10 -0
  79. package/skills/motion-kit/references/worked-decisions.md +4 -0
  80. package/skills/motion-kit/references/worked-example.md +4 -0
package/README.md CHANGED
@@ -59,7 +59,45 @@ mk render storyboard.json --gated --verify
59
59
 
60
60
  The agent first develops a visual argument in an authoring-only `direction.md`: concept, composition, typography, color, motion, sound and intended divergence from relevant prior work. It loads focused craft guidance for unresolved decisions, then chooses template-assisted, direct or authored realization by fit. Templates help repeat a brand system; authored scenes can carry the whole film when the brief calls for it. There is no template-exhaustion requirement or custom-scene quota. The protocol lives in the skill (`skills/motion-kit/SKILL.md`) and in `docs/AGENT-WORKFLOW.md`. Users never write storyboards; the agent designs, shows a preview, and renders only after an explicit yes.
61
61
 
62
- Claude Code users can install the bundled plugin with `mk plugin install`.
62
+ ## Hosts
63
+
64
+ **Claude Desktop — one file.** `npx -y @anvpx/motion@latest desktop` writes
65
+ `motion-kit-<version>.mcpb` into the current folder. Open it (double-click, or drag it onto
66
+ Desktop), answer the two settings, and the nine tools appear. The bundle carries **no engine**:
67
+ every tool runs `npx -y @anvpx/motion@latest`, so the engine tracks new releases on its own; pin a
68
+ version in the extension settings when you need reproducible output. The archive is not code-signed,
69
+ so Desktop may ask you to confirm it.
70
+
71
+ Tools: `mk_version`, `mk_doctor`, `mk_catalog`, `mk_new`, `mk_validate`, `mk_still`, `mk_preview`,
72
+ `mk_approve`, `mk_render` — each is the CLI command of the same name, and `mk_render` always
73
+ passes `--gated`.
74
+
75
+ **Claude Code — one command.** From a clone of this repository:
76
+
77
+ ```sh
78
+ claude plugin install motion-kit --marketplace <path to this repo>
79
+ ```
80
+
81
+ Inside a session the same thing is two lines: `/plugin marketplace add <path>` then
82
+ `/plugin install motion-kit@motion-kit`. For one session without a marketplace:
83
+ `npx -y @anvpx/motion@latest plugin install --out ./motion-kit-plugin` then
84
+ `claude --plugin-dir ./motion-kit-plugin`. Either way you get the skill, the three commands
85
+ (`/motion-kit:mk-new`, `/motion-kit:mk-draft`, `/motion-kit:mk-render`) and shell access to `mk`.
86
+
87
+ **Any terminal or MCP-capable agent.** `mk` is the whole interface; the skill
88
+ (`skills/motion-kit/SKILL.md`, shipped in the package) is the protocol. Without shell access
89
+ (a plain chat window), run the three-command loop yourself — the walkthrough is
90
+ `docs/CLAUDE-DESKTOP.md`.
91
+
92
+ ## Updates
93
+
94
+ | surface | follows new releases | how |
95
+ | ------------------------------ | -------------------- | --------------------------------------------------------------------------------------------------------------------------- |
96
+ | CLI (`npx -y ...@latest`) | yes | the dist-tag is resolved on every run |
97
+ | Desktop bundle | engine yes, bundle no | every tool runs `@latest`; Desktop has no extension auto-update, so open a newer `.mcpb` only when the tool list changes |
98
+ | Claude Code plugin, local path | yes | the marketplace reads the folder in place; edits apply at the next session start or `/reload-plugins` |
99
+ | Claude Code plugin, git source | when you update | third-party marketplaces default to no auto-update: turn it on under `/plugin` → Marketplaces, or run `claude plugin update` |
100
+ | `--plugin-dir` folder, skills | no | they pin `@<x.y.z>` on purpose; re-run `mk plugin install` after a release |
63
101
 
64
102
  ## The approval gate
65
103
 
package/dist/main.js CHANGED
File without changes
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvpx/motion",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "Storyboard JSON to animated video, rendered locally with HyperFrames: the mk CLI plus the full pipeline.",
5
5
  "license": "MIT",
6
6
  "author": "anvpx",
@@ -42,6 +42,7 @@
42
42
  "music/catalog.json",
43
43
  "music/LICENSE-CC0.txt",
44
44
  "packs/**/*",
45
+ "mcpb/*.mcpb",
45
46
  "assets.json",
46
47
  "templates/**/*",
47
48
  "shared/themes/**/*",
@@ -51,23 +52,25 @@
51
52
  "icons/LICENSE-lucide",
52
53
  "CATALOG.md"
53
54
  ],
55
+ "scripts": {
56
+ "prepack": "pnpm -w run build && pnpm -w run mcpb"
57
+ },
54
58
  "dependencies": {
55
59
  "@fontsource/inter": "5.3.0",
56
60
  "@fontsource/jetbrains-mono": "5.3.0",
57
61
  "@fontsource/source-serif-4": "5.3.1",
58
62
  "@fontsource/space-grotesk": "5.3.0",
59
- "@anvpx/motion-assets": "0.1.50",
60
- "@anvpx/motion-audio": "0.1.50",
61
- "@anvpx/motion-build": "0.1.50",
62
- "@anvpx/motion-cli": "0.1.50",
63
- "@anvpx/motion-scenes": "0.1.50",
64
- "@anvpx/motion-schema": "0.1.50",
65
- "@anvpx/motion-templates": "0.1.50",
66
- "@anvpx/motion-themes": "0.1.50",
63
+ "@anvpx/motion-assets": "workspace:*",
64
+ "@anvpx/motion-audio": "workspace:*",
65
+ "@anvpx/motion-build": "workspace:*",
66
+ "@anvpx/motion-cli": "workspace:*",
67
+ "@anvpx/motion-scenes": "workspace:*",
68
+ "@anvpx/motion-schema": "workspace:*",
69
+ "@anvpx/motion-templates": "workspace:*",
70
+ "@anvpx/motion-themes": "workspace:*",
67
71
  "hyperframes": "0.8.212",
68
72
  "postprocessing": "6.39.5",
69
73
  "three": "0.186.0",
70
74
  "zod": "4.6.7"
71
- },
72
- "scripts": {}
73
- }
75
+ }
76
+ }
@@ -1,5 +1,14 @@
1
1
  {
2
+ "author": {
3
+ "name": "anvpx",
4
+ "url": "https://www.npmjs.com/package/@anvpx/motion"
5
+ },
2
6
  "description": "Brief-to-approved video via the pinned motion-kit CLI: storyboard, preview, gated render.",
7
+ "homepage": "https://www.npmjs.com/package/@anvpx/motion",
8
+ "icon": "./icon.png",
9
+ "keywords": ["video", "motion-graphics", "storyboard", "explainer", "render"],
10
+ "license": "MIT",
3
11
  "name": "motion-kit",
4
- "version": "0.1.50"
12
+ "repository": "https://www.npmjs.com/package/@anvpx/motion",
13
+ "version": "0.1.52"
5
14
  }
@@ -1,39 +1,54 @@
1
1
  # motion-kit Claude Code plugin
2
2
 
3
- Plugin root: `plugins/motion-kit/` (chosen over a top-level `motion-kit-plugin/`
4
- folder name used by the plugin packaging convention;
5
- `npx -y @anvpx/motion@0.1.50 plugin install` copies this exact folder).
3
+ Plugin root: `plugins/motion-kit/`. `npx -y @anvpx/motion@0.1.52 plugin install` copies
4
+ this exact folder; a Claude Code user installs it from a marketplace instead.
5
+
6
+ ## Install
7
+
8
+ From a checkout of the motion-kit source, one command adds the marketplace and installs the
9
+ plugin:
10
+
11
+ ```text
12
+ claude plugin install motion-kit --marketplace <path to the checkout>
13
+ ```
14
+
15
+ Inside a session the same thing is two commands:
16
+
17
+ ```text
18
+ /plugin marketplace add <path to the checkout>
19
+ /plugin install motion-kit@motion-kit
20
+ ```
21
+
22
+ Without a marketplace, for one session:
23
+
24
+ ```bash
25
+ npx -y @anvpx/motion@0.1.52 plugin install --out ./motion-kit-plugin
26
+ claude --plugin-dir ./motion-kit-plugin
27
+ ```
28
+
29
+ `plugin install` verifies `skills/motion-kit/SKILL.md` sha256 matches after the copy.
6
30
 
7
31
  ## Layout
8
32
 
9
- - `.claude-plugin/plugin.json` — manifest (`name`, `version`, `description` only;
10
- version tracks `@anvpx/motion`).
33
+ - `.claude-plugin/plugin.json` — manifest; version tracks `@anvpx/motion`.
11
34
  - `commands/mk-new.md`, `mk-draft.md`, `mk-render.md` — thin wrappers. Every step
12
- calls `npx -y @anvpx/motion@0.1.50` (pinned; never unpinned `npx`).
35
+ calls `npx -y @anvpx/motion@0.1.52` (pinned; never unpinned `npx`).
13
36
  Surface as `/motion-kit:mk-new`, `/motion-kit:mk-draft`, `/motion-kit:mk-render`.
14
37
  - `skills/motion-kit/SKILL.md` — generated from the canonical skill by the
15
38
  scaffold; do not edit it here.
16
39
  - `skills/motion-kit/references/` — generated from the canonical reference set,
17
40
  so every `references/*.md` link resolves after install.
41
+ - `icon.png` — 512×512 listing icon.
18
42
 
19
- ## Source ownership
20
-
21
- The plugin's `.claude-plugin/`, `commands/` and this README are hand-maintained.
22
- The `skills/motion-kit/` tree is generated. Edit the canonical skill and run
23
- `pnpm scaffold`; `pnpm scaffold:check` fails on drift. The same scaffold
24
- generates the core package's `skills/` and `plugins/` trees.
25
-
26
- ## Install
43
+ ## Why there is no MCP server here
27
44
 
28
- ```bash
29
- npx -y @anvpx/motion@0.1.50 plugin install --out ./motion-kit-plugin
30
- ```
45
+ Claude Code has a shell, so the skill and the commands run `mk` directly. The MCP
46
+ server exists for Claude Desktop, which has none: it is a separate `.mcpb` that
47
+ `mk desktop` writes out. One artifact per host, deliberately.
31
48
 
32
- Verifies `skills/motion-kit/SKILL.md` sha256 matches after copy.
33
-
34
- ## Desktop (separate track)
49
+ ## Source ownership
35
50
 
36
- Claude Desktop Extensions are zipped `.mcpb` bundles with a `manifest.json`
37
- (`mcpServers`), NOT this `skills/` folder. This folder does NOT serve Desktop.
38
- Desktop track: manually copy `skills/motion-kit/SKILL.md` into a Desktop
39
- skill import; do not claim one folder covers both hosts.
51
+ The plugin's `.claude-plugin/`, `commands/`, `icon.png` and this README are
52
+ hand-maintained. The `skills/motion-kit/` tree is generated. Edit the canonical
53
+ skill and run `pnpm scaffold`; `pnpm scaffold:check` fails on drift. The same
54
+ scaffold generates the core package's `skills/` and `plugins/` trees.
@@ -5,8 +5,8 @@ description: Preview a motion-kit storyboard (stills, contact sheet, draft clip)
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.50 preview storyboard.json
9
- npx -y @anvpx/motion@0.1.50 approve storyboard.json --note "<user words>"
8
+ npx -y @anvpx/motion@0.1.52 preview storyboard.json
9
+ npx -y @anvpx/motion@0.1.52 approve storyboard.json --note "<user words>"
10
10
  ```
11
11
 
12
12
  Follow `skills/motion-kit/SKILL.md` stages 7-8 (preview, show + approve).
@@ -5,10 +5,10 @@ description: Start a motion-kit video (intake, brief, template pick, storyboard)
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.50 template list --for "<one-line brief>"
9
- npx -y @anvpx/motion@0.1.50 template show <template>/<blueprint>
10
- npx -y @anvpx/motion@0.1.50 new <template>/<blueprint> --set k=v ... --out storyboard.json
11
- npx -y @anvpx/motion@0.1.50 validate storyboard.json
8
+ npx -y @anvpx/motion@0.1.52 template list --for "<one-line brief>"
9
+ npx -y @anvpx/motion@0.1.52 template show <template>/<blueprint>
10
+ npx -y @anvpx/motion@0.1.52 new <template>/<blueprint> --set k=v ... --out storyboard.json
11
+ npx -y @anvpx/motion@0.1.52 validate storyboard.json
12
12
  ```
13
13
 
14
14
  Follow `skills/motion-kit/SKILL.md` stages 1-6 (intake, brief, pick template,
@@ -5,8 +5,8 @@ description: Gated render of an approved motion-kit storyboard with verify
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.50 render storyboard.json --gated --verify
9
- npx -y @anvpx/motion@0.1.50 verify out/final.mp4 --storyboard storyboard.json
8
+ npx -y @anvpx/motion@0.1.52 render storyboard.json --gated --verify
9
+ npx -y @anvpx/motion@0.1.52 verify out/final.mp4 --storyboard storyboard.json
10
10
  ```
11
11
 
12
12
  Follow `skills/motion-kit/SKILL.md` stages 9-10 (patch, render). Exit 4 means
Binary file
@@ -6,15 +6,24 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
6
6
 
7
7
  # motion-kit: brief -> preview -> approved video
8
8
 
9
- `mk` = `npx -y @anvpx/motion@0.1.50`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
9
+ `mk` = `npx -y @anvpx/motion@0.1.52`. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
10
10
 
11
11
  ## Start here
12
12
 
13
13
  1. `mk doctor` once; optional voice rows may be missing, required rows are not.
14
- 2. Extract supplied facts and constraints; ask only material gaps (max 3, with defaults). A complete brief is not a questionnaire (`references/intake.md`); a thin ask is amplified first (`references/amplify.md`).
15
- 3. `brief.md`: <= 8 facts, every number sourced. Design `direction.md` before choosing scenes (`references/direction.md`); resolve one craft question at a time (`references/knowledge-routing.md`). Send a <= 200-word outline and wait for "go" (`references/outline.md`).
16
- 4. Pick a route (below), instantiate, then `mk validate` until 0 errors. If `meta.theme` is not built-in (`default`, `dark`, `paper`, `tech-dark`, `calm-dark`) and `themes/<name>.json` is absent, preview before calling this done. Storyboard-only request: stop here.
17
- 5. `mk preview --full` (add `--audio`/music when sound is in scope); open the printed `pack .../contact.png` and watch the full clip; ask. On yes only: `mk approve ...`, then `mk render ... --gated --verify`.
14
+ 2. Extract supplied facts and constraints; ask only material gaps (max 3, defaults). Complete brief: no questionnaire (`references/intake.md`). Thin ask: amplify first (`references/amplify.md`), full card in `direction.md` (## Amplification) or `amplify-card.md`, outline = <= 200-word summary.
15
+ Thin-ask mini-card (inline; weak models never lazy-load, so decide here):
16
+ ```text
17
+ = subject <user words> / + function <object|quantity|product|process>
18
+ + world+light+camera+material <one line each>
19
+ + hero <one moment+sec> / + exclusions <3 not used>
20
+ + facts <each number/name/claim tagged =user|+placeholder; never render + as fact>
21
+ + sound silent / ! drop <unsupported + replacement>
22
+ ```
23
+ Tags: `=` user, `+` proposed, `!` dropped. Never invent number/name/date. Quantity: provenance (rate/term/assumption) on screen. Restraints: fill then delete two; one claim per frame; one look across all frames.
24
+ 3. `brief.md`: <= 8 facts, every number sourced. Design `direction.md` before scenes (`references/direction.md`); one craft question at a time (`references/knowledge-routing.md`). Send <= 200-word outline and wait for "go" (`references/outline.md`).
25
+ 4. Pick a route (below), instantiate, then `mk validate` until 0 errors. Unknown `meta.theme` (not built-in, no `themes/<name>.json`): preview before done. Storyboard-only request: stop here. For `scene3d`, use only `mk catalog scene3d` props; name drops.
26
+ 5. `mk preview --full` (add `--audio`/music when used); open `pack .../contact.png` and watch the full clip; ask. On yes: `mk approve ...`, then `mk render ... --gated --verify`.
18
27
 
19
28
  ## Read when
20
29
 
@@ -28,21 +37,21 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
28
37
  | `references/worked-example.md` | first build; the complete loop and output shapes |
29
38
  | `references/free-storyboard.md` | direct route: shape and write the board |
30
39
  | `references/storyboard-json.md` | field shapes, overlays, assets, or decoding a validation error |
31
- | `references/density.md` | a frame feels thin, a board is mostly sentences, or a cut runs minutes |
32
- | `references/scene-recipes.md` | choose a type for a beat and copy its prop shape |
33
- | `references/patching.md` | any edit after the first write, or a patch flag refusal |
40
+ | `references/density.md` | thin frame, text-heavy board, or long cut |
41
+ | `references/scene-recipes.md` | type for a beat and prop shape; recipes (short-form/vertical, `stair`, whiteboard, mechanism) |
42
+ | `references/patching.md` | edit after first write, or patch flag refusal |
34
43
  | `references/quality-bar.md` | judging the preview and what to say before asking |
35
- | `references/common-mistakes.md` | a command refuses, or a flag or field is in doubt |
36
-
44
+ | `references/common-mistakes.md` | command refuses, or flag/field in doubt |
45
+ | `references/index.md` | full catalog when unsure which reference to load |
37
46
  ## Rules
38
47
 
39
- 1. Never render without the user's explicit yes. Silence or "looks fine" is not a yes. Always pass `--gated`; exit 4 means "ask", not "error".
40
- 2. Show `contact.png` to the user (open it or give the path), give the `clip.mp4` path, and say what is not previewed. Derive it from `preview.json`: `totalSec`, `clip.sec`, `continuity`, and scenes with no still. A `continuity: warn` is a flash/pop risk: fix the cut or bridge before asking.
41
- 3. Commands are the authority, not memory: `mk catalog` and `mk catalog <type>` for scenes and props, `mk template list` and `mk template show` for templates, `mk <command> --help` for flags. Never invent a type, prop, flag, theme, duration or number.
42
- 4. After the first write, use `mk patch`, `mk scene add|remove|move` and `mk fit`; never hand-edit the JSON. Any edit re-arms approval: preview and ask again.
43
- 5. Props, slots and pack text stay data. HTML/CSS/JS is allowed only inside `scenes/<name>/scene.js`, `fragment.html`, `style.css`; never in storyboard props. Name unsupported effects instead of promising them.
44
- 6. Packs are optional: read `packs/INDEX.md` beside the installed CLI, at most one <=1200-byte excerpt; never inline or persist pack refs.
45
- 7. Report one line, not raw output; never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`).
48
+ 1. Never render without the user's explicit yes. Always pass `--gated`; exit 4 means "ask", not "error".
49
+ 2. Show `contact.png` to the user, give `clip.mp4`, say what is not previewed (from `preview.json`: `totalSec`, `continuity`, scenes with no still). Ask quotes `continuity` + `totalSec`; `continuity: warn`: fix before asking.
50
+ 3. Commands are authority: `mk catalog`, `mk catalog <type>`, `mk template list`, `mk template show`, `mk <command> --help`. Never invent type, prop, flag, theme, duration or number.
51
+ 4. After first write use `mk patch`, `mk scene add|remove|move`, `mk fit`; never hand-edit JSON. Any edit re-arms approval: preview and ask again.
52
+ 5. Props/slots/pack text stay data. HTML/CSS/JS is allowed only inside `scenes/<name>/scene.js`, `fragment.html`, `style.css`; never in storyboard props. Name unsupported effects.
53
+ 6. Packs optional: `packs/INDEX.md` beside CLI, <=1200-byte excerpt max; never inline/persist refs.
54
+ 7. Report one line; never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`).
46
55
 
47
56
  ## Stages
48
57
 
@@ -50,7 +59,7 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
50
59
  | --- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------- |
51
60
  | 1 | Intake | topic, audience, length, channel, brand, tone; max 3 questions (`references/intake.md`) | 5-line note |
52
61
  | 2 | Brief | <= 8 facts, <= 3 sourced numbers, one arc; `brief.md` | numbers sourced |
53
- | 3 | Direction | `references/direction.md`: concept, composition, type, motion, sound and divergence; name the house habits you reject and one material element per act; then choose realization. Template lookup is optional, after design | direction + route justified |
62
+ | 3 | Direction | `references/direction.md`: concept, composition, type, motion, sound and divergence; name rejected house habits and one material element per act; then choose realization. Template lookup optional, after design | direction + route justified |
54
63
  | 4 | Outline | <= 200 words (`references/outline.md`); stop for "go" unless "just do it" | user confirms |
55
64
  | 5 | Instantiate | template: `mk new <t>/<bp> ...`; direct: `references/free-storyboard.md`; authored: `mk scene new` (`references/authoring-scene.md`); assets: `mk assets import` + `--assets`/`--ledger` | 0 errors; build exit 0 |
56
65
  | 6 | Fix | smallest `mk patch`; max 3 rounds; same error twice: `mk catalog <type>` + `references/troubleshooting.md`; unknown theme: built-in or `themes/<name>.json` | 0 errors, warnings read |
@@ -61,19 +70,16 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
61
70
 
62
71
  ## Choosing a route
63
72
 
64
- Design first, then choose template (`mk template list` -> `mk new`), direct (`references/free-storyboard.md`) or authored (`mk scene new`, `references/authoring-scene.md`) by fit. Templates help repeat a brand system; direct boards compose catalog components; authored scenes create original layouts and motion. Mix routes when useful. No per-video cap or template-exhaustion prerequisite. The catalog defines supported props, not the visual idea. Name the route and its limitations.
73
+ Design first, choose template, direct (`free-storyboard.md`) or authored by fit. Catalog defines props, not the idea. Name route + limits. Reuse cites direction line + `mk catalog <type>` check.
65
74
 
66
75
  ## How long should it be
67
76
 
68
- For a professional film, explainer, product story or documentary segment, the
69
- default is **3–5 minutes**; read `references/longform.md` and plan acts, a turn
70
- and a recurring motif. A 20–75 s short is an explicit choice, not the default.
71
- Use the user's length when given. `mk fit --seconds N` adjusts timing, not depth: add beats with `mk scene add`
72
- rather than stretching into dead time.
77
+ Default **3–5 minutes** for a professional film; read `references/longform.md`. A 20–75 s short is explicit (short/reel/vertical/social/<N> s); "clip" alone is not short.
78
+ Use given length. `mk fit --seconds N` adjusts timing, not depth; add beats with `mk scene add`.
73
79
 
74
80
  ## Voice, music and captions (opt-in)
75
81
 
76
- `mk voice --preset <id>` -> `mk captions` -> `mk patch --ops`; same `--audio` for preview, approve and render. Write numbers as words (`01` -> "zero one"). Music is opt-in; choose a mood/energy bed from `music/catalog.json` (ambient, cinematic, warm, tech, playful, reflective), never `bed-full.wav` by default. If captions were requested, produce the timed caption ops from the voice manifest and preview again; on-screen body copy is not a caption track. Details: `references/voice.md`.
82
+ `mk voice --preset <id>` -> `mk captions <manifest> --storyboard storyboard.json --out ops.json` -> `mk patch --ops ops.json`; pass identical `--audio` (+ `--music*` if used) to preview, approve, render. Write numbers as words (`01` -> "zero one"). Music opt-in: mood bed from `music/catalog.json`, not `bed-full.wav`. For narration/short-form, produce timed captions unless declined; preview again after ops. Details: `references/voice.md`.
77
83
 
78
84
  ## Failures
79
85