Communitygithub.com

longform-edit

원본 긴 형식 YouTube 녹화물(화면 녹화, 카메라 파일, 또는 별도 마이크 음성)을 자동으로 편집하여 게시 준비가 완료된 비디오로 만듭니다. Descript의 자동 조종 버전과 같습니다: 단어 타임스탬프로 전사하고, 재촬영(retake)을 제거하고 마지막 테이크를 유지하며, 묵음 중 화면 동작이 있을 경우 속도를 높여 데드 스페이스를 전략적으로 줄이고, 음성을 -14 LUFS / -1.5 dBTP로 마스터링하며, 최종 렌더를 다시 전사하여 모든 단어에 대한 SRT(선택적으로 자막 내장)를 생성하고, 챕터, 제목, 설명을 초안 작성하며, QA 게이트(단어, A/V 동기화, 챕터별 자막 동기화, 자막 커버리지, 음량) 및 연속 사진(contact sheet)에서 실패 시 명확히 알려줍니다. 누군가 '이 긴 형식 편집해 줘', '내 녹음 정리해 줘', '재촬영과 데드 스페이스 잘라 줘', '긴 형식 인박스 처리해 줘', 'Descript 해 줘'라고 말할 때 사용하세요. Claude Code, ffmpeg, whisper.cpp, Python 3이 필요합니다.

longform-edit란 무엇인가요?

이 스킬은 긴 형식의 YouTube 비디오(화면 녹화, 카메라 녹화, 또는 별도 마이크 오디오 포함)를 완전 자동으로 편집하여 게시 가능한 상태로 만들어 줍니다. 사용자가 원본 파일을 폴더에 넣고 하나의 명령을 실행하면, 스크립트가 비디오를 전사(whisper.cpp 사용)하고, 재촬영(retake)을 감지하여 마지막 테이크만 남기고 나머지는 제거하며, 데드 스페이스를 분석하여 화면 동작이 없는 묵음은 압축하고 동작이 있는 구간은 속도를 높이거나 유지합니다. 오디오는 전문적인 수준으로 마스터링(-14 LUFS, -1.5 dBTP)되며, 최종 렌더링된 오디오를 다시 전사하여 정확한 단어 수준의 SRT 자막을 생성하고, 챕터, 제목, 설명도 자동으로 초안을 작성합니다. 여러 가지 QA 게이트(단어 정확도, A/V 동기화, 자막 동기화, 자막 커버리지, 음량)를 통과해야만 최종 출력이 제공되며, 실패할 경우 명확한 실패 이유와 함께 표시됩니다. Claude Code 환경에서 실행되며, ffmpeg, whisper.cpp, Python 3 및 관련 패키지가 필요합니다. 또한 편집 결정에 대한 상세한 REVIEW.md와 연속 사진(contact sheet)을 제공하여 사람이 검토할 수 있도록 합니다.

지원 대상✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/jsath/claude-skills/tree/HEAD/skills/video/longform-edit

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

longform-edit은(는) 무엇을 하나요?

원본 파일을 폴더에 넣고 하나의 명령을 실행하면, 편집되고, 마스터링되었으며, 자막이 포함된 비디오와 모든 컷을 설명하는 REVIEW.md가 생성됩니다. 짧은 형식의 자매 스킬: edit-style (릴스). 전사 설정: use-local-whisper. 썸네일: thumbnail-generator. 클립용 플랫폼별 자막: reel-captions.

요구 사항 (먼저 확인하고, 사용자가 동의한 후에만 설치)

ffmpeg -version | head -1                       # 6.x+; libass는 --burn-captions에만 필요
whisper-cli --help >/dev/null && echo WHISPER_OK   # whisper.cpp (brew install whisper-cpp)
ls ~/models/whisper/ggml-small.en.bin           # 또는 paths.whisper_model 설정
python3 -m pip install -r scripts/requirements.txt  # numpy, pillow, opencv-python-headless
which claude                                     # 선택 사항: 제목 + 챕터 이름

