Gif

From clawic/skills · View interactive version

Gif is an AI agent skill from the GitHub repository clawic/skills. Find, search, and create GIFs with proper optimization and accessibility.

How to use this skill

Skill file

Requirements

Required for creating GIFs:

Optional:

Where to Find GIFs

| Site | Best for | API |

|------|----------|-----|

| Giphy | General, trending | Yes (key required) |

| Tenor | Messaging apps | Yes (key required) |

| Imgur | Viral/community | Yes |

| Reddit r/gifs | Niche, unique | No |

Creating GIFs with FFmpeg

Always use palettegen (without it, colors look washed out):

ffmpeg -ss 0 -t 5 -i input.mp4 \
  -filter_complex "fps=10,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" \
  output.gif

| Setting | Value | Why |

|---------|-------|-----|

| fps | 8-12 | Higher = much larger file |

| scale | 320-480 | 1080p GIFs are massive |

| lanczos | Always | Best scaling quality |

Post-Optimization

If gifsicle is available:

gifsicle -O3 --lossy=80 --colors 128 input.gif -o output.gif

Reduces size 30-50% with minimal quality loss.

Video Alternative

For web, use video instead of large GIFs (80-90% smaller):

<video autoplay muted loop playsinline>
  <source src="animation.webm" type="video/webm">
  <source src="animation.mp4" type="video/mp4">
</video>

Accessibility

Common Mistakes

API Quick Reference

Giphy search:

curl "https://api.giphy.com/v1/gifs/search?api_key=$GIPHY_API_KEY&q=thumbs+up&limit=10"

Tenor search:

curl "https://tenor.googleapis.com/v2/search?key=$TENOR_API_KEY&q=thumbs+up&limit=10"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.