--- name: editor description: Local, open-source video editor that agents drive with FFmpeg and whisper.cpp. Use when the user wants to edit a video file - cut out silence, pauses or dead air; remove repeated takes or cut words using the transcript; add captions or subtitles; make a vertical 9:16 (Shorts, Reels, TikTok), square or 4:5 version; cut clips or shorts from a long video or podcast; even out the volume (loudness normalization); trim, split, join or crossfade clips; add text, title cards or zoom; clean up a talking-head video, screen recording, tutorial or podcast; render an mp4; or export the cut to Final Cut Pro, DaVinci Resolve or Premiere Pro (FCPXML / XML). Runs offline with no API key; every timeline edit can be undone; no generative AI. license: MIT compatibility: Requires Node 24+. FFmpeg is auto-downloaded via ffmpeg-static on first use; override with MAKEMYCLIP_FFMPEG_PATH. Transcription (transcript cuts, retakes, captions) needs a user-installed whisper.cpp and a model file set in MAKEMYCLIP_WHISPER_MODEL. metadata: author: makemyclip homepage: https://github.com/MakeMyClip/editor runtime: node install: npx skills add MakeMyClip/editor --- # MakeMyClip Editor — Agent Skill Drive a local video editor by chatting. When triggered, this skill shells out to the `clip` CLI via `npx` (auto-downloaded on first use, cached after). No MCP setup, no global install, no config edits. ## When to invoke Trigger this skill when the user asks to: - Edit, trim, cut, or splice a video file - Cut the silence, pauses, or dead air out of a recording ("tighten it up", "remove the gaps") - Remove repeated takes or bad takes, or cut a sentence or words by the transcript - Clean up a talking-head video, tutorial, lecture, or video podcast - Cut clips or vertical shorts (Shorts, Reels, TikTok) out of a long video, webinar or podcast - Add captions or subtitles timed to the speech, or titles and lower-thirds - Zoom, pan, or apply Ken Burns to a region of a clip - Assemble multiple clips into one (concat, montage) - Render a screen recording into a demo or social clip - Hand a cut to Final Cut Pro, Premiere Pro or DaVinci Resolve (FCPXML / XML project export) Do **not** invoke for: pure transcription (use a speech-to-text skill), thumbnail-only image work, or live streaming. ## How to use ### Probe a media file (implemented) ```bash npx -y @makemyclip/editor ingest ``` Returns metadata as JSON — duration, video stream (codec, dimensions, fps), audio stream (codec, sample rate, channels), plus a deterministic `mediaId` derived from the absolute path: ```json { "mediaId": "m_a1b2c3d4e5f6", "ref": { "path": "/abs/path/screen.mp4", "durationSec": 83.5, "video": { "codec": "h264", "width": 1920, "height": 1080, "fps": 30 }, "audio": { "codec": "aac", "sampleRate": 48000, "channels": "stereo" } } } ``` Call this first to ground yourself in what the source actually contains — duration for trim calculations, dimensions for zoom/overlay placement, presence of audio before suggesting `add_audio`. Same input path always returns the same `mediaId`. ### Split a clip at a point (implemented) ```bash npx -y @makemyclip/editor split ``` Divides a clip into two halves at `atSec`. Stream-copy (no re-encode), so it's fast — both halves are produced in parallel. Returns paths to both: ```json { "before": "/var/folders/.../split-before-abc.mp4", "after": "/var/folders/.../split-after-xyz.mp4", "atSec": 12.5, "durationMs": 38 } ``` Keyframe-accurate (not frame-exact) because stream-copy can't decode-and-cut mid-GOP. If you need a frame-exact split, run `render` first to re-encode, then `split`. ### Trim a clip (implemented) ```bash npx -y @makemyclip/editor trim ``` Timecodes accept `HH:MM:SS[.ms]`, `MM:SS`, or seconds as a number. The output is JSON: ```json { "path": "/var/folders/.../makemyclip-editor/trim-abc123.mp4", "durationMs": 14 } ``` Trim is stream-copy (no re-encode), so it's fast and lossless. Output lands in `$MAKEMYCLIP_WORKSPACE` (defaults to `os.tmpdir()/makemyclip-editor`). ### Add a text overlay (implemented) ```bash npx -y @makemyclip/editor add_text ``` Burns a text overlay into a copy of the video. - `` is one of: `top-left`, `top-center`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom-center`, `bottom-right` - `` / `` are seconds from the start of the input - Defaults: font size 48, white text, translucent black background box for readability Returns JSON: ```json { "path": "/var/folders/.../makemyclip-editor/add-text-abc123.mp4", "durationMs": 412 } ``` The text is written to a temp file before being passed to ffmpeg, so quotes, colons, commas, brackets, and most Unicode work without manual escaping. Caveat: literal `%{...}` in the text would be interpreted as a drawtext expression (rare in real captions; avoid). ### Stitch clips together (implemented) ```bash npx -y @makemyclip/editor concat [ ...] ``` Concatenates two or more clips back-to-back into a single output, stream-copy (no re-encode), so it's fast and lossless. Returns JSON: ```json { "path": "/var/folders/.../makemyclip-editor/concat-abc123.mp4", "durationMs": 95, "inputCount": 3 } ``` All inputs must have matching codecs and resolution; if they don't, ffmpeg will fail with a clear error and the agent should re-encode (e.g. via `add_text` with a no-op text, or a future `render` call) before concatenating. The combined `trim → concat` flow is the bread-and-butter highlight-reel workflow: trim N segments, then concat them in order. ### Extract a preview frame (implemented) ```bash npx -y @makemyclip/editor preview ``` Extracts a single JPEG frame at the given timecode. Use this **after every mutating edit** to verify the output before moving on — text overlays land where you intended, trim cuts at the right point, concat seams line up. Returns JSON: ```json { "path": "/var/folders/.../makemyclip-editor/preview-abc123.jpg", "atSec": 1.5, "durationMs": 12 } ``` Fast (~10-50 ms) because it uses ffmpeg's input-seek (`-ss` before `-i`) — keyframe-accurate, not frame-exact, which is fine for thumbnails. The user can open the JPEG to confirm; agents that support image inputs can read it back to self-correct. ### Transition between two clips (implemented) ```bash npx -y @makemyclip/editor transition [] [] ``` Crossfades, slides, or fades-through-black/white between two clips. The tool auto-probes clip A to compute the right offset, so the agent never has to know clip durations. - `` is one of: `fade`, `fadeblack`, `fadewhite`, `dissolve`, `wipeleft`, `wiperight`, `wipeup`, `wipedown`, `slideleft`, `slideright`, `circleopen`, `circleclose`. Defaults to `fade` (safest, most invisible). - `` defaults to `1`. Capped at 10. Returns JSON: ```json { "path": "/var/folders/.../makemyclip-editor/transition-abc.mp4", "durationMs": 320, "offsetSec": 4, "hasAudio": true } ``` Audio: if both inputs have audio, the tool wires an `acrossfade` of the same duration. If neither has audio, the output is silent. If exactly one has audio, the tool fails with a clear message — re-encode the silent one with a silent audio track first. Combined with `concat` and `add_text`, this is the polish layer that makes multi-clip outputs feel intentional rather than abrupt. ### Re-encode for export or normalization (implemented) ```bash npx -y @makemyclip/editor render [] [] [] [] ``` Re-encodes a video to a specific format/quality. Useful for final export, normalizing inputs before `concat`/`transition` when codecs don't match, or downsizing for web delivery. - `` is one of: `mp4` (default, h264+aac), `mov` (h264+aac), `webm` (vp9+opus) - `` is the quality knob (0 = lossless, 51 = worst). Default `23` is a good baseline; lower for higher quality - `` controls libx264 speed/efficiency tradeoff: `ultrafast` … `veryslow`. Default `medium`. Ignored for webm - `` (optional) caps width in pixels. Preserves aspect ratio; never upscales Returns JSON: ```json { "path": "/var/folders/.../makemyclip-editor/render-abc.mp4", "format": "mp4", "durationMs": 412 } ``` ### Add audio — mix or replace (implemented) ```bash npx -y @makemyclip/editor add_audio