video-canvas-expand

video-canvas-expand is a skill for Claude Code, Codex from meitu/meitu-skills. It costs 76 tokens per session (1,380 once invoked), scanned A, original, MIT.

A video outpainting skill that expands the canvas beyond the original frame and uses a written prompt to fill the new area. Outpainting changes the frame's width or height without changing the video's duration.

In plain words
What is it for?
Extending a video to the left, right, top, bottom, or any combination of directions, with instructions such as adding sky or more street scenery.
Why use it?
It adds surrounding visual space when a shot is too tightly framed, while keeping the original timing and content in the existing frame.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Extending a video to the left, right, top, bottom, or any combination of directions, with instructions such as adding sky or more street scenery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meitu/meitu-skills/video-canvas-expand
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add meitu/meitu-skills --skill video-canvas-expand
Clone the repo
git clone --depth 1 https://github.com/meitu/meitu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for video-canvas-expand

README.md
[![agentmods](https://agentmods.dev/badge/skills/meitu/meitu-skills/video-canvas-expand/github.svg)](https://agentmods.dev/skills/meitu/meitu-skills/video-canvas-expand)
Your own site
<a href="https://agentmods.dev/skills/meitu/meitu-skills/video-canvas-expand"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/video-canvas-expand/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for video-canvas-expand

Your own site · 80×15
<a href="https://agentmods.dev/skills/meitu/meitu-skills/video-canvas-expand"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/video-canvas-expand.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,380 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 5
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 9
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 11
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 17
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 20
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01380
Opus 5 $0.00038 $0.00690
Sonnet 5 $0.00015 $0.00276
Haiku 4.5 $0.00008 $0.00138

Measured 12d ago against content hash 5ae9823f5bfb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

video-canvas-expand scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/video-canvas-expand/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Video Canvas Expand

Overview

将视频画面按方向向外 outpainting 扩展,AI 根据 prompt 智能补全扩展区域。支持左/右/上/下任意组合方向,每条边扩展 0~0.5 倍原边长。时长不变,仅画面变宽/变高。

不处理:视频内容编辑(替换画面内容)、视频时长延长、视频裁剪/缩小、图片扩展。

API Mapping

场景 API name workflow
视频画布扩展(outpainting) video_canvas_expand aigc_vace_outpainting_flow

Dependencies

  • meitu-cli: >=2.0.6
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 跑命令
  • 环境变量MEITU_OPENAPI_TOOL_TASK_MODE=command

路径别名: $VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --versionmeitu auth verify --json
  2. 检测 MEITU_OPENAPI_TOOL_TASK_MODE=command
  3. output_dir:项目 → ./output/;一次性 → $VISUAL/output/video-canvas-expand/mkdir -p

Execute

触发信号与路由

用户原话 路由
扩展视频 / 视频扩图 / outpainting / 往某方向扩 / 补画面 video_canvas_expand

决策顺序:

  1. video_url 缺失 → 追问;prompt 缺失 → 追问"扩展区域补什么"
  2. directions 不传默认四方向全扩;expand_ratio 不传默认 0.3
  3. 唯一路由:调用 video_canvas_expand

参数定义

参数 类型 必填 范围 默认 说明
video_url STRING 原视频 URL
prompt STRING 扩展区域补什么(如"补蓝天"、"扩展街景")
expand_ratio STRING 0 ~ 0.5 "0.3" 每条边扩展比例
directions STRING left/right/up/down 组合(逗号分隔) "left,right,up,down" 扩展方向

工具调用

meitu video-canvas-expand \
  --skill_name skill_video-canvas-expand \
  --video_url {url} \
  --prompt "{扩展内容描述}" \
  [--expand_ratio 0.3] \
  [--directions "left,right,up,down"] \
  --json --download-dir {output_dir}

错误降级

场景 处理
video_url 缺失 提示"请提供需要扩展的视频"
video_url 不可访问 不重试,提示"请提供有效视频链接"
prompt 缺失 提示"请描述扩展区域想补全的内容(如'补蓝天')"
expand_ratio 越界(<0 或 >0.5) 截断至 [0, 0.5] 或提示调整
directions 非法值 回退至默认四方向
API 调用失败 / 超时 重试 1 次,仍失败返回错误
内容合规拦截 直接返回合规提示,不重试
用户说"改成 16:9"但意图是裁剪 本工具仅扩展不裁剪,告知差异
输入为图片 拒绝,仅支持视频

Deliver

mv {file} {output_dir}/{date}_{name}_canvas-expand.mp4

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 125 lines · 76 tokens per session scan A 5ae9823f5bfb

Subscribe to this mod's changes

video-canvas-expand is a skill published in the GitHub repository meitu/meitu-skills (32 stars, last pushed 15d ago), licensed MIT. It adds 76 tokens to every session and 1,380 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens