clefcut-cloudflare-remotion-video
Installation
SKILL.md
ClefCut: Remotion video QA on Cloudflare
ClefCut runs staged quality checks on a rendered Remotion video: free local measurements on every frame, cheap Cloudflare model reads on the frames that matter, and agent eyes only where those two disagree. The QA design is adapted from SageCut by Levanto Labs (MIT).
Overview: the 4-layer cost model
| Layer | What runs | Cost |
|---|---|---|
| 1. Local checks | Frame extraction and measurements with ffmpeg (black/blank, frozen, flash, ink) plus free local OCR (tesseract.js or system tesseract) | Free, offline, nothing uploaded |
| 2. CLEF reads frames | Cloudflare CLEF answers yes/no (noul), option-pick (choice), and rating (score) questions about frames |
Cents per thousand frames (estimate) |
| 3. CLAIRIC extracts | Cloudflare CLAIRIC pulls typed values (text, numbers, dates, lists) out of frames | Cents per thousand frames (estimate) |
| 4. Agent eyes | Three subagent critics see ≤32 selected frames; the main agent opens a frame only when a model answer and a local measurement disagree | The expensive layer — keep it rare |
Why layers: each layer is at least an order of magnitude cheaper than the one above it. An agent that opens every frame of a 30-second video spends more tokens than every model call combined, so layers 1–3 exist to keep layer 4 rare.