모델: curl -L -o ~/models/whisper/ggml-small.en.bin https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.en.bin (466 MB; 느린 기계는 ggml-base.en, 비영어권은 다국어 ggml-small). 다른 전사기도 괜찮습니다: --words words.json에 [{"w": "단어", "s": 0.12, "e": 0.40, "p": 0.9}] 형식으로 전달하세요. Claude.ai에는 ffmpeg가 없습니다: 거기서는 타임스탬프가 포함된 붙여넣은 전사본을 받아 컷 목록, 재촬영 테이블, 챕터 및 SRT만 반환하세요. 렌더링된 것은 아무것도 없다고 명확히 말하세요.

설정 (한 번만)

config.example.json을 ~/longform/config.json으로 복사하고, paths.inbox, paths.outbox, paths.whisper_model, transcribe.prompt와 publish.word_fixes에 사용자 이름을 설정하고, 선택적으로 publish.cta_line + publish.cta_keywords (초안은 비디오 중간에 클릭 유도 문구가 없으면 플래그를 표시합니다)를 설정하세요. 아래 모든 임계값은 이 파일에 있습니다.

실행

S=~/.claude/skills/longform-edit/scripts/longform_edit.py
python3 $S ~/longform/inbox/<slug>/ --config ~/longform/config.json             # 하나의 비디오
python3 $S --config ~/longform/config.json                                      # 아직 REVIEW.md가 없는 모든 인박스 폴더
python3 $S <folder> --plan-only      # 약 1분 안에 컷 계획 + REVIEW.md 생성, 렌더링 없음
python3 $S <folder> --mic voice.wav  # 별도 마이크, 상호 상관으로 동기화 (시작 부분에서 박수 치면 도움 됨)
python3 $S <folder> --kind camera    # 토킹 헤드: 모든 묵음은 유휴 상태로 간주 (움직임 또는 파일 이름에서 자동 감지)
python3 $S <folder> --burn-captions  # 2-5단어 자막이 포함된 <slug>.captioned.mp4도 생성
python3 $S <folder> --no-llm         # 휴리스틱 챕터 제목, claude CLI 호출 없음

인박스: <inbox>/<slug>/ 에 하나의 비디오(가장 큰 파일 사용)와 선택적으로 하나의 오디오 파일(음성으로 사용) 및 비디오별 재정의가 포함된 config.json이 있습니다. 출력: <outbox>/<slug>/. 15분 원본은 약 6-12분 소요됩니다. 백그라운드에서 실행하고 <outbox>/<slug>/run.log를 모니터링하세요. 재실행 시 캐시됩니다: 변경된 단계만 다시 실행합니다.

