Communitygithub.com

ugc-editor

Edit raw talking-head / UGC footage into a finished TikTok-style video - dead-air and retake removal, smooth (sub-pixel) zooms, TikTok-native captions with auto-contrast, hook title, B-roll and proof overlays, green screen, emoji, CTA, music, and an automatic QA report. Use whenever the user supplies raw UGC footage, asks to edit/caption/cut/zoom a talking-head video, or mentions UGC, TikTok, Reels or Shorts editing.

What is ugc-editor?

ugc-editor is a Claude Code agent skill that edit raw talking-head / UGC footage into a finished TikTok-style video - dead-air and retake removal, smooth (sub-pixel) zooms, TikTok-native captions with auto-contrast, hook title, B-roll and proof overlays, green screen, emoji, CTA, music, and an automatic QA report. Use whenever the user supplies raw UGC footage, asks to edit/caption/cut/zoom a talking-head video, or mentions UGC, TikTok, Reels or Shorts editing.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ridwanahmed06/ugc-editor/tree/HEAD/skill/ugc-editor

Ask in your favorite AI

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

Documentation

UGC editor

The ugc-edit engine does every deterministic step. Your job is the creative layer: read the transcript, decide what to cut, what the hook says, where the zooms, overlays and emoji go, then check the result.

Workflow

  1. Prepare.
    ugc-edit prepare <raw.mp4> [--brand <name>]
    
    This creates <raw>.ugc/ next to the footage: a conformed copy, words.json, a numbered transcript.md, and a draft plan.json. The draft already drops retakes, so a run with no edits is a usable cut.
    • If ugc-edit is not on PATH, run it from the repo venv: <repo>/.venv/Scripts/ugc-edit on Windows, <repo>/.venv/bin/ugc-edit elsewhere.
  2. Read transcript.md, and look at 3–4 frames of the footage to see the framing and what the speaker is wearing.
  3. Write plan.json following references/plan-guide.md. Apply references/retention.md:
    • Hook text: 3–8 words, at most two lines.
    • Drop false starts, retakes, flubs and "um" words with drop_words.
    • Punch in on payoff words or numbers.
    • Use overlays only for assets the user supplied.
    • Use emoji sparingly.
    • End on a CTA.
  4. Check and render.
    ugc-edit validate <raw>.ugc
    ugc-edit render <raw>.ugc [--brand <name>]
    
    <raw>-final.mp4 is written next to the source.
  5. Review.
    • Read <raw>.ugc/qa/report.md and view qa/contact-sheet.jpg. Every check must pass.
    • The word check re-transcribes the export to catch clipped or doubled words.
    • If a check fails or a frame looks wrong, fix plan.json (or the brand profile) and render again.
    • Tell the user the QA result. Say plainly that you could not watch the video in real time.

One-shot with no agent decisions: ugc-edit run <raw.mp4> --brand <name>.

Non-negotiables

  • Captions are TikTok-native only. Default: classic (TikTok Sans, white text, thin black outline, no box), at most 3 words per caption, one line.
    • Auto-contrast switches a caption to TikTok's own box_black or box_white style when its letters would sit on a bright area, such as a white shirt.
    • Never invent non-TikTok caption styles: no karaoke highlight, no other fonts.
    • classic is TikTok's Basic #1 recipe (stroke plus soft shadow), measured from TikTok's own renderer.
    • Use captions.mode = "tiktok_auto" (TikTok's generated-caption look: bold, two-line phrases, low in the frame) only when the user asks for it. The default is 1–3 word classic captions.
  • Never crop the footage itself. Footage is fitted and padded, never cropped. Zooms are temporary camera moves that return to 1.0×. B-roll is fitted over a blurred fill.
  • Zooms come only from the engine: sub-pixel warps with eased curves. Never use ffmpeg zoompan; it jitters.
  • Keep every intended spoken word at normal speed. Remove only dead air, retakes and filler.
  • Titles and CTAs stay below the top quarter of the frame. Hooks stay within two lines.
  • Emoji are Apple artwork from the user cache (ugc-edit setup). Never draw emoji with a font.
  • Do not publish or upload anywhere unless the user asks.

Brand profiles

brands/default.toml holds the defaults. A private brands/<name>.local.toml (gitignored) overrides the CTA, caption position, glossary (brand words whisper mishears) and audio levels. Pass it with --brand <name>.

Troubleshooting

  • A word is cut off: lower cuts.min_gap or raise pre_pad/post_pad in the brand profile, then render again.
  • The pacing feels rushed: raise cuts.min_gap to 0.2.
  • A caption covers a face or a demo: add captions.overrides with a y for that word.
  • Whisper misheard a brand name: add it to audio.glossary and delete words.json before running prepare again.
  • plan.json errors: run ugc-edit validate and fix the indices it names.

Related Skills