video-to-keyframes SKILL.md skillA
video-to-keyframes from trae-community/trae-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add trae-community/trae-skills/video-to-keyframes@git:20260310.704731fPins git:20260310.704731f in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- trae-community/trae-skills
- Path
skills/video-to-keyframes/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260310.704731f, committed Mar 10, 2026
- Size
- 2,500 bytes
- Repository stars
- 21
- License
- MIT
Extracts video frames, detects cuts/segments, selects candidate keyframes, and generates review HTML galleries. Invoke when users ask for keyframes/cuts/segmentation/storyboard screening.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 视频转关键帧(video-to-keyframes)
把用户提供的视频转成“候选帧池 → 转场/分段 → 候选关键帧集 → 复筛画廊页”,并把产物落盘到当天文件夹,方便后续分镜与生成。
## 何时调用
- 用户提供视频并说:抽帧/拆帧/关键帧/候选关键帧/镜头拆分/转场点/分段/分镜初筛
- 用户希望按固定工作流落盘,需要可复现的目录与文件(frames.json、cuts.json、segments.json、gallery.html 等)
## 依赖
- Python 3.10+
- numpy
- opencv-python
## 输入
- 视频文件路径(必填)
- 当天文件夹路径(可选,默认用视频所在目录;推荐 YYYY-MM-DD)
- 抽帧间隔(建议:30s≈1fps;变化快≈2fps)
## 输出(固定规范)
在 `<当天文件夹>` 下生成:
- `<当天文件夹>\_frames_<视频名>_<间隔>\`:候选帧池目录
- `f_*.jpg`:抽帧图片
- `frames.csv / frames.json / top_keep.json / meta.json`
- `\_keyframe_candidates\`:候选关键帧集目录
- `cuts.json`:转场点
- `segments.json`:分段与每段代表帧
- `segments_gallery.html`:分段可视化(每段1张代表帧)
- `gallery.html`:候选关键帧画廊(逐个复筛)
- `candidates.csv / candidates.json`
- `selected.txt`:人工/AI复筛后的最终候选ID(每行一个 cand_id)
- `prompt_pack.html`:复筛+提示词协作页(夜间模式,一键复制)
- `<当天文件夹>\<视频名>_拆分.txt`:汇总(转场点、分段、每段代表帧文件名)
## 一键运行(推荐)
```powershell
python .\skills\video-to-keyframes\resources\scripts\run_video_workflow.py "<视频路径>" --day-folder "<当天文件夹>" --every-seconds 0.5 --max-frames 600
```
注意:一键运行只负责产出文件,不等于完成复筛;必须打开 `gallery.html` 做人工/AI语义复筛,并把最终选择写入 `selected.txt`。
## 复筛要点(简版)
- 先看 `segments_gallery.html`:确认每段代表帧是否合理、分段是否过碎
…Read the whole file at its exact version.
How to install
mdr add trae-community/trae-skills/video-to-keyframes@sha256:8ffed51149dba262The line at the top of this page pins the label git:20260310.704731f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_spy3hy5hh4esw4o7)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Mar 10, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2500 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
trae-community/trae-skills · 21 stars · license MIT · pushed 2026-09-10 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_spy3hy5hh4esw4o7 GET https://markdownregistry.com/api/v1/resolve?ref=trae-community/trae-skills/video-to-keyframes GET https://markdownregistry.com/api/v1/blob/8ffed51149dba2625cbb7c4ab3ba08312be100700ff315016ae646042e19f595
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.