cueframe 0.2.0 → 0.3.1

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.
@@ -0,0 +1,156 @@
1
+ ---
2
+ name: extracting-brand-kits
3
+ description: Use when the user says "make my video look like THIS" with a reference video, screenshots, or a moodboard — build a CueFrame brand kit FROM that inspiration so every subsequent compose speaks its visual language. Owns the extraction step: sample the reference's graphics-bearing frames, upload them as exemplars, reproduce each recurring motif as an authored graphic verified against the reference, and upsert the kit with the full language payload. Triggers on "match this style", "like this reference", "use this video as inspiration", "extract a brand kit", "moodboard". Hand off to cueframe-storyboard/composing-video once the kit is bound.
4
+ ---
5
+
6
+ # Extracting brand kits: reference pixels → a kit the engine honors
7
+
8
+ ## The one idea
9
+
10
+ **No summarization anywhere in the path.** A reference described in prose converges on house style
11
+ with the reference's palette — the pixels are the ground truth. You (the agent) are the extractor:
12
+ you SEE the reference, curate its frames, and reproduce its motifs as ordinary authored graphics,
13
+ verified against the reference by looking. The kit you produce carries (a) **exemplar frames** the
14
+ compose maker and judge both see, and (b) **motif skins** — card HTML the designer reproduces —
15
+ plus code-checked facts (caption profile, density, palette). Once bound to a project, the engine
16
+ takes over: the planner plans to your density, the designer sees your exemplars
17
+ (`view_style_reference`), the judge grades every candidate against them, and a half-applied kit
18
+ fails the compose loudly instead of shipping house style.
19
+
20
+ Everything below drives the public `/v1` API with your API key. Frames never pass through chat —
21
+ they go straight to storage via presigned PUTs.
22
+
23
+ ## 0. Prereqs
24
+
25
+ - An API key with `projects:write` (create_brand_kit gates on the `brand_kits` plan feature — check `get_account` first; 402 names the feature).
26
+ - `ffmpeg` locally, and the reference video file (download it first if it's a URL).
27
+ - Know the org's IDENTITY kit if one exists (`get_profile` → brandKits). Inspiration NEVER overwrites identity: logo, brand fonts, and identity color slots come from the existing kit (or stay for the user to fill) — extraction contributes the LANGUAGE only.
28
+
29
+ ## 1. Sample the reference (local, ffmpeg)
30
+
31
+ Uniform sampling misses short-lived graphics (1–3s overlays). Sample two ways and union:
32
+
33
+ ```bash
34
+ # scene cuts
35
+ ffmpeg -i ref.mp4 -vf "select='gt(scene,0.22)',showinfo" -vsync vfr scenes/%03d.jpg
36
+ # 2fps sweep (catches overlays that appear without a cut)
37
+ ffmpeg -i ref.mp4 -vf fps=2,scale=720:-1 -q:v 4 sweep/%04d.jpg
38
+ ```
39
+
40
+ Then LOOK at the frames and curate: keep the **graphics-bearing** ones — frames where a card,
41
+ pill, stat, lower-third, caption treatment, or end-card is visible and sharp. Drop near-duplicates.
42
+ **≤24 frames**, each downscaled to ≤720px width, jpeg. For each animated graphic, also note the
43
+ timestamp where it ENTERS (you'll classify its motion in step 5; re-watch that 1s window at
44
+ `ffmpeg -ss <t> -t 1 -i ref.mp4 -vf fps=12 burst/%02d.jpg` if you need to see the entrance).
45
+
46
+ Optional but recommended: build a contact sheet for the human's "right vibe?" check:
47
+ `ffmpeg -i frames/frame-%02d.jpg -filter_complex tile=6x4 sheet.jpg`.
48
+
49
+ ## 2. Upload the exemplars (the ingest door)
50
+
51
+ ```
52
+ POST /v1/brand-kits/exemplar-uploads { "count": <n>, "includeContactSheet": true }
53
+ ```
54
+
55
+ Returns presigned PUT slots under the org's `brand-inspiration/…` prefix — the ONLY namespace the
56
+ kit door accepts exemplar keys from. PUT each curated frame (order matters: frame-01 ↔ index 0 —
57
+ motif `evidence` arrays reference these indexes), PUT the sheet, keep the returned `key` list.
58
+ URLs expire in 15 minutes; re-POST for a fresh batch if you run over.
59
+
60
+ ## 3. Inventory the motifs
61
+
62
+ Look across the exemplars and list every RECURRING graphic treatment (expect ~5–12 for a designed
63
+ reference). For each, write:
64
+
65
+ - `id` — `m1`, `m2`, …
66
+ - `observed` — one precise sentence ("thin-outline rounded keyword pill, single word, beside subject").
67
+ - `role` — the closed vocabulary the planner/designer speak (exact values):
68
+ `title-card | stat | lower-third | pull-quote | hero | logo-tag | enumeration | sequence | comparison`.
69
+ Pick the role each motif best SERVES — the designer's steering matches on it exactly.
70
+ - `evidence` — the exemplar indexes (0-based) it appears in.
71
+ - `zone` — normalized `{x, y, w, h}` where it lives.
72
+ - Behind-the-subject motifs (text the speaker occludes): record them with `coverage: "skipped"` and
73
+ `skipReason: "behind-subject — card graphics render front-only"`. Do NOT attempt them.
74
+
75
+ Also read the CAPTION treatment off the frames (step 6 consumes it): plate or plateless? base/
76
+ highlight colors? case? emphasis styling? entrance feel (~ms)?
77
+
78
+ ## 4. Reproduce each motif as a card (author → look → refine, ≤3 iterations)
79
+
80
+ For each non-skipped motif, author it as a **card** (freeform HTML/CSS — rendered verbatim) and
81
+ verify it against the exemplar BY LOOKING:
82
+
83
+ 1. **Measure first**: read the exemplar — border weight, radius, padding, font size relative to
84
+ frame, colors. Measurement-seeded CSS gets you ~90% in one shot.
85
+ 2. Author `{ "kind": "card", "html": "…", "tokens": { … } }`. Bind every brand-swappable color
86
+ through `tokens` with `$brand:` refs (e.g. `"line": "$brand:colors.accent"`, referenced in CSS
87
+ as `var(--cf-line)`) so the kit's identity re-themes it. No `<script>`, no `@keyframes` (inert —
88
+ motion is step 5).
89
+ 3. Render it (`preview_frame` on a scratch session, or `preview_component` if you forked a
90
+ component) and compare the still against the exemplar side by side. Fix the largest visible
91
+ difference. Repeat — **cap 3 iterations**, keep the best.
92
+ 4. Record `diffScore` (your honest 0–1 same-language judgment) and `coverage`:
93
+ `"reproduced"` (≥0.8) or `"approximated"`.
94
+
95
+ Prefer a catalog primitive (`list_catalog`) over a card ONLY if it genuinely matches closer —
96
+ record it as `{ "kind": "overlay", "primitiveId": "…", "params": { … } }`. A custom component
97
+ (`{ "kind": "component", "componentId": "…" }`) only for motifs with internal motion (counters).
98
+
99
+ ## 5. Classify motion (closed vocabulary — never invent animation)
100
+
101
+ Watch each motif's entrance burst and map it:
102
+
103
+ - Graphic motion presets (exact values): `fade-up | slide-in-left | slide-in-right | scale-pop | stagger-reveal`,
104
+ with `enterMs` / `exitMs` / `staggerMs` timings you observed.
105
+ - Caption per-word entrances: `none | fade | word-pop | stagger-up`.
106
+ - Unsure or the reference does something the vocabulary can't say? Pick the NEAREST preset and set
107
+ `"confidence": "low"` — honesty beats fabrication; the vocabulary grows engine-side, not here.
108
+
109
+ ## 6. Compute the facts
110
+
111
+ - `captionProfile` — from step 3's caption read. The kit door speaks the full look: `color`,
112
+ `highlightColor`, `plate` (`"none"` for the clean plateless look), `entrance`, `entranceMs`,
113
+ `exitMs`, `emphasisColor/Scale/FontWeight/FontStyle`, `emphasisPlate` knobs, `textTransform`.
114
+ - `density` — `{ "graphicsPerMin": <count/duration*60>, "maxSimultaneous": <max overlapping> }`.
115
+ - Palette → `extraColors` entries `{ "hex", "label": "inspiration accent N", "usage": "swappable" }`.
116
+ NEVER write the identity `colors.*` slots, `headingFont`/`bodyFont`, or `logo` from the
117
+ reference — copy those from the base identity kit, or leave them for the user.
118
+ - `styleRubric` — 2–4 sentences the JUDGE will grade with: name the motif language, the caption
119
+ treatment, and what disqualifies a frame ("filled chips or plated captions are off-language").
120
+
121
+ ## 7. Upsert the kit + bind it
122
+
123
+ One `create_brand_kit` call (it's an upsert — re-POST the same `kitId` to curate):
124
+
125
+ ```jsonc
126
+ {
127
+ "kitId": "acme-launchfilm",
128
+ "name": "Acme × Launch Film",
129
+ // identity: copied from the base kit or neutral — never from the reference
130
+ "colors": { … }, "headingFont": { … }, "bodyFont": { … },
131
+ "extraColors": [ { "hex": "#F5B942", "label": "inspiration accent 1", "usage": "swappable" } ],
132
+ "captionProfile": { "plate": "none", "entrance": "fade", "entranceMs": 220, … },
133
+ "exemplarKeys": [ "<keys from step 2, in frame order>" ],
134
+ "contactSheetKey": "<sheet key>",
135
+ "motifs": [ { "id": "m1", "observed": "…", "body": { "kind": "card", … }, "motion": { "preset": "fade-up", "enterMs": 320 }, "role": "pull-quote", "zone": { … }, "evidence": [0, 2], "diffScore": 0.93, "coverage": "reproduced" } ],
136
+ "styleRubric": "…",
137
+ "density": { "graphicsPerMin": 4, "maxSimultaneous": 2 },
138
+ "inspiration": { "sources": ["<reference URL>"], "extractedAt": <now ms>, "extractionVersion": "skill-1" }
139
+ }
140
+ ```
141
+
142
+ The door validates loudly: exemplar keys must come from step 2's batch, motif roles/presets must be
143
+ in-vocabulary, evidence indexes must be in range. A 422 names exactly what to fix.
144
+
145
+ Then bind: `update_project { "brandKitId": "acme-launchfilm" }`. Show the human the contact sheet
146
+ ("right vibe?") before composing. From here, hand off to **cueframe-storyboard** — every compose
147
+ against the project now plans, designs, and JUDGES in the reference's language, and refuses to
148
+ ship house style if any part of the kit fails to resolve.
149
+
150
+ ## Failure honesty
151
+
152
+ - Reference has no graphics language (talking head, zero overlays)? Say so — upsert nothing, or a
153
+ captions-only kit. Don't invent motifs.
154
+ - A motif you can't match in 3 iterations ships as `"approximated"` with its real diffScore — the
155
+ judge's floor will surface it; don't inflate.
156
+ - Behind-subject motifs stay `"skipped"` with the reason. The engine refuses them loudly anyway.
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: launch-video
3
+ description: Turns screen recordings and product footage into a 30–90 second 16:9 launch film — payoff-first hook, real product surface punched in, a building bed or narration, one CTA end card. Triggers on "make a launch video", "announcement video for this feature", "turn this screen recording into a demo film", "product video from these captures", "we're shipping Friday and need a video", "feature announcement".
4
+ ---
5
+
6
+ # Launch video
7
+
8
+ You bring real screen recordings or product footage plus the one outcome the feature delivers;
9
+ you get back a 30–90 second 16:9 announcement that opens on the payoff, shows the actual product
10
+ doing the real thing, builds under a bed or narration, and lands on a single CTA.
11
+
12
+ ## Before you start
13
+
14
+ Nail the payoff sentence and collect the captures before any setup. When the first tool call
15
+ approaches and CueFrame isn't connected:
16
+
17
+ - **Claude Code:** offer to run
18
+ `claude mcp add --transport http cueframe https://api.cueframe.ai/v1/mcp` — browser OAuth,
19
+ one **Allow**.
20
+ - **Claude.ai / Claude Desktop:** Settings → Connectors → add a custom connector with
21
+ `https://api.cueframe.ai/v1/mcp`.
22
+ - **Other agents (Cursor, Codex, VS Code, Windsurf, Zed, Gemini CLI, Copilot CLI, …):**
23
+ run `npx -y cueframe install` — it detects what is on the machine and wires each one.
24
+ - **ChatGPT:** the CLI cannot wire it (there is no local config to write) — add
25
+ `https://api.cueframe.ai/v1/mcp` as a custom connector instead.
26
+
27
+ Keep the momentum — the video plan is the hard part, the connection is not.
28
+
29
+ ## Inputs
30
+
31
+ - **Real captures** (required): screen recordings, product footage, real output. CueFrame does
32
+ not screen-record — the user records (or uses a capture client) and you `import_media` the
33
+ file. Never mock what's missing; ask for the real capture.
34
+ - **The payoff**: the outcome in the user's words ("close the books two days faster"), plus the
35
+ CTA (one action) and launch date if any.
36
+ - **Brand kit**: project kit if present; ask for wordmark + accent color otherwise.
37
+ - **Voice**: default a building instrumental bed with captioned key lines; narrated VO if they
38
+ have a script or want one generated.
39
+
40
+ ## Workflow
41
+
42
+ 1. **Import the real surface.** `import_media` every capture; wait for ready;
43
+ `get_media_context` for what each recording actually shows (and the transcript, if narrated
44
+ footage exists). Inventory the strongest 3–5 real moments before writing a beat.
45
+ 2. **Open on the payoff, not the name.** The hook is the OUTCOME — the result on screen, the
46
+ pain disappearing — inside the first seconds. "Introducing X" is throat-clearing; the
47
+ outcome-first frame is the hook. No logo, no title card first.
48
+ 3. **Structure: hook → problem → reveal → proof → CTA.** `new_composition` at 16:9 →
49
+ `apply_composition` with the beats. Pacing tightens as the payoff approaches — clips get
50
+ shorter toward the reveal.
51
+ 4. **Punch in on the real pixels.** A click target is tiny in a full-frame capture;
52
+ `setCropIntents` with `point` focus segments zooming to the exact UI region per step,
53
+ `frame-center` in the gaps, tiling every clip. The single biggest amateur-to-pro delta in
54
+ product video.
55
+ 5. **Cards for the claims and the end card.** Key lines and the closing CTA are `kind:"card"`
56
+ HTML in the brand's type and palette — persisted first, then shelled with
57
+ `applyMotionPreset` in a FOLLOWING `apply_composition` call. One CTA on the end card, held
58
+ long enough to read, plus the date if there is one.
59
+ 6. **Audio that builds — required.** `search_resources` for a bed honoring the brand kit's
60
+ `musicMood`, energy arcing toward the reveal; place it `audioRole:"music"`,
61
+ `materializeGrid { grid:"beat" }`, and land beat boundaries and the reveal on the grid. If
62
+ narrated: the VO is the rhythm authority instead — cut to the voice and duck the bed under
63
+ it. Silence is almost never right for a launch; if chosen anyway, record the decision and
64
+ reason in the delivery note.
65
+ 7. **Caption narration.** If there is a voice, `captions.fromTranscript` (or authored word
66
+ timings for generated VO), styled legible via `setCaptionStyle`. Captions are mandatory when
67
+ narrated.
68
+ 8. **Preview, judge, one render.** `preview_frame` at t=0, hook-end, the reveal, and the end
69
+ card; describe each still — is that a REAL capture on screen? Then `score_composition` with
70
+ the payoff line as `editorialIntent`; fix worst-first to ≥ 7.5; `create_render` →
71
+ `wait_job (kind:"render")`.
72
+
73
+ ## What good looks like
74
+
75
+ Quoted from `video-craft-standards` §2 (Launch film / feature announcement) — the full checklist
76
+ wins:
77
+
78
+ > **MUST (K)** Payoff-first hook: the OUTCOME, not the feature name ("Close the books two days
79
+ > faster" beats "Introducing the reconciliation module"). No throat-clearing.
80
+
81
+ > **MUST** Narration or a bed that builds toward the reveal; pacing tightens as the payoff
82
+ > approaches. **MUST** Real product surface: actual UI/screens/output — never mocked.
83
+
84
+ > **MUST** End card with a single CTA. **MUST** Captions present when narrated.
85
+
86
+ And cross-cutting: *"Footage carries the video: real footage / real UI / real data ≥60% of
87
+ runtime for footage-first classes."*
88
+
89
+ ## Delivering
90
+
91
+ Close with the handoff, never "done":
92
+
93
+ - The render link and where it lives (project + composition id).
94
+ - Attribution for the bed and any licensed asset (provider, id, author).
95
+ - The intentional-silence note with its reason, in the rare case silence was chosen.
96
+ - A one-line cutdown offer: the 16:9 master can become 9:16 / 1:1 siblings for social (see
97
+ `every-format-from-one-edit`).
@@ -0,0 +1,105 @@
1
+ ---
2
+ name: make-a-social-reel
3
+ description: Turns footage into a finished 9:16 social reel — hook inside 2 seconds, poster-grade type, a decided music bed, one final render. Triggers on "make me a reel from this", "turn this into a short", "cut a clip for TikTok / Reels / Shorts", "make this vertical", "make a social clip from this video", "the opening is boring", "can you make this pop for Instagram".
4
+ ---
5
+
6
+ # Make a social reel
7
+
8
+ You hand over footage (a file URL, a talk, a product moment); you get back a 9:16 reel of 8–30
9
+ seconds that opens on its strongest image, cuts on the music, carries brand-grade type, and ends
10
+ on a deliberate beat — with a download link, not a "done".
11
+
12
+ ## Before you start
13
+
14
+ Don't stall the conversation on setup — get the footage, the hook, and the tone agreed first.
15
+ When the first real tool call is imminent and CueFrame isn't connected:
16
+
17
+ - **Claude Code:** offer to run
18
+ `claude mcp add --transport http cueframe https://api.cueframe.ai/v1/mcp` — a browser tab
19
+ opens and the user clicks **Allow**.
20
+ - **Claude.ai / Claude Desktop:** Settings → Connectors → add a custom connector with
21
+ `https://api.cueframe.ai/v1/mcp`.
22
+ - **Other agents (Cursor, Codex, VS Code, Windsurf, Zed, Gemini CLI, Copilot CLI, …):**
23
+ run `npx -y cueframe install` — it detects what is on the machine and wires each one.
24
+ - **ChatGPT:** the CLI cannot wire it (there is no local config to write) — add
25
+ `https://api.cueframe.ai/v1/mcp` as a custom connector instead.
26
+
27
+ Thirty seconds, then straight back to the reel — treat it as a detour, never a gate.
28
+
29
+ ## Inputs
30
+
31
+ - **Footage** (required): a public https URL, or something already in `list_media`. If they have
32
+ nothing, ask for the real thing before reaching for stock — real footage is the whole edge.
33
+ - **Brand kit**: use the project's kit if one exists; otherwise ask for a color + font or extract
34
+ one. Default: proceed with a neutral palette and say so.
35
+ - **Tone / platform**: default punchy, 15–25s, sound-on-with-captions. Ask only if the answer
36
+ would change the cut.
37
+
38
+ ## Workflow
39
+
40
+
41
+ 0. **Find the claim (before anything else).** Interrogate the brand/material
42
+ for its tension — what it believes that its category doesn't — and write
43
+ the claim in one sentence. Derive the shot list, the bed's mood/tempo, the
44
+ pacing, and every card's copy FROM that sentence. If you cannot state the
45
+ claim, you are not ready to compose (video-craft-standards: the
46
+ controlling idea is kill-level).
47
+
48
+ 1. **Import and read the footage.** `import_media` (public https URL), poll `list_media` until
49
+ ready, then `get_media_context` — faces, transcript, word timings. The context tells you
50
+ where the hook lives; don't guess.
51
+ 2. **Pick the hook before you touch the timeline.** The strongest image, motion, or claim in the
52
+ footage — the outcome, not the feature name, is the hook. If the best moment is at 0:47, the
53
+ reel opens at 0:47. No logo-first cold opens, ever.
54
+ 3. **Seed the timeline.** `new_composition` at 9:16, then `apply_composition`: clips trimmed to
55
+ the beats you chose, a new visual beat at least every ~4 seconds. Cut TO moments; never let a
56
+ clip run out.
57
+ 4. **Reframe for vertical.** `setCropIntents` with segments that tile every clip —
58
+ `active-speaker` or `face` focus when a person carries it, `point` focus on the action
59
+ otherwise. A wide shot letterboxed into 9:16 is a fail, not a fallback.
60
+ 5. **Author the type as cards.** Brand text is `kind:"card"` HTML — your typography,
61
+ palette-as-fields, considered alignment — persisted first, then shelled with
62
+ `applyMotionPreset` in a FOLLOWING `apply_composition` call. Catalog text primitives are
63
+ utility only.
64
+ 6. **Decide the audio — required, never skipped.** Search a bed with `search_resources` honoring
65
+ the brand kit's `musicMood`, place it as an `audioRole:"music"` clip, then `materializeGrid`
66
+ `{ grid:"beat" }` and land your cut points and transition midpoints on the markers. If the
67
+ piece is genuinely better silent, that is a decision — record it and its reason in the
68
+ delivery note. A reel whose silence nobody chose is not done.
69
+ 7. **Caption any speech.** `captions.fromTranscript` with the mediaId, styled via
70
+ `setCaptionStyle` (plated, bottom, out of the mouth/eyes). Most social viewing is sound-off;
71
+ don't karaoke a beat with no speech.
72
+ 8. **Look, then get judged.** `preview_frame` at t=0, hook-end, and every beat boundary;
73
+ describe each still in words before scoring it. Then `score_composition` with your one-line
74
+ vision as `editorialIntent` — fix the worst criterion first. Ship at composite ≥ 7.5, budget
75
+ 3–5 passes.
76
+ 9. **One final render.** `create_render` → `wait_job (kind:"render")`. Iterate with previews,
77
+ not renders.
78
+
79
+ ## What good looks like
80
+
81
+ Quoted from `video-craft-standards` §1 (Social reel) — the full checklist wins over this skill
82
+ wherever they disagree:
83
+
84
+ > **MUST (K)** The hook lands inside 2 seconds: the strongest image, motion, or claim opens the
85
+ > piece. No logo-first cold opens, no fade-in-from-black preambles.
86
+
87
+ > **MUST** Typography is poster-grade: composed plates/fields in the brand palette, considered
88
+ > alignment and scale. **K:** centered white text floating on footage.
89
+
90
+ > **MUST** Pacing is cut-driven: a new visual beat at least every ~4s […] **MUST** Ends on a
91
+ > deliberate beat: tagline, logo, or CTA lockup — not a clip running out.
92
+
93
+ And the cross-cutting audio rule:
94
+
95
+ > **MUST** Audio is decided, never defaulted […] **K:** a render whose silence nobody chose.
96
+
97
+ ## Delivering
98
+
99
+ Never end with "done". The last message carries:
100
+
101
+ - The render's download URL and where it lives (the project, by composition id).
102
+ - Attribution for every stock asset used (provider, id, author) — the provenance you recorded at
103
+ import.
104
+ - The intentional-silence note with its reason, if you chose silence over a bed.
105
+ - One line on what you'd tighten next, so the follow-up edit has a starting point.
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: rebrand-a-video
3
+ description: Swaps the brand kit under an existing video and re-renders — tokens, bumpers, logo, captions, and motion re-theme automatically; hardcoded card values get surgical edits. Triggers on "rebrand this video", "swap the brand", "we changed our colors", "new logo, same video", "make this video match the new brand", "re-theme our launch video", "white-label this for a client".
4
+ ---
5
+
6
+ # Rebrand a video
7
+
8
+ You bring a finished video and a new brand (a kit, a website, or new colors/fonts/logo); you get
9
+ the same video back wearing the new identity — everything bound to brand tokens re-themes at
10
+ render, and the few graphics that hardcoded the old brand get found and fixed. Change one line,
11
+ not the whole video.
12
+
13
+ ## Before you start
14
+
15
+ Collect the new brand's facts first — the swap itself is fast. When the first tool call
16
+ approaches and CueFrame isn't connected:
17
+
18
+ - **Claude Code:** offer to run
19
+ `claude mcp add --transport http cueframe https://api.cueframe.ai/v1/mcp` — browser OAuth,
20
+ one **Allow**.
21
+ - **Claude.ai / Claude Desktop:** Settings → Connectors → add a custom connector with
22
+ `https://api.cueframe.ai/v1/mcp`.
23
+ - **Other agents (Cursor, Codex, VS Code, Windsurf, Zed, Gemini CLI, Copilot CLI, …):**
24
+ run `npx -y cueframe install` — it detects what is on the machine and wires each one.
25
+ - **ChatGPT:** the CLI cannot wire it (there is no local config to write) — add
26
+ `https://api.cueframe.ai/v1/mcp` as a custom connector instead.
27
+
28
+ Then back to the brand — most of this job is a kit definition and an audit.
29
+
30
+ ## Inputs
31
+
32
+ - **The video** (required): the composition (via `list_compositions`) and which project it lives
33
+ in.
34
+ - **The new brand** (required): an existing kit id, a website to `extract_brand_kit` from
35
+ (colors/fonts only — ask for logo, tagline, voice), or explicit values for `create_brand_kit`.
36
+ - **Same identity or a new one?** Restyling THIS brand → upsert the same kit id and every
37
+ composition pointing at it re-themes. White-labeling for someone else → a NEW kit, so the
38
+ original stays intact.
39
+ - **Tone shift**: does the new brand change the music mood too? Check the kit's `musicMood`
40
+ intent.
41
+
42
+ ## Workflow
43
+
44
+ 1. **Pin the new brand as a kit.** `extract_brand_kit` or `create_brand_kit`; show the kit and
45
+ get sign-off — it is the contract. Then bind it: upsert in place (same kit id) to restyle,
46
+ or point the project at the new kit for a white-label. The kit lives on the PROJECT, not on
47
+ a composition op.
48
+ 2. **Know what re-themes for free.** Everything resolved at render: `$brand:` color/font/motion
49
+ tokens on overlays and cards, the kit's intro/outro bumpers, the logo corner mark, the
50
+ caption profile, the motion identity. Edit the kit, re-render, these all follow — that is
51
+ the whole "one line" story.
52
+ 3. **Hunt what does NOT re-theme.** Anything that hardcoded the old brand: literal hexes or
53
+ font names inside `kind:"card"` HTML, an old wordmark imported as media, footage graded
54
+ toward the old palette, baked stock choices that lived in the old world. Walk the
55
+ composition's overlay and card clips and list every literal value — this audit is the real
56
+ work.
57
+ 4. **Verify with pixels, not the kit.** Kit contents aren't inspectable over MCP after
58
+ creation, so the truth is the frame: `preview_frame` at t=0, each card, the bumpers, and the
59
+ end card. Describe each still — is any old color, font, or mark visible? A `$brand:` token
60
+ that fails to resolve is loud in render logs and falls to a legible neutral; a hardcoded old
61
+ hex is silent, which is why you hunt it by eye.
62
+ 5. **Fix the holdouts surgically.** `apply_composition` edits per offending clip: rebind card
63
+ fields to `$brand:` tokens (so the NEXT rebrand really is one line), swap the old-wordmark
64
+ media, re-grade footage toward the new palette. A replaced card gets re-shelled with
65
+ `applyMotionPreset` in a FOLLOWING call. The §3 test governs every card you touch: if the
66
+ old brand's hex would still look correct in it, the layout was never bespoke — rebuild it,
67
+ don't tint it.
68
+ 6. **Re-decide the audio — required.** A brand swap is a mood swap: check the bed against the
69
+ new kit's `musicMood`. Wrong mood → `search_resources` a replacement (license recorded),
70
+ same role and ducking, `materializeGrid` re-run if cut timing shifts. Still right → say so
71
+ in the delivery note. If the piece was intentionally silent, confirm that decision still
72
+ fits the new brand and restate it.
73
+ 7. **Judge against the NEW brand, render once.** `score_composition` with the new brand facts
74
+ as `brandContext` — the brand axis is exactly the check this job needs. Fix worst-first to
75
+ ≥ 7.5, then `create_render` → `wait_job (kind:"render")`.
76
+
77
+ ## What good looks like
78
+
79
+ Quoted from `video-craft-standards` §3 (Brand-identity reel) — the bespoke test applies to every
80
+ card in any class:
81
+
82
+ > **MUST** Every graphic is bespoke to the brand: its type, its palette as fields, its layout
83
+ > system. **K:** any layout that would look correct with another brand's hex swapped in.
84
+
85
+ > **MUST** Footage color and brand palette agree — grade toward the palette or choose footage
86
+ > that lives in it.
87
+
88
+ And cross-cutting: *"**MUST** Brand/text graphics are AUTHORED — `kind:"card"` HTML (your
89
+ typography, layout, palette-as-fields) […] **K:** a brand graphic rendered from a catalog text
90
+ primitive."*
91
+
92
+ ## Delivering
93
+
94
+ The last message closes the loop, never "done":
95
+
96
+ - The re-rendered link and where it lives (project + composition id), plus the kit id now bound
97
+ — and the one-line promise made true: next time, edit the kit and re-render.
98
+ - What re-themed automatically vs what you hand-edited (the audit list from step 3) — the user
99
+ should know which parts of their video are now token-bound.
100
+ - Attribution for any newly licensed bed or asset (provider, id, author).
101
+ - The audio decision: bed kept / bed swapped and why / intentional silence restated.
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: video-craft-standards
3
+ description: The definition of DONE for every video made with CueFrame — per-artifact checklists (social reel, launch film, brand reel, talking-head clip) with kill criteria. Read this BEFORE composing and score your work against it BEFORE rendering. Other skills quote this document; when a skill and this document disagree, this document wins. Triggers on "is this good enough", "quality bar", "what should a finished reel have", "review my video", or any request to make a video when no other skill has stated the bar.
4
+ ---
5
+
6
+ # Video-Craft Standards — what "finished" means
7
+
8
+ This is the single source of truth for output quality. A video that misses a
9
+ MUST for its artifact class is **not done** — fix it or explicitly record why
10
+ the rule doesn't apply. Kill criteria (**K**) mean: do not render; fix first.
11
+
12
+ ## Why this exists
13
+
14
+ Every quality dimension nobody measures decays to the laziest default:
15
+ template titles, silent reels, centered white text on footage. Each class
16
+ below is the checklist a good human editor carries implicitly. Score against
17
+ it with stills (`preview_frame`) and the judge (`score_composition`) before
18
+ your one final render.
19
+
20
+ ## The controlling idea — the rule above every rule
21
+
22
+ - **MUST (K)** Before composing, write the video's CLAIM in one sentence —
23
+ the thing a viewer should be able to repeat afterward ("real bread takes
24
+ 48 hours and you can taste every one of them"). Not a vibe, not a tagline:
25
+ a claim with tension (what does this brand/story believe that its category
26
+ doesn't?).
27
+ - **MUST (K)** Every channel is EVIDENCE for the claim, in harmony:
28
+ - **Footage** — each clip earns its place as proof of the claim, chosen
29
+ from the claim's shot list, not from search-term aesthetics.
30
+ - **Sound** — the bed's mood and TEMPO embody the claim (a "slow" claim
31
+ gets a patient, sparse bed and the nerve to hold shots; an "instant"
32
+ claim cuts hot). Silence and pauses are rhetoric, not absence.
33
+ - **Pacing** — the cut rhythm IS part of the argument; it may defy
34
+ platform convention when the claim demands it.
35
+ - **Type/cards** — copy advances the argument; the tagline lands as the
36
+ CONCLUSION the beats have earned, never as a caption.
37
+ - **Kill tests:** (1) beats reorderable without changing what the video
38
+ says; (2) any channel (bed, shot, card) that would fit a different claim
39
+ equally well; (3) a viewer who watched it cannot state the claim.
40
+
41
+ ## Cross-cutting rules (every artifact)
42
+
43
+ - **MUST** Brand/text graphics are AUTHORED — `kind:"card"` HTML (your
44
+ typography, layout, palette-as-fields) shelled with `applyMotionPreset`,
45
+ or a custom component. Catalog text primitives are for utility only.
46
+ **K:** a brand graphic rendered from a catalog text primitive.
47
+ - **MUST** Audio is decided, never defaulted: a music bed (curated packs via
48
+ `import_resource {kind:"music-pack"}`) or ambience/loops (Freesound via
49
+ `search_resources kind:"sfx"`), honoring the brand kit's `musicMood`;
50
+ cut to the beat via `materializeGrid` when the bed drives pacing — OR an
51
+ explicit intentional-silence decision recorded in your delivery note with
52
+ the reason. **K:** a render whose silence nobody chose.
53
+ - **MUST** Footage carries the video: real footage / real UI / real data
54
+ ≥60% of runtime for footage-first classes. Text alone is not a video.
55
+ - **MUST** Every stock asset's provenance is recorded (provider, id, author).
56
+ - **MUST** Safe-area respected: no critical copy in the outer ~8% of frame.
57
+ - **MUST** One final render per approval; iterate with previews, not renders.
58
+ - **MUST** Delivery never ends with "done": the last message carries the
59
+ output link and where to find it, plus the intentional-silence note if any.
60
+
61
+ ## 1. Social reel — 9:16 · 8–30s
62
+
63
+ - **MUST (K)** The hook lands inside 2 seconds: the strongest image, motion,
64
+ or claim opens the piece. No logo-first cold opens, no fade-in-from-black
65
+ preambles.
66
+ - **MUST** Typography is poster-grade: composed plates/fields in the brand
67
+ palette, considered alignment and scale. **K:** centered white text
68
+ floating on footage.
69
+ - **MUST** Pacing is cut-driven: a new visual beat at least every ~4s; static
70
+ holds >4s need motion inside the frame (reframe push, kenBurns, animated
71
+ card) or they die.
72
+ - **MUST** Ends on a deliberate beat: tagline, logo, or CTA lockup — not a
73
+ clip running out.
74
+ - **SHOULD** Cuts land on the music grid when a bed exists.
75
+
76
+ ## 2. Launch film / feature announcement — 16:9 · 30–90s
77
+
78
+ - **MUST (K)** Payoff-first hook: the OUTCOME, not the feature name
79
+ ("Close the books two days faster" beats "Introducing the reconciliation
80
+ module"). No throat-clearing ("in this video we're going to…").
81
+ - **MUST** Narration or a bed that builds toward the reveal; pacing tightens
82
+ as the payoff approaches.
83
+ - **MUST** Real product surface: actual UI/screens/output — never mocked.
84
+ - **MUST** End card with a single CTA.
85
+ - **MUST** Captions present when narrated.
86
+
87
+ ## 3. Brand-identity reel — 9:16 · 12–20s (the showcase class)
88
+
89
+ Everything in §1, plus:
90
+ - **MUST** Three-beat arc: opening brand moment (wordmark treatment) →
91
+ middle craft/proof beat (the subject's world, with an editorial device —
92
+ numbered chapter, pull-quote, stat) → closing tagline lockup.
93
+ - **MUST** Every graphic is bespoke to the brand: its type, its palette as
94
+ fields, its layout system. **K:** any layout that would look correct with
95
+ another brand's hex swapped in.
96
+ - **MUST** Footage color and brand palette agree — grade toward the palette
97
+ or choose footage that lives in it.
98
+
99
+ ## 4. Talking-head clip — any aspect · 15–60s
100
+
101
+ - **MUST (K)** Hook = the strongest sentence, first. Cut TO the moment;
102
+ never open on wind-up.
103
+ - **MUST** Active-speaker reframe (`focus: active-speaker` / `face`) — a
104
+ moving camera, not a static center crop.
105
+ - **MUST** Captions timed to the real transcript (`captions.fromTranscript`).
106
+ The behind-the-speaker LOOK is an overlay text layer at
107
+ `zPlane:"behind-subject"` where the footage allows — the caption layer
108
+ itself always renders in front.
109
+ - **MUST** Dead air and false starts cut (`addExcludedRange` /
110
+ `cutAndRipple`).
111
+
112
+ ## Scoring discipline
113
+
114
+ Before the final render: (1) pull stills at each beat boundary and describe
115
+ each one to yourself BEFORE judging it; (2) walk the class checklist and list
116
+ every MUST as pass/fail; (3) any K fails → fix, re-preview; (4) run
117
+ `score_composition` when the budget allows and fix the worst criterion first.
118
+ The checklist is the floor; the judge is the critic; neither substitutes for
119
+ looking at the frames.
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{D as a}from"./chunk-JHOJIRD5.js";export{a as analyzeCommand};