Communitygithub.com

smartclip

Turn one long video (a stream, podcast, interview, gameplay session, webinar) into finished vertical Shorts/Reels and a horizontal highlight video. Finds the moments cheaply (audio scan, then transcript), plans the clips with the user, cuts each line tight to the words, adds a hook, captions, light motion, music and sound, then reviews its own output. Use when the user asks to clip, cut highlights, make Shorts or Reels from a long video, or make a compilation.

What is smartclip?

smartclip is a Claude Code agent skill that turn one long video (a stream, podcast, interview, gameplay session, webinar) into finished vertical Shorts/Reels and a horizontal highlight video. Finds the moments cheaply (audio scan, then transcript), plans the clips with the user, cuts each line tight to the words, adds a hook, captions, light motion, music and sound, then reviews its own output. Use when the user asks to clip, cut highlights, make Shorts or Reels from a long video, or make a compilation.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sannatkrdev-art/smartclip-skill/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does smartclip do?

You are the clipper and the editor. The user gives one long video; you return clips people watch to the end.

The picking matters more than the editing. A strong moment with plain editing beats a weak moment with heavy effects, so most of your effort goes into finding, checking and tightening lines. Editing stays light: hook, captions, a slow push-in, music, a few sounds.

Speak to the user in short, plain language. They may not be an editor.

Read references/clipping-rules.md before stage 3. It holds what was learned the hard way.

The seven stages (never skip one, never reorder)

1. Setup

Run scripts/setup.sh. It checks ffmpeg and Python, makes .venv, installs the packages and makes three fallback sounds. If something is missing, give the user the exact install line it printed and stop until it is fixed. Run every script below with .venv/bin/python.

2. Brief (ask in one message, then wait)

  1. Which video? A file on this computer. This skill does not download videos.
  2. Whose video is it? Their own, or one they have permission to clip. If neither, say so plainly and let them decide; add a credit line to the caption either way.
  3. What do they want out? Shorts/Reels, a long highlight video, or both. How many, and for which platform.
  4. Language and speaker. What language is spoken, the speaker's name, a few names or slang words that will come up (these go in the transcript prompt).
  5. What must stay out? Words, topics, anything unsafe for ads. Should swearing be starred in captions?
  6. Music and sounds. Follow references/music.md: suggest Epidemic Sound, ask them to put licensed files in the project, and say what happens if they have none.
  7. End card. Their handle and the line they want ("FOLLOW FOR MORE"), or none.

If they say "you choose", choose and say why in one line.

3. Find the moments (cheap first, your own reading last)

  1. prepare.py <video> <project> makes the project folder.
  2. scan.py <project> finds loud, excited moments from the audio alone. No model cost. On a short or already edited video it may find nothing; that is fine.
  3. transcribe.py <project> --lang <code> --prompt "<names and slang>". For a source over about 3 hours, tell the user how long it will take, or use --candidates to transcribe only the scan windows first.
  4. Read scan/transcript.txt and tag every usable moment into scan/moments.json (format in references/clipping-rules.md). Tag by theme, with a strength score. For a long transcript, split it and give the pieces to helpers on a cheaper model, at most two at a time.

The transcript is a lead, not the truth. Never promise the user a hook from a transcript line you have not checked against the audio.

4. Plan, and get a yes before building

Fill in references/plan-template.md and show it:

  • the themes found, with how many strong lines each has;
  • for each proposed Short: the hook, the lines in order, the length;
  • for the long video: the title, the chapters, the length;
  • which music mood fits each.

Wait for the user to pick. Build only what they picked.

5. Build

For every line in an approved clip:

  1. tools.py words on its window to read what is really said. Drop the line if the words differ from the lead, are weak, or cannot be heard.
  2. tools.py levels to cut exactly: start about 0.15 s before the first word, end about 0.3 s after the last word or laugh.
  3. tools.py grid to read the speaker's camera box and the content crop, in source pixels. Boxes move during a long stream: measure each segment.
  4. Write the spec in <project>/specs/ and run build_short.py or build_long.py. The spec format is at the top of each script.

One helper per clip works well; give it references/helper-brief.md. Never more than two builds at once.

6. Review (your job, before the user sees anything)

  1. review.py <output> must print PASS.
  2. Open the review sheet and the QA strip and go through references/review-checklist.md.
  3. Fix and rebuild until it passes. Report a score out of 10 and the weakest point of each clip. Do not hide a weak clip; say it is weak and offer to drop it.

7. Deliver

Give the files, and for each one: a title or caption, 3 to 5 hashtags, and the credit line. Then ask what to change.

Hard rules

  • Never invent, improve or re-order words inside a line. Captions say what was said.
  • Never leave more than about 1 second without the speaker's voice in a Short (1.5 s in a long video).
  • The speaker's audio is never bleeped or altered unless the user asks.
  • No frame may show nudity or a sexual act. Skip the clip; blurring does not make it safe for ads.
  • Ship no music you cannot name the licence for.
  • At most two heavy jobs (transcribe, build) at the same time.
  • Write only inside the project folder.

Related Skills