aliyun/alibabacloud-aiops-skills/alibabacloud-video-editor

Claude Code and agent skill by aliyun/alibabacloud-aiops-skills

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Edit videos with Alibaba Cloud ICE using URL or OSS inputs and cloud-rendered outputs. Use for Timeline editing, normal-template creation and rendering, multi-clip composition, titles, subtitles, transitions, audio mixing, translation or localization, and single-media intelligent-production jobs such as smart covers, erasure, caption extraction, matting, beauty, reframing, and audio processing. Also inspect templates and verify output URLs. Content analysis such as labels, highlight candidates, speaker attribution, and transcripts must be supplied upstream. Never use local ffmpeg to generate, convert, or extract media; it is limited to streamed audio analysis.

Install

npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-video-editor

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

Video Editor Skill

Edit video in the cloud (Alibaba Cloud ICE) — no local ffmpeg. Three modes:

  • Timeline editing (SubmitMediaProducingJob) — assemble several clips: you write a Timeline JSON, the script submits a producing job, polls it, and returns the output video URL.
  • Normal templates (AddTemplate, Type=Timeline) — store a parameterized Timeline Config, inspect its ClipsParam contract, and repeatedly render it with replacement text/media → references/22-normal-templates.md.
  • Intelligent production (SubmitIProductionJob) — run one algorithm over one media file (smart cover, logo/subtitle erasure, caption extraction, matting, beauty, H→V, audio denoise/mixing/demix/analysis). No Timeline involved → §7.1 and references/13-intelligent-production.md.

This skill is the last link of the chain. Content understanding — what happens where, who speaks, which moments matter — is produced upstream by other capabilities and handed to this skill as data (§2.4). Everything here turns that data plus the material into a rendered, verified video.

Hard Rules

Six rules where deviation is not a taste call. Everything else in this document — every font size, colour, duration, preset and length ratio — is a worked example from a job that shipped, not a mandate. Read those for what is possible, then make your own call from the material and the user's ask.

  1. Nothing lands on the user's local storage. Media is never downloaded — read it in place (ffmpeg -i "<https URL>" streams over HTTP; a snapshot job returns signed frame URLs). Intermediates live in OSS: an algorithm's output, a dub take, a proxy, a converted input — all of them are OSS objects an ICE job wrote, never files on the user's disk. The deliverable is handed over as a playback URL (§8), not a downloaded file; produce a local file only when the user explicitly asks for one. The few things a local tool must write to be read at all (a waveform PNG, a silencedetect transcript, frames you inspect, edl.json, project.md) go into one scratch dir outside the user's project — ${TMPDIR:-/tmp}/video-editor/<session> — and are disposable; never create them in the user's workspace. A local file the user hands over is uploaded to OSS first (§4) and operated on there.
  2. All generation goes through ICE; ffmpeg only analyzes audio. Cutting, concatenating, trimming, overlaying, transitions, subtitle burn-in, mixing, speed change, synthesized speech/dubbing, format conversion: an ICE job renders it (SubmitMediaProducingJob for a Timeline, SubmitIProductionJob for a single-media algorithm, a template render for a Normal Timeline). ffmpeg's whole remit is reading the audio signal — waveform (showwavespic), silence/speech tails (silencedetect), loudness (volumedetect), duration (ffprobe) — and it writes nothing but those analysis numbers (§1.4). It never generates or transforms media: no concat, no -filter_complex over a media file, no -c copy, no re-encode, no atempo, no transcode. Frames come from SubmitSnapshotJob, not from ffmpeg. The one exception is a chart, not media: timeline_view.py crops tiles out of a cloud snapshot sprite and stacks them over the waveform, because no ICE API returns either (§1.4). Not a Python media library either, and not a different cloud product. If no ICE job can express what the user needs, say so and stop — a locally rendered deliverable is a wrong answer, not a workaround.
  3. Confirm region first, then the output bucket before any render (§2.1). Template Config generation and AddTemplate do not need a bucket; rendering one does. There is no default region, not even cn-shanghai.
  4. Confirm the plan in plain language before submitting anything (§2.2). A producing job costs money and minutes; a paragraph of prose costs neither.
  5. Verify every deliverable before reporting it (§9). Success means a file was written, nothing more. Never report an unverified output as verified.
  6. Compile every multi-clip Timeline; never write it directly. Even when the user asks only for timeline.json and forbids cloud calls, first write edl.json, then execute python "$SKILL_DIR/scripts/video_editor.py" compile --edl edl.json --output timeline.json — compile is offline and makes no cloud call (§2.1, 18-edl-and-compile.md). The generated file is the deliverable. Fix every blocking checklist violation; both compile and submit enforce the same checklist (§5).

Division of labor: references/ = knowledge base you read on demand; scripts/video_editor.py = pure executor (submit / poll / fetch URL, plus iproduction / iproduction-status); scripts/frame_qa.py = model review of cloud material — the whole video (--mode full) or signed snapshot frames (--frames), never local sampling (§9). All editing logic lives in the Timeline you generate.

1. Setup

$SKILL_DIR below = the directory containing this SKILL.md. Always invoke the scripts with an absolute path (python "$SKILL_DIR/scripts/video_editor.py" ...); the working directory is usually the user's project, not the skill directory.

bash
pip install -r "$SKILL_DIR/scripts/requirements.txt"

AK/SK (§1.1) and an OSS output bucket (§1.2) are required — without them, stop and guide the user. DASHSCOPE_API_KEY (§1.3) and ffmpeg (§1.4) are optional: when they are missing, verify by reading cloud snapshot frames with your own vision instead (§9), and never skip verification.

