@anvpx/motion 0.1.56 → 0.1.94

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 (55) hide show
  1. package/CATALOG.md +23 -7
  2. package/README.md +7 -7
  3. package/mcpb/{motion-kit-0.1.56.mcpb → motion-kit-0.1.94.mcpb} +0 -0
  4. package/package.json +9 -9
  5. package/plugins/motion-kit/.claude-plugin/plugin.json +1 -1
  6. package/plugins/motion-kit/README.md +3 -3
  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/skills/motion-kit/SKILL.md +57 -50
  11. package/plugins/motion-kit/skills/motion-kit/references/amplify.md +258 -258
  12. package/plugins/motion-kit/skills/motion-kit/references/common-mistakes.md +67 -67
  13. package/plugins/motion-kit/skills/motion-kit/references/design-taste.md +114 -0
  14. package/plugins/motion-kit/skills/motion-kit/references/direction.md +28 -21
  15. package/plugins/motion-kit/skills/motion-kit/references/free-storyboard.md +2 -2
  16. package/plugins/motion-kit/skills/motion-kit/references/index.md +17 -4
  17. package/plugins/motion-kit/skills/motion-kit/references/intake.md +5 -7
  18. package/plugins/motion-kit/skills/motion-kit/references/patching.md +1 -0
  19. package/plugins/motion-kit/skills/motion-kit/references/patterns.md +1 -1
  20. package/plugins/motion-kit/skills/motion-kit/references/quality-bar.md +37 -4
  21. package/plugins/motion-kit/skills/motion-kit/references/review.md +17 -17
  22. package/plugins/motion-kit/skills/motion-kit/references/scene-recipes.md +114 -111
  23. package/plugins/motion-kit/skills/motion-kit/references/slop.md +46 -46
  24. package/plugins/motion-kit/skills/motion-kit/references/storyboard-json.md +25 -25
  25. package/plugins/motion-kit/skills/motion-kit/references/themes.md +1 -1
  26. package/plugins/motion-kit/skills/motion-kit/references/troubleshooting.md +81 -81
  27. package/plugins/motion-kit/skills/motion-kit/references/visual-forms.md +54 -0
  28. package/plugins/motion-kit/skills/motion-kit/references/voice.md +15 -13
  29. package/plugins/motion-kit/skills/motion-kit/references/world-design.md +112 -0
  30. package/shared/themes/bold-dark.json +18 -1
  31. package/shared/themes/bold-light.json +18 -1
  32. package/shared/themes/calm-dark.json +19 -2
  33. package/shared/themes/calm-light.json +19 -2
  34. package/shared/themes/tech-dark.json +19 -9
  35. package/shared/themes/tech-light.json +19 -9
  36. package/skills/motion-kit/SKILL.md +57 -50
  37. package/skills/motion-kit/references/amplify.md +258 -258
  38. package/skills/motion-kit/references/common-mistakes.md +67 -67
  39. package/skills/motion-kit/references/design-taste.md +114 -0
  40. package/skills/motion-kit/references/direction.md +28 -21
  41. package/skills/motion-kit/references/free-storyboard.md +2 -2
  42. package/skills/motion-kit/references/index.md +17 -4
  43. package/skills/motion-kit/references/intake.md +5 -7
  44. package/skills/motion-kit/references/patching.md +1 -0
  45. package/skills/motion-kit/references/patterns.md +1 -1
  46. package/skills/motion-kit/references/quality-bar.md +37 -4
  47. package/skills/motion-kit/references/review.md +17 -17
  48. package/skills/motion-kit/references/scene-recipes.md +114 -111
  49. package/skills/motion-kit/references/slop.md +46 -46
  50. package/skills/motion-kit/references/storyboard-json.md +25 -25
  51. package/skills/motion-kit/references/themes.md +1 -1
  52. package/skills/motion-kit/references/troubleshooting.md +81 -81
  53. package/skills/motion-kit/references/visual-forms.md +54 -0
  54. package/skills/motion-kit/references/voice.md +15 -13
  55. package/skills/motion-kit/references/world-design.md +112 -0
