# video-to-gif

Turns one video into several GIFs at different settings and drops them in a folder, so you pick the one that looks right.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3900 installs
- Author: zc277584121
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/zc277584121/marketing-skills/tree/HEAD/skills/video-to-gif/SKILL.md
- Updated: 2026-08-28
- HTML: https://affpapa.org/en/nevibecode/skills/video-to-gif

## What it does

The skill runs a video file through a sweep of parameters: frame rate, width, colour count. You get a `<input>_gifs/` directory with the variants plus a sorted table listing file size, FPS, width and colours. No guessing about settings — the comparison is right there.

The default `full` preset produces 18 variants: 3 FPS values (10, 15, 20), 3 widths (480, 640, 800) and 2 colour counts (128, 256). Other presets are `minimal`, `lossy` and `quality`. Trim the clip with `--start` and `--end`, or override the sweep yourself with `--fps`, `--width`, `--colors`, `--lossy`.

FFmpeg and uv have to be installed first, otherwise the script will not run. gifsicle matters only for lossy variants — skip it and the `lossy` preset has nothing to work with. Widths above the source resolution get skipped automatically. The palette is built in two passes, which beats a single-pass build on quality. Trim long clips up front, because a GIF past 10 seconds gets heavy. For screen recordings, a sensible starting point is 640px, 15fps, 256 colours.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill video-to-gif -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/video-to-gif/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/video-to-gif/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill video-to-gif -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/video-to-gif/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill video-to-gif -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/video-to-gif/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install zc277584121/marketing-skills video-to-gif
```

2. **Manually: put the files in place**
- File: `.github/skills/video-to-gif/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill video-to-gif -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/zc277584121/marketing-skills --path skills/video-to-gif
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/video-to-gif/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill video-to-gif -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/zc277584121/marketing-skills/tree/HEAD/skills/video-to-gif/SKILL.md

## When to use it
- turn a clip into a GIF without hand-tuning parameters
- compare file size against quality across several variants
- cut a specific time range out of a video
- get a small GIF for a chat message or docs page
- spot colour banding when the palette is too small

## Example prompts
- make a GIF from demo.mp4, just the first 10 seconds
- run demo.mp4 with the minimal preset, I want a quick comparison
- generate variants from demo.mp4 with fps 12 and 15 and width 480 and 800

## Similar
- [demo-video](https://affpapa.org/en/nevibecode/skills/demo-video.md) — skill · 708 installs
- [media-transcoding](https://affpapa.org/en/nevibecode/skills/media-transcoding.md) — skill · 335 installs
- [video-batch-runner](https://affpapa.org/en/nevibecode/skills/video-batch-runner.md) — skill · 1000 installs
- [video-use](https://affpapa.org/en/nevibecode/skills/video-use.md) — skill · 5100 installs
- [video-translation](https://affpapa.org/en/nevibecode/skills/video-translation.md) — skill · 2000 installs
- [video-understand](https://affpapa.org/en/nevibecode/skills/video-understand.md) — skill · 1400 installs

From the same set: [zc277584121/marketing-skills](https://affpapa.org/en/nevibecode/by/zc277584121/marketing-skills.md) — 3 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