결정 사항 (세부 사항 및 모든 숫자는 references/method.md 참조)

  1. 재촬영, 마지막 테이크 유지. 고유한 구문으로 말한 명시적 큐("let me say that again", "retake", "scratch that", 설정에 22개 큐)는 포기한 시도와 큐를 잘라냅니다. 처음부터 다시 시작된 라인(같은 시작 단어, 유사도 >= 0.8, 45초 이내)은 이전 시도를 잘라냅니다. 연속 반복 구문은 첫 번째 복사본을 잃습니다. um/uh가 묵음으로 구분되면 잘라냅니다. 이보다 약한 것은 플래그만 표시하고 자르지 않습니다.
  2. 데드 스페이스, 전략적으로. 모든 묵음 >= 0.7초는 화면(8fps에서 프레임 차이, 커서 크기 blob 무시, 웹캠 버블 마스킹, 순 첫 번째-마지막 변경으로 느린 타이핑 감지)과 비교하여 확인됩니다. 정적 화면: 문장 중간 0.28초 / 문장 끝 0.40초로 압축, 호흡 유지. 커서만 있는 경우: 0.6초. 실제 화면 동작: 유지, 양쪽 유휴 부분 트리밍; 4.5초 이상 지속되면 1.5-3배속으로 재생되고 마지막 0.9초는 1배속으로 재생되어 결과물이 자연스럽게 마무리됩니다. 컷은 측정된 묵음에서만 적용되며, 단어 중간에는 절대 적용되지 않습니다.
  3. 음성 마스터링, 배경 음악 없음. HPF 75Hz, 측정된 바닥 잡음을 기반으로 한 FFT 노이즈 제거, 머드 컷, 프레즌스, 에어, 디에싱, 2.5:1 압축, -14 LUFS로 게인 조정, <= -1.5 dBTP 리미터, 필터 지연 시간 측정 및 제거.
  4. 최종 오디오에서 자막 생성. 최종 렌더를 다시 전사합니다. SRT는 소스 전사본이 아닌 여기서부터 구축되며, 큐 시작은 음성 시작점에 맞춰집니다. 모든 단어가 커버됩니다 (게이트 통과).
  5. 게시 초안. 챕터(구조적 큐: "the first", "next", 긴 멈춤, 큰 화면 변화; >= 3개, 첫 번째는 0:00, 각각 >= 40초), 3개의 제목 옵션, 설명, 고정 댓글, 태그 및 사실 확인 플래그는 claude CLI가 있을 때 사용하고, 없으면 휴리스틱을 사용합니다. 3개의 썸네일 후보 프레임(각 1/3 지점에서 가장 선명하고, 가장 화려한 프레임).

게이트 (실패 시 exit 2 및 <slug>.FAILED-GATES.mp4 생성)

게이트통과 조건
frames모든 청크가 정확히 EDL 프레임 수와 일치; 비디오와 오디오 길이 차이 1.5 프레임 이내
words최종 재전사가 유지된 소스 단어의 >= 93%를 재현하고, 6단어 이상 손실된 실행 없음
av_sync10번 프로브: 오디오 지연 <= 25ms 및 프레임이 소스와 +-0.5초 이상 차이 나지 않음
captions챕터별, 큐 시작과 오디오 시작점: 중앙값 <= 0.12초, p95 <= 0.25초
caption_coverage최종 단어의 >= 98%가 자막 안에 포함
loudness-14 +-1 LUFS 통합, 실제 피크 <= -1 dBTP

실행 후 (에이전트의 작업, 건너뛰지 마세요)

  1. 종료 코드. 0 = 모든 게이트 통과. 2 = 파일을 완료된 것으로 절대 전달하지 마세요; REVIEW.md에 어떤 게이트와 이유가 나와 있습니다.
  2. contact-sheet.jpg와 cuts-sheet.jpg를 확인하세요 (이미지 열기): 모든 타일에 그림이 있고, 검은 프레임이 없으며, 각 편집 지점의 전/후가 연속적인 상태처럼 보여야 합니다.
  3. REVIEW.md 읽기: 재촬영 컷(전/후 텍스트), 플래그만 표시되고 자르지 않은 목록, 유지된 화면 동작, 음량, 챕터별 자막 동기화, A/V 프로브, 단어 검사. 결정을 변경하려면 <outbox>/<slug>/overrides.json에 작성하고 같은 명령을 다시 실행하세요(시간은 SOURCE 초, src 열):
    {"keep_retakes": ["R03"], "cut_retakes": ["R07"], "keep_ranges": [[312.0, 330.5]],
     "force_cut": [{"s": 100.2, "e": 104.9, "why": "기침"}]}
    
  4. PUBLISH.md는 초안입니다. 약한 제목은 다시 쓰고, 플래그가 표시된 모든 숫자는 사실 확인(측정된 값, 같은 출처, 같은 범위)하고, publish.word_fixes에서 이름 철자를 수정한 후 다시 실행하여 SRT가 올바르게 수정되도록 하세요.
  5. 절대 업로드하거나 예약하지 마세요. 경로를 다시 전달하세요; 사람이 게시합니다.

다음 형식으로 보고

