Token导航 LogoToken导航

Agent Skill · 待分类

extract-moves-from-video(从视频中提取动作)

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

extract-moves-from-video 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有提醒项,按安装量在待分类类的 11,209 个 Skill 里排第 4,007。

总安装 838周安装 36GitHub Stars 93下载 294核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:extract-moves-from-video(从视频中提取动作)
来源仓库:https://github.com/letta-ai/skills
仓库路径:skills/extract-moves-from-video
安装命令:
npx skills add https://github.com/letta-ai/skills --skill extract-moves-from-video
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/letta-ai/skills --skill extract-moves-from-video

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

用于从屏幕录像或游戏视频中识别并转录可见文本输入指令。适合自动化脚本生成、终端命令回放或文本冒险游戏支持。使用时需指定提示符特征(如 >)以区分命令与输出。输出为按时间排序的命令序列,可用于后续模拟执行。extract-moves-from-video 属于待分类类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/extract-moves-from-video

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/letta-ai/skills --skill extract-moves-from-vid…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

extract-moves-from-video 怎么安装?

在终端执行 npx skills add https://github.com/letta-ai/skills --skill extract-moves-from-video。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

extract-moves-from-video 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

extract-moves-from-video 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/letta-ai/skills --skill extract-moves-from-video;npx skills add letta-ai/skills --skill "extract-moves-from-video" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

extract-moves-from-video 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

extract-moves-from-video 用的人多吗?

公开数据是累计安装 838 次,近一周安装 36 次,下载 294 次,GitHub 93 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

extract-moves-from-video 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
extract-moves-from-video

从视频中提取动作 · 本页

83893执行命令MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Extract Moves From Video

Overview

This skill provides a systematic approach for extracting text commands from video recordings. Common use cases include extracting gameplay commands from text adventure games (like Zork), capturing terminal commands from screen recordings, or transcribing any typed input visible in video content.

Workflow

Step 1: Analyze the Source Video

Before processing, understand the video characteristics:

  1. Determine video properties: Resolution, duration, frame rate
  2. Identify text regions: Where commands appear on screen (e.g., after a prompt character like >)
  3. Assess text style: Font type, color, background contrast (terminal text on dark backgrounds requires specific handling)
  4. Check for audio: Determine if audio transcription could supplement OCR (verify audio contains relevant content before installing large packages like Whisper)
  5. Understand typing patterns: Estimate how frequently new commands appear to inform frame sampling rate

Step 2: Download and Prepare Video

  1. Download video using appropriate tools (yt-dlp, youtube-dl, or direct download)
  2. Verify download integrity before proceeding
  3. Extract video metadata to confirm properties match expectations

Step 3: Extract Frames Strategically

Frame extraction requires balancing coverage against processing time:

  1. Analyze command frequency first: Manually review a sample of the video to understand how often new commands appear
  2. Choose appropriate sampling rate:

- Fast typing: 0.5-1 second intervals - Slow typing: 2-3 second intervals - When uncertain, extract at higher frequency and subsample later (avoids re-extraction)

  1. Use FFmpeg for extraction: ffmpeg -i video.mp4 -vf "fps=1" frames/frame_%04d.png
  2. Focus on relevant screen regions: If commands appear in a specific area, crop frames to that region to improve OCR accuracy

Step 4: Optimize OCR Configuration

OCR accuracy depends heavily on proper configuration for the specific video type:

  1. Test on sample frames first: Before processing all frames, tune OCR settings on 5-10 representative frames
  2. Configure Tesseract page segmentation mode (--psm):

- --psm 6: Assume uniform block of text - --psm 7: Single text line - --psm 13: Raw line (treat as single line, no analysis)

  1. Preprocess images for better OCR:

- Binarization: Convert to black/white with appropriate threshold - Invert colors if text is light on dark background - Increase contrast for low-contrast videos - Scale up small text (2x-3x enlargement often helps)

  1. Test multiple threshold values: Common values (127, 150, 180) work differently depending on video; empirically test which produces best results

Example preprocessing with Python/OpenCV:

