Spatial extension for video, powered by RunComfy's CLI and Wan 2-7 edit-video. You feed it a vertical clip and a prompt like "extend the canvas to 16:9 by adding matching environment on the sides" and it gives you horizontal output with the original action centered. Works well for aspect ratio swaps (TikTok to YouTube, square to wide) and quick social cuts. Seam quality is acceptable for most internal and social use but not hero delivery. For that, the skill points you at dedicated ComfyUI outpainting workflows like the LTX 2-3 graph, which the CLI can't reach directly. Honest take: prompt-driven spatial extension is still early and you'll notice the seams on close inspection, but it's fast and beats manual rotoscoping for non-critical work.
npx -y skills add agentspace-so/runcomfy-agent-skills --skill video-outpainting --agent claude-codeInstalls into .claude/skills of the current project.
Extend a video's spatial canvas — uncrop vertically or horizontally, change aspect ratio while preserving the central action. This skill routes spatial extension through Wan 2-7 edit-video for prompt-shaped canvas changes, and points the agent at dedicated ComfyUI outpaint workflows when hero-grade seam quality matters.
runcomfy.com · Wan 2-7 edit-video · CLI docs
# 1. Install (see runcomfy-cli skill for details)
npm i -g @runcomfy/cli # or: npx -y @runcomfy/cli --version
# 2. Sign in
runcomfy login # or in CI: export RUNCOMFY_TOKEN=<token>
# 3. Spatially extend a video (closest CLI-reachable approach)
runcomfy run wan-ai/wan-2-7/edit-video \
--input '{"video_url": "...", "prompt": "...extend canvas..."}' \
--output-dir ./out
CLI deep dive: runcomfy-cli skill.
Wan 2-7 Edit-Video — wan-ai/wan-2-7/edit-video (default)
Prompt-driven video edit; accepts spatial extension language ("extend the canvas to 16:9 by adding matching environment on the left and right"). Wide enough quality for social and most internal uses. Pick for: aspect-ratio swap (vertical ↔ horizontal), social-cuts, uncrop where seam quality is acceptable. Avoid for: hero ad delivery with strict seam-quality requirements — use a ComfyUI outpainting workflow.
For broader video edit see video-edit.
Model: wan-ai/wan-2-7/edit-video
Catalog: Wan 2-7 edit-video
Aspect-ratio swap (9:16 vertical → 16:9 horizontal):
runcomfy run wan-ai/wan-2-7/edit-video \
--input '{
"video_url": "https://your-cdn.example/vertical-clip.mp4",
"prompt": "Extend the canvas to 16:9 horizontal by adding matching environment on the left and right sides. Continue the existing background style, lighting, and camera distance throughout the clip. Preserve the original action and subject framing in the center."
}' \
--output-dir ./out
"Extend the canvas to 16:9", "Extend downward to show more ground", "Add environment on the left and right by ~30% each"."Preserve the original action and subject framing in the center" — without this Wan may restyle the central content.The endpoint above handles aspect-ratio swap well for most uses. For spatial frame expansion with strict temporal consistency, seam handling, and motion-aware fill, RunComfy hosts dedicated ComfyUI workflows:
| Workflow | What |
|---|---|
| LTX 2-3 outpainting in ComfyUI — spatial frame expansion | Dedicated video outpainting workflow using LTX 2-3 |
| Browse comfyui-workflows for "outpaint" | Additional video outpainting graphs from the community |
These are GUI workflows, not CLI endpoints. The CLI can't reach them — open them in the RunComfy ComfyUI cloud.
image-outpainting.video-extend.video-inpainting.wan-models collection| code | meaning |
|---|---|
| 0 | success |
| 64 | bad CLI args |
| 65 | bad input JSON / schema mismatch |
| 69 | upstream 5xx |
| 75 | retryable: timeout / 429 |
| 77 | not signed in or token rejected |
Full reference: docs.runcomfy.com/cli/troubleshooting.
The skill picks Wan 2-7 Edit-Video for prompt-shaped canvas extension and invokes runcomfy run with the outpaint-shaped JSON body. The CLI POSTs to the Model API, polls request status, and downloads the result into --output-dir.
npm i -g @runcomfy/cli or npx -y @runcomfy/cli. Agents must not pipe an arbitrary remote install script into a shell on the user's behalf.runcomfy login writes the API token to ~/.config/runcomfy/token.json with mode 0600. Set RUNCOMFY_TOKEN env var in CI / containers.--input. The CLI does not shell-expand prompt content. No shell-injection surface.model-api.runcomfy.net and *.runcomfy.net / *.runcomfy.com. No telemetry.Bash(runcomfy *) only.runcomfy-cli — the underlying CLIvideo-edit — full video-edit routervideo-extend — extending temporally (more frames)video-inpainting — mask-driven internal region editsimage-outpainting — outpainting still imagessickn33/antigravity-awesome-skills
moizibnyousaf/ai-agent-skills
github/awesome-copilot