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.

Install it, pinned
mdr add trae-community/trae-skills/video-to-keyframes@git:20260310.704731f

Pins 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

The exact contents, by fingerprint
mdr add trae-community/trae-skills/video-to-keyframes@sha256:8ffed51149dba262

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_spy3hy5hh4esw4o7.svg)](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.

versioncommittedcommitsizeaudit
git:20260310.704731f latest2026-03-10 704731f 2,500 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from trae-community/trae-skills

skill-name SKILL.md skill
trae-community/trae-skills · skills/_template/SKILL.md · Brief description of the skill's function and usage scenario.
git:20260212.2bb5a6b · audit A · 21 stars
cloudbase SKILL.md skill
trae-community/trae-skills · skills/cloudbase/SKILL.md · Use when building, deploying, or debugging Tencent CloudBase (腾讯云开发 / TCB) apps in Trae — Web, WeChat Mini Program…
git:20260805.31e2462 · audit A · 21 stars
cn-punctuation-checker SKILL.md skill
trae-community/trae-skills · skills/cn-punctuation-checker/SKILL.md · Checks Chinese text for incorrect English punctuation marks. Invoke when user wants to find and fix wrong punctuation…
git:20260305.4faaf2f · audit A · 21 stars
cycle-delivery SKILL.md skill
trae-community/trae-skills · skills/cycle-delivery/SKILL.md · Governs evidence-gated software delivery through the local Cycle control plane. Use when the user wants a change…
git:20260904.9407154 · audit A · 21 stars
daily-hot-news SKILL.md skill
trae-community/trae-skills · skills/daily-hot-news/SKILL.md · 获取今日全网新闻热榜数据,聚合多个主流平台(微博热搜、百度热搜、知乎热榜、头条热榜、 哔哩哔哩热门、抖音热搜等)的实时热点话题。当用户提到"今日热搜"、"新闻热榜"、…
git:20260316.1072a5d · audit A · 21 stars
daily-trend-writer SKILL.md skill
trae-community/trae-skills · skills/daily-trend-writer/SKILL.md · 全自动化的公众号内容生产流水线。每日发现实用工具、社区热点、教程经验等"小而美"选题,深挖后输出"咪蒙风格"与"技术干货"两篇高质量公众号文章。
git:20260307.42c48b2 · audit A · 21 stars
docx-diff-comment SKILL.md skill
trae-community/trae-skills · skills/docx-diff-comment/SKILL.md · Compare two Word documents to find new features in V2, add comments to the V2 document for each new feature, and…
git:20260908.e0ff678 · audit A · 21 stars
entropy-box-zh SKILL.md skill
trae-community/trae-skills · skills/entropy-box-zh/SKILL.md · 以箱熵(Entropy Box)的方案咨询 Consult 为核心,把边界明确的具身智能技术需求转化为候选实现方法和有依据的工程工作流。先由当前大模型澄清并拆分宽泛需求,分别咨询具体子问题,再用 Search 深入了解已选技术、用…
v1.3.0 · audit F · 21 stars
gbr-pair SKILL.md skill
trae-community/trae-skills · skills/gbr-pair/SKILL.md · Pair a phone running Build Remote Agent to this Trae desktop session via gbr/1. Use when the user wants a mobile…
git:20260901.83e18f3 · audit C · 21 stars
git-commit-generator SKILL.md skill
trae-community/trae-skills · skills/git-commit-generator/SKILL.md · Generate clear, standardized git commit messages based on code changes (diffs), following Conventional Commits…
git:20260212.2bb5a6b · audit A · 21 stars
kz-article-deep-analysis SKILL.md skill
trae-community/trae-skills · skills/kz-article-deep-analysis/SKILL.md · 深度解读非学术类文章(博客、随笔、评论),抽取核心议题与核心主张,评估其对读者认知的增量与张力,输出结构化分析报告。
v1.0.3 · audit A · 21 stars
project-governance SKILL.md skill
trae-community/trae-skills · skills/project-governance/SKILL.md · 为 AI 长期项目建立「项目记忆 + 文件索引 + 工作规则 + 版本记录」的治理系统,让 AI 在长期项目里「不忘事、不乱改、不重复犯错」,换会话后仍能接着做。Set up and maintain a project…
v1.2.0 · audit A · 21 stars

Every file in trae-community/trae-skills

Browse by kind, by grade A, or by owner.