scrollstop · preflight
The last look before posting. Three tools, all plain Node + ffmpeg, no install beyond that.
S="<this skill's folder>/scripts"
node "$S/preflight.mjs" video.mp4 --platform instagram # or tiktok | shorts | all
node "$S/hookscore.mjs" "Try to tickle yourself right now." # or a file, one hook per line (ranked)
node "$S/textcheck.mjs" script.txt # a voiceover script
node "$S/textcheck.mjs" caption.txt --caption # a caption
A video
- Ask which platform it's for if they didn't say (default Instagram;
allwhen cross-posting). - Run
preflight.mjs. It prints PASS / WARN / FAIL lines and writes two images next to the video:<name>-preflight-zones.png: 8 frames with the app's controls in red, the cropped edges in grey and the SAFE frame dashed. Open it and look. Any word, face or key object under red is hidden on a phone. Iftesseractis installed the script finds words outside the safe frame itself; without it, your eyes are the check.<name>-preflight-first.png: frames at 0.0 / 0.5 / 1.0 / 1.5 s. The stranger test: sound off, one second, would a stranger know it's about them and want the answer? Does it start in motion?
- Report: every FAIL with what to do about it, the WARNs that matter, what the sheets show (name the timestamps), and what you couldn't check (you can't hear it: ask them to watch once with sound).
What the lines mean and how to fix them:
| line | fix |
|---|---|
| aspect / resolution | export 1080×1920 (9:16). Other shapes get bars or get cropped |
yuvj420p | full-range colour can shift after upload: ffmpeg -i in.mp4 -vf scale=out_range=tv -pix_fmt yuv420p -color_range tv -c:a copy out.mp4 |
| loudness | about -14 LUFS: ffmpeg -i in.mp4 -af loudnorm=I=-14:TP=-1.5:LRA=11 -c:v copy out.mp4 |
| dead air > 0.6 s | tighten the cut or keep music under the gap; it reads as the video hanging |
| frozen picture | something should move every 2–3 s: cut in, zoom slowly, add a cutaway |
| first second near-still | open on motion and the spoken hook, not a title card |
| text under controls | move it inside the safe frame (numbers in scripts/platforms.json) |
Safe frames: Instagram's was measured from a phone screenshot; TikTok's and Shorts' are third-party estimates and the
file says so. If the user measures a better box from a screenshot of their own post, update platforms.json.
A hook, script or caption
- Hooks:
hookscore.mjsscores Self, Gap, Concrete, Short and Instant (0–2 each) and caps banned openers ("Did you know…", "Here's why…", topic labels) at 5. Ship ≥ 8. Offer two or three rewrites for anything lower, each scored. - Scripts:
textcheck.mjsgives the reading grade (want ≤ 6), long sentences, long words and the spoken length at 2.6 words/s. Rewrite the flagged sentences; keep the meaning exact. - Captions:
textcheck.mjs --captionchecks the first line (≤ 125 characters, says the thing), 3–5 specific hashtags, one real question, a named source, no engagement bait and no machine-sounding phrases or invisible characters. Suggest a fixed version, don't just list problems.
The checks are deliberately blunt: they catch the common failures fast. A person still decides between two good options.