import cv2
img = cv2.imread('frame.png', cv2.IMREAD_GRAYSCALE)
# Invert if light text on dark background
img = cv2.bitwise_not(img)
# Binarize with tested threshold
_, img = cv2.threshold(img, 150, 255, cv2.THRESH_BINARY)
# Scale up for better OCR
img = cv2.resize(img, None, fx=2, fy=2, interpolation=cv2.INTER_CUBIC)

Step 5: Extract and Parse Commands

  1. Run OCR on preprocessed frames: Use Python bindings (pytesseract) for efficiency over subprocess calls
  2. Identify command patterns: Look for prompt markers (e.g., >, $, >>>) that precede commands
  3. Handle OCR output carefully:

- Do not assume commands start at line beginning (OCR introduces whitespace) - Account for partial prompt character recognition (e.g., > may become › or »)

  1. Use flexible pattern matching: # More robust than grep "^>" import re command_pattern = re.compile(r'[>›»]\s*(.+)')

Step 6: Clean and Deduplicate Results

Critical: Understand the data domain before cleaning:

  1. Preserve legitimate duplicates: In many contexts (games, shell sessions), the same command can appear multiple times intentionally
  2. Use temporal deduplication: Only remove duplicates from consecutive frames showing the same command, not all duplicates globally
  3. Handle partial commands: Commands being typed appear partially; only capture complete commands
  4. Validate corrections: When fixing OCR errors, verify corrections are contextually appropriate

Temporal deduplication approach:

def temporal_dedupe(commands):
    """Remove only consecutive duplicates, preserving repeated commands."""
    result = []
    prev = None
    for cmd in commands:
        if cmd != prev:
            result.append(cmd)
            prev = cmd
    return result

Step 7: Verify Results

Verification is essential for accuracy:

  1. Sample verification: Manually compare extracted commands against source frames for a random sample
  2. Domain validation: If extracting game commands, verify they are valid commands for that game
  3. Sequence logic check: Verify the command sequence makes logical sense (e.g., movement commands follow plausible paths)
  4. Count verification: Compare total extracted commands against expected count based on video length and typing speed

Common Pitfalls

OCR Quality Issues

  • Mistake: Using default OCR settings without optimization
  • Solution: Always tune --psm mode and image preprocessing on sample frames first

Incorrect Deduplication

  • Mistake: Using global deduplication (e.g., awk '!seen[$0]++') which removes all repeated commands
  • Solution: Use temporal deduplication that only removes consecutive duplicates

Prompt Detection Failures

  • Mistake: Using rigid patterns like grep "^>" that assume specific formatting
  • Solution: Use flexible regex that accounts for OCR variations and whitespace

Wasted Tool Installation

  • Mistake: Installing large packages (Whisper for audio) without verifying they're needed
  • Solution: Check if audio contains useful content before installing audio processing tools

No Intermediate Checkpointing

  • Mistake: Processing all frames without saving intermediate results, losing progress on timeouts
  • Solution: Save results after each processing stage; implement progress checkpoints

Abandoned Verification

  • Mistake: Not validating extracted commands against source material
  • Solution: Always verify a sample of extractions and validate overall sequence logic

Verification Checklist

Before finalizing extracted commands:

  • Sample of extracted commands verified against source frames
  • Command count is reasonable for video duration
  • No obvious OCR artifacts remain (random characters, split words)
  • Legitimate repeated commands are preserved (not incorrectly deduplicated)
  • Command sequence follows logical order
  • Domain-specific validation performed (e.g., commands are valid for the game/application)

Tool Selection Guide

TaskRecommended ToolNotes
Video downloadyt-dlpMore maintained than youtube-dl
Frame extractionffmpegIndustry standard, reliable
OCRtesseract via pytesseractUse Python bindings for efficiency
Image preprocessingOpenCV (cv2)Flexible, well-documented
Pattern matchingPython re moduleMore flexible than grep

平台分布

Claude Code

26.62%
按下载量换算78

Gemini CLI

22.91%
按下载量换算67

Codex

20.12%
按下载量换算59

Antigravity

13.37%
按下载量换算39

OpenCode

7.33%
按下载量换算22

windsurf

3.35%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/letta-ai/skills --skill extract-moves-from-video;npx skills add letta-ai/skills --skill "extract-moves-from-video" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills