clefcut-cloudflare-remotion-video
БесплатноЗапускает вложенные скриптыНе проверенRemotion video QA with Cloudflare CLEF and CLAIRIC. Use when rendering, checking, fixing, or delivering a Remotion video in any project.
от secondsky★ 257 звёзд на GitHubОб этом скилле
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.
The two-widths rule for text (stated once; load-bearing, inherited from SageCut):
- Text integrity — does the on-screen text match the script, character by character — is a measurement. Run it FREE on full-resolution frames with local OCR (layer 1).
- Text legibility at test width — can a viewer read it at phone-feed size —
is a perception question. Ask CLEF/CLAIRIC on the
test/frames written at the test width (layers 2–3). Never pay to re-verify what a free check already measured.
Setup: run doctor first
- Copy
templates/env.exampleinto the project's.envfile (or~/.clefcut/.envfor all projects) and have the user fill it in. - Required variables:
CLOUDFLARE_ACCOUNT_IDandCLOUDFLARE_API_TOKEN(the token needs Workers AI permission — Workers AI - Read, plus Edit unless it was created from the dashboard template). Optional:CLEFCUT_GATEWAY_ID(route through an AI Gateway),CLEFCUT_FFMPEG(explicit ffmpeg path). - NEVER ask the user to paste the token in chat. NEVER commit it. If it is missing, tell the user which file to put it in and wait.
- Run
node "<skill-dir>/scripts/video-qa.mjs" doctorand fix everything it reports before any other command. Once per machine/install, also runnode "<skill-dir>/scripts/video-qa.mjs" verify <render>.mp4on any real render — it proves the whole pipeline (probe, frames, check, synthesize, compare, dry rate gate) works on this machine and footage. - Before the FIRST model call of a session, say plainly: frames from this video will be uploaded to Cloudflare's API and billed. Get the user's OK and a spending limit. Stay inside both for the whole session.
Running the tool
- Run the tool only as
node "<skill-dir>/scripts/video-qa.mjs" <cmd>from the user's Remotion project root. Never usenpxfor the tool itself (npx remotion ...for rendering is fine). - Exit codes: 0 = all pass; 1 = attention needed (any finding, any escalation, or controls unreliable — treat pass answers from an unreliable run as unproven); 2 = error; the message on stderr has the fix.
- Subcommands:
| Command | What it does |
|---|---|
doctor |
Check env vars, ffmpeg, and text-engine availability. Run it first. --ping makes one clef-flash call to verify the token. |
frames |
Extract frames from the render. Native video width by default (no rescale) — full-resolution read frames for OCR and CLEF; --width W rescales. --fps samples, --frames A-B selects a 0-based frame-accurate range. --test-width N (default 350) also writes test/ frames for legibility questions; --safe shorts|tiktok|reels|creator (requires --test-width) also writes safe/ frames — the test-width frames with translucent red boxes over the platform's UI occlusion zones (the ui_occlusion question reads these; the zone numbers live in one place, the SAFE_ZONES table in the script); --diff also writes diff/ difference images for pop/abrupt-change questions; --sheet also writes sheet.png, an 8-column contact sheet for staging-order questions. manifest.artifacts records which exist. |
check |
Free local measurements on every frame: black/blank, frozen, flash, and ink (almost nothing drawn — the fraction of pixels deviating more than --ink-threshold, default 12, from the frame's median luma; below 0.005 is a finding). The ink floor is a starting-point heuristic — tune --ink-threshold per project, and declare designed sparse frames (intro cards, fades) in --declared so blackouts and holds suppress them. Writes findings.json. --declared declared.json suppresses findings that mat |
Установить clefcut-cloudflare-remotion-video в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл clefcut-cloudflare-remotion-video?
Remotion video QA with Cloudflare CLEF and CLAIRIC. Use when rendering, checking, fixing, or delivering a Remotion video in any project.
Как установить скилл clefcut-cloudflare-remotion-video?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clefcut-cloudflare-remotion-video запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub