# Extend Video Beyond the Original Canvas

Changing a video's aspect ratio can crop subjects or create empty space. This skill guides spatial extension through RunComfy while preserving central action.

## Install

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

## Metadata

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

## Capabilities

- Routes prompt-based canvas extension to Wan 2-7 Edit-Video through the RunComfy CLI.
- Builds prompts for horizontal, vertical, and percentage-based spatial expansion.
- Adds requirements for preserving central action, subject framing, lighting, and background style.
- Recommends dedicated ComfyUI workflows when seam quality or temporal consistency is critical.
- Explains CLI exit codes, output directories, authentication, and expected network endpoints.

## Use Cases

- Convert Social Video: Expand a vertical clip to a horizontal format while keeping the speaker and action centered.
- Prepare Campaign Variants: Create wider or taller versions of approved footage for placements with different aspect ratios.
- Modernize Archive Footage: Plan spatial expansion for older 4:3 footage and select a workflow with stronger seam control.

## Prompt Templates

### Basic Horizontal Expansion

```
Outpaint [video URL] from 9:16 to 16:9. Extend matching scenery on both sides and keep the original subject centered.
```

### Directional Canvas Extension

```
Extend [video URL] by [percentage] toward [direction]. Continue the existing environment, lighting, perspective, and camera distance.
```

### Continuity-Constrained Outpaint

```
Convert [video URL] to [target ratio]. Preserve central action, framing, motion, lighting, depth of field, and background continuity throughout the clip.
```

### Quality-Routed Production Plan

```
Assess [video URL] for [delivery purpose]. Choose Wan 2-7 or a dedicated ComfyUI workflow, then define expansion, preservation, and seam-quality requirements.
```

## Limitations

- Requires the RunComfy CLI, an authenticated account, a service token, and network access.
- Wan 2-7 is not dedicated to outpainting, so seams and temporal consistency can vary.
- Dedicated ComfyUI workflows require manual use in the RunComfy cloud interface.
- Does not outpaint still images, extend video duration, or perform mask-driven video inpainting.

## Best Practices

- State the target aspect ratio, extension direction, and approximate expansion before describing new scenery.
- Repeat preservation requirements for subject framing, motion, lighting, camera distance, and background style.
- Use a dedicated ComfyUI workflow for final advertising assets with strict seam or temporal consistency requirements.

## Anti Patterns

- Do not request multiple large expansion passes when one controlled pass can reach the target ratio.
- Do not use this skill to add frames in time or edit masked regions inside the original frame.
- Do not place unescaped user prompts or URLs directly inside shell-quoted command arguments.

## Security Audit

- Audited at: 2026-07-23T09:29:19.603\+00:00
- Summary: Most static alerts are false positives caused by Markdown formatting, documentation links, and a disclosed credential path. Two external-command findings are confirmed because the skill recommends unpinned package installation and automatic package execution. User-controlled JSON is also placed inside single shell quotes without robust escaping, despite a claim that no shell-injection surface exists.

## Stats

- Views: 46
- Downloads: 4
- Favorites: 0
- Popularity score: 0
