Longform Clip Extract
Use When
longform-to-shortshas selected and approved one or more candidate
clips.
- The next step needs actual local media files instead of only
timestamp ranges.
- A harness needs render-ready
audioPath,timestampsPath, and
visualsPath inputs for an approved source excerpt.
Workflow
- Run
longform-to-shortsfirst and review the candidate plan. - Rerun selection with
approvedCandidateIdsor otherwise produce
highlight-approval.v1.json.
- Call this skill with the source media, approval artifact, optional
boundary snap, and source timestamps.
- Use the returned per-candidate
clip-plan.jsonto decide whether
reframing is needed before video-render.
Invocation
cat skills/longform-clip-extract/examples/request.json | \
node --import tsx scripts/harness/longform-clip-extract.ts
Inside Claude Code, Codex CLI, Cursor, or another harness, prefer:
Use Content Machine to extract the approved longform candidate into
clip-local video, audio, timestamps, and visuals artifacts. Do not
render until the clip plan confirms the source range and paths.
Output Contract
For each approved candidate, writes:
clips/<candidate-id>/clip.mp4clips/<candidate-id>/audio.wavclips/<candidate-id>/timestamps.jsonwhen source timestamps are
provided
clips/<candidate-id>/visuals.jsonwhen video extraction is enabledclips/<candidate-id>/clip-plan.json
Validation Checklist
- Only approved candidates are extracted.
- Boundary-snap ranges are used when available.
- Extracted video and audio files are non-empty.
- Clip-local timestamps start at zero and stay within clip duration.
visuals.jsonpoints at the extracted local clip asuser-footage.