ClipForge — Long-Form Video to Short-Form Clips
Price: $20 — Video & Content. This skill ships a complete, working clipping system: a professional editing workflow, a validated editing blueprint format (JSON Schema), 9 runnable Python utilities (media inspection, frame extraction, caption/timestamp validation, real ffmpeg rendering, render validation, self-test), 8 style/caption presets, and a quality-control gate that rejects weak clips. Deliverable for a buyer: one or more rendered vertical clips (1080×1920 MP4/H.264/AAC) with burned-in captions, each backed by an editing blueprint, a clip report, and a quality report. Quality over quantity — if the source has no strong moments, ClipForge produces fewer clips, or none, and says so.
Honesty rule. ClipForge orchestrates existing tools (ffmpeg, ffprobe, transcription providers, vision models). It contains no AI model and no video-processing engine of its own. Never claim a clip was rendered, transcribed, or inspected when it was not. Every finding is labelled VERIFIED (measured), ESTIMATED (editorial judgement), or UNVERIFIED (not inspected).
When to activate
Activate ClipForge when the user asks to:
- Convert a long video into Shorts / Reels / TikToks
- Extract the best clips from a podcast, interview, webinar, or talk
- Turn a long recording into short educational or storytelling clips
- Find the strongest moments in a video and cut them professionally
- Add modern captions, clean audio, and good framing to a clip
- Analyse a video and select only its strongest moments
Do not activate for general video editing unrelated to clipping, for full-length editing, or for live-stream production.
Core workflow (do not skip stages to save time)
- Capability check — run
scripts/check_environment.py. Record what is Available / Installed / Configured / Tested / Unavailable. Never assume a tool works because it is installed. Loadreferences/capability-detection.md. - Source validation — classify the source (local file, uploaded video,
direct media URL, official API, auth-required, unsupported, restricted).
Respect copyright, platform terms, and privacy. Never bypass DRM, paywalls,
or access controls. Never upload private media to an external provider
without the user's explicit authorisation. Load
references/source-ingestion.md. - Media inspection — run
scripts/inspect_media.pyon the source. Duration, resolution, codecs, frame rate, audio streams, damage. Reject invalid metadata before planning anything. - Full-source understanding — transcription (word timestamps where
available), scene analysis, audio analysis, topic/context mapping.
Load
references/video-analysis.mdandreferences/transcription.md. Use scene-aware frame sampling and contact sheets (scripts/extract_frames.py,scripts/create_contact_sheet.py) — never send every frame to a model. - Candidate discovery — layered discovery (understanding → moments →
segmentation → story analysis → quality evaluation → redundancy removal →
editorial selection). Load
references/clip-discovery.md. - Editorial review — score every candidate on the 10-criterion model
(Hook 12, Information/entertainment value 15, Narrative completeness 15,
Context/clarity 15, Retention 12, Payoff 10, Originality 8, Visual 5,
Audio 3, Natural boundaries 5 = 100). Apply the mandatory rejection gates.
A candidate that changes the speaker's meaning, lacks context, has a
misleading hook, is repetitive, or ends without a payoff is rejected.
Load
references/editorial-review.md. - Editing blueprint — one validated blueprint per selected clip
(
schemas/editing-blueprint.schema.json). Source in/out points, hook, context, main point, payoff, style, aspect ratio, crop keyframes, caption intervals, audio filters, render parameters. Validate withscripts/validate_timestamps.py. Timestamps are in seconds, source time. Never mix source, clip-relative, and output timelines. - Production — render with
scripts/render_clip.py(real ffmpeg: trim → crop/scale → burn subtitles → audio filters → MP4/H.264/AAC). Captions followreferences/caption-engine.mdand a preset frompresets/; validate them first withscripts/validate_captions.py. Loadreferences/rendering.md,references/smart-framing.md,references/audio-enhancement.md,references/visual-enhancement.md. - Quality control — run
scripts/validate_render.py(technical), inspect frames (beginning/middle/end + edit boundaries), check audio, then editorial review. Loadreferences/quality-control.md. A clip with corrupted output or misleading meaning fails regardless of any editorial score. - Self-repair (bounded) — classify the defect, change a parameter,
re-render, re-inspect. Max 2 repair attempts per clip (configurable).
Never repeat a failed render unchanged. Load
references/self-repair.md. - Delivery — output the rendered clip(s) plus
clip-report.json(schemas/clip-report.schema.json) andquality-report.json(schemas/quality-report.schema.json) per clip. State what was VERIFIED vs ESTIMATED vs UNVERIFIED.
Full step-by-step workflows live in workflows/:
complete-workflow.md (the default), source-validation.md,
video-understanding.md, candidate-discovery.md, editorial-review.md,
clip-production.md, final-inspection.md, failure-recovery.md.
Mandatory decision rules
- Quality over quantity. No mandatory clip count. Zero clips is a valid, honest result when nothing deserves publication. Never invent moments.
- Meaning first. Never reorder statements in a way that changes meaning. Preserve the source-time mapping in every edit.
- Captions must be accurate. Do not claim exact transcription accuracy without a reference transcript. Mark uncertain words; use the audio for review.
- Framing must be safe. Prefer a static, stable crop when tracking is unreliable. Never cut off a face or cover the subject with captions.
- Audio must stay natural. No aggressive denoising, no synthetic voice replacement presented as enhancement.
- Evidence labels. Every important claim is VERIFIED, ESTIMATED, or UNVERIFIED. Never blend estimated and verified scores into one falsely precise number.
- No silent shortcuts. A simplified stage must be documented in the clip report with the reason.
- No overwriting. Never overwrite a user's file without explicit permission.
- Resource limits. No GPU required. Check disk space and duration before rendering; use proxies for long sources.
Tool selection
Prefer stable, well-supported tools. Core: ffmpeg + ffprobe (required for rendering and inspection). Optional: Whisper-compatible transcription, PySceneDetect, OpenCV, ASS subtitles, vision models, audio enhancement services. Select by actual availability, licensing, and reliability. If a preferred method is unavailable: use a compatible tool → another validated method → a lower-resource workflow → ask the user for a transcript or input → clearly report the capability as unsupported. Never fabricate successful processing.
Configuration
schemas/configuration.schema.json defines the config file. Style presets
in presets/: clean-podcast, cinematic-storytelling, educational-dynamic,
entertainment, debate-interview (styles) and clean-minimal-captions,
modern-captions, cinematic-captions (caption designs). Pick a style from the
content, never one preset for everything.
Outputs
Per clip: rendered MP4, clip-report.json, quality-report.json, optional
SRT/VTT. Per run: a run summary listing candidates considered, rejected
(with reasons), selected, rendered, repaired, and delivered — with evidence
labels. See examples/ for worked examples and examples/sample-blueprint.json.
Failure handling
- Source inaccessible → explain why, offer local-file or authorised-access alternative. Never retry a forbidden source.
- Tool missing → report the capability as unavailable, offer the lower-resource path. Never fake the step.
- Render fails → capture the log, classify, repair once with a changed parameter, re-inspect. After the retry limit, report the failure with diagnostics and the next practical step.
- No strong moments → deliver an honest zero-clip result with the analysis.
Testing
Run python scripts/self_test.py — it reports passed / failed / skipped per
category and runs a real synthetic end-to-end render when ffmpeg is present.
Full suite: python -m unittest discover -s tests -v. See tests/README.md
and docs/.
Compatibility (verified)
- Verified: any agent environment with Python 3.9+ and ffmpeg/ffprobe on the command line (tested on Linux, ffmpeg 8.1.2, Python 3.12). The scripts use only the Python standard library — no extra packages.
- Best-effort / unverified: Claude Code and other skill-loading
environments that support a
SKILL.mdwith YAML frontmatter — the skill is written to that convention, but no Claude-specific integration was executed in this environment. Do not claim verified Claude compatibility beyond the shared convention. - Transcription, vision, and enhancement providers are optional and environment-dependent; the skill detects and reports them, it does not bundle them.
Author
ClipForge by Lavish Gangwar (GitHub @MrVempiree,
[email protected]). MIT licence. See README.md for the full guide.