LONGFORM EDIT: <slug>
실행 시간   14:32 -> 11:05 (24% 컷): 6 재촬영, 11 필러, 3 속도 증가, 41 멈춤 압축
게이트     6/6 통과 (단어 97.8%, 최대 A/V 지연 4ms, 자막 중앙값 0.05초, -14.0 LUFS / -1.6 dBTP)
플래그     R04 (03:12) 재시작? 유사도 0.62, 유지됨; "saves 10 hours" (07:40) 출처 필요
파일       <outbox>/<slug>/<slug>.mp4, .srt, chapters.txt, PUBLISH.md, REVIEW.md, thumbs/
contact-sheet.jpg와 cuts-sheet.jpg 확인: 깨끗함. 업로드된 것 없음.

무언가 누락된 경우

  • whisper 모델 없음: 중단하고 위의 다운로드 라인을 출력하거나; 다른 전사기의 --words를 수락합니다.
  • opencv 없음: 어쨌든 실행되지만, 모든 묵음은 유휴 상태로 처리됩니다(run.log에 명시됨); 화면 녹화의 경우 설치하세요.
  • claude CLI 없음: 휴리스틱 챕터 제목, PUBLISH.md에 재작성 필요함이 플래그 표시됩니다.
  • libass 없는 ffmpeg: --burn-captions는 건너뛰고 메모를 남깁니다. SRT는 여전히 제공됩니다 (YouTube CC로 업로드).
  • 마이크 동기화 신뢰도가 4 미만: 중단하고 시작 부분에서 박수 치거나 마이크를 떨어뜨리라고 요청합니다.

편집을 더 좋게 만드는 녹화 습관

라인을 다시 하기 전에 "retake" (또는 "let me say that again")를 별도의 문장으로 말하세요: 전체 문장을 자르는 유일한 큐입니다. 로딩을 기다리는 동안에는 커서를 멈추고 조용히 있거나(컷) 내레이션을 하십시오(유지). 정적인 차트를 조용히 응시하는 것은 압축됩니다: 그것을 보여주면서 무언가 말하세요. 파일당 하나의 연속 테이크.

선택적 단계(그래픽 패널, 장면 전환, 스타일 프로필, 외부 카메라 동기화, 재촬영 공개)는 references/optional-stages.md에 설명되어 있습니다; 이 스크립트에는 포함되어 있지 않습니다.

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

jsath/claude-skills

Writes captions for a finished video from its transcript: pulls the line worth repeating, writes first-line options, writes per-platform versions (Instagram, TikTok, YouTube title and description, others on request), keeps the creator's voice using their best past captions, and checks the call to action matches what the video actually says. Use when a creator asks for captions, a caption hook, a YouTube title and description, or a CTA check. Drafts only; never posts or schedules.

jsath/claude-skills

Write CAPTIONS-PLATFORMS.md for one finished short video: a per-platform post caption for Instagram, TikTok, YouTube Shorts (title + description), Facebook, Threads, Bluesky and X, each within that platform's limits, with your comment-keyword CTA on the platforms where it belongs and never on X. Keyword, CTA, platforms, hashtags and limits come from a config file; a checker script fails the file on any miss. Use after an edit is finished, when asked to 'write the captions', 'caption this reel for every platform', or before scheduling.

jsath/claude-skills

Transcribe audio or video on your own machine with Whisper (mlx-whisper, faster-whisper or whisper.cpp) and get word-level timestamps as words.json, a plain .txt and an .srt. No API key, nothing uploaded. This is the transcription step the editing skills (edit-style, longform-edit, reel-captions) depend on. Use when asked to transcribe a take, get word timings, make an SRT, re-transcribe a final render for a caption sync check, or 'run whisper locally'.

jsath/claude-skills

Turns one published long-form video or podcast transcript into up to thirty pieces: 10 clips with new hooks and exact timestamps, 8 X posts, 4 LinkedIn posts, 3 carousels, 2 threads, a newsletter, a community post and a blog post, laid out on a two-week plan, all built only from what was said. In Claude Code it also cuts, reframes and captions the clips with ffmpeg. Use when someone wants to repurpose a long video, find clips, or write social posts from a transcript. Never posts or schedules.

