@anvpx/motion 0.1.51 → 0.1.53
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.
- package/README.md +31 -16
- package/mcpb/motion-kit-0.1.53.mcpb +0 -0
- package/package.json +10 -9
- package/plugins/motion-kit/.claude-plugin/plugin.json +10 -1
- package/plugins/motion-kit/README.md +39 -24
- package/plugins/motion-kit/commands/mk-draft.md +2 -2
- package/plugins/motion-kit/commands/mk-new.md +4 -4
- package/plugins/motion-kit/commands/mk-render.md +2 -2
- package/plugins/motion-kit/icon.png +0 -0
- package/plugins/motion-kit/skills/motion-kit/SKILL.md +31 -25
- package/plugins/motion-kit/skills/motion-kit/references/amplify.md +258 -216
- package/plugins/motion-kit/skills/motion-kit/references/authoring-scene.md +4 -0
- package/plugins/motion-kit/skills/motion-kit/references/authoring-style.md +4 -0
- package/plugins/motion-kit/skills/motion-kit/references/common-mistakes.md +71 -58
- package/plugins/motion-kit/skills/motion-kit/references/content-pack.md +10 -1
- package/plugins/motion-kit/skills/motion-kit/references/craft-composition.md +43 -0
- package/plugins/motion-kit/skills/motion-kit/references/craft-critique.md +26 -1
- package/plugins/motion-kit/skills/motion-kit/references/craft-motion.md +28 -0
- package/plugins/motion-kit/skills/motion-kit/references/craft-sound.md +2 -0
- package/plugins/motion-kit/skills/motion-kit/references/craft-type.md +2 -0
- package/plugins/motion-kit/skills/motion-kit/references/critique-repair.md +9 -0
- package/plugins/motion-kit/skills/motion-kit/references/decision-packet.md +10 -0
- package/plugins/motion-kit/skills/motion-kit/references/density.md +12 -5
- package/plugins/motion-kit/skills/motion-kit/references/direction.md +27 -61
- package/plugins/motion-kit/skills/motion-kit/references/faux-ui.md +16 -1
- package/plugins/motion-kit/skills/motion-kit/references/free-storyboard.md +8 -2
- package/plugins/motion-kit/skills/motion-kit/references/index.md +70 -0
- package/plugins/motion-kit/skills/motion-kit/references/intake.md +32 -3
- package/plugins/motion-kit/skills/motion-kit/references/knowledge-routing.md +5 -1
- package/plugins/motion-kit/skills/motion-kit/references/longform.md +4 -0
- package/plugins/motion-kit/skills/motion-kit/references/outline.md +13 -2
- package/plugins/motion-kit/skills/motion-kit/references/patching.md +4 -0
- package/plugins/motion-kit/skills/motion-kit/references/patterns.md +46 -66
- package/plugins/motion-kit/skills/motion-kit/references/quality-bar.md +41 -93
- package/plugins/motion-kit/skills/motion-kit/references/review.md +17 -8
- package/plugins/motion-kit/skills/motion-kit/references/scene-recipes.md +111 -333
- package/plugins/motion-kit/skills/motion-kit/references/setup.md +4 -0
- package/plugins/motion-kit/skills/motion-kit/references/slop.md +46 -40
- package/plugins/motion-kit/skills/motion-kit/references/storyboard-json.md +9 -3
- package/plugins/motion-kit/skills/motion-kit/references/themes.md +4 -0
- package/plugins/motion-kit/skills/motion-kit/references/troubleshooting.md +81 -75
- package/plugins/motion-kit/skills/motion-kit/references/voice.md +10 -0
- package/plugins/motion-kit/skills/motion-kit/references/worked-decisions.md +4 -0
- package/plugins/motion-kit/skills/motion-kit/references/worked-example.md +4 -0
- package/skills/motion-kit/SKILL.md +31 -25
- package/skills/motion-kit/references/amplify.md +258 -216
- package/skills/motion-kit/references/authoring-scene.md +4 -0
- package/skills/motion-kit/references/authoring-style.md +4 -0
- package/skills/motion-kit/references/common-mistakes.md +71 -58
- package/skills/motion-kit/references/content-pack.md +10 -1
- package/skills/motion-kit/references/craft-composition.md +43 -0
- package/skills/motion-kit/references/craft-critique.md +26 -1
- package/skills/motion-kit/references/craft-motion.md +28 -0
- package/skills/motion-kit/references/craft-sound.md +2 -0
- package/skills/motion-kit/references/craft-type.md +2 -0
- package/skills/motion-kit/references/critique-repair.md +9 -0
- package/skills/motion-kit/references/decision-packet.md +10 -0
- package/skills/motion-kit/references/density.md +12 -5
- package/skills/motion-kit/references/direction.md +27 -61
- package/skills/motion-kit/references/faux-ui.md +16 -1
- package/skills/motion-kit/references/free-storyboard.md +8 -2
- package/skills/motion-kit/references/index.md +70 -0
- package/skills/motion-kit/references/intake.md +32 -3
- package/skills/motion-kit/references/knowledge-routing.md +5 -1
- package/skills/motion-kit/references/longform.md +4 -0
- package/skills/motion-kit/references/outline.md +13 -2
- package/skills/motion-kit/references/patching.md +4 -0
- package/skills/motion-kit/references/patterns.md +46 -66
- package/skills/motion-kit/references/quality-bar.md +41 -93
- package/skills/motion-kit/references/review.md +17 -8
- package/skills/motion-kit/references/scene-recipes.md +111 -333
- package/skills/motion-kit/references/setup.md +4 -0
- package/skills/motion-kit/references/slop.md +46 -40
- package/skills/motion-kit/references/storyboard-json.md +9 -3
- package/skills/motion-kit/references/themes.md +4 -0
- package/skills/motion-kit/references/troubleshooting.md +81 -75
- package/skills/motion-kit/references/voice.md +10 -0
- package/skills/motion-kit/references/worked-decisions.md +4 -0
- package/skills/motion-kit/references/worked-example.md +4 -0
|
@@ -1,75 +1,81 @@
|
|
|
1
|
-
# Troubleshooting and exit codes
|
|
2
|
-
|
|
3
|
-
Read the first `E` line, not the whole log. It names a pointer and usually a suggestion. Fix that one thing, re-run, then read the next.
|
|
4
|
-
|
|
5
|
-
## First response
|
|
6
|
-
|
|
7
|
-
1. `mk validate` / `mk preview`: read the pointer, compare that scene with `mk catalog <type>`, patch only that scene.
|
|
8
|
-
2. Same error twice: stop changing flags. Rewrite the named scene from its catalog example via `mk patch`, or choose a different type.
|
|
9
|
-
3. Third failure: stop. Tell the user the exact error and the two routes you tried; do not loop.
|
|
10
|
-
4. Never disable lint, raise a limit by editing the output, or hand-edit the JSON to get past a gate.
|
|
11
|
-
|
|
12
|
-
## Exit codes
|
|
13
|
-
|
|
14
|
-
| Exit | Meaning | Do |
|
|
15
|
-
| ---- | -------------------------------------------------------------------------- | ------------------------------------------------------------ |
|
|
16
|
-
| 0 | success (warnings allowed) | continue; read the warnings |
|
|
17
|
-
| 1 | tool, build or render failure | `mk doctor`; read the last lines and `render-log.txt` |
|
|
18
|
-
| 2 | bad flags, unreadable file, validation errors, no preview for `mk approve` | fix the named pointer; run `mk preview` before approve |
|
|
19
|
-
| 4 | AWAITING_APPROVAL (`--gated`) | not an error: show the pack, ask, `mk approve` only on a yes |
|
|
20
|
-
| 5 | QA failed (`mk verify`) | fix the named scene or param, re-render once, then report |
|
|
21
|
-
| 127 | required program missing | give the install hint from `mk doctor`; do not retry blindly |
|
|
22
|
-
|
|
23
|
-
## Named failures
|
|
24
|
-
|
|
25
|
-
| Symptom | Cause / fix |
|
|
26
|
-
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
27
|
-
| `unknown key(s): typo` | prop not in the catalog: remove it or `mk catalog <type>` |
|
|
28
|
-
| `must be a lowercase slug` | scene id has spaces or capitals; rename to `a-z`, `0-9`, hyphens |
|
|
29
|
-
| `overlay needs over: <base scene id>` | add `"over": "<existing base id>"` and a fitting `duration` |
|
|
30
|
-
| `duplicate scene id "x"` | every id must be unique |
|
|
31
|
-
| `unknown theme "x"; use one of: ...` | built-in theme, vendored `themes/x.json`, or `mk new`; `mk validate` does not catch this. If the theme is not built-in, preview before calling stage 5 done |
|
|
32
|
-
| `mk approve` exits 2 after a preview | the preview used `--out`/`--assets`/`--ledger`/audio flags; repeat those exact flags. The printed `approve:` hint may omit `--out`, so do not trust it alone |
|
|
33
|
-
| `no ledger row` or `no assetsDir` | run `mk assets import` for each file, then pass the same `--assets d --ledger f` to build/preview/approve/render; `image` is relative to `--assets` |
|
|
34
|
-
| `parent "/scenes/9" does not exist` | patch path skips a level; add the parent first or target an existing path |
|
|
35
|
-
| `mk new` slot error (`max 5`, `text<=...`) | shorten or merge; never edit the generated board past the slot limit |
|
|
36
|
-
| `mk fit` refuses "over the X s" | the scenes cannot stretch that far: `mk scene add`, then fit; never pad or stretch past the range |
|
|
37
|
-
| `mk approve` exits 2 | no preview for the current inputs, or a flag differs from preview; re-preview |
|
|
38
|
-
| `mk render --gated` exits 4 | no approval or the inputs changed; preview again and ask again |
|
|
39
|
-
| Preview exits 2 | lint or validation failed; read the still/scene it names |
|
|
40
|
-
| `verify` exit 5 | read the report line: streams, duration, fps or frame count; fix the named scene, render once |
|
|
41
|
-
| `mk captions` asks for `--storyboard` | ops need scene-relative paths; add the board |
|
|
42
|
-
| `mk voice` fails closed | Python 3.12 venv or voice extras missing; `mk doctor`; ship silent if unavailable |
|
|
43
|
-
| Preview says the clip was skipped | budget ran out; stills are still valid; offer `--budget-sec` |
|
|
44
|
-
| `mk state` exits 1 | an artifact claims more than its inputs prove; fix the overclaim, do not re-preview blindly |
|
|
45
|
-
| No vision / cannot open the image | say so; read `preview.json`; ask the user to open the pack and approve |
|
|
46
|
-
|
|
47
|
-
## Recover without a rewrite
|
|
48
|
-
|
|
49
|
-
- Wrong wording or number: `mk patch` replace the leaf.
|
|
50
|
-
- Wrong pacing: `mk patch` replace `duration`, or `mk fit --seconds N`.
|
|
51
|
-
- Wrong structure: `mk scene remove|move|add`, then validate.
|
|
52
|
-
- Wrong look: change the theme or the direction fields, not the copy.
|
|
53
|
-
- Wrong route: restart from `mk new` or `mk scene new`; do not bolt a second route onto a broken board.
|
|
54
|
-
|
|
55
|
-
After any successful edit the approval is stale. Preview again, then ask.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## Sound and the approval gate
|
|
59
|
-
|
|
60
|
-
Five refusals that cost this project two round trips each, all of them about audio.
|
|
61
|
-
They are the places a film stops one flag short of existing.
|
|
62
|
-
|
|
63
|
-
| Refusal | What it means | Do instead |
|
|
64
|
-
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
65
|
-
| `delivery FAIL — integrated loudness is -25 LUFS` | the gate judges EBU R128 integrated loudness, not peak level; delivery wants -14 ±2 LUFS with a true peak at or below -1 dBFS | re-run the mix so the render reports about -14 LUFS, then re-render; the render prints its own LUFS and true peak — read that line before re-rendering |
|
|
66
|
-
| `delivery FAIL — no audio stream` | a silent mp4 cannot pass delivery; the gate requires an audio stream, not merely a quiet one | narrate (`mk voice`) or add a voice track; do not ship silence |
|
|
67
|
-
| `--music needs --audio: the bed loops to the narration length` | there is no music-only film; the bed length follows the voice manifest | run `mk voice` first, then pass `--audio <manifest> --music <bed>` |
|
|
68
|
-
| `cannot read --music-license CC0-1.0: not found` | the flag takes a **path to a licence file**, not an SPDX id | `--music-license music/LICENSE-CC0.txt` |
|
|
69
|
-
| `refusing music approval: the preview clip was not mixed with this bed/volume/license` | the approval hash covers bed, volume **and** licence, so every audio flag used at render must also be used at preview | pass the identical audio flags to `mk preview` and `mk approve` |
|
|
70
|
-
| `music bed "…" escapes the project` | a gated render only accepts files inside the board's own directory | copy the bed and its licence beside the board, then reference them relatively |
|
|
71
|
-
|
|
72
|
-
The rule behind all five: **preview, approve and render take the same flags.** Any
|
|
73
|
-
difference — a volume, a licence path, a bed copied from elsewhere — is a new input
|
|
74
|
-
set and the approval no longer applies. Copy the flag block once and paste it into all
|
|
75
|
-
three commands.
|
|
1
|
+
# Troubleshooting and exit codes
|
|
2
|
+
|
|
3
|
+
Read the first `E` line, not the whole log. It names a pointer and usually a suggestion. Fix that one thing, re-run, then read the next.
|
|
4
|
+
|
|
5
|
+
## First response
|
|
6
|
+
|
|
7
|
+
1. `mk validate` / `mk preview`: read the pointer, compare that scene with `mk catalog <type>`, patch only that scene.
|
|
8
|
+
2. Same error twice: stop changing flags. Rewrite the named scene from its catalog example via `mk patch`, or choose a different type.
|
|
9
|
+
3. Third failure: stop. Tell the user the exact error and the two routes you tried; do not loop.
|
|
10
|
+
4. Never disable lint, raise a limit by editing the output, or hand-edit the JSON to get past a gate.
|
|
11
|
+
|
|
12
|
+
## Exit codes
|
|
13
|
+
|
|
14
|
+
| Exit | Meaning | Do |
|
|
15
|
+
| ---- | -------------------------------------------------------------------------- | ------------------------------------------------------------ |
|
|
16
|
+
| 0 | success (warnings allowed) | continue; read the warnings |
|
|
17
|
+
| 1 | tool, build or render failure | `mk doctor`; read the last lines and `render-log.txt` |
|
|
18
|
+
| 2 | bad flags, unreadable file, validation errors, no preview for `mk approve` | fix the named pointer; run `mk preview` before approve |
|
|
19
|
+
| 4 | AWAITING_APPROVAL (`--gated`) | not an error: show the pack, ask, `mk approve` only on a yes |
|
|
20
|
+
| 5 | QA failed (`mk verify`) | fix the named scene or param, re-render once, then report |
|
|
21
|
+
| 127 | required program missing | give the install hint from `mk doctor`; do not retry blindly |
|
|
22
|
+
|
|
23
|
+
## Named failures
|
|
24
|
+
|
|
25
|
+
| Symptom | Cause / fix |
|
|
26
|
+
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
27
|
+
| `unknown key(s): typo` | prop not in the catalog: remove it or `mk catalog <type>` |
|
|
28
|
+
| `must be a lowercase slug` | scene id has spaces or capitals; rename to `a-z`, `0-9`, hyphens |
|
|
29
|
+
| `overlay needs over: <base scene id>` | add `"over": "<existing base id>"` and a fitting `duration` |
|
|
30
|
+
| `duplicate scene id "x"` | every id must be unique |
|
|
31
|
+
| `unknown theme "x"; use one of: ...` | built-in theme, vendored `themes/x.json`, or `mk new`; `mk validate` does not catch this. If the theme is not built-in, preview before calling stage 5 done |
|
|
32
|
+
| `mk approve` exits 2 after a preview | the preview used `--out`/`--assets`/`--ledger`/audio flags; repeat those exact flags. The printed `approve:` hint may omit `--out`, so do not trust it alone |
|
|
33
|
+
| `no ledger row` or `no assetsDir` | run `mk assets import` for each file, then pass the same `--assets d --ledger f` to build/preview/approve/render; `image` is relative to `--assets` |
|
|
34
|
+
| `parent "/scenes/9" does not exist` | patch path skips a level; add the parent first or target an existing path |
|
|
35
|
+
| `mk new` slot error (`max 5`, `text<=...`) | shorten or merge; never edit the generated board past the slot limit |
|
|
36
|
+
| `mk fit` refuses "over the X s" | the scenes cannot stretch that far: `mk scene add`, then fit; never pad or stretch past the range |
|
|
37
|
+
| `mk approve` exits 2 | no preview for the current inputs, or a flag differs from preview; re-preview |
|
|
38
|
+
| `mk render --gated` exits 4 | no approval or the inputs changed; preview again and ask again |
|
|
39
|
+
| Preview exits 2 | lint or validation failed; read the still/scene it names |
|
|
40
|
+
| `verify` exit 5 | read the report line: streams, duration, fps or frame count; fix the named scene, render once |
|
|
41
|
+
| `mk captions` asks for `--storyboard` | ops need scene-relative paths; add the board |
|
|
42
|
+
| `mk voice` fails closed | Python 3.12 venv or voice extras missing; `mk doctor`; ship silent if unavailable |
|
|
43
|
+
| Preview says the clip was skipped | budget ran out; stills are still valid; offer `--budget-sec` |
|
|
44
|
+
| `mk state` exits 1 | an artifact claims more than its inputs prove; fix the overclaim, do not re-preview blindly |
|
|
45
|
+
| No vision / cannot open the image | say so; read `preview.json`; ask the user to open the pack and approve |
|
|
46
|
+
|
|
47
|
+
## Recover without a rewrite
|
|
48
|
+
|
|
49
|
+
- Wrong wording or number: `mk patch` replace the leaf.
|
|
50
|
+
- Wrong pacing: `mk patch` replace `duration`, or `mk fit --seconds N`.
|
|
51
|
+
- Wrong structure: `mk scene remove|move|add`, then validate.
|
|
52
|
+
- Wrong look: change the theme or the direction fields, not the copy.
|
|
53
|
+
- Wrong route: restart from `mk new` or `mk scene new`; do not bolt a second route onto a broken board.
|
|
54
|
+
|
|
55
|
+
After any successful edit the approval is stale. Preview again, then ask.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## Sound and the approval gate
|
|
59
|
+
|
|
60
|
+
Five refusals that cost this project two round trips each, all of them about audio.
|
|
61
|
+
They are the places a film stops one flag short of existing.
|
|
62
|
+
|
|
63
|
+
| Refusal | What it means | Do instead |
|
|
64
|
+
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
65
|
+
| `delivery FAIL — integrated loudness is -25 LUFS` | the gate judges EBU R128 integrated loudness, not peak level; delivery wants -14 ±2 LUFS with a true peak at or below -1 dBFS | re-run the mix so the render reports about -14 LUFS, then re-render; the render prints its own LUFS and true peak — read that line before re-rendering |
|
|
66
|
+
| `delivery FAIL — no audio stream` | a silent mp4 cannot pass delivery; the gate requires an audio stream, not merely a quiet one | narrate (`mk voice`) or add a voice track; do not ship silence |
|
|
67
|
+
| `--music needs --audio: the bed loops to the narration length` | there is no music-only film; the bed length follows the voice manifest | run `mk voice` first, then pass `--audio <manifest> --music <bed>` |
|
|
68
|
+
| `cannot read --music-license CC0-1.0: not found` | the flag takes a **path to a licence file**, not an SPDX id | `--music-license music/LICENSE-CC0.txt` |
|
|
69
|
+
| `refusing music approval: the preview clip was not mixed with this bed/volume/license` | the approval hash covers bed, volume **and** licence, so every audio flag used at render must also be used at preview | pass the identical audio flags to `mk preview` and `mk approve` |
|
|
70
|
+
| `music bed "…" escapes the project` | a gated render only accepts files inside the board's own directory | copy the bed and its licence beside the board, then reference them relatively |
|
|
71
|
+
|
|
72
|
+
The rule behind all five: **preview, approve and render take the same flags.** Any
|
|
73
|
+
difference — a volume, a licence path, a bed copied from elsewhere — is a new input
|
|
74
|
+
set and the approval no longer applies. Copy the flag block once and paste it into all
|
|
75
|
+
three commands.
|
|
76
|
+
|
|
77
|
+
## Applicability, counterexample and provenance
|
|
78
|
+
|
|
79
|
+
The exit codes, named failures and audio refusals are motion-kit observations of the current CLI surface, not a vendor specification. A symptom can have more than one cause; read the first `E` line and the pointer before assuming a row applies. Counterexamples: exit 0 with warnings is still success; exit 4 under `--gated` is an approval wait, not a failure; a silent board can be intentional with `--allow-silent`. Verify the exact message and current flags before acting, and re-run after each single fix.
|
|
80
|
+
|
|
81
|
+
**Check:** the first E/failure line matches a symptom above before applying a fix; the fix is verified by re-running the same command once. If the message differs, do not force a match.
|
|
@@ -77,3 +77,13 @@ Do not use two beds in one film unless the direction explicitly calls for a scor
|
|
|
77
77
|
| `mk qc` WARN or UNKNOWN | report the exact state; do not call it PASS |
|
|
78
78
|
| `mk captions` omits words | tell the user which scene and how many; adjust the script or duration |
|
|
79
79
|
| render exit 4 after audio work | the audio inputs drifted from approval; re-preview and re-approve |
|
|
80
|
+
|
|
81
|
+
## Levels (advisory, not a broadcast standard)
|
|
82
|
+
|
|
83
|
+
Aim programme around -14 LUFS with true peak around -1.5 dBTP; voice around -16 LUFS. Duck music about -5 dB under narration; keep SFX 8-20 dB under voice. Prefer two-pass loudnorm and AAC 192k at 48 kHz. Cut on the beat at 120-130 BPM; keep hard cuts within 2 frames. Silent remains valid when narration is not approved.
|
|
84
|
+
|
|
85
|
+
## Applicability, counterexample and provenance
|
|
86
|
+
|
|
87
|
+
**Applicability:** when narration, music or captions are requested or approved. **Counterexample:** a silent film is valid when narration is not approved; a voice preset may be wrong for the brief — choose by fit, not by default. **Provenance:** operational defaults of the motion-kit audio pipeline (Kokoro alignment, CC0 music beds); not speech-science or broadcast-loudness standards.
|
|
88
|
+
|
|
89
|
+
**Check:** `mk qc` reports PASS (or its exact state is quoted); every number in narration is written as words; no word lands in silence; preview, approve and render use identical `--audio`/`--music`/`--music-volume`/`--music-license` flags. If any fails, do not claim narrated or approved audio.
|
|
@@ -176,3 +176,7 @@ They are authored technical fixtures, not a measured quality benchmark. They do
|
|
|
176
176
|
not prove that a weaker model will reproduce the reasoning, that a reviewer will
|
|
177
177
|
prefer the result, or that the same decisions fit another brand. A precedent
|
|
178
178
|
that only changes copy or colour has not answered its question.
|
|
179
|
+
|
|
180
|
+
## Applicability, counterexample and provenance
|
|
181
|
+
|
|
182
|
+
The three compositions are authored technical fixtures, not a measured quality benchmark. They teach reasoning behind a shot, not a look to copy. Technical validity is not an aesthetic verdict; no example was reviewed for professional quality. Check: separate decision from surface; name what would falsify the same mechanism for another brief.
|
|
@@ -168,3 +168,7 @@ If this works, say "yes" and I will render; otherwise tell me which frame or lin
|
|
|
168
168
|
- The direct route needs no template, but it does need a theme that resolves (`default` here).
|
|
169
169
|
- Preview is cheap and silent; render is the expensive, gated step.
|
|
170
170
|
- A hash or a lint pass is not a quality review. The stills are.
|
|
171
|
+
|
|
172
|
+
## Applicability, counterexample and provenance
|
|
173
|
+
|
|
174
|
+
The example's numbers (4+6+4+4 durations, 16.5 s total) are what that board produced, not targets for every board. Copy the shape, not the words. The direct route needs no template but does need a theme that resolves. Check: `mk validate` prints 0 errors; preview contact.png and clip; render only after explicit approval.
|
|
@@ -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.
|
|
9
|
+
`mk` = `npx -y @anvpx/motion@0.1.53`. 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,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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` |
|
|
32
|
-
| `references/scene-recipes.md` |
|
|
33
|
-
| `references/patching.md` |
|
|
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` |
|
|
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.
|
|
40
|
-
2. Show `contact.png` to the user
|
|
41
|
-
3. Commands are
|
|
42
|
-
4. After
|
|
43
|
-
5. Props
|
|
44
|
-
6. Packs
|
|
45
|
-
7. Report one line
|
|
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
|
|
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,
|
|
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
|
-
|
|
69
|
-
|
|
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`;
|
|
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
|
|