agentsclimarketplace

Video understand

Skill yuzhi-jiang/skills/skills/video-understand

使用大模型理解视频内容并提取信息。当用户需要:1) 让AI观看视频并描述内容;2) 从视频中提取字幕或翻译;3) 分析视频场景、人物、对话等;4) 视频问答时使用此skill。From its SKILL.md

Install
npx -y skills add yuzhi-jiang/skills --skill video-understand

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.9 KB, as published. Nobody here has run it

Video Understand

使用大模型理解视频内容的skill。

依赖

在技能目录执行(固定 Python 3.12):

uv sync --python 3.12

可选检查:

uv --version
uv python list

使用方法

基本命令

cd video-understand
uv run scripts/understand.py --video "<视频URL>" --prompt "<提示词>"

运行前请先确认已配置 OPENAI_API_KEY 环境变量。

参数说明

参数说明默认值
--video视频URL(必须)-
--prompt提示词"描述这个视频的内容"
--api-keyAPI密钥环境变量 OPENAI_API_KEY
--base-urlAPI地址环境变量 OPENAI_BASE_URL 或 https://api.siliconflow.cn/v1
--model模型名称环境变量 VIDEO_MODEL 或 Qwen/Qwen3.5-35B-A3B
--max-tokens最大令牌数30000

常用提示词

  • 描述内容: "描述这个视频的内容"
  • 提取字幕翻译: "提取视频中的语音字幕并翻译为中文,只要翻译后的文本,不要原文字幕"
  • 分析场景: "详细描述视频中的场景、人物、动作"
  • 回答问题: "根据视频内容回答问题:xxx"

示例

# 描述视频内容
uv run scripts/understand.py \
  --video "https://example.com/video.mp4" \
  --prompt "描述这个视频的内容"

# 提取并翻译字幕
uv run scripts/understand.py \
  --video "https://example.com/video.mp4" \
  --prompt "提取视频中的语音字幕并翻译为中文,只要翻译后的文本"

# 使用自定义模型和API
uv run scripts/understand.py \
  --video "https://example.com/video.mp4" \
  --api-key "sk-xxxxx" \
  --base-url "https://api.openai.com/v1" \
  --model "gpt-4o" \
  --prompt "详细描述这个视频"

Agent 执行说明

执行流程:

  1. 检查 uv 可用(uv --version)。
  2. 同步依赖(uv sync --python 3.12)。
  3. 检查 OPENAI_API_KEY 已配置(环境变量或 --api-key)。
  4. 若缺少 API Key,先提示用户配置后再继续。
  5. 按需求构造 uv run scripts/understand.py 命令并执行。
  6. 输出结果时优先总结视频关键信息,不直接堆叠原始返回。

环境变量

通过环境变量配置(推荐由 agent client 自动注入):

优先级:命令行参数 > 环境变量 > 代码默认值。

示例:

export OPENAI_API_KEY="sk-xxxxx"           # API密钥
export OPENAI_BASE_URL="https://api.siliconflow.cn/v1"  # API地址
export VIDEO_MODEL="Qwen/Qwen3.5-35B-A3B"   # 模型名称

PowerShell(Windows):

$env:OPENAI_API_KEY="sk-xxxxx"  # API密钥
$env:OPENAI_BASE_URL="https://api.siliconflow.cn/v1"  # API地址
$env:VIDEO_MODEL="Qwen/Qwen3.5-35B-A3B"  # 模型名称

注意事项

  1. 视频URL: 当前版本仅支持在线URL,不支持本地文件(需要自行托管或使用video-download下载)
  2. API支持: 支持OpenAI兼容的任何API(如硅基流动、OpenAI API等)
  3. 模型支持: 推荐使用支持视频输入的模型,如Qwen3.5-35B-A3B、GPT-4o等

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.