create-gif/SKILL.md
Turn a video URL or local clip into a crisp, size-efficient GIF with precise timing controls and proven quality/size presets (including hard skin-tone lighting cases).
npx skillsauth add memgrafter/skills-flatagents create-gifInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create reproducible GIFs quickly without guessing encode settings.
yt-dlpffmpegimagemagick (magick)gifsicle-ss, -to/-t)Why seconds-based segmenting helps:
start/end by 1s without rethinking timestampsstart+duration is great when clip length is fixedyt-dlp -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/best" \
--download-sections "*00:00:14-00:00:23" \
--force-keyframes-at-cuts --merge-output-format mp4 \
-o "yt_clip.%(ext)s" "<YOUTUBE_URL>"
If you know clip length, use ffmpeg on the downloaded clip:
# start at 15s, keep 8s
ffmpeg -y -ss 15 -t 8 -i yt_clip.mp4 -c copy yt_clip_segment.mp4
Or if you prefer start + end:
# start at 15s, end at 23s
ffmpeg -y -ss 15 -to 23 -i yt_clip.mp4 -c copy yt_clip_segment.mp4
ffmpeg -y -ss 1 -t 8 -i yt_clip.mp4 \
-vf "fps=16,scale=520:-1:flags=lanczos,hqdn3d=1.0:1.0:3:3,colorspace=iall=bt709:ispace=bt709:itrc=bt709:iprimaries=bt709:irange=tv:space=gbr:trc=srgb:primaries=bt709:range=pc,format=rgb24,split[s0][s1];[s0]palettegen=max_colors=160:reserve_transparent=0:stats_mode=full[p];[s1][p]paletteuse=dither=sierra2_4a" \
jack_typing_520w_16fps_srgb_160_raw.gif
magick jack_typing_520w_16fps_srgb_160_raw.gif -layers Optimize jack_typing_520w_16fps_srgb_160.gif
gifsicle -O3 --lossy=45 jack_typing_520w_16fps_srgb_160.gif -o jack_typing_520w_16fps_srgb_160_lossy45.gif
Typical files produced:
*_raw.gif (pre-optimization)*.gif (optimized)*_lossyXX.gif (final size/quality tradeoff)Cut exact segment → color-space normalize → generate/apply palette → optimize frames → optional lossy compression.
Trade-off: more fidelity requires bigger GIFs; this workflow gives controlled compromises instead of random artifacts.
development
Deterministically fixes broken OpenAI Deep Research markdown citations without using an LLM: creates a .bkp backup, rewrites citation markers, rebuilds references, and runs strict regex validation.
tools
Use this as the default toolset for coding sessions when you want faster navigation, search, file inspection, and git workflow execution with lower command overhead: tools: - fzf - ripgrep - bat - delta - lazygit - starship - zoxide - eza - atuin - yazi
development
Turn a URL into a durable knowledge artifact: searchable markdown summary + local raw text archive, so you can recall it later without revisiting the web.
development
Run shell commands and analyze output with validated summaries. Use for build logs, test output, or any command with substantial output. Protects context by returning concise summaries with grep-validated citations.