$npx -y skills add prime-skills/runcomfy-agent-skills --skill video-editEdit existing video on RunComfy — this skill is a smart router that matches the user's intent to the right edit model in the RunComfy catalog. Picks Wan 2.7 Edit-Video (general restyle / background swap / packaging swap, identity + motion preservation), Kling 2.6 Pro Motion Contr
| 1 | # Video Edit — Pro Pack on RunComfy |
| 2 | |
| 3 | [runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-edit) · [Wan 2.7 Edit-Video](https://www.runcomfy.com/models/wan-ai/wan-2-7/edit-video?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-edit) · [Kling Motion-Control Pro](https://www.runcomfy.com/models/kling/kling-2-6/motion-control-pro?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-edit) · [Lucy Edit Restyle](https://www.runcomfy.com/models/decart/lucy-edit/restyle?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-edit) · [GitHub](https://github.com/agentspace-so/runcomfy-skills/tree/main/video-edit) |
| 4 | |
| 5 | **Video edit, intent-routed.** This skill doesn't lock you to one model — it picks the right video-edit model in the RunComfy catalog based on what the user actually wants: general restyle, motion transfer from a reference clip, or lightweight identity-stable outfit / background swap. |
| 6 | |
| 7 | ```bash |
| 8 | npx skills add agentspace-so/runcomfy-skills --skill video-edit -g |
| 9 | ``` |
| 10 | |
| 11 | ## Pick the right model for the user's intent |
| 12 | |
| 13 | | User intent | Model | Why | |
| 14 | |---|---|---| |
| 15 | | Restyle a talking-head video — preserve face / pose / lip movement | **Wan 2.7 Edit-Video** | Strong identity + motion preservation; supports up to 1080p | |
| 16 | | Swap product background, keep camera motion | **Wan 2.7 Edit-Video** | Camera motion preserved; one-direction edit honored | |
| 17 | | Replace packaging design using a reference image | **Wan 2.7 Edit-Video** + `reference_image` | Reference-conditioned design transfer | |
| 18 | | Apply cinematic color grade / commercial polish | **Wan 2.7 Edit-Video** | Good at single-direction global look changes | |
| 19 | | **Transfer precise motion** from a reference video to a target character | **Kling 2.6 Pro Motion Control** | Designed for motion mapping with identity hold | |
| 20 | | Lip-sync motion of a target character to source video's lip movement | **Kling 2.6 Pro Motion Control** | Built for tight temporal coherence | |
| 21 | | **Lightweight outfit / costume swap** with identity preservation | **Lucy Edit Restyle** | Core strength is localized identity-stable edits | |
| 22 | | **Identity-stable restyle** ("astronaut in desert", "warm golden-hour lighting") | **Lucy Edit Restyle** | Specializes in temporal consistency for restyle | |
| 23 | | Default if unspecified | **Wan 2.7 Edit-Video** | Most versatile, highest resolution | |
| 24 | |
| 25 | The agent reads this table, classifies the user's intent, and picks the matching subsection below. |
| 26 | |
| 27 | ## Prerequisites |
| 28 | |
| 29 | 1. **RunComfy CLI** — `npm i -g @runcomfy/cli` |
| 30 | 2. **RunComfy account** — `runcomfy login`. |
| 31 | 3. **CI / containers** — set `RUNCOMFY_TOKEN=<token>`. |
| 32 | 4. **A source video URL** — formats and limits depend on the chosen route. |
| 33 | |
| 34 | --- |
| 35 | |
| 36 | ## Route 1: Wan 2.7 Edit-Video — default for restyle / background / packaging |
| 37 | |
| 38 | **Model**: `wan-ai/wan-2-7/edit-video` |
| 39 | |
| 40 | ### Schema |
| 41 | |
| 42 | | Field | Type | Required | Default | Notes | |
| 43 | |---|---|---|---|---| |
| 44 | | `prompt` | string | yes | — | Lead with preservation. One edit direction per call. | |
| 45 | | `video` | string | yes | — | MP4/MOV URL, 2–10s, ≤100MB. | |
| 46 | | `reference_image` | string | no | — | URL — use for direct design / appearance transfer only. | |
| 47 | | `resolution` | enum | no | (input) | `720p` or `1080p`. | |
| 48 | | `aspect_ratio` | enum | no | (input) | W:H. Defaults to input. | |
| 49 | | `duration` | int | no | 0 | `0` = match input; `2–10` = truncate from start. | |
| 50 | | `audio_setting` | enum | no | `auto` | `auto` or `origin` (preserve source audio). | |
| 51 | | `seed` | int | no | — | Reproducibility. | |
| 52 | |
| 53 | ### Invoke |
| 54 | |
| 55 | **Background swap, identity preserved, audio kept:** |
| 56 | |
| 57 | ```bash |
| 58 | runcomfy run wan-ai/wan-2-7/edit-video \ |
| 59 | --input '{ |
| 60 | "prompt": "Preserve the speaker'\''s face, pose, and lip movement; change the background to a modern office with neutral lighting.", |
| 61 | "video": "https://.../speaker.mp4", |
| 62 | "audio_setting": "origin" |
| 63 | }' \ |
| 64 | --output-dir <absolute/path> |
| 65 | ``` |
| 66 | |
| 67 | **Packaging swap with reference image:** |
| 68 | |
| 69 | ```bash |
| 70 | runcomfy run wan-ai/wan-2-7/edit-video \ |
| 71 | --input '{ |
| 72 | "prompt": "Maintain the original framing and |