Communitygithub.com

preflight

Check a short-form video, script or caption before it's posted - any vertical video, not only ones made with scrollstop. For a video it checks aspect, resolution, codec and colour range, length, loudness and true peak, dead air, frozen picture and the first second, and draws Instagram Reels / TikTok / YouTube Shorts controls over sampled frames to show text hidden under the like rail, username or caption (automatic with tesseract). For words it scores hooks (0-10), and checks a voiceover script (reading grade, sentence length, pace) or a caption (the line before "more", the ask, hashtags, engagement bait, machine-sounding phrases). Use when the user says "check this before I post", "is this ready", "will Instagram cover my text", "score my hook", "review my caption", or hands over a finished MP4.

What is preflight?

preflight is a Claude Code agent skill that check a short-form video, script or caption before it's posted - any vertical video, not only ones made with scrollstop. For a video it checks aspect, resolution, codec and colour range, length, loudness and true peak, dead air, frozen picture and the first second, and draws Instagram Reels / TikTok / YouTube Shorts controls over sampled frames to show text hidden under the like rail, username or caption (automatic with tesseract). For words it scores hooks (0-10), and checks a voiceover script (reading grade, sentence length, pace) or a caption (the line before "more", the ask, hashtags, engagement bait, machine-sounding phrases). Use when the user says "check this before I post", "is this ready", "will Instagram cover my text", "score my hook", "review my caption", or hands over a finished MP4.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/xnarik/scrollstop/tree/HEAD/plugin/skills/preflight

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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

  1. Ask which platform it's for if they didn't say (default Instagram; all when cross-posting).
  2. 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. If tesseract is 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?
  3. 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:

linefix
aspect / resolutionexport 1080×1920 (9:16). Other shapes get bars or get cropped
yuvj420pfull-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
loudnessabout -14 LUFS: ffmpeg -i in.mp4 -af loudnorm=I=-14:TP=-1.5:LRA=11 -c:v copy out.mp4
dead air > 0.6 stighten the cut or keep music under the gap; it reads as the video hanging
frozen picturesomething should move every 2–3 s: cut in, zoom slowly, add a cutaway
first second near-stillopen on motion and the spoken hook, not a title card
text under controlsmove 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.mjs scores 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.mjs gives 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 --caption checks 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.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills