claude-gif-convert
Convert video files, image sequences, and animated SVGs to optimized GIFs. Mode A: Video to GIF (FFmpeg two-pass palette). Mode…
AI video-to-GIF generation using Veo 3.1. Generates short AI video clips and converts to optimized GIFs with palette optimization and perfect loops. Best for cinematic loops, product demos, abstract art, realistic motion. Use when user says "AI gif", "cinematic gif", "generate
$ npx -y skills add AgriciDaniel/claude-gif --skill claude-gif-generate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/claude-gif-generateContext preview
The summary Claude sees to decide when to auto-load this skill.
AI video-to-GIF generation using Veo 3.1. Generates short AI video clips and converts to optimized GIFs with palette optimization and perfect loops. Best for cinematic loops, product demos, abstract art, realistic motion. Use when user says "AI gif", "cinematic gif", "generate
name: claude-gif-generate description: > AI video-to-GIF generation using Veo 3.1. Generates short AI video clips and converts to optimized GIFs with palette optimization and perfect loops. Best for cinematic loops, product demos, abstract art, realistic motion. Use when user says "AI gif", "cinematic gif", "generate realistic gif", "product demo gif", "Veo gif", "abstract art gif", or "movie quality gif". allowed-tools: - Bash - Read
Generates photorealistic or stylized AI video clips using Google Veo, then converts them to optimized GIFs with palette optimization, perfect loops, and platform sizing.
Prompt Engineering --> Veo Generate (MP4) --> gif_convert.sh (GIF) --> gif_loop.py (Loop) --> gif_optimize.py (Shrink)
Before constructing ANY Veo prompt for GIF output:
Read ~/.claude/skills/claude-gif/references/prompt-engineering.md
This is not optional. GIF-optimized prompts differ significantly from general video prompts. Loop-friendly prompts and static-background strategies reduce file size dramatically.
Veo generation costs real money. ALWAYS confirm with the user before proceeding.
| Model | Duration | Approximate Cost | |-------|----------|-----------------| | veo-3.0-fast-generate-001 | 4 seconds | ~$0.60 | | veo-3.0-fast-generate-001 | 8 seconds | ~$1.20 | | veo-3.0-generate-001 | 4 seconds | ~$1.20 | | veo-3.0-generate-001 | 8 seconds | ~$2.40 |
**Recommendation**: Use `veo-3.0-fast-generate-001` with 4 seconds for GIFs. Shorter clips make better GIFs (smaller files, easier to loop). Fast model quality is excellent for GIF resolution (480px).
Tell the user: "This will use Veo 3.0 Fast (4s) costing approximately $0.60. Proceed?"
Determine from the user's request:
Read `references/prompt-engineering.md` for detailed patterns. Key principles:
**Natural loops** (motion returns to start):
**Static background strategy** (reduces GIF file size via diff_mode):
**What to AVOID in prompts:**
~/.video-skill/bin/python3 ~/.claude/skills/veo/scripts/generate.py \ --prompt "A single candle flame flickering gently against a solid black background, close-up macro shot, the flame dances in a continuous loop, warm orange and yellow tones, 4K quality" \ --model veo-3.0-fast-generate-001 \ --duration 4 \ --aspect-ratio 16:9 \ --resolution 720p \ --output /tmp/claude-gif/veo_output.mp4
Parameters:
bash ~/.claude/skills/claude-gif/scripts/gif_convert.sh \ --input /tmp/claude-gif/veo_output.mp4 \ --preset web \ --output ~/Documents/gif_output/candle.gif
Choose preset based on target. For unknown targets, use `web` (480px, 15fps, 256 colors, 2MB cap).
Inspect the GIF. If the loop has a visible "jump" at the seam:
~/.video-skill/bin/python3 ~/.claude/skills/claude-gif/scripts/gif_loop.py \ --input ~/Documents/gif_output/candle.gif \ --method crossfade \ --frames 5 \ --output ~/Documents/gif_output/candle_looped.gif
Methods:
Read `references/perfect-loops.md` for detailed technique guidance.
If the GIF exceeds the target platform's size limit:
~/.video-skill/bin/python3 ~/.claude/skills/claude-gif/scripts/gif_optimize.py \ --input ~/Documents/gif_output/candle_looped.gif \ --target-size 256 \ --output ~/Documents/gif_output/candle_discord.gif
rm -f /tmp/claude-gif/veo_output.mp4
"[Natural element] in continuous seamless motion, [lighting], static camera, [color palette], cinematic quality, the motion naturally repeats"
Examples: crackling fire, ocean waves, falling rain, swirling smoke, flickering aurora
"A [product] slowly rotating 360 degrees on a clean [color] surface, studio lighting, product photography, the rotation completes one full cycle"
"Abstract [pattern/shape] flowing and morphing in a continuous cycle, [color palette], minimalist background, mesmerizing seamless loop"
"A [scene description] where only the [specific element] moves, everything else perfectly still, cinematic qualit
GIF creation skill for Claude Code with 6 generation pipelines: AI video-to-GIF (Veo 3.1), programmatic animations (Remotion), AI image sequences (Gemini/FLUX.2), animated SVG-to-transparent-GIF (Playwright), video conversion (FFmpeg), and GIF
Convert video files, image sequences, and animated SVGs to optimized GIFs. Mode A: Video to GIF (FFmpeg two-pass palette). Mode…
Programmatic GIF creation using Remotion (React-based). Generates text animations, loading spinners, logo reveals, meme…
Edit and modify existing GIFs. Speed change, reverse, ping-pong, crop, resize, text overlay, frame extraction, loop control,…
Optimize GIF file size and quality. Multi-strategy optimization: gifsicle lossy compression, color reduction, dimension…
Ultimate GIF creator: AI video-to-GIF (Veo 3.1), programmatic animations (Remotion), AI image sequence assembly (Gemini/FLUX.2),…