SkillsGrove
SkillsGrove/Vídeo curto e criadores/genfeedai/skills/clip-cutter

clip-cutter

Instalação

$npx skills add https://github.com/genfeedai/skills --skill clip-cutter
$git clone --depth 1 https://github.com/genfeedai/skills.git /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/media/clip-cutter ~/.claude/skills/clip-cutter
Por favor, instale esta Agent Skill para mim: https://github.com/genfeedai/skills/tree/38fcdb2eb770dc7e69c531dcddd2545f9f5771d3/media/clip-cutter. Leia primeiro o SKILL.md e os scripts, e só a instale na minha pasta de skills depois de confirmar que é segura.

Resumo

Descrição original · MITCut vertical 9:16 clips from a long recording locally with ffmpeg. Reframe, burn in captions from your transcript, normalise loudness, add an end card and verify the encode. No API. Triggers on "cut the clips", "make the shorts", "burn in captions", "reformat for tiktok", "cut this recording into vertical clips", "render the shorts".
O SKILL.md abaixo é reproduzido de genfeedai/skills (commit 38fcdb2) sob a licença MIT. O texto não foi alterado; apenas os metadados do cabeçalho do arquivo foram omitidos, as imagens são exibidas como links e arquivos muito longos são truncados. Copyright 2026 Genfeed.ai. Licença: LICENSE. Apenas o arquivo de instruções é exibido; consulte o repositório original para ver os scripts.

Clip Cutter

You turn the clip choices from youtube-shorts or tiktok-video into finished files. Those skills decide which moment, which first sentence and which layout. You do the cutting, reframing, captioning and encoding with ffmpeg on this machine. No model is called and no key is needed.

This is a worker skill: one script, JSON in, files and a measured manifest out.


Run It

# check ranges and lengths without encoding
bun run scripts/cut.ts --source talk.mp4 --clips clips.json --out out/clips --dry-run

# cut every clip in clips.json
bun run scripts/cut.ts --source talk.mp4 --clips clips.json --out out/clips

Requires Bun 1.1+, and ffmpeg and ffprobe on PATH, with the ass filter (libass). Zero npm packages.


The Spec

{
  "profile": {
    "version": "2026-10-1",
    "layout": "fit",
    "fps": 30,
    "loudnessLufs": -16,
    "truePeakDb": -1.5,
    "fadeMs": 15,
    "fontsDir": "./fonts",
    "captions": { "fontName": "Inter", "fontSize": 78, "marginV": 520, "maxWordsPerGroup": 3, "uppercase": true, "primaryColor": "#FFFFFF", "outlineColor": "#000000" },
    "endCard": { "text": "@genfeedai", "seconds": 1.5, "background": "#0b0b10", "foreground": "#7c5cff" }
  },
  "clips": [
    {
      "id": "cost-of-local",
      "start": "00:12:03.4",
      "end": "00:12:48",
      "words": [ { "w": "Local", "s": 723.6, "e": 724.0 }, { "w": "rendering", "s": 724.0, "e": 724.6 } ]
    },
    { "id": "second-clip", "start": 3000, "end": 3042, "srt": "./talk.srt", "focusX": 0.4 }
  ]
}
Field Notes
start, end Seconds or HH:MM:SS(.ms) in the source. A clip must be 1 to 180 seconds and inside the source.
words Word timings in source seconds. Grouped maxWordsPerGroup at a time.
srt Alternative: an SRT file with source-relative times. Cues are shown as written.
layout fit keeps the whole frame over a blurred copy of itself. fill crops to 9:16; focusX (0 to 1) picks the crop position.
endCard Optional. Add it only if the video brand profile asks for one.
fontsDir Folder with the brand font files. A missing fontName falls back silently, so check the frames.

Captions are required: every clip needs words or srt.

The timed transcript is an input. Use whichever transcription you already have; this skill does not make one. Check names, numbers and product terms against the recording before you cut.


Workflow

  1. Choose the moments with youtube-shorts or tiktok-video, and read the channel's video brand profile. Copy its caption font, position, loudness and end card into profile.
  2. Write clips.json. Start each clip on the sentence that carries the claim. Do not cut so a speaker says something stronger than they said.
  3. Dry run, then cut.
  4. Read the manifest. It reports measured values, not the settings you asked for: resolution, codecs, duration, integrated loudness and true peak. Loudness is a one-pass normalisation, so expect it near the target, not exact.
  5. Look at the clips. Pull frames at the start, middle and end, and check that captions are readable, inside the interface zones and match the speech. Report technical checks separately from a watch-through.
  6. Package with youtube-title, youtube-description, tiktok-title, tiktok-description and thumbnail-compositor for the cover.
  7. Upload only with the owner's go.

Encode settings

1080 x 1920, H.264 (CRF 20, yuv420p), AAC 160 kbps at 48 kHz, +faststart, at the profile's fps. Loudness uses ffmpeg loudnorm with the profile's target, with a short audio and video fade at the start and an audio fade at the end. The interface zones of Shorts and TikTok have no official pixel values, so marginV is a working value you verify on a phone.

Rules

  • Do not invent quotes, timestamps or numbers. Mark an estimated timestamp as estimated and check it.
  • Keep real audio; do not add music you do not own.
  • Disclosure toggles (paid partnership, realistic AI-generated content) are set on upload. Tell the owner to check the platform's current rules.
  • A rendered file proves the render, not that anyone watched it.

Limits

  • Single speaker-agnostic crop: no face tracking. Use fit, or set focusX by eye.
  • Captions are plain grouped text, no per-word highlight.
  • One source video per run.

Genfeed Integration

Works standalone. With a Genfeed workspace, upload a finished clip with upload_media. Drafts only; never publish or schedule without the owner's explicit confirmation.

Ver o texto completo da licença (MIT)
MIT License

Copyright (c) 2026 Genfeed.ai

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.