jsath/claude-skills

Turn a raw talking-head take into a dynamically edited 1080x1920 reel: full-face, full-graphic and split layouts that switch every 2 to 5 seconds, real UI and official-logo panels, captions on every word timed by Whisper, voice plus synthesised SFX (no music bed) mastered to -14 LUFS, and hard QA gates (caption sync on the final render, A/V length, loudness, colour, framing, contact sheet, claims). Also covers writing the script so it does not read as AI. Use when asked to 'edit this reel', 'make it look edited', 'add captions / dynamic layout / graphics', or 'write a reel script'.

jsath/claude-skills

Turns one podcast episode transcript into a week of written content: an Episode Prep agent that checks the transcript and speaker names, a Clip Spotter that picks the best short-clip moments with exact timestamps and hooks for an editor to cut, a Show Notes Writer that writes show notes and chapter markers, a Repurpose Writer that turns the big ideas into a newsletter, a LinkedIn post and Instagram captions, and an Episode Planner that spreads it all over the week. Works from a transcript the user supplies or exports from their transcription tool. It does not edit audio or video and does not cut clips. Use when a podcaster asks for show notes, chapters, clip timestamps, or posts from an episode, or says \"repurpose this episode\". Drafts only; never posts.

jsath/claude-skills

Turns one raw talking-head take into a finished 1080x1920 vertical reel in Claude Code with free local tools (ffmpeg, whisper.cpp, headless Playwright): transcribes, keeps the last take of repeated lines, cuts pauses, captions every word, adds real screenshots and official logos, and runs measured QA gates. Use when someone wants a raw phone take edited into a Reel, TikTok or Short, retakes and silences cut, word-by-word captions, or a finished video checked. In Claude.ai it only produces a cut list, shot plan and .srt from a pasted transcript.

jsath/claude-skills

Turns notes, voice-note transcripts and half ideas into Reel, TikTok and YouTube scripts in the creator's own voice: ranks an idea bank, writes ten hooks per idea, writes the script at the right length, rewrites anything that sounds like AI using transcripts of the creator's past videos, and fact-checks every claim with a source and date. Use when someone wants a video script, hooks, a ranked list of what to film, a voice pass, a claims check, or a record sheet to read from while filming.

jsath/claude-skills

Reviews and rewrites a video script (YouTube long-form, a short, or a talking-head reel) so it sounds like one person talking to one friend and holds attention: kills forced analogies and presenter phrases, fixes framing, checks hooks, open loops and re-engagement beats, and suggests titles. Use when someone says fix this script, polish my script, make it sound like me, tighten this before I film, or asks for a hook or title for a video. Returns the rewritten script plus a short change log.

jsath/claude-skills

Make a 1280x720 YouTube thumbnail (or a banner/cover) that reads at phone size: a text-free background plate (generated or from a real frame), a real cutout of the person, 1 to 3 words in tight colour blocks, an official logo, composed by a script that checks overlaps and frame edges and renders the 320px and 168px views you must look at. Use when asked for a thumbnail, cover, banner, 'make this clickable', or to fix a thumbnail that looks cluttered or small.

jsath/claude-skills

Runs five agents that keep a YouTube channel's titles and descriptions matched to what people search for now: a Channel Reader that pulls the user's own video list and stats with their YouTube Data API key, YouTube Analytics OAuth or a pasted YouTube Studio export, a Niche Watcher that finds what is working right now for similar-size channels from public search results the API returns or the user provides, a Title Writer that drafts titles, descriptions and chapters for new videos, a Back Catalogue agent that picks old videos worth a refresh and drafts new versions, and a Change Tracker that records every change the user makes and compares before and after on matched windows. Use when a creator asks for YouTube SEO, better titles or descriptions, what is working in their niche, a back catalogue refresh, or says \"seo run\". Never invents search volumes or stats and never changes a video; drafts only.

관련 스킬