# Edit video regions across frames

Removing or replacing a video region across frames can cause visual drift and broken motion. This skill selects a suitable RunComfy route and provides focused prompts for consistent edits.

## Install

```bash
npx skillstore add agentspace-so/video-inpainting
```

## Metadata

- Status: approved
- Slug: agentspace-so-video-inpainting
- Skillstore revision: r2
- Version status: missing
- Tree hash: 67e4e7cd0854db094b314c7dcf7bccf19f270d35871979de5ad98769b6383b76
- Author: agentspace-so
- GitHub username: agentspace-so
- License: MIT
- Repository: https://github.com/agentspace-so/runcomfy-agent-skills/tree/main/video-inpainting/
- Ref: 181fdefcafd96b041926e61c4b2e306ca7e7820e
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/agentspace-so-video-inpainting
- Manifest: https://skillstore.pages.dev/api/skills/agentspace-so-video-inpainting/manifest

## Capabilities

- Selects Wan 2-7 Edit-Video for prompt-driven region edits.
- Suggests Lucy Edit Restyle for identity-stable region-aware changes.
- Identifies when frame-stack editing suits a short sequence.
- Provides CLI input examples with a source video URL and edit prompt.
- Explains when mask-driven ComfyUI workflows are more precise.
- Lists relevant CLI exit codes for troubleshooting.

## Use Cases

- Clean a background distraction: Remove a passing person, cable, or small object while preserving the rest of a short clip.
- Prepare product footage: Replace a minor visual element across frames using a focused, brand-aware edit prompt.
- Choose a technical editing path: Decide whether prompt-driven editing or a mask-based ComfyUI workflow fits the required precision.

## Prompt Templates

### Remove a simple object

```
Use video inpainting to remove the cable overhead from my video. Preserve all other content and match the background.
```

### Clean a watermark area

```
Edit this video with Wan 2-7. Remove the mark in the bottom-right corner across all frames. Keep motion, color, and framing unchanged.
```

### Replace one object

```
Choose the best RunComfy route to replace the red bag with a plain black bag across this clip. Explain why that route fits and provide one edit prompt.
```

### Assess mask precision

```
I need to remove a moving object with pixel-precise boundaries. Compare the CLI route with a ComfyUI mask propagation workflow and recommend the safer quality option.
```

## Limitations

- It does not provide pixel-accurate mask propagation through the CLI.
- Long clips can lose temporal consistency during sequential edits.
- The output quality depends on the selected model and source video.
- It requires a RunComfy account, CLI installation, and a reachable video URL.

## Best Practices

- Use one focused edit per request to reduce visual drift.
- State the target region and preservation requirements clearly.
- Use a mask-driven workflow when exact boundaries or temporal control are required.

## Anti Patterns

- Do not combine unrelated removals and replacements in one edit request.
- Do not use prompt-driven editing when pixel-accurate masks are required.
- Do not upload sensitive video without confirming the external service destination.

## Security Audit

- Audited at: 2026-07-23T09:25:40.95\+00:00
- Summary: All 57 static detections are false positives caused by Markdown formatting, documentation links, and prose about the external RunComfy CLI. The skill declares a restricted Bash scope and documents sending user-supplied video input to RunComfy, but the reviewed file contains no executable payload, credential collection, prompt injection, or undisclosed exfiltration intent.

## Stats

- Views: 36
- Downloads: 10
- Favorites: 0
- Popularity score: 0
