Skip to content
AI & Agents
Skill

/make-gif

This skill should be used when the user asks to "make a GIF", "convert to GIF", "create a GIF from this video", "export as GIF", "turn this clip into a GIF", "make an animated GIF", or "gif this".

From plugin
claudest
27632 skills8 agents2 commands

Claude Code

$ npx -y skills add gupsammy/Claudest --skill make-gif --agent claude-code

SKILL.md

make-gif.SKILL.md
name: make-gif
description: >
  This skill should be used when the user asks to "make a GIF", "convert
  to GIF", "create a GIF from this video", "export as GIF", "turn this
  clip into a GIF", "make an animated GIF", or "gif this".
allowed-tools:
  - Bash(ffprobe:*)
  - Bash(ffmpeg:*)
  - AskUserQuestion

Video GIF

Convert a video clip to a high-quality GIF using the mandatory 2-pass palette workflow.

Single-pass GIF always produces banding and color artifacts. The palettegen → paletteuse pipeline analyzes the actual clip to build an optimal 256-color palette, then renders with it. Never skip this.

Process

1. Gather parameters

Ask for any not already provided in the request:

  • **Start time** — default `0`
  • **Duration or end time** — required; warn if >30s (file size grows rapidly)
  • **Width** — default `480`px; height auto-calculated to preserve aspect ratio
  • **FPS** — default `15`; higher = smoother + larger file

If the user asks about aspect ratio or the source has unusual dimensions, probe first:

ffprobe -v quiet -print_format json -show_streams "$INPUT" | \
  python3 -c "import json,sys; s=[s for s in json.load(sys.stdin)['streams'] if s['codec_type']=='video'][0]; print(s['width'], 'x', s['height'])"

2. Build the 2-pass command

**Pass 1 — generate optimized palette:**

ffmpeg -ss $START -t $DURATION -i "$INPUT" \
  -vf "fps=$FPS,scale=$WIDTH:-1:flags=lanczos,palettegen=stats_mode=full" \
  /tmp/palette_$$.png -y

**Pass 2 — render GIF using palette:**

ffmpeg -ss $START -t $DURATION -i "$INPUT" -i /tmp/palette_$$.png \
  -lavfi "fps=$FPS,scale=$WIDTH:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=bayer:bayer_scale=5" \
  "$OUTPUT" -y

Use `$$` (shell PID) in the palette temp path to avoid collisions with concurrent runs.

3. Confirm before running

Show the full 2-pass command and estimated output path. Add a size warning if `duration × fps` is large (rough heuristic: >20s at 15fps at 480px → likely >10MB).

4. Run both passes, then clean up

rm -f /tmp/palette_$$.png

Report output path and file size.

Key Decisions

  • `stats_mode=full` on palettegen analyzes the entire clip — not just the first frame — for better palette coverage across motion.
  • `dither=bayer:bayer_scale=5` is the sweet spot for photographic content. Use `dither=none` for flat-color content (illustrations, slides, screen recordings with solid backgrounds).
  • `-ss` placed **before** `-i` uses container-level fast seek. Apply to both passes for consistent start points and dramatically faster seeks on long source files.
  • `flags=lanczos` on scale gives sharper downsampling than the default `bilinear`.
  • To control loop count, add `-loop $N` to pass 2: `0` = infinite, `1` = play once, `2` = play twice.
Read more
@gupsammy
Ships withclaudest

A highly opinionated plugin marketplace for augmenting your Claude Code. Battle-tested skills and tools that actually work.

27632 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
276
Star history of gupsammy/Claudest on GitHub, a chart by star-history.com

Other skills on claudest.

claw-advisor

claw-advisor

This skill should be used when the user asks about OpenClaw configuration, troubleshooting, setup, architecture, or any OpenClaw…

@gupsammy@gupsammyInstall Skill
create-claw-skill

create-claw-skill

This skill should be used when the user asks to "create an OpenClaw skill", "make a claw skill", "build a skill for OpenClaw",…

@gupsammy@gupsammyInstall Skill
clean-branches

clean-branches

This skill should be used when the user says "clean up branches", "delete merged branches", or "prune stale branches". Use…

@gupsammy@gupsammyInstall Skill
commit

commit

This skill should be used when the user says "commit my changes", "commit this", "create a commit", "git commit", "save my work",…

@gupsammy@gupsammyInstall Skill
get-pr-comments

get-pr-comments

This skill should be used when the user says "get PR comments", "show PR feedback", "what comments on my PR", "PR review…

@gupsammy@gupsammyInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about make-gif.

Which coding agents can use make-gif?
make-gif installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.