@@ -87,20 +87,16 @@
87
87
  "font": {
88
88
  "$type": "fontFamily",
89
89
  "sans": {
90
- "$value": ["Space Grotesk", "system-ui", "sans-serif"]
90
+ "$type": "fontFamily",
91
+ "$value": ["Inter", "system-ui", "sans-serif"]
91
92
  },
92
93
  "display": {
94
+ "$type": "fontFamily",
93
95
  "$value": ["Space Grotesk", "system-ui", "sans-serif"]
94
96
  },
95
97
  "mono": {
96
- "$value": [
97
- "JetBrains Mono",
98
- "ui-monospace",
99
- "SFMono-Regular",
100
- "Menlo",
101
- "Consolas",
102
- "monospace"
103
- ]
98
+ "$type": "fontFamily",
99
+ "$value": ["JetBrains Mono", "ui-monospace", "Consolas", "monospace"]
104
100
  }
105
101
  },
106
102
  "fontSize": {
@@ -356,5 +352,19 @@
356
352
  }
357
353
  ]
358
354
  }
355
+ },
356
+ "terrain": {
357
+ "light": {
358
+ "$type": "color",
359
+ "$value": "#c6bdb0"
360
+ },
361
+ "mid": {
362
+ "$type": "color",
363
+ "$value": "#a29788"
364
+ },
365
+ "deep": {
366
+ "$type": "color",
367
+ "$value": "#776c5f"
368
+ }
359
369
  }
360
370
  }
