Skip to content
SkillScript-led1,729 tokens in use

Video Clip Pipeline

Turn a long YouTube episode into three to five standalone highlight clips with Whisper, Claude segmentation and FFmpeg cuts.

3,862 stars on the repository MIT Licenseericosiu/ai-marketing-skills · video-clip-pipeline
npx skills add ericosiu/ai-marketing-skills -s video-clip-pipeline
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Video Clip Pipeline costs

27tokens idle
1,729tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: clip_cutter.py, clip_segmenter.py, longform_pipeline.py, scored_pipeline.py.

Touches

shelldetectednetworkdetectedwrites filesdetectedcredentialsdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter8/15
  • Structure15/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Good
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 12
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 38
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    clip_cutter.py, line 188
  • Reads credentials−15

    does this on the machine, and the frontmatter does not say so

    clip_segmenter.py, line 170

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity88
  • Maintenance44
  • Community56
  • Maturity28
  • Momentum40

Video Clip Pipeline converts long-form video such as podcasts, interviews and talks into highlight clips. It downloads the episode with yt-dlp, transcribes it locally with Whisper, asks Claude to find the best standalone segments, verifies the cut boundaries and cuts the clips with FFmpeg.

A scored variant runs a ten-expert quality panel and only cuts clips above a minimum score. The SKILL.md quotes a cost of roughly fifty cents to a dollar per episode in Claude API calls.

What You Get

  • Three to five highlight clips cut from one long episode
  • A segments JSON file with hook strength scores for each candidate
  • Cut boundaries verified at sentence ends before FFmpeg runs
  • An optional quality gate that only cuts clips above a score you set
  • A dry-run mode that scores candidates without cutting

Common Use Cases

  • Turning a weekly podcast episode into clips for a highlights channel
  • Working through a YouTube back catalog in batches
  • Finding the best standalone moments in an interview or talk
  • Cutting clips with padding before and after the speech

What Makes It Unique

The cut points are checked against the transcript before FFmpeg runs, so clips begin and end on complete sentences. A scored mode adds a ten-expert panel and a minimum score, which keeps weaker candidates from being cut. Everything except the Claude call runs locally.

Under The Hood

The agent runs Python scripts from the shell. They call yt-dlp to download video and captions from YouTube, run the local Whisper model, send transcript text to the Anthropic API with your key for segmentation, scoring and boundary checks, and run FFmpeg to write clip files and transcripts to disk. An upload to YouTube or Google Drive is optional and needs credentials. The SKILL.md preamble also runs two telemetry helper scripts that log usage locally and ask once about opt-in remote telemetry. The batch examples use loops and xargs over many files.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers