Toolkit for creating animated GIFs optimized for Slack with size constraints and animation primitives
Ships in media. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Toolkit for creating animated GIFs optimized for Slack with size constraints and animation primitives.
Use this skill when:
# Create GIF from video
ffmpeg -i video.mp4 -vf "fps=10,scale=400:-1:flags=lanczos" -c:v gif output.gif
# Optimize GIF size
ffmpeg -i input.gif -vf "scale=400:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" output.gif
# Create from images
ffmpeg -i %03d.png -vf "fps=10,scale=400:-1" output.gif
# Create animated GIF from images
convert -delay 10 -loop 0 *.png output.gif
# Optimize GIF
convert output.gif -fuzz 10% -layers Optimize optimized.gif
# Resize and optimize
convert output.gif -resize 400x400 -fuzz 5% -layers Optimize final.gif
from PIL import Image, ImageDraw, ImageFont
import os
def create_text_gif(text, output_file, frames=20):
images = []
width, height = 400, 200
for i in range(frames):
# Create frame
img = Image.new('RGB', (width, height), color='white')
draw = ImageDraw.Draw(img)
# Animate position
x = int((width / frames) * i)
draw.text((x, 50), text, fill='black')
images.append(img)
# Save as GIF
images[0].save(
output_file,
save_all=True,
append_images=images[1:],
duration=100, # ms per frame
loop=0 # infinite loop
)
create_text_gif("Hello Slack!", "output.gif")
const sharp = require('sharp');
const fs = require('fs');
const path = require('path');
async function createGif(images, output) {
// Load images
const frames = await Promise.all(
images.map(img => sharp(img).resize(400, 400).gif().toBuffer())
);
// Create animated GIF
await sharp({
create: {
width: 400,
height: 400,
channels: 3,
background: { r: 255, g: 255, b: 255 }
}
})
.gif({ delay: 100, loop: 0 })
.toFile(output);
}
# Two-pass optimization
ffmpeg -i input.gif -vf "fps=15,scale=400:-1:flags=lanczos" -f gif - \
| gifsicle --optimize=3 --delay=10 > output.gif
from PIL import Image, ImageDraw
def typing_effect(text, output):
frames = []
for i in range(1, len(text) + 1):
img = Image.new('RGB', (400, 100), color='white')
draw = ImageDraw.Draw(img)
draw.text((10, 30), text[:i], fill='black')
frames.append(img)
frames[0].save(output, save_all=True, append_images=frames[1:], duration=100, loop=0)
def progress_gif(output, steps=10):
frames = []
for i in range(steps + 1):
img = Image.new('RGB', (400, 50), color='white')
draw = ImageDraw.Draw(img)
# Background bar
draw.rectangle([10, 20, 390, 40], outline='black', width=2)
# Progress
width = int((380 / steps) * i)
draw.rectangle([10, 20, 10 + width, 40], fill='blue')
frames.append(img)
frames[0].save(output, save_all=True, append_images=frames[1:], duration=200, loop=0)
import math
def bouncing_ball(output, frames=30):
images = []
width, height = 400, 400
for i in range(frames):
img = Image.new('RGB', (width, height), color='white')
draw = ImageDraw.Draw(img)
# Calculate position (sine wave)
t = (i / frames) * 2 * math.pi
y = int(350 - 300 * abs(math.sin(t)))
x = 200
# Draw ball
draw.ellipse([x-20, y-20, x+20, y+20], fill='red')
draw.rectangle([50, 370, 350, 380], fill='black')
images.append(img)
images[0].save(output, save_all=True, append_images=images[1:], duration=100, loop=0)
# Use adaptive palette
from PIL import Image
img = Image.open('input.gif')
img = img.convert('P', palette=Image.Palette.ADAPTIVE, colors=64)
img.save('output.gif', optimize=True)
# Skip every other frame
def skip_frames(frames, step=2):
return frames[::step]
# Crop to content and resize
ffmpeg -i input.gif -vf "crop=400:400:0:0,scale=200:200" output.gif
Look for:
**/animations/**/*.{gif,png}**/gifs/**/***/slack-gifs/**/***/creative/**/*GIF, Slack GIF, animated GIF, GIF optimization, animation primitives, meme generation, animated reactions, Slack integration, ImageMagick, FFmpeg, Pillow, sharp
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
/media:slack-gif-creatorfrom media
npx claudepluginhub dxta/claude-code-skills --plugin media