@@ -6,89 +6,96 @@ 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.56`. 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.94`. 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
- 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, 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
- + route template|direct <concrete noun -> direct + 3D + camera>
23
- ```
24
- 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.
25
- 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`).
26
- 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.
27
- 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`.
13
+ 1. `mk doctor`. If narration or music was asked and the voice rows are missing: try `MOTION_VOICE_PYTHON` (or `--python`) with a working 3.12 venv; only if none exists, stop and get agreement to ship silent (`references/setup.md`). Music needs narration (`--music` requires `--audio`).
14
+ 2. Intake, then brief: <=8 facts, every number sourced (`references/intake.md`; thin ask: `references/amplify.md`).
15
+ 3. Direction (`references/direction.md`, `references/world-design.md`, `references/design-taste.md`, `references/visual-forms.md`): audience + content spine, the visual argument, the world (hero/environment/light/depth/camera) and a beat table (beat | question | visual form | shot | sound). Send a <=200-word outline and wait for "go" (`references/outline.md`).
16
+ 4. Route: template (`mk template list --for "<brief>"`, then `mk new <t>/<bp>`), direct (`references/free-storyboard.md`) or authored (`references/authoring-scene.md`); `mk validate` to 0 errors (build exit 0).
17
+ 5. Audio (skip if not asked): write `narration` on each base scene, then `mk voice storyboard.json --preset <id>`, `mk captions <manifest> --storyboard storyboard.json --out ops.json`, `mk patch storyboard.json --ops ops.json`.
18
+ 6. `mk preview storyboard.json --full` plus the audio flags below; open `contact.png`, watch the clip, read `preview.json` (`references/quality-bar.md`); ask.
19
+ 7. On yes: `mk approve storyboard.json --note "<their words>"`, then `mk render storyboard.json --gated --verify` plus the same audio flags. Output: `out/project/final.mp4`.
28
20
 
29
21
  ## Read when
30
22
 
31
23
  | File | Read when |
32
24
  | --------------------------------- | -------------------------------------------------------------- |
33
- | `references/direction.md` | invent the visual argument before choosing a realization route |
34
- | `references/knowledge-routing.md` | one unresolved craft or technical decision; lazy craft-card index |
35
- | `references/content-pack.md` | organize creative intent, beats, asset rights, audio and sourced facts |
36
- | `references/longform.md` | a 3–5 minute film, acts, beat budget, recurring motif, long-form sound |
25
+ | `references/visual-forms.md` | before choosing scenes: form per beat, slide-deck test |
26
+ | `references/design-taste.md` | the visual bar, refusals, how to expand a thin prompt |
27
+ | `references/world-design.md` | audience, content spine, world, shot list, effects |
28
+ | `references/direction.md` | invent the visual argument and the world |
29
+ | `references/knowledge-routing.md` | one unresolved craft or technical decision |
30
+ | `references/content-pack.md` | organize beats, facts, rights, audio |
31
+ | `references/longform.md` | a 3–5 minute film, acts, beat budget |
37
32
  | `references/themes.md` | theme or 3D look |
38
- | `references/worked-example.md` | first build; the complete loop and output shapes |
39
33
  | `references/free-storyboard.md` | direct route: shape and write the board |
40
- | `references/storyboard-json.md` | field shapes, overlays, assets, or decoding a validation error |
41
- | `references/density.md` | thin frame, text-heavy board, or long cut |
42
- | `references/scene-recipes.md` | type for a beat and prop shape; recipes (short-form/vertical, `stair`, whiteboard, mechanism) |
43
- | `references/patching.md` | edit after first write, or patch flag refusal |
34
+ | `references/storyboard-json.md` | field shapes, overlays, assets, validation errors |
35
+ | `references/scene-recipes.md` | the scene type for a beat |
36
+ | `references/patching.md` | edit after first write, or patch refusal |
44
37
  | `references/quality-bar.md` | judging the preview and what to say before asking |
45
- | `references/common-mistakes.md` | command refuses, or flag/field in doubt |
46
- | `references/index.md` | full catalog when unsure which reference to load |
38
+ | `references/common-mistakes.md` | a command refuses, or a flag is in doubt |
39
+ | `references/index.md` | full catalog when the table above is not enough |
40
+
47
41
  ## Rules
48
42
 
49
- 1. Never render without the user's explicit yes. Always pass `--gated`; exit 4 means "ask", not "error".
50
- 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.
51
- 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.
52
- 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.
53
- 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.
54
- 6. Packs optional: `packs/INDEX.md` beside CLI, <=1200-byte excerpt max; never inline/persist refs.
55
- 7. Report one line; never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`).
43
+ 1. Never render without the user's explicit yes; always pass `--gated`. Exit 4 means "ask", not "error". Silence or "looks fine" is not a yes.
44
+ 2. Show `contact.png` to the user; give the clip; name what is not previewed from `preview.json` (`totalSec`, `clip.full`, `continuity`, missing stills). `continuity: warn`: repair before asking.
45
+ 3. Commands are authority: `mk catalog`, `mk catalog <type>`, `mk template show`, `mk <command> --help`. Never invent types, props, flags, durations or numbers.
46
+ 4. No slide decks. A film of 4+ base scenes needs at least a third visual-bearing (`chart`, `flow`, `steps`, `timeline`, `compare`, `icon-grid`, `scene3d`, `media-frame`, `kinetic`, `stair`, `table`, `code`, `waveform`); name each beat's form before writing it (`references/visual-forms.md`).
47
+ 5. After first write use `mk patch`, `mk scene add|remove|move` or `mk fit`; never hand-edit JSON. Any edit re-arms approval: preview and ask again.
48
+ 6. 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. Packs optional: load `packs/INDEX.md` lazily, <=1200-byte excerpt max; never inline or persist refs. Name unsupported effects.
49
+ 7. Pass identical `--audio`/`--music*` flags to preview, approve and render. Report one line; never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`).
56
50
 
57
51
  ## Stages
58
52
 
59
53
  | # | Stage | Do | Done when |
60
- | --- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------- |
54
+ | --- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------ |
61
55
  | 1 | Intake | topic, audience, length, channel, brand, tone; max 3 questions (`references/intake.md`) | 5-line note |
62
- | 2 | Brief | <= 8 facts, <= 3 sourced numbers, one arc; `brief.md` | numbers sourced |
63
- | 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 |
64
- | 4 | Outline | <= 200 words (`references/outline.md`); stop for "go" unless "just do it" | user confirms |
65
- | 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 |
66
- | 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 |
67
- | 7 | Preview | `mk preview --full` (complete board; add `--assets d --ledger f`, `--audio`, music when used); read stdout + `preview.json`; `references/quality-bar.md` | pack exists, full clip covers the board, `continuity` is `ok` |
68
- | 8 | Show + approve | contact + clip + 3-line summary + derived coverage; ask. On yes: `mk approve ... --note "<their words>"` (repeat the preview's `--out`/assets/audio flags) | explicit yes recorded |
69
- | 9 | Patch | smallest change; back to 6-7; max 3 rounds, then offer options | approval matches file |
70
- | 10 | Render | mp4: `mk render ... --gated --verify`; webm/mov/gif/png-sequence: `--format ... --gated`, omit `--verify` (mp4-only); add `--assets`/`--ledger`, `--resolution`, `--fps` | mp4: verify 0; other: output exists |
56
+ | 2 | Brief | <=8 facts, <=3 sourced numbers, one arc (`brief.md`) | numbers sourced |
57
+ | 3 | Direction | visual argument, world, beat->form table, rejected habits (`direction.md`, `visual-forms.md`) | direction + route justified |
58
+ | 4 | Outline | <=200 words (`references/outline.md`); stop for "go" unless "just do it" | user confirms |
59
+ | 5 | Instantiate | template/direct/authored; `mk validate`; `mk catalog <type>` for props | 0 errors; build exit 0 |
60
+ | 6 | Audio | narration -> `mk voice` -> `mk captions` -> `mk patch --ops` (`references/voice.md`) | manifest exists; qc state named |
61
+ | 7 | Fix | smallest `mk patch`; max 3 rounds; same error twice: `mk catalog <type>` + `references/troubleshooting.md` | 0 errors, warnings read |
62
+ | 8 | Preview | `mk preview storyboard.json --full` + audio flags; read stdout + `preview.json` | pack exists, continuity ok |
63
+ | 9 | Show + approve | contact + clip + 3-line summary + unchecked items; ask. On yes: `mk approve ... --note "<their words>"` | explicit yes recorded |
64
+ | 10 | Patch | smallest change; back to 7-8; max 3 rounds, then offer options | approval matches file |
65
+ | 11 | Render | `mk render ... --gated --verify` (mp4); `--format webm|mov|gif|png-sequence` omits `--verify`; add `--assets`/`--ledger` | mp4: verify 0; other: output exists |
71
66
 
72
67
  ## Choosing a route
73
68
 
74
- 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.
69
+ Design first, choose template, direct or authored by fit. `mk catalog` defines props, not the idea. Name the route and its limits. Reuse cites the direction line + `mk catalog <type>`.
75
70
 
76
71
  ## How long should it be
77
72
 
78
- 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.
79
- Use given length. `mk fit --seconds N` adjusts timing, not depth; add beats with `mk scene add`.
73
+ A one-sentence ask defaults to 45–90 s; say the length in the outline. Reserve 3–5 minutes for a brief that already carries an argument (`references/longform.md`). Use a given length. `mk fit --seconds N` adjusts timing, not depth; add beats with `mk scene add`.
80
74
 
81
75
  ## Voice, music and captions (opt-in)
82
76
 
83
- `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
+ One voice, one bed, captions timed. Copy the bed beside the storyboard (paths containing `..` are refused); never default to `bed-full.wav`.
78
+
79
+ ```sh
80
+ mk voice storyboard.json --preset warm-narrator
81
+ mk captions .mk/storyboard/voice-manifest.json --storyboard storyboard.json --out ops.json
82
+ mk patch storyboard.json --ops ops.json
83
+ mk preview storyboard.json --full --audio .mk/storyboard/voice-manifest.json \
84
+ --music epic-bed.wav --music-volume 0.35 --music-license LICENSE-CC0.txt
85
+ mk approve storyboard.json --note "approved"
86
+ mk render storyboard.json --gated --verify --audio .mk/storyboard/voice-manifest.json \
87
+ --music epic-bed.wav --music-volume 0.35 --music-license LICENSE-CC0.txt
88
+ ```
89
+
90
+ Write numbers as words in narration (`01` -> "zero one"). Details: `references/voice.md`.
84
91
 
85
92
  ## Failures
86
93
 
87
94
  | Symptom | Do |
88
95
  | ---------------- | ------------------------------------------------------------------- |
89
- | exit 4 | not an error: stage 8 |
96
+ | exit 4 | not an error: ask, or pass the missing `--audio`/`--music` flags |
90
97
  | exit 5 | fix the named scene, re-render once, then report |
91
98
  | same error twice | stop patching; `mk catalog <type>` and rewrite that scene |
92
99
  | anything else | `references/common-mistakes.md`, then `references/troubleshooting.md` |
93
100
 
94
- Done = approval hash matches, `mk verify` exit 0 is quoted, and unverified parts are named.
101
+ Storyboard-only request: stop here. Done = approval hash matches, `mk verify` exit 0 is quoted, and unverified parts are named.