evo-video-keyframe-extraction

evo-video-keyframe-extraction is a skill for Claude Code, Codex from OpenLAIR/OpenSkill. It costs 58 tokens per session (564 once invoked), scanned A, original, Apache-2.0.

A video-processing tool that takes still images from an MP4 video at regular time intervals and saves them as numbered PNG files. It converts the saved images to grayscale, meaning each pixel records brightness rather than colour.

In plain words
What is it for?
Use it to read video metadata, extract keyframes at a chosen interval, name them consistently, and save grayscale versions.
Why use it?
It turns a video into an ordered image set that other image-analysis steps can inspect. Grayscale images provide the format needed by the matching tool described with it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read video metadata, extract keyframes at a chosen interval, name them consistently, and save grayscale versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openlair/openskill/evo-video-keyframe-extraction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenLAIR/OpenSkill --skill evo-video-keyframe-extraction
Clone the repo
git clone --depth 1 https://github.com/OpenLAIR/OpenSkill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for evo-video-keyframe-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/openlair/openskill/evo-video-keyframe-extraction/github.svg)](https://agentmods.dev/skills/openlair/openskill/evo-video-keyframe-extraction)
Your own site
<a href="https://agentmods.dev/skills/openlair/openskill/evo-video-keyframe-extraction"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-video-keyframe-extraction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for evo-video-keyframe-extraction

Your own site · 80×15
<a href="https://agentmods.dev/skills/openlair/openskill/evo-video-keyframe-extraction"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-video-keyframe-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 564 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00564
Opus 5 $0.00029 $0.00282
Sonnet 5 $0.00012 $0.00113
Haiku 4.5 $0.00006 $0.00056

Measured yesterday against content hash b2e6887a3c5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

evo-video-keyframe-extraction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/video_utils.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tasks-evolved/mario-coin-counting/environment/skills/evo-video-keyframe-extraction/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

evo-video-keyframe-extraction

Overview

Extracts keyframes from gameplay video using uniform temporal sampling, saves with zero-padded sequential naming, and converts to grayscale in-place.

Key Concepts

  • Uses cv2.VideoCapture for video decoding with embedded FFmpeg backend
  • Uniform temporal sampling: extract 1 frame per second (frame_interval = int(fps * 1.0))
  • Frames saved as PNG with cv2.imwrite() using zero-padded naming: keyframes_001.png, keyframes_002.png, etc.
  • Grayscale conversion done in-place: read with cv2.IMREAD_GRAYSCALE, overwrite original file
  • OpenCV uses BGR channel order (not RGB)
  • For a 27-second 60fps video, extracts 27 keyframes (one per second)

Functions

get_video_metadata(video_path)

Returns dict with: fps, frame_count, width, height, duration_seconds

extract_keyframes(video_path, output_dir, sample_interval_seconds=1.0, name_format="keyframes_{:03d}.png")

Extracts keyframes at uniform intervals. Returns list of saved file paths in timeline order.

  • sample_interval_seconds=1.0 means 1 frame per second
  • name_format uses Python format string with {:03d} for zero-padded numbering starting at 1
  • Keyframe counter is 1-based (keyframes_001.png, keyframes_002.png, ...)

convert_frames_to_grayscale(frame_paths)

Converts images to grayscale IN-PLACE (overwrites original files). Returns list of converted paths. Reads with cv2.IMREAD_GRAYSCALE and writes back with cv2.imwrite.

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-video-keyframe-extraction/scripts')
from video_utils import extract_keyframes, convert_frames_to_grayscale, get_video_metadata

# Get video info
meta = get_video_metadata('/root/super-mario.mp4')
print(f"Duration: {meta['duration_seconds']}s, FPS: {meta['fps']}")

# Extract keyframes (1 per second) to /root
paths = extract_keyframes('/root/super-mario.mp4', '/root', sample_interval_seconds=1.0)

# Convert to grayscale in-place
convert_frames_to_grayscale(paths)

Read the full file on GitHub · 50 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 50 lines · 58 tokens per session scan A b2e6887a3c5f

Subscribe to this mod's changes

evo-video-keyframe-extraction is a skill published in the GitHub repository OpenLAIR/OpenSkill (90 stars, last pushed 2d ago), licensed Apache-2.0. It adds 58 tokens to every session and 564 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories

slidecraft

Convert PowerPoint (PPTX) files to HTML and back, analyze PPTX structure, generate slide decks from topics via LLM, pre-cache CDN assets, or launch the interactive review web UI. Use this when the user wants to work with PowerPoint presentations -- convert ppt to html, html to pptx, inspect pptx contents, or generate…

solid-shuwen/shuttleslide · 76 tokens

slidecraft-review

Launch an interactive web UI for reviewing, editing, and approving AI-generated slide presentations with human-in-the-loop feedback. Use when the user says review the slides, check the generated presentation, see slides before finalizing, or wants a visual review interface for slide generation.

solid-shuwen/shuttleslide · 57 tokens

dream

Deep creative exploration engine. Competing perspectives, stress-tested by a 4-persona council, scored by integrity. The approach that survives attack wins — not the one that sounds best.

ariaxhan/kernel-claude · 39 tokens

minimax-video

Generate and edit videos using MiniMax H3, the state-of-the-art open multimodal generation model. Supports text-to-video, image-to-video (first/last frame), reference-to-video with multimodal context (images, video clips, audio references), native stereo sound, up to 15 seconds at 2K resolution, in-context…

joeVenner/awesome-minimax-h3 · 226 tokens

minimax-music

Generate professional-quality music using the MiniMax CLOUD Music API (music-3.0). Supports full songs with vocals, purely instrumental tracks, AI lyrics writing, and cover generation from reference audio. Typical output is 2-3 minutes of finished stereo audio. Use when the user asks to create music, generate a song…

joeVenner/awesome-minimax-h3 · 180 tokens

minimax-speech

Generate speech, voiceovers, narration and audiobooks using the MiniMax CLOUD Text-to-Speech API (T2A v2), plus voice cloning and text-described voice design. Supports 332 preset voices across 40+ languages, precise inline pause control, word- and sentence-level timestamp output, emotion and prosody control…

joeVenner/awesome-minimax-h3 · 215 tokens