clefcut-cloudflare-video
БесплатноЗапускает вложенные скриптыНе проверенCut long videos into clips for YouTube, YouTube Shorts, TikTok, Instagram Reels, X (Twitter), and similar creator platforms. Free local scene, silence, and…
от secondsky★ 257 звёзд на GitHubОб этом скилле
ClefCut Video: long videos into creator clips on Cloudflare
ClefCut Video cuts a long local video into short clips for creator platforms,
staged so that almost everything is free: local ffmpeg measurements build the
maps and the candidate segments, one contact sheet per segment goes to
Cloudflare CLEF for clip-worthiness rating, burned-in text is read with free
local OCR (or CLAIRIC), the agent applies a scoring rubric, the user confirms
the picks, and every cut is verified by its reported duration error. The
free-first philosophy follows the sibling plugin
clefcut-cloudflare-remotion-video (Remotion QA) — same layers, different job.
Overview: the 9-step pipeline
- Probe — free local maps of the whole video: scene scores, silence ranges, loudness, plus container/codec facts and a variable-frame-rate (VFR) flag. Nothing is uploaded.
- Segments — free candidate segments derived from the maps (scene cuts, sentence/breath boundaries, min/max duration), each carrying the evidence that suggested it.
- Sheets — one contact sheet per candidate segment: a single image that shows the whole arc of the segment, evenly sampled across time.
- Rate + read — CLEF answers clip-worthiness questions about each sheet (clef-flash by default); burned-in on-screen text is read from segment frames with local OCR or CLAIRIC. Sheets and frames are uploaded for this step — say so and get the user's spend OK first.
- Agent applies the rubric + user confirms — answers map to a 0–10 score
per segment (5 criteria, see
references/clip-selection.md); the agent presents ranked candidates with scores and reasons; the user picks. - Cut — lossless
-c copywith a 0.5 s keyframe tolerance, upgrading to a frame-accurate re-encode when the snap exceeds it; every cut reportsduration_error_ms; outputs are written atomically (verified temp first).proberecords a per-file fingerprint (size + head/tail sha256) thatcut --strictcan check so a plan built from a DIFFERENT file at the same path is refused — re-runprobeafter any re-render/re-export of the source. - Tighten (optional) — silence removal on a cut clip: 0.15 s of silence
kept on each side of speech, one re-encode,
before_s/after_s/removed_s/cutsreported. Make the clip punchy — remove dead air. - Export — platform variants per clip: original, bounded 9:16 crop (any
source aspect fills 1080x1920;
--crop-x/--crop-yanchor the window — the agent picks the anchor from the free contact sheet; a portrait taller than 9:16 crops vertically), 9:16 blur-pad (warns when taller-than-9:16 vertical content is cropped);+faststart; optional two-pass loudness normalization; rotation metadata honored. - Check + preview verify —
checkverifies an export against the shared platform table (duration/aspect are judgement calls, codec/faststart/etc. are hard format rows);previewgives per output clip a 6-frame contact sheet, muted first-3s and last-3s samples, and per-boundary scene scores over ±1.5 s windows on the source. The agent reviews the samples, scores and check rows before anything is called done.
Why staged: each layer costs roughly an order of magnitude less than the one above it. Deciding from maps and sheets instead of raw frames is what keeps a 60-minute video's model spend at pennies and the agent's token spend sane.
Platform coverage is an OPEN list
This skill targets YouTube, YouTube Shorts, TikTok, Instagram Reels, X
(Twitter), and other creator video platforms. That list is deliberately open:
any platform not in the specs table uses the GENERIC CREATOR PLATFORM profile
— 9:16 1080x1920, 60–90 s or less, H.264 + AAC in an MP4 with +faststart,
even (divisible-by-2) dimensions, and critical content kept out of the top
~15%, bottom ~30%, and right ~10% of the frame. H.264 + AAC + faststart with
a 9:16 safe-middle layout passes every platform named above.
Never present the platform list as exhaustive, and never guess a spec. When a
platform question matters (exact duration cap, bitrate, safe zones), load
references/platform-specs.md — every fact there carries a VERIFIED,
VERIFIED—excerpt, or UNVERIFIED (community-measured) mark — and check the
platform's own help pages for anything still marked unverified.
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.
- ffmpeg is re
Установить clefcut-cloudflare-video в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл clefcut-cloudflare-video?
Cut long videos into clips for YouTube, YouTube Shorts, TikTok, Instagram Reels, X (Twitter), and similar creator platforms. Free local scene, silence, and OCR analysis; Cloudflare CLEF rating; verified ffmpeg cuts. Use when repurposing long video.
Как установить скилл clefcut-cloudflare-video?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clefcut-cloudflare-video запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic