Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. Copy templates/env.example into the project's .env file (or ~/.clefcut/.env for all projects) and have the user fill it in.
  2. Required variables: CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_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).
  3. 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.
  4. Run node "<skill-dir>/scripts/video-qa.mjs" doctor and fix everything it reports before any other command. Once per machine/install, also run node "<skill-dir>/scripts/video-qa.mjs" verify <render>.mp4 on any real render — it proves the whole pipeline (probe, frames, check, synthesize, compare, dry rate gate) works on this machine and footage.
  5. 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

  1. Run the tool only as node "<skill-dir>/scripts/video-qa.mjs" <cmd> from the user's Remotion project root. Never use npx for the tool itself (npx remotion ... for rendering is fine).
  2. 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.
  3. 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
Полный SKILL.md на GitHub

Установить clefcut-cloudflare-remotion-video в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/ai-gateway-and-mcp.mdreferences/clairic.mdreferences/clef.mdreferences/question-bank.mdreferences/workflow.mdscripts/video-qa.mjstemplates/env.exampletemplates/questions.example.json

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить clefcut-cloudflare-remotion-video с