decklight 0.10.0 → 0.11.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/NOTICE +2 -0
- package/PLATFORM.md +17 -0
- package/README.md +53 -25
- package/SPEC.md +1239 -67
- package/cli/agents.mjs +139 -15
- package/cli/bundle.mjs +68 -2
- package/cli/cast.mjs +45 -14
- package/cli/check-fixes.mjs +12 -4
- package/cli/check-watch.mjs +151 -0
- package/cli/check.mjs +460 -71
- package/cli/code-editor.mjs +287 -0
- package/cli/commands.mjs +13 -2
- package/cli/commit-message.mjs +34 -7
- package/cli/commit-split.mjs +123 -23
- package/cli/decklight.mjs +11 -1
- package/cli/design-system-edit.mjs +37 -1
- package/cli/edit-address.mjs +184 -0
- package/cli/edit-git.mjs +21 -4
- package/cli/edit-handover.mjs +136 -25
- package/cli/edit-look.mjs +45 -1
- package/cli/edit-open.mjs +143 -0
- package/cli/edit-slides.mjs +1043 -67
- package/cli/edit-translate.mjs +243 -0
- package/cli/edit.mjs +3182 -267
- package/cli/editor-support.mjs +286 -0
- package/cli/enhance.mjs +148 -20
- package/cli/find-replace.mjs +142 -0
- package/cli/fix-review.mjs +368 -0
- package/cli/init.mjs +93 -19
- package/cli/keep-awake.mjs +68 -0
- package/cli/migrate-writing.mjs +214 -0
- package/cli/narrate.mjs +51 -10
- package/cli/open.mjs +29 -9
- package/cli/outside-edit.mjs +257 -0
- package/cli/paste.mjs +92 -0
- package/cli/pdf.mjs +61 -2
- package/cli/pptx-export.mjs +3 -1
- package/cli/publish.mjs +24 -3
- package/cli/record.mjs +19 -8
- package/cli/rewrite.mjs +265 -0
- package/cli/runtime-link.mjs +218 -17
- package/cli/serve.mjs +7 -4
- package/cli/setup.mjs +2 -2
- package/cli/skill-content.mjs +212 -8
- package/cli/skills/slide-writing.md +333 -0
- package/cli/skills/voiceover.md +423 -0
- package/cli/skills.mjs +36 -13
- package/cli/starter-full.mjs +353 -0
- package/cli/supervise.mjs +14 -0
- package/cli/theme.mjs +3 -2
- package/cli/translate-core.mjs +466 -0
- package/cli/translate-files.mjs +149 -0
- package/cli/translate.mjs +458 -0
- package/cli/util.mjs +25 -0
- package/cli/vocabulary-docs.mjs +138 -0
- package/dist/decklight.css +2087 -91
- package/dist/decklight.js +367 -203
- package/dist/decklight.js.map +4 -4
- package/docs/GLOSSARY.md +9 -2
- package/docs/WRITING_RESEARCH.md +327 -0
- package/package.json +5 -3
- package/themes/coastal.css +3 -0
- package/themes/metropolis.css +2 -0
- package/themes/reveal-blood.css +3 -0
- package/themes/reveal-league.css +2 -0
- package/themes/reveal-moon.css +2 -0
- package/themes/reveal-serif.css +1 -0
- package/themes/reveal-sky.css +1 -0
- package/themes/reveal-solarized.css +4 -0
- package/tools/brand-palette.mjs +6 -1
- package/tools/build-groups.mjs +28 -8
- package/tools/cdp.mjs +176 -0
- package/tools/chart-spec.mjs +242 -0
- package/tools/click-match.mjs +70 -0
- package/tools/code-options.mjs +174 -0
- package/tools/conversation.mjs +49 -0
- package/tools/deck-family.mjs +101 -0
- package/tools/deck-html.mjs +212 -15
- package/tools/design-system-format.mjs +15 -1
- package/tools/diagram-shapes.mjs +221 -0
- package/tools/elevenlabs-tts.mjs +62 -53
- package/tools/face-clip.mjs +96 -0
- package/tools/face-layout.mjs +94 -0
- package/tools/gemini-tts.mjs +1 -1
- package/tools/invisible-in-print.mjs +27 -0
- package/tools/lipsync-auto.mjs +197 -0
- package/tools/lipsync-config.mjs +16 -0
- package/tools/lipsync-engines.mjs +22 -4
- package/tools/lipsync-server.mjs +8 -5
- package/tools/lipsync.mjs +122 -30
- package/tools/local-voice.mjs +1 -1
- package/tools/mouth-file.mjs +26 -0
- package/tools/mouth.mjs +320 -0
- package/tools/narration-manifest.mjs +24 -4
- package/tools/narration-synth.mjs +96 -76
- package/tools/recording-impact.mjs +16 -1
- package/tools/sentences.mjs +7 -1
- package/tools/starters.mjs +402 -0
- package/tools/steps.mjs +118 -0
- package/tools/take-check.mjs +146 -0
- package/tools/template-theme.mjs +3 -1
- package/tools/test-impact.mjs +36 -12
- package/tools/theme-check.mjs +196 -1
- package/tools/tone-cue.mjs +108 -0
- package/tools/tts-cache.mjs +9 -3
- package/tools/tts-engines.mjs +100 -11
- package/tools/video-cache.mjs +93 -0
- package/tools/video-live.mjs +349 -0
- package/tools/video-options.mjs +11 -0
- package/tools/video.mjs +772 -127
- package/tools/viseme-fit.mjs +27 -0
- package/tools/viseme-match.mjs +77 -0
- package/tools/vocabulary.mjs +397 -0
- package/tools/voice-renumber.mjs +605 -0
- package/tools/voiceover-server.mjs +42 -11
- package/tools/voiceover.mjs +48 -20
- package/dist/build-info.json +0 -1
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: decklight-voiceover
|
|
3
|
+
description: Write, review or rewrite the spoken script of a Decklight deck (the speaker notes that become its narration) so it sounds like a person talking to one viewer, adds to the slide instead of reading it, tells a story, answers the viewer's questions, and is spoken well by a synthetic voice or a live presenter. Use when asked for narration, a voiceover, speaker notes or "what do I say on this slide", when a script sounds flat, robotic or like a lecture, or to review or improve an existing script. English and French. What goes on the slides belongs to the decklight-slide-writing skill.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This skill is about the words that are spoken: the `<aside class="notes">` of
|
|
7
|
+
each slide, which Decklight narrates, captions and exports. The `decklight`
|
|
8
|
+
skill beside it is the contract for the markup; the `decklight-slide-writing`
|
|
9
|
+
skill decides what is on screen. When a task covers both, plan once with the
|
|
10
|
+
outline below and use both skills.
|
|
11
|
+
|
|
12
|
+
## The rule everything else follows from
|
|
13
|
+
|
|
14
|
+
**The slide shows, the voice explains.** The viewer can read the slide faster
|
|
15
|
+
than any voice can say it. So the voice never reads it. It says what the
|
|
16
|
+
screen cannot:
|
|
17
|
+
|
|
18
|
+
- **the link** from the previous slide ("That's the good news. Here's the
|
|
19
|
+
catch.")
|
|
20
|
+
- **the reason** behind the claim on screen
|
|
21
|
+
- **the example** that makes it concrete
|
|
22
|
+
- **the caveat** an honest person would add
|
|
23
|
+
- **the answer** to what the viewer is wondering right now
|
|
24
|
+
|
|
25
|
+
A slide shows "Cache hit rate: 94%". Reading it: "Our cache hit rate is
|
|
26
|
+
ninety-four percent." Explaining it: "Nineteen requests in twenty never touch
|
|
27
|
+
the database. That's why the bill went down."
|
|
28
|
+
|
|
29
|
+
**The test:** cover the notes and look at the slide, then cover the slide and
|
|
30
|
+
read the notes. If either alone tells the whole story, one of them is a copy.
|
|
31
|
+
|
|
32
|
+
The default voice is **a knowledgeable friend talking to one person**: warm,
|
|
33
|
+
direct, plain, a little dry. Not a lecturer, not a presenter working a room,
|
|
34
|
+
not an advert.
|
|
35
|
+
|
|
36
|
+
## Pick the mode
|
|
37
|
+
|
|
38
|
+
| The user wants | Mode |
|
|
39
|
+
|---|---|
|
|
40
|
+
| A new deck, or "what should this deck say" | **Plan**, then **Write** |
|
|
41
|
+
| A script for slides that exist | **Write** |
|
|
42
|
+
| An opinion on an existing script | **Review**: report, change nothing |
|
|
43
|
+
| An existing script improved | **Rewrite**: change in place |
|
|
44
|
+
|
|
45
|
+
Starting from nothing, always plan first, and show the plan before writing
|
|
46
|
+
unless the user asked for everything in one go. Asked to "improve" a script
|
|
47
|
+
with no further detail, review first, say what you found in a few lines, then
|
|
48
|
+
rewrite.
|
|
49
|
+
|
|
50
|
+
## Plan: the story before the script
|
|
51
|
+
|
|
52
|
+
Settle these before writing a line. They are the same in the
|
|
53
|
+
`decklight-slide-writing` skill, so slide and voice are designed together.
|
|
54
|
+
|
|
55
|
+
1. **The viewer.** Who they are, what they already know, what they want from
|
|
56
|
+
this.
|
|
57
|
+
2. **The throughline.** The deck's one idea in 15 words or fewer.
|
|
58
|
+
3. **The deck type**, which sets the story's shape (see the table below).
|
|
59
|
+
4. **The ending.** What the viewer can do, decide or believe afterwards, as
|
|
60
|
+
one sentence they could repeat.
|
|
61
|
+
5. **Per slide**, one row:
|
|
62
|
+
|
|
63
|
+
| Field | What goes in it |
|
|
64
|
+
|---|---|
|
|
65
|
+
| Idea | The slide's one point, as a full sentence |
|
|
66
|
+
| Viewer's question | What a sceptical viewer is wondering at this moment |
|
|
67
|
+
| The slide shows | The visual form, and the few words on it |
|
|
68
|
+
| The voice adds | The reason, link, example or caveat |
|
|
69
|
+
| Beats | What appears, in order, one build per beat |
|
|
70
|
+
|
|
71
|
+
Then, for the voice:
|
|
72
|
+
|
|
73
|
+
- **Open a gap in the first thirty seconds.** A problem, a question or a
|
|
74
|
+
surprising fact, before any agenda or introduction. Promise the answer.
|
|
75
|
+
Write these first sentences with the most care.
|
|
76
|
+
- **Do the empathy pass, slide by slide.** What does the viewer know on
|
|
77
|
+
arrival? What is the one new thing here? What would they object to or ask?
|
|
78
|
+
Which word appears for the first time? You know the material; the viewer
|
|
79
|
+
does not, and the steps that feel too obvious to say are the ones they
|
|
80
|
+
need.
|
|
81
|
+
- **Alternate "how it is" with "how it could be".** A stretch that is all
|
|
82
|
+
facts needs one line of what they make possible. That is where the stakes
|
|
83
|
+
come from.
|
|
84
|
+
- **Choose the two or three moments that deserve a pause**, and the one or
|
|
85
|
+
two that could carry a light remark. Most slides get neither.
|
|
86
|
+
|
|
87
|
+
## Write
|
|
88
|
+
|
|
89
|
+
### Beats: the voice and the builds move together
|
|
90
|
+
|
|
91
|
+
The notes are cut into beats by a bare `[click]`. Beat zero is spoken when
|
|
92
|
+
the slide arrives, and each `[click]` reveals the next build and speaks the
|
|
93
|
+
next beat. This timing matters more than any wording: words must arrive with
|
|
94
|
+
the thing they describe.
|
|
95
|
+
|
|
96
|
+
- **One beat per build.** Count them. `npx decklight@latest check deck.html`
|
|
97
|
+
reports a mismatch as `clicks-vs-builds`.
|
|
98
|
+
- **Beat zero frames the slide** before anything builds: the link from the
|
|
99
|
+
last slide and the question this one answers.
|
|
100
|
+
- **Each beat is one complete thought, one to three sentences**, about 10 to
|
|
101
|
+
35 words. Its first words point at what just appeared.
|
|
102
|
+
- **Ask, then reveal.** A question before `[click]`, the build as the answer,
|
|
103
|
+
is the strongest pattern there is: "So did the agent stay on brand?
|
|
104
|
+
`[click]` Check says no."
|
|
105
|
+
It only works if the screen has not already answered: on a slide that
|
|
106
|
+
builds its answer, the headline is a label or the question itself, and the
|
|
107
|
+
claim arrives as the last build (the `decklight-slide-writing` skill,
|
|
108
|
+
Write). If the headline states the answer, ask the slide-writing skill to
|
|
109
|
+
change it rather than asking a question the viewer can already read.
|
|
110
|
+
- **Do not split a sentence across a `[click]`** unless you want the half
|
|
111
|
+
second of silence in the middle of it.
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<aside class="notes">
|
|
115
|
+
That's the good news. Here's the catch: every one of those requests still
|
|
116
|
+
starts in the same place.
|
|
117
|
+
[click]
|
|
118
|
+
The load balancer. One machine, and everything goes through it.
|
|
119
|
+
[click]
|
|
120
|
+
So what happens when it has a bad day? [pause] All of this goes dark at
|
|
121
|
+
once.
|
|
122
|
+
</aside>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Write for the ear
|
|
126
|
+
|
|
127
|
+
A listener cannot re-read. Every rule here follows from that.
|
|
128
|
+
|
|
129
|
+
- **One idea per sentence.** "My dad, who spent forty years teaching physics, is
|
|
130
|
+
a smart guy" becomes "My dad taught physics for forty years. He's a smart
|
|
131
|
+
guy."
|
|
132
|
+
- **Keep the subject next to its verb.** No clause in between.
|
|
133
|
+
- **About 20 words at most, 25 as a ceiling.** Short sentences look choppy on
|
|
134
|
+
the page and sound right aloud.
|
|
135
|
+
- **Vary the length on purpose.** Three sentences of the same length in a row
|
|
136
|
+
sound mechanical in any voice. Follow a long one with a short one. Give the
|
|
137
|
+
key point a short sentence of its own.
|
|
138
|
+
- **Words people say.** "Use", not "utilise". "Before", not "prior to".
|
|
139
|
+
"To", not "in order to". Contractions: "it's", "you'll", "don't".
|
|
140
|
+
- **"You" and "we".** Not "users", not "one", not the passive. "Look at the
|
|
141
|
+
spike", not "it can be seen that".
|
|
142
|
+
- **Repeat the noun.** "The cache", again, not "it" or "the latter". The
|
|
143
|
+
listener cannot look back to see what "it" was.
|
|
144
|
+
- **One number per sentence, rounded, as a relationship.** "About a third
|
|
145
|
+
less", while the slide shows the exact figure.
|
|
146
|
+
- **Explain a new word in the sentence that uses it.** "A write-ahead log,
|
|
147
|
+
which is just a diary the database keeps before it changes anything."
|
|
148
|
+
- **Give every abstraction a concrete case** within two sentences.
|
|
149
|
+
- **Say it aloud.** If you would not say it that way to a colleague, do not
|
|
150
|
+
write it that way.
|
|
151
|
+
|
|
152
|
+
### Answer the question in the viewer's head
|
|
153
|
+
|
|
154
|
+
At each slide a thinking viewer has a question or a doubt. Say it for them,
|
|
155
|
+
then answer it: "You might be wondering why we don't just add a second one."
|
|
156
|
+
"Fair question: doesn't that cost more?" Answer on this slide or the next.
|
|
157
|
+
An objection left hanging is a viewer who has stopped listening.
|
|
158
|
+
|
|
159
|
+
A rhetorical question is the conversational form of the same thing. About one
|
|
160
|
+
a slide, and always answered.
|
|
161
|
+
|
|
162
|
+
### Connect the slides
|
|
163
|
+
|
|
164
|
+
The first sentence of a slide links from the one before, in words, because a
|
|
165
|
+
listener cannot see a section break. "So that's the write path. Reading is
|
|
166
|
+
where it gets interesting." Never "In this slide we will look at", and never
|
|
167
|
+
"Moving on".
|
|
168
|
+
|
|
169
|
+
### Pauses
|
|
170
|
+
|
|
171
|
+
Decklight already breathes: a quarter second between sentences, half a second
|
|
172
|
+
at each `[click]`, a second before the slide turns. So a full stop is a small
|
|
173
|
+
pause and a `[click]` a larger one. `[pause]` adds a full second and
|
|
174
|
+
`[long pause]` two.
|
|
175
|
+
|
|
176
|
+
Use `[pause]` at the few moments that earn it: after a number that should
|
|
177
|
+
land, before a reveal, after a hard idea. Two or three in a deck of ten
|
|
178
|
+
slides is plenty. A pause after everything is a pause after nothing.
|
|
179
|
+
|
|
180
|
+
### Humour
|
|
181
|
+
|
|
182
|
+
Light and occasional: a wry aside or an unexpected plain comparison every few
|
|
183
|
+
minutes, never a set-piece joke. Rules:
|
|
184
|
+
|
|
185
|
+
- **It is about the material**, and it comes right after a point, as a
|
|
186
|
+
release.
|
|
187
|
+
- **It is literally true.** A synthetic voice says sarcasm and irony
|
|
188
|
+
straight, and so does a listener in their second language. Prefer the
|
|
189
|
+
understated observation: "This took three weeks. Two of them were arguing
|
|
190
|
+
about the name."
|
|
191
|
+
- **The test: if nobody laughs, is it still a true and useful sentence?** If
|
|
192
|
+
not, cut it.
|
|
193
|
+
- **Never** at anyone's expense, and never on a slide carrying a decision, a
|
|
194
|
+
risk or bad news. No puns, no pop-culture references.
|
|
195
|
+
- A script with no jokes is fine. A script with a forced one is not.
|
|
196
|
+
|
|
197
|
+
### How much to say
|
|
198
|
+
|
|
199
|
+
Plan at about **150 words a minute**. A slide normally carries 60 to 150
|
|
200
|
+
words. One static slide with more than about a minute of talk needs more
|
|
201
|
+
builds, or to be two slides. Dense material gets fewer words per slide, not a
|
|
202
|
+
faster voice, and easy material is not padded.
|
|
203
|
+
|
|
204
|
+
A rough length for a slide, in seconds: words divided by 2.5, plus a second
|
|
205
|
+
for each `[pause]` and for the slide turn, plus half a second per `[click]`.
|
|
206
|
+
|
|
207
|
+
### The ending
|
|
208
|
+
|
|
209
|
+
The last slide says what the viewer can now do, decide or believe, in one
|
|
210
|
+
sentence they could repeat, and names one next step. Not "In conclusion, we
|
|
211
|
+
covered A, B and C", and not "Thank you, any questions?".
|
|
212
|
+
|
|
213
|
+
## One script, every performer
|
|
214
|
+
|
|
215
|
+
The same notes are spoken by an ElevenLabs voice, by any other engine or the
|
|
216
|
+
browser's own voice, and by a person reading them live or into a microphone.
|
|
217
|
+
They are also the captions and the transcript. So:
|
|
218
|
+
|
|
219
|
+
**The script must work delivered flat.** No line may need a tone of voice, a
|
|
220
|
+
gesture or a look to make sense.
|
|
221
|
+
|
|
222
|
+
- Put the important word at the end of the sentence, or in its own short
|
|
223
|
+
sentence. That is the only emphasis every performer gives you.
|
|
224
|
+
- Start a question with a question word, so it sounds like one.
|
|
225
|
+
- Give a punchline its own sentence, after a full stop.
|
|
226
|
+
- No parentheses. An aside is its own sentence.
|
|
227
|
+
- Rephrase around words with two readings ("read", "live", "lead", "close").
|
|
228
|
+
|
|
229
|
+
### How Decklight speaks, and what it means for the writing
|
|
230
|
+
|
|
231
|
+
Every sentence is synthesised as its own clip, with no knowledge of the
|
|
232
|
+
sentences around it. This shapes the writing more than anything else:
|
|
233
|
+
|
|
234
|
+
- **Each sentence is a complete thought.** Intonation does not carry across a
|
|
235
|
+
full stop.
|
|
236
|
+
- **A period anywhere ends the clip.** "Version 2.5" is spoken as "Version
|
|
237
|
+
two" and then "five", with a breath between. So no periods inside a
|
|
238
|
+
sentence: write "two point five", "for example" instead of "e.g.", "the
|
|
239
|
+
index file" instead of "index.html", "Mister" instead of "Mr.".
|
|
240
|
+
- **Very short clips are fragile.** A short sentence for emphasis is good. A
|
|
241
|
+
chain of fragments ("Fast. Cheap. Reliable.") is three tiny clips: make it
|
|
242
|
+
one sentence.
|
|
243
|
+
- **Keep sentences under about 25 words.** Some browser voices cut off a long
|
|
244
|
+
one.
|
|
245
|
+
|
|
246
|
+
**Write everything the way it is said.** The exact written form stays on the
|
|
247
|
+
slide; the spoken form goes in the notes.
|
|
248
|
+
|
|
249
|
+
| On the slide | In the notes |
|
|
250
|
+
|---|---|
|
|
251
|
+
| 12 regions | twelve regions |
|
|
252
|
+
| $42.50 | forty-two dollars fifty |
|
|
253
|
+
| 94% | ninety-four percent, or "nineteen in twenty" |
|
|
254
|
+
| ⌘Z, Ctrl+T | Command Z, Control T |
|
|
255
|
+
| v2.5 | version two point five |
|
|
256
|
+
| p99 < 200 ms | ninety-nine in a hundred requests come back in under a fifth of a second |
|
|
257
|
+
| `npm run build` | "the build command", unless the viewer must type it |
|
|
258
|
+
| API, URL | fine as they are; an acronym the voice might read as a word gets spelled out or rephrased |
|
|
259
|
+
|
|
260
|
+
Never read code or a URL aloud. Say what it does and let the slide show it.
|
|
261
|
+
|
|
262
|
+
There is no markup for pronunciation or emphasis. If a voice says a name
|
|
263
|
+
badly, reword. Do not respell it, because the notes are also the captions.
|
|
264
|
+
|
|
265
|
+
### Audio tags
|
|
266
|
+
|
|
267
|
+
Bracketed words other than `[click]` and the pauses, such as `[curious]`,
|
|
268
|
+
`[whispers]` or `[laughs]`, are directions for ElevenLabs' newest voices.
|
|
269
|
+
Every other voice, every caption and every human reader skips them.
|
|
270
|
+
|
|
271
|
+
- **The script must read well with every tag removed.** Write it without
|
|
272
|
+
tags first.
|
|
273
|
+
- One or two a slide at most, right before the words they direct, and only
|
|
274
|
+
where a person would actually change their delivery.
|
|
275
|
+
- Never on a very short sentence: that is the shape that makes a take
|
|
276
|
+
stutter.
|
|
277
|
+
- No capitals for emphasis, no `<break>` tags, no ellipses for effect. They
|
|
278
|
+
show in captions and are read differently by every voice.
|
|
279
|
+
|
|
280
|
+
To add tags to a finished script without touching its words, `decklight
|
|
281
|
+
enhance deck.html --slides 3` does it and checks that every word, `[click]`
|
|
282
|
+
and `[pause]` survived.
|
|
283
|
+
|
|
284
|
+
## Review: read it as the viewer
|
|
285
|
+
|
|
286
|
+
Three passes. First read the script straight through with the slides, at
|
|
287
|
+
speaking pace, as someone who has never seen the material. Then read it
|
|
288
|
+
without the slides. Then run the list. Name each slide by its title, quote
|
|
289
|
+
the offending sentence, and give the rewrite, never a general remark.
|
|
290
|
+
|
|
291
|
+
1. Does the deck's one idea fit in 15 words, and does every slide serve it?
|
|
292
|
+
2. Do the first thirty seconds open a problem, a question or a gap, before
|
|
293
|
+
any agenda?
|
|
294
|
+
3. Does each slide's narration say something the slide does not? Does any
|
|
295
|
+
sentence repeat the slide word for word?
|
|
296
|
+
4. Does each beat talk about what is on screen at that moment? Do the
|
|
297
|
+
`[click]` counts match the builds?
|
|
298
|
+
5. Does the first sentence of each slide link from the previous one?
|
|
299
|
+
6. One new concept per slide, one number per sentence, no term left
|
|
300
|
+
unexplained?
|
|
301
|
+
7. Is the sceptical viewer's question answered here or on the next slide?
|
|
302
|
+
8. Any sentence over about 25 words, with two ideas, or with a clause between
|
|
303
|
+
subject and verb? Any word nobody says?
|
|
304
|
+
9. Any run of three sentences of the same length? Does the key point have
|
|
305
|
+
room after it?
|
|
306
|
+
10. Does every abstraction get a concrete case within two sentences?
|
|
307
|
+
11. Is it addressed to one person, as "you" and "we", with no filler
|
|
308
|
+
enthusiasm?
|
|
309
|
+
12. Is each light line about the material, literally true, and still useful
|
|
310
|
+
if nobody laughs?
|
|
311
|
+
13. Does any single static slide carry more than about a minute of talk?
|
|
312
|
+
14. Does the last slide say what the viewer can now do or decide, in one
|
|
313
|
+
repeatable sentence?
|
|
314
|
+
15. Does any line need a tone, a look or a gesture to work?
|
|
315
|
+
16. For the voice: numbers, symbols, keys and abbreviations written as said;
|
|
316
|
+
no period inside a sentence; no sentence split across a `[click]` by
|
|
317
|
+
accident; no chain of fragments; no tag on a very short sentence; reads
|
|
318
|
+
well with the tags removed.
|
|
319
|
+
|
|
320
|
+
The faults to expect, and the move that fixes each:
|
|
321
|
+
|
|
322
|
+
| Fault | Sounds like | Fix |
|
|
323
|
+
|---|---|---|
|
|
324
|
+
| Reads the slide | "There are three key benefits: speed, reliability and cost." | Pick the one that matters and give its reason |
|
|
325
|
+
| Announces | "In this slide, we will look at the architecture." | Start with the content: "So where does a request actually go?" |
|
|
326
|
+
| Lecture voice | "It is important to note that latency is a critical factor." | "Slow pages lose people. You've closed a tab for less." |
|
|
327
|
+
| Flat rhythm | Every sentence 18 to 22 words | Break one in two, give the key point its own short sentence |
|
|
328
|
+
| Vague and hedged | "can potentially offer significant improvements in various scenarios" | One number and one case, hedges removed |
|
|
329
|
+
| Starts cold | Each slide begins as if nothing came before | Open with the link from the last slide |
|
|
330
|
+
| Assumes too much | Acronyms and names used as if the viewer had read the source | Explain at first use, in the same sentence |
|
|
331
|
+
| Says everything | Every fact from the source kept | Keep what serves the throughline |
|
|
332
|
+
| Sells | "powerful", "seamless", "game-changing" | Cut the adjective, give one concrete result |
|
|
333
|
+
| Recap ending | "In conclusion, we covered A, B and C." | One repeatable sentence and one next step |
|
|
334
|
+
| Forced joke | A pun or a reference | Cut it, or a dry true observation |
|
|
335
|
+
|
|
336
|
+
End the review with the three changes that would help most, in order.
|
|
337
|
+
|
|
338
|
+
## Rewrite: change in place
|
|
339
|
+
|
|
340
|
+
- **Keep every `[click]` and `[pause]`, and the number of beats.** The builds
|
|
341
|
+
depend on them. If a slide truly needs a different number of beats, its
|
|
342
|
+
builds must change too: say so, and use the `decklight-slide-writing`
|
|
343
|
+
skill.
|
|
344
|
+
- **Keep the facts, the numbers and the terms** the slide uses.
|
|
345
|
+
- **Change freely:** the register, the order within a beat, the rhythm, the
|
|
346
|
+
links between slides.
|
|
347
|
+
- **You may add what is missing**: the reason, the example, the transition,
|
|
348
|
+
the answer to the obvious question. This is what the deck's own tools will
|
|
349
|
+
not do. But anything that is a new claim, a new number or a joke is the
|
|
350
|
+
author's to approve. List what you added, slide by slide, when you finish.
|
|
351
|
+
- **Keep the rehearse aside in step.** A slide may carry an `<aside
|
|
352
|
+
class="rehearse">`, the presenter's short cue card, cut by the same
|
|
353
|
+
`[click]` beats. When the notes change meaning, update it.
|
|
354
|
+
- **Recorded voices.** If the deck already has recorded narration, rewritten
|
|
355
|
+
notes no longer match it. Say which slides need recording again.
|
|
356
|
+
|
|
357
|
+
For light-touch edits the deck's own tools do the mechanical part, each with
|
|
358
|
+
the same checks on beats and pauses: `decklight enhance deck.html --spoken
|
|
359
|
+
--slides 3` turns terse notes into speech, and `--match-slide` brings notes
|
|
360
|
+
back in line with a slide whose wording changed. Neither adds anything.
|
|
361
|
+
|
|
362
|
+
## What changes with the deck type
|
|
363
|
+
|
|
364
|
+
| | Technical talk | Course or lesson | Demo or pitch | Internal update or decision |
|
|
365
|
+
|---|---|---|---|---|
|
|
366
|
+
| Story shape | Problem, idea, one example, where the detail lives | Question, concept, example, recap, per segment | The viewer's pain, then "today" against "with this", ending on the reward | Situation, complication, the answer, then reasons and risks |
|
|
367
|
+
| The voice carries | Intuition and motivation. The detail is elsewhere | The teaching. A prediction question before each reveal | Stakes and contrast. What a feature lets you do, and honest limits | The answer first. Numbers rounded in speech, exact on the slide |
|
|
368
|
+
| Register | Dry, lighter on "you" for experts | Fullest "you" and "we", slower on the dense parts | Warm and concrete, no superlatives | Plain and brief |
|
|
369
|
+
| Humour | Sparse and dry | Only to illustrate what was just taught | Light, never about a competitor | Least |
|
|
370
|
+
| Ending | What to try, where to read more | What you can now do | One specific next step | The decision wanted, by when |
|
|
371
|
+
|
|
372
|
+
In a demo, the voice says what is happening while the product does it, one
|
|
373
|
+
capability at a time.
|
|
374
|
+
|
|
375
|
+
## French
|
|
376
|
+
|
|
377
|
+
**Write the French script from the outline, never from the English script.**
|
|
378
|
+
Use the other language only to check that no beat was dropped. Set `<html
|
|
379
|
+
lang="fr">` and choose a French voice: the text decides the language, the
|
|
380
|
+
voice decides the accent.
|
|
381
|
+
|
|
382
|
+
- **Address.** « Vous » for the viewer, « on » for the shared "we" and for
|
|
383
|
+
people in general, « nous » only for the company or team. « Tu » is a
|
|
384
|
+
deliberate choice for the author to make, not a default.
|
|
385
|
+
- **Sounding spoken.** French has no contractions, so the spoken feel comes
|
|
386
|
+
from « on », « ça », questions with « est-ce que », the futur proche (« on
|
|
387
|
+
va voir »), the present and the passé composé, and « c'est… qui/que » for
|
|
388
|
+
emphasis. Keep the « ne ». No passé simple. No stacked subordinate clauses:
|
|
389
|
+
subject, verb, complement, one idea per sentence.
|
|
390
|
+
- **Structure.** Keep the opening hook, then say the question and a short
|
|
391
|
+
road map aloud (« On va voir trois choses. »). French viewers expect to
|
|
392
|
+
know where the argument is going. Raise the objection yourself (« Vous
|
|
393
|
+
allez me dire… »). Close with a one-line synthesis, then the next step.
|
|
394
|
+
- **Enthusiasm.** Superlatives sound like a sales pitch. State the concrete
|
|
395
|
+
benefit.
|
|
396
|
+
- **Humour.** Never translate a joke: write a new one in French or drop it.
|
|
397
|
+
Irony and « second degré » are said straight by a synthetic voice, so
|
|
398
|
+
prefer understatement (« Ce n'est pas exactement rapide. »).
|
|
399
|
+
- **English terms.** Keep the English noun the viewer will see in the tool
|
|
400
|
+
(pull request, commit). Use the French word where it is in real use
|
|
401
|
+
(déployer, mise à jour, bibliothèque). Do not conjugate English verbs
|
|
402
|
+
(« on merge »). One or two English terms per sentence at most, and never a
|
|
403
|
+
sentence that is only an English name, which a French voice may mangle.
|
|
404
|
+
- **Numbers in letters** where the reading matters: « quatre-vingt-dix »,
|
|
405
|
+
« un virgule cinq ». No abbreviations with periods (« M. », « p. ex. »):
|
|
406
|
+
the period ends the clip, as in English.
|
|
407
|
+
- **Length.** The same content takes more words and a little more time in
|
|
408
|
+
French. To hold a time slot, cut content. Do not speed the voice up.
|
|
409
|
+
- **Calques to avoid.** « Ça se tient » or « c'est logique », not « ça fait
|
|
410
|
+
du sens ». « Allez, on y va », not « plongeons ». « J'ai hâte de vous
|
|
411
|
+
montrer », not « je suis excité de ». « Ce qu'il faut retenir, c'est… »
|
|
412
|
+
for "the takeaway is". « Prenons un peu de recul » for "let's take a step
|
|
413
|
+
back". « Sans rien configurer » for "out of the box".
|
|
414
|
+
|
|
415
|
+
## Before you call it done
|
|
416
|
+
|
|
417
|
+
- Every slide has notes, and `npx decklight@latest check deck.html` shows no
|
|
418
|
+
`clicks-vs-builds`.
|
|
419
|
+
- No sentence contains a period, a symbol or a digit that should be a word.
|
|
420
|
+
- Read with every bracketed tag removed, it still sounds like a person.
|
|
421
|
+
- Read without the slides, it follows. Read against the slides, it never
|
|
422
|
+
repeats them.
|
|
423
|
+
- If you can, listen to it. If you could not, say so.
|
package/cli/skills.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import { makeFail, runMain } from './util.mjs';
|
|
|
33
33
|
import { isMain } from '../tools/args.mjs';
|
|
34
34
|
import { zipSync } from './zip.mjs';
|
|
35
35
|
import {
|
|
36
|
-
PKG, AGENTS_MARKER, agentsSection, claudeSkillMd, homePath, referenceDoc,
|
|
36
|
+
PKG, AGENTS_MARKER, sharedSkillsHref, agentsSection, claudeSkillMd, homePath, referenceDoc, skillVersionOf, SIBLING_SKILLS,
|
|
37
37
|
} from './skill-content.mjs';
|
|
38
38
|
import { semverCompare } from '../tools/semver.mjs';
|
|
39
39
|
import { librarySkills } from './units.mjs';
|
|
@@ -105,6 +105,12 @@ and IBM Bob get a marked section in AGENTS.md. Both point at a reference
|
|
|
105
105
|
sliced from this version's SPEC.md, so the contract never drifts from the
|
|
106
106
|
installed runtime.
|
|
107
107
|
|
|
108
|
+
Every agent also gets the two writing skills, decklight-slide-writing (what
|
|
109
|
+
goes on a slide) and decklight-voiceover (what is said over it): Claude Code
|
|
110
|
+
as skills of their own beside the authoring one, with decklight-report-bug;
|
|
111
|
+
the others as files under .decklight/skills/ that their AGENTS.md section
|
|
112
|
+
names.
|
|
113
|
+
|
|
108
114
|
Marketplace skills (decklight library add skill <name>) are a different thing and
|
|
109
115
|
live somewhere else — ~/.decklight/skills/ — so they sit ALONGSIDE the
|
|
110
116
|
authoring skill above and never replace it. The command above always writes
|
|
@@ -197,13 +203,28 @@ function installClaudeSkill(skillDir, force, written) {
|
|
|
197
203
|
}
|
|
198
204
|
|
|
199
205
|
/**
|
|
200
|
-
* The
|
|
201
|
-
*
|
|
202
|
-
*
|
|
206
|
+
* The skills that sit beside the authoring one: filing a bug (#73), and the
|
|
207
|
+
* two writing skills. Each has its own directory because Claude indexes one
|
|
208
|
+
* skill per SKILL.md, and none carries a reference doc: the authoring
|
|
209
|
+
* contract is not what filing a bug or wording a slide needs.
|
|
203
210
|
*/
|
|
204
|
-
function
|
|
205
|
-
const
|
|
206
|
-
|
|
211
|
+
function installSiblingSkills(skillsRoot, force, written) {
|
|
212
|
+
for (const { name, md } of SIBLING_SKILLS) {
|
|
213
|
+
written.push(wrote(writeIfAbsent(path.join(skillsRoot, name, 'SKILL.md'), md(), force)));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* What an AGENTS.md agent reads beside its section, under `root`: the
|
|
219
|
+
* reference, and the writing skills the section names. An agent with no
|
|
220
|
+
* skills directory of its own still gets the same files Claude does.
|
|
221
|
+
*/
|
|
222
|
+
function installSharedDocs(root, force, written) {
|
|
223
|
+
written.push(wrote(writeIfAbsent(path.join(root, SHARED_REF), referenceDoc(), force)));
|
|
224
|
+
const dir = path.join(root, sharedSkillsHref(SHARED_REF));
|
|
225
|
+
for (const { name, md } of SIBLING_SKILLS.filter((s) => s.shared)) {
|
|
226
|
+
written.push(wrote(writeIfAbsent(path.join(dir, name, 'SKILL.md'), md(), force)));
|
|
227
|
+
}
|
|
207
228
|
}
|
|
208
229
|
|
|
209
230
|
// --- marketplace skills, handed on to the agents (#880) ----------------------
|
|
@@ -395,14 +416,14 @@ function installProject(targets, dir, force) {
|
|
|
395
416
|
if (wantsClaude) {
|
|
396
417
|
const skillsRoot = path.join(root, '.claude', 'skills');
|
|
397
418
|
installClaudeSkill(path.join(skillsRoot, 'decklight'), force, written);
|
|
398
|
-
|
|
419
|
+
installSiblingSkills(skillsRoot, force, written);
|
|
399
420
|
syncLibrarySkills(skillsRoot, written);
|
|
400
421
|
}
|
|
401
422
|
if (mdAgents.length) {
|
|
402
423
|
// one reference copy: Claude's skill dir when Claude is also a target,
|
|
403
424
|
// else a standalone .decklight/ copy the AGENTS.md agents point at.
|
|
404
425
|
const refHref = wantsClaude ? CLAUDE_REF : SHARED_REF;
|
|
405
|
-
if (!wantsClaude)
|
|
426
|
+
if (!wantsClaude) installSharedDocs(root, force, written);
|
|
406
427
|
written.push(mergeAgentsMd(root, refHref));
|
|
407
428
|
}
|
|
408
429
|
return written.filter(Boolean);
|
|
@@ -417,10 +438,10 @@ function installGlobal(targets, env, force) {
|
|
|
417
438
|
const home = t.home(env);
|
|
418
439
|
if (t.kind === 'skill') {
|
|
419
440
|
installClaudeSkill(path.join(home, 'skills', 'decklight'), force, written);
|
|
420
|
-
|
|
441
|
+
installSiblingSkills(path.join(home, 'skills'), force, written);
|
|
421
442
|
syncLibrarySkills(path.join(home, 'skills'), written);
|
|
422
443
|
} else {
|
|
423
|
-
|
|
444
|
+
installSharedDocs(home, force, written);
|
|
424
445
|
written.push(mergeAgentsMd(home, SHARED_REF));
|
|
425
446
|
}
|
|
426
447
|
}
|
|
@@ -472,11 +493,13 @@ export function refreshSkills(stale, { dir = '.', env = process.env } = {}) {
|
|
|
472
493
|
const project = stale.filter((s) => s.scope === 'project');
|
|
473
494
|
if (project.some((s) => s.target === 'claude')) {
|
|
474
495
|
installClaudeSkill(path.join(root, '.claude', 'skills', 'decklight'), false, written);
|
|
475
|
-
|
|
496
|
+
installSiblingSkills(path.join(root, '.claude', 'skills'), false, written);
|
|
476
497
|
}
|
|
477
498
|
if (project.some((s) => s.target === 'agents')) {
|
|
478
499
|
const hasClaude = fs.existsSync(path.join(root, CLAUDE_REF));
|
|
479
|
-
|
|
500
|
+
// the section names the writing skills where the reference is: make sure they are there
|
|
501
|
+
if (hasClaude) installSiblingSkills(path.join(root, '.claude', 'skills'), false, written);
|
|
502
|
+
else installSharedDocs(root, false, written);
|
|
480
503
|
written.push(mergeAgentsMd(root, hasClaude ? CLAUDE_REF : SHARED_REF));
|
|
481
504
|
}
|
|
482
505
|
const globals = [...new Set(stale.filter((s) => s.scope === 'global').map((s) => s.target))];
|