1.1 Alibaba Cloud credentials (required)

The script uses the Alibaba Cloud default credential chain: environment variables, then the aliyun CLI profile (~/.aliyun/config.json, the profile named by current, override with ALIBABA_CLOUD_PROFILE), then ~/.alibabacloud/credentials.ini, then the ECS RAM role. The CLI-profile provider only exists in alibabacloud-credentials>=1.0.2, which is why scripts/requirements.txt floors it there — on an older release a perfectly good aliyun configure profile is skipped and the failure looks like missing credentials, not like a version problem.

Guide the user through whichever they prefer:

bash
# Option A — aliyun CLI (writes a reusable profile; recommended). Install if `aliyun` is missing:
brew install aliyun-cli # macOS; or fetch a binary and `tar xzf` it + `sudo mv aliyun /usr/local/bin/`
# Binaries: https://aliyuncli.alicdn.com/aliyun-cli-darwin-arm64-latest.tgz (macOS), https://aliyuncli.alicdn.com/aliyun-cli-linux-amd64-latest.tgz (swap amd64→arm64), https://aliyuncli.alicdn.com/aliyun-cli-windows-amd64-latest.zip (put aliyun.exe on PATH)
aliyun version # verify the install — aliyun CLI >= 3.3.3 required (upgrade: brew upgrade aliyun-cli, or re-download the binary)
aliyun configure # prompts for AccessKey ID / Secret / region
# RAM role assumption or STS token: pick the matching authentication mode in the prompts
# Option B — environment variables in ~/.zshenv (all zsh sessions, incl. IDE terminals)
echo 'export ALIBABA_CLOUD_ACCESS_KEY_ID=<id>' >> ~/.zshenv
echo 'export ALIBABA_CLOUD_ACCESS_KEY_SECRET=<secret>' >> ~/.zshenv

Get the keys from the AccessKey console. Verify that the SDK resolves them — aliyun sts get-caller-identity only proves the CLI can read its own config, not that the Python chain picked it up:

bash
python3 -c "from alibabacloud_credentials.client import Client; print(Client().get_credential().provider_name)"
# cli_profile/static_ak → Option A live; env → Option B live; CredentialException → nothing configured
1.2 OSS output bucket (required)

For uploads and as the job output location:

bash
export OSS_BUCKET=your_bucket_name
export OSS_ENDPOINT=oss-cn-shanghai.aliyuncs.com

The bucket is chosen during the Step-0 confirmation (§2.1): run aliyun ossutil ls, show the user only the buckets in the region they confirmed, and let them pick. Never pick one silently. OSS reuses the same credential chain. The output bucket must be in the same region as the producing job.

Output buckets are normally private; §8 covers turning the finished object into a verified playback link.

1.3 Model Studio API key (optional, for verification)

DASHSCOPE_API_KEY lets scripts/frame_qa.py check the finished video with a multimodal model. It is a separate credential from AK/SK — AK/SK cannot call model inference. Create the key in the Model Studio console → API-KEY, then persist it with echo 'export DASHSCOPE_API_KEY=sk-xxxxxxxx' >> ~/.zshenv (every zsh session, incl. IDE terminals) and open a new shell. Use ~/.zshrc instead if only interactive terminals need it; do not set it in both.

If the user declines or has not set it, verification still happens — read cloud snapshot frames with your own vision (§9). Mention the key once, then proceed; never report an unverified video as verified.

1.4 ffmpeg (optional — audio analysis only)

Editing and composition need no ffmpeg — that is the point of this skill. ffmpeg has exactly one job here: during the understanding and verification phases, turn the audio signal into text or a chart that a model can reason over. It never generates, transforms or extracts media (Hard Rule 2), it never downloads a media file (Hard Rule 1) — pass it an https URL and it streams what it needs — and the only files it writes are analysis artifacts in the scratch dir (Hard Rule 1).

Use it for the audio things no ICE API returns: an RMS waveform (showwavespic), silence/speech-tail detection (silencedetect — ASR gaps cover sentence boundaries but not ambient audio tails, 17-snapshot-and-asr.md §1.5), loudness (volumedetect), and duration (ffprobe). Stacking a cloud filmstrip against that waveform on one axis is timeline_view.py — the tiles come from a snapshot job; ffmpeg draws the waveform and pastes the two rows into one PNG, which is a chart, not media (Hard Rule 2). Everything visual is a cloud job, not ffmpeg: frames, filmstrips and contact sheets come from SubmitSnapshotJob (17-snapshot-and-asr.md §2), and cut points come from upstream scene labels, omni_segment.py, or a filmstrip you read (§2.4).

Install on macOS: brew install ffmpeg. Without it: cloud snapshots still cover every frame you need (17-snapshot-and-asr.md), and you lose the waveform, the audio tail and the loudness numbers — verify via --mode full (§9) and state plainly which checks you could not run. Do not silently downgrade.

1.5 Observability — User-Agent

UA template: AlibabaCloud-Agent-Skills/{skill-name}/{session-id} skill-version/{skill-version}

Session ID rule: Use the host's AGENT_SESSION_ID when available; otherwise generate one 32-char lowercase hex ID per process. Every Alibaba Cloud call in the same run must use that single session ID. Here {skill-name} is alibabacloud-video-editor, and {skill-version} comes from references/manifest.json — the script reads it at import time, before any cloud client is created. scripts/video_editor.py builds the value once and applies it to every client; new clients must also set config.user_agent = USER_AGENT.


2. Workflow

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
216
Repository forks
27
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Oct 2026, 20 days ago.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-video-editor/badge)](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-video-editor)

Something wrong with this skill or its page? Tell us.