Command Palette

Search for a command to run...

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

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

  1. 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.
  2. Segments — free candidate segments derived from the maps (scene cuts, sentence/breath boundaries, min/max duration), each carrying the evidence that suggested it.
  3. Sheets — one contact sheet per candidate segment: a single image that shows the whole arc of the segment, evenly sampled across time.
  4. 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.
  5. 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.
  6. Cut — lossless -c copy with a 0.5 s keyframe tolerance, upgrading to a frame-accurate re-encode when the snap exceeds it; every cut reports duration_error_ms; outputs are written atomically (verified temp first). probe records a per-file fingerprint (size + head/tail sha256) that cut --strict can check so a plan built from a DIFFERENT file at the same path is refused — re-run probe after any re-render/re-export of the source.
  7. 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/cuts reported. Make the clip punchy — remove dead air.
  8. Export — platform variants per clip: original, bounded 9:16 crop (any source aspect fills 1080x1920; --crop-x/--crop-y anchor 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.
  9. Check + preview verify — check verifies an export against the shared platform table (duration/aspect are judgement calls, codec/faststart/etc. are hard format rows); preview gives 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

  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. ffmpeg is re
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/ai-gateway-and-mcp.mdreferences/clairic.mdreferences/clef.mdreferences/clip-selection.mdreferences/platform-specs.mdreferences/workflow.mdscripts/clipcut.mjstemplates/env.exampletemplates/questions.example.json

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

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

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

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