CommandMate: Skill for Claude Code

.agents/skills/video-to-gif/SKILL.md

video-to-gif is a skill for Claude Code from Kewton/CommandMate. It costs 113 tokens per session (2,714 once invoked), scanned A, original, MIT.

A tool that turns recorded MP4, WebM, or MOV videos into GIF files that play in GitHub’s Markdown viewer. It can reduce the output until it fits a chosen byte limit.

In plain words
What is it for?
Converting finished videos into GIFs for GitHub README files and documentation. It also helps check dependencies, preview the quality-reduction steps, and report GIF sizes.
Why use it?
GitHub repository Markdown pages do not play normal video files. This makes short demos usable in README and documentation files while checking their file size.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents); mentions Codex.

This is Kewton/CommandMate's own configuration. It tells Claude Code how to work on CommandMate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CommandMate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Kewton/CommandMate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Kewton/CommandMate/main/.agents/skills/video-to-gif/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate

Made for: Claude Code.

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 video-to-gif

README.md
[![agentmods](https://agentmods.dev/badge/skills/kewton/commandmate/video-to-gif/github.svg)](https://agentmods.dev/skills/kewton/commandmate/video-to-gif)
Your own site
<a href="https://agentmods.dev/skills/kewton/commandmate/video-to-gif"><img src="https://agentmods.dev/badge/skills/kewton/commandmate/video-to-gif/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 video-to-gif

Your own site · 80×15
<a href="https://agentmods.dev/skills/kewton/commandmate/video-to-gif"><img src="https://agentmods.dev/badge/skills/kewton/commandmate/video-to-gif.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,714 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00113 $0.02714
Opus 5.5 $0.00045 $0.01086
Sonnet 5.5 $0.00023 $0.00543
Haiku 4.5 $0.00011 $0.00271

Measured 1mo ago against content hash a5f6b4327cfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

video-to-gif 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/to-gif.sh), 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.

.agents/skills/video-to-gif/SKILL.md · 143 lines

How it starts

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

video-to-gif

録画済みの動画を GIF にする。to-gif.sh 一発で、バイト予算に収まる GIF が出る。

.claude/skills/video-to-gif/scripts/to-gif.sh demo.mp4                 # demo.gif を隣に出す
.claude/skills/video-to-gif/scripts/to-gif.sh *.mp4 --out docs/images/features
.claude/skills/video-to-gif/scripts/to-gif.sh clip.mp4 --max-bytes 500k
.claude/skills/video-to-gif/scripts/to-gif.sh --ladder                 # 再試行の段取りだけ表示(ffmpeg 不要)
.claude/skills/video-to-gif/scripts/to-gif.sh --report docs/images/features/*.gif
.claude/skills/video-to-gif/scripts/to-gif.sh --check                  # 依存確認のみ

なぜ GIF なのか

GitHub の markdown ビューアは <video> を描画しない。HTML 許可リストに含まれておらず、 動画添付が再生されるのは issue / PR / discussion のコメントだけである。リポジトリ内の .md に貼って動く動画は GIF しかない。

例外は GitHub Pages(website/)で、そちらは素の HTML がそのまま配信されるので <video> が使える。LP に置くなら GIF ではなく mp4 の方が軽い(実測 GIF 1.02MB に対し mp4 0.56MB)。GIF が要るのは docs 配下の markdown だけ。

なぜ demo-video の compose.sh --gif と別なのか

compose.sh --gif は合成パイプラインの途中でしか発火せず、720px / 12fps / sierra2_4a を ハードコードしている。docs に載せるときに要るのは「完成済みの mp4 から、リポジトリが 背負えるサイズの GIF を作る」ことで、しかも収まったかどうかは測って判断する必要がある。 この 2 点は合成の関心事ではないので別スキルにした。

設計判断: dither は既定で切る

同一素材(20 秒 / 1280x800 の UI キャプチャ)を、無劣化リファレンスに対する SSIM で実測した。

設定 バイト数 SSIM (All)
colors=256 dither=none ← 既定 1,073,725 0.99653
colors=128 dither=none 883,912 0.99439
colors=128 dither=sierra2_4a 1,271,671 0.99160
colors=128 dither=bayer 998,339 0.99149
colors=64 dither=none 736,163 0.99202

ディザは 2 軸とも悪化させる。 空間ノイズを撒くので GIF が圧縮に使う LZW の run が壊れ、 かつ画面録画の大半を占める平坦な UI パネルには均すべきグラデーションが無い。 colors=64 + sierra2_4a は 1,472,301 バイトで colors=128 の同ディザより大きい — パレットが粗いほど誤差拡散が遠くまで広がるためである。

グラデーションが実在する素材(写真・動画コンテンツ)では --dither sierra2_4a を 意識して渡すこと。既定で有効にはしない。

--stats-mode diff も測ったが誤差の範囲で、むしろ僅かに大きくなった(full のまま)。

バイト予算とラダー

--max-bytes(既定 1.5M)に収まるまで、3 軸をラウンドロビンで一段ずつ落として再試行する。 fps を底まで落としてから解像度に手を付ける、という順序にはしない。4fps 等倍も 360px 30fps も 中間の妥協より見た目が悪く、画面の文字が読めることが UI デモの目的だからである。

Read the full file on GitHub · 143 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. 1mo ago Changed · +1 lines a5f6b4327cfc
  2. 1mo ago First seen · 142 lines · 113 tokens per session scan A c8dcc43c8743

Subscribe to this mod's changes

video-to-gif is a skill published in the GitHub repository Kewton/CommandMate (44 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 2,714 once invoked, about $0.0005 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

luvus-module

Write a luvus module (an extension for luvus, mission control for your AI coding agents). Use when the user is building or debugging a luvus module: authoring luvus-module.toml, adding a sidebar dock, Luvus Bar widget, right-click action, event hook, module pane, module settings, or calling luvus back over its UHP.

RizRiyz/luvus · 79 tokens

gpui-mockup

Explore visual directions for a herdr-gpui UI element as real GPUI code. Write 3–4 variants in one Rust file, show them side by side in a native mockup window in the user's own theme and fonts, capture the window to check your work, and iterate on the picks and notes the user sends back. Use instead of the HTML mockup…

wavyrai/tmux-ide · 0 tokens

skill

Skill "skill" from wavyrai/tmux-ide, covering tmux-ide — claude code skill, when to use, the agent contract, coordinating with other agents and fleet control from the cli.

wavyrai/tmux-ide · 0 tokens

kanban-orchestrator

Kanban orchestrator: decompose, route, verify. No executing.

forcewake/hermes-conductor · 21 tokens

arch-check

An architecture and implementation review tool that examines how a codebase is modeled, divided into responsibilities, organized into modules, and connected by dependencies. It also checks for issues such as circular dependencies, over-design, and violations of common design principles.

AgentsMesh/AgentsMesh · 212 tokens

cross-repo-delegate

A workflow for sending work tickets between separate code repositories. It lets an agent create a ticket for another project, then lets the receiving project list, claim, question, answer, or close that ticket.

yunsii/wezdeck · 111 tokens