editorbrain 0.55.0 → 0.57.0
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 +3 -3
- package/bin/editorbrain.mjs +16526 -4287
- package/package.json +1 -1
- package/skill/editorbrain/SKILL.md +18 -6
- package/skill/editorbrain/references/cli-mcp.md +4 -2
- package/skill/editorbrain/references/editorial-contract.md +2 -1
- package/skill/editorbrain/references/editorial-families.md +2 -2
- package/skill/editorbrain/references/editorial-profile.md +21 -0
- package/skill/editorbrain/references/first-edit.md +1 -1
- package/skill/editorbrain/references/memory-and-review.md +15 -6
- package/skill/editorbrain/references/production-continuity.md +112 -23
- package/skill/editorbrain/references/render-delivery.md +10 -4
- package/skill/editorbrain/references/sfx-library.md +1 -1
- package/skill/editorbrain/references/starting-an-edit.md +1 -1
- package/skill/editorbrain/references/studio-review.md +4 -3
- package/skill/editorbrain/references/studio.md +1 -1
- package/skill/editorbrain/references/style-creator.md +9 -6
- package/skill/editorbrain/references/style-source.md +72 -9
- package/skill/editorbrain/references/task-map.md +3 -2
- package/skill/editorbrain/references/workflows/start.md +6 -1
- package/skill/editorbrain/references/workspace-files.md +1 -1
- package/skill/editorbrain-reference/SKILL.md +108 -0
- package/skill/editorbrain-reference/references/measure.md +291 -0
- package/skill/editorbrain-reference/references/observe.md +82 -0
- package/skill/editorbrain-reference/references/replicate.md +80 -0
- package/skill/editorbrain-reference/references/style-mapping.md +150 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Recreate and compare
|
|
2
|
+
|
|
3
|
+
A written style reaches most of a reference; the rest is found by building,
|
|
4
|
+
comparing and correcting. Do this when the user wants the match checked, on
|
|
5
|
+
their material and within the review mode, tools and spending they already
|
|
6
|
+
approved. It is not required to save a draft.
|
|
7
|
+
|
|
8
|
+
## Build a short pilot
|
|
9
|
+
|
|
10
|
+
Apply the style to a short stretch of the user's own video through the normal
|
|
11
|
+
edit workflow: the opening plus one typical section is enough. Use their brand,
|
|
12
|
+
their footage and their words. The pilot calibrates the method; it is not a
|
|
13
|
+
remake of the reference, and it never uses the reference's footage, audio or
|
|
14
|
+
text.
|
|
15
|
+
|
|
16
|
+
## Compare like with like
|
|
17
|
+
|
|
18
|
+
Pair moments by function, not by timestamp: opening card with opening card,
|
|
19
|
+
first caption with first caption, a list beat with a list beat, a transition
|
|
20
|
+
with the same kind of transition. For each pair, sample both frames and put
|
|
21
|
+
them side by side:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
ffmpeg -hide_banner -nostdin -loglevel error -i ref-frame.jpg -i pilot-frame.jpg \
|
|
25
|
+
-filter_complex "[0:v]scale=-2:720[a];[1:v]scale=-2:720[b];[a][b]hstack" pair-01.jpg
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Run the same measurements on the pilot that you ran on the reference
|
|
29
|
+
([measure](measure.md)) so pacing and loudness are compared as numbers.
|
|
30
|
+
|
|
31
|
+
## Fidelity table
|
|
32
|
+
|
|
33
|
+
Record one row per axis. This table goes to the user.
|
|
34
|
+
|
|
35
|
+
| Axis | Reference | Pilot | Verdict |
|
|
36
|
+
|---|---|---|---|
|
|
37
|
+
| Pacing | cuts per minute, median shot, zones | same figures | matched, close, different |
|
|
38
|
+
| Captions | position, cap height, words per card, highlight | same | |
|
|
39
|
+
| Graphics and titles | hierarchy, placement, timing rule | same | |
|
|
40
|
+
| Motion | entrance and exit durations in frames, overshoot | same | |
|
|
41
|
+
| Transitions | devices used and where | same | |
|
|
42
|
+
| Color and texture | sampled roles, contrast, grain | same | |
|
|
43
|
+
| Sound | measured levels and their movement | same | or not reviewed |
|
|
44
|
+
|
|
45
|
+
Use four verdicts: `matched`, `close`, `different on purpose` (brand, format or
|
|
46
|
+
footage required it) and `cannot reproduce here` (missing tool, font or asset).
|
|
47
|
+
A difference caused by the user's brand is correct, not a defect.
|
|
48
|
+
|
|
49
|
+
## Correct with absolute targets
|
|
50
|
+
|
|
51
|
+
- Fix one axis at a time and leave what already matches untouched.
|
|
52
|
+
- State each correction as a value or a ratio. "Cap height 4 % of frame height"
|
|
53
|
+
and "entrance 4 frames at 30 per second, scale 0.9 to 1.0" converge. "A bit
|
|
54
|
+
bigger" and "snappier" swing past the target and back.
|
|
55
|
+
- Re-sample the same pairs after each change. Expect a handful of rounds, and
|
|
56
|
+
stop when the user's budget or patience says so, reporting what is still off.
|
|
57
|
+
|
|
58
|
+
## Put the result back in the style
|
|
59
|
+
|
|
60
|
+
The values you converged on are the reusable part. Update the style so the next
|
|
61
|
+
edit starts from them:
|
|
62
|
+
|
|
63
|
+
- replace `estimated` numbers with the ones that worked, and say they were
|
|
64
|
+
calibrated on a pilot;
|
|
65
|
+
- move the component from `concept` to `implemented`;
|
|
66
|
+
- record the pilot in `examples.json` by render hash and interval, as the
|
|
67
|
+
[style creator](../../editorbrain/references/style-creator.md) describes;
|
|
68
|
+
- keep `transfer_tested` for after it works on a second, different video.
|
|
69
|
+
|
|
70
|
+
## Know where words stop
|
|
71
|
+
|
|
72
|
+
Counts, timings, ratios, positions and hex values transfer through text without
|
|
73
|
+
loss. Glow falloff, material feel, the character of a grade and the feel of an
|
|
74
|
+
easing do not: corrections to them oscillate instead of closing. When that last
|
|
75
|
+
part matters, keep the working artifact itself as a private component of the
|
|
76
|
+
style (`styles component extract`, in the style creator) so the next edit
|
|
77
|
+
reuses the exact scene instead of a description of it.
|
|
78
|
+
|
|
79
|
+
Report the table, the remaining gaps and the style's new status. Do not present
|
|
80
|
+
a close match as an exact one.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Turn the evidence into a style
|
|
2
|
+
|
|
3
|
+
A style is the set of documents another agent reads to edit a different video
|
|
4
|
+
the same way. Write it from `measurements.json` and `observations.md` only. Use
|
|
5
|
+
the document formats and commands in the
|
|
6
|
+
[style creator](../../editorbrain/references/style-creator.md); this guide says
|
|
7
|
+
what goes where when the source is a reference.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
editorbrain styles create <style-id> --name "<descriptive name>"
|
|
11
|
+
editorbrain styles check <style-id>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`create` writes scaffolds: placeholder text marked `STYLE_DRAFT` in `style.md`,
|
|
15
|
+
`effects.md` and `music.md`, and one placeholder component in `style.json`.
|
|
16
|
+
Replace all of it with what the evidence supports, in the language the user
|
|
17
|
+
works in. Delete the `STYLE_DRAFT` line from a document once you have written
|
|
18
|
+
it from evidence; `styles check` warns while a marker remains, which is correct
|
|
19
|
+
for a section you have not been able to fill. Replace the placeholder component
|
|
20
|
+
with the real mechanisms.
|
|
21
|
+
|
|
22
|
+
## Sort every finding into three bins
|
|
23
|
+
|
|
24
|
+
| Bin | What belongs | Where it goes |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| Identity | Colors, type, logo, the look of the brand | The user's brand by default. Reference values enter only as `example` tokens, or as `preferred` when the user asked to copy the look. |
|
|
27
|
+
| Method | Pacing zones, caption behavior, how the hook is built, when a graphic or insert appears, motion grammar, how sound follows the cut | The body of the style: `style.md`, `effects.md`, `music.md`, `captions.json`, `rules.json` |
|
|
28
|
+
| This video only | Its topic, words, footage, exact timestamps, shot count, the creator | Nowhere, except as cited evidence |
|
|
29
|
+
|
|
30
|
+
The test for the third bin: would it still be true if the same editor cut a
|
|
31
|
+
video about something else? Exact timestamps and counts fail it. A cue at 35.9 s
|
|
32
|
+
is evidence; "the title enters on the first noun of the promise" is method.
|
|
33
|
+
Numbers in the new edit come from the new script and footage.
|
|
34
|
+
|
|
35
|
+
## Document by document
|
|
36
|
+
|
|
37
|
+
**`style.md`.** Purpose and fit; the few mechanisms that make the edit
|
|
38
|
+
recognizable; what stays constant; what adapts to topic, script, brand, footage
|
|
39
|
+
and aspect ratio; when not to use it. State the source in one line, such as
|
|
40
|
+
"learned from one 65-second reference supplied by the user", with what was
|
|
41
|
+
measured, estimated and not reviewed. No creator name.
|
|
42
|
+
|
|
43
|
+
**`style.json` tokens.** One token per reusable discrete fact, with its
|
|
44
|
+
strength and a rationale that cites the evidence:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"pacing.median_shot_seconds": { "value": 2.4, "strength": "preferred", "rationale": "measured median over 22 shots; adapt to the script" },
|
|
49
|
+
"pacing.first_cut_seconds": { "value": 4.3, "strength": "example", "rationale": "measured in the reference; depends on the opening line" },
|
|
50
|
+
"caption.words_per_card": { "value": 2, "strength": "preferred", "rationale": "observed on 14 sampled cards" },
|
|
51
|
+
"color.accent": { "value": "#FF2EB4", "strength": "example", "rationale": "sampled twice; the brand accent applies unless the user asks to copy the look" }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Token names are lowercase, starting with a letter, with `_`, `.` or `-` as
|
|
56
|
+
separators; `styles check` rejects anything else.
|
|
57
|
+
|
|
58
|
+
Use `required` only for something the user stated as a rule. A measurement is
|
|
59
|
+
never required by itself. Brand tokens still take precedence when the style is
|
|
60
|
+
resolved for a project.
|
|
61
|
+
|
|
62
|
+
**`style.json` references.** Cite the reference as evidence without shipping it:
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{ "videoId": "local:<first 12 characters of the file hash>", "relationship": "reference_only", "reviewStatus": "agent_reviewed" }
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**`style.json` components.** One entry per defining mechanism. Status is
|
|
69
|
+
`concept` until you build it, `implemented` after a recreation you inspected,
|
|
70
|
+
and `transfer_tested` only after it worked on different material and was
|
|
71
|
+
reviewed.
|
|
72
|
+
|
|
73
|
+
**`effects.md`.** For each device: purpose, when it is useful, how to build it,
|
|
74
|
+
timing anchor, what to adapt or omit, how to check it. Give timings in frames
|
|
75
|
+
or milliseconds and sizes as fractions of the frame, each with its tag from the
|
|
76
|
+
observation step. Describe triggers as functions ("on the stressed word of the
|
|
77
|
+
claim"), not as reference timestamps.
|
|
78
|
+
|
|
79
|
+
**`music.md`.** Only what was measured or heard: overall level, loudness range,
|
|
80
|
+
how level moves around cuts and under speech, where silence is used. If nobody
|
|
81
|
+
listened, write that the sound character was not reviewed and leave the choice
|
|
82
|
+
to the user's audio preferences. Never name or describe the reference's track
|
|
83
|
+
as something to reuse.
|
|
84
|
+
|
|
85
|
+
**Captions.** Always describe the caption behavior in `effects.md` and as
|
|
86
|
+
tokens such as `caption.words_per_card` and `caption.position_y`: that is what
|
|
87
|
+
any engine can follow. Add a `captions.json` preset only when both of these
|
|
88
|
+
hold, following [captions](../../editorbrain/references/captions.md) and its
|
|
89
|
+
current version 2 format:
|
|
90
|
+
|
|
91
|
+
- the treatment is one the built-in renderer draws: a box behind the block, a
|
|
92
|
+
karaoke highlight of the spoken word, or a marker under it. Plain text with a
|
|
93
|
+
shadow or stroke, stacked word collages and other treatments have no preset;
|
|
94
|
+
leave them as prose and tokens rather than forcing the nearest mode;
|
|
95
|
+
- the user has a font file they are licensed to use, declared in
|
|
96
|
+
`resources.json`. The preset needs that exact font; do not invent a family
|
|
97
|
+
name or point at a font the workspace does not hold.
|
|
98
|
+
|
|
99
|
+
When it applies, map what you observed:
|
|
100
|
+
|
|
101
|
+
| Observed | Preset field |
|
|
102
|
+
|---|---|
|
|
103
|
+
| Analysed frame size | `referenceSize` |
|
|
104
|
+
| Card position as fractions | `position` |
|
|
105
|
+
| Words per card and line breaks | `chunk.maxWords`, `chunk.punctuation`, `chunk.noEndWith` |
|
|
106
|
+
| Box, karaoke highlight or marker | `mode`, `activeBox` |
|
|
107
|
+
| Entrance scale and duration | `pop.scale`, `pop.durationSeconds` |
|
|
108
|
+
| Areas captions never cover | `forbiddenZones` |
|
|
109
|
+
| Type traits | `font`, through a declared font resource the user has the right to use |
|
|
110
|
+
|
|
111
|
+
Bind color and family to the destination's tokens with `tokenBindings` so the
|
|
112
|
+
user's brand colors apply. If the reference had no captions, say so and add
|
|
113
|
+
nothing.
|
|
114
|
+
|
|
115
|
+
**`rules.json`.** Optional. Use it for the few checks that can be verified on a
|
|
116
|
+
finished video, following [style rules](../../editorbrain/references/style-rules.md):
|
|
117
|
+
a safe zone, a frame that must show text by a given second, a loudness target.
|
|
118
|
+
Keep them `preferred`.
|
|
119
|
+
|
|
120
|
+
**`techniques.json`.** Optional. Its anchors are literal phrases searched in the
|
|
121
|
+
new script, so add a technique only when the user's own scripts will contain a
|
|
122
|
+
recurring phrase that should trigger it. Never use a phrase from the reference.
|
|
123
|
+
|
|
124
|
+
**`examples.json`.** Leave the array empty, or record entries that point to the
|
|
125
|
+
reference by hash and time interval with a note of what they show, for example:
|
|
126
|
+
|
|
127
|
+
```json
|
|
128
|
+
{ "id": "opening-card", "purpose": "one-word color card on the claim", "source": { "kind": "local_reference", "sha256": "<file hash>" }, "startSeconds": 1.9, "endSeconds": 4.3, "reviewStatus": "agent_reviewed" }
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Do not copy frames or clips into the style, and do not upload them. The check
|
|
132
|
+
accepts an empty list with a note that no pilot is recorded; that is accurate
|
|
133
|
+
until step 5.
|
|
134
|
+
|
|
135
|
+
**`resources.json`.** Declare what the style needs as requirements: "a condensed
|
|
136
|
+
heavy sans the user is licensed to use", "a short percussive hit from the user's
|
|
137
|
+
sound library". Nothing from the reference is a resource.
|
|
138
|
+
|
|
139
|
+
## Before saving, reread it as a stranger
|
|
140
|
+
|
|
141
|
+
- Could an agent with only these documents and a different video rebuild the
|
|
142
|
+
edit's behavior?
|
|
143
|
+
- Is every number tagged, and does every `measured` value appear in
|
|
144
|
+
`measurements.json`?
|
|
145
|
+
- Did any sentence from the reference, any creator name, or any instruction to
|
|
146
|
+
reuse its footage or music slip in? Remove it.
|
|
147
|
+
- Do the documents say what was not reviewed?
|
|
148
|
+
|
|
149
|
+
Then run `styles check`. A valid check confirms structure only. It does not
|
|
150
|
+
confirm that the style matches the reference.
|