slack-gif-creator is one of the example skills in Anthropic’s public skills repository. It triggers when someone asks for an animated GIF for Slack, such as “make me a GIF of X doing Y for Slack”, and gives Claude the constraints to work within: 128x128 for emoji GIFs and 480x480 for message GIFs, 10 to 30 frames per second, 48 to 128 colors, and under three seconds for an emoji.
Rather than templates or pre-made graphics, the skill ships a small Python toolkit and a set of animation recipes. Claude draws each frame itself with Pillow’s drawing primitives, or from an image the user uploads, uses easing functions for smooth motion, and hands the frames to a GIFBuilder that reduces colors to a shared palette, optionally drops near-duplicate frames and shrinks the result for emoji use. A validator then checks the dimensions against what Slack expects.
What You Get
- Slack’s targets in one place: 128x128 emoji GIFs, 480x480 message GIFs, 10-30 fps, 48-128 colors and a three-second limit for emoji
- core/gif_builder.py, a GIFBuilder class that collects frames, quantizes them to a global palette, removes near-identical frames and saves a looping GIF with a size report
- core/easing.py, with linear, quadratic, cubic, bounce, elastic and back easing curves plus an interpolate helper, squash-and-stretch and arc motion
- core/frame_composer.py, with helpers for blank frames, vertical gradient backgrounds, circles, five-pointed stars and text in Pillow’s default font
- core/validators.py, with validate_gif and is_slack_ready to check dimensions, file size, frame count and frame rate
- Recipes for eight animation types and guidance on making shapes look finished rather than like placeholders
Common Use Cases
- Making a custom animated Slack emoji, such as a pulsing heart or a spinning logo, at 128x128
- Producing a short celebration or reaction GIF for a Slack message
- Animating an image a user uploads, or splitting it into frames
- Shrinking an existing animation when Slack rejects it as too large, by cutting frames, colors or dimensions
What Makes It Unique
Where algorithmic-art and canvas-design make art for its own sake, as an interactive p5.js sketch or a static PDF or PNG, slack-gif-creator targets one destination and its limits. It is the only one of these that ships working Python code Claude imports: a builder that does the palette reduction, deduplication and emoji downsizing, and a validator that checks the output against Slack’s expected sizes. It deliberately leaves the drawing to Claude, with no templates, no emoji fonts and no bundled graphics, so each GIF is drawn from primitives or from the user’s own image.
Under The Hood
The skill is a SKILL.md of instructions plus four Python modules in core/, a requirements file and the license text. Claude writes its own Python script that imports these modules, draws frames with Pillow, and calls GIFBuilder.save, which uses imageio and NumPy to write a looping GIF to the path Claude chooses and prints its size, dimensions, frame count and duration. With emoji optimization on, the builder resizes frames to 128x128, caps the palette at 48 colors and keeps roughly twelve frames. The validator opens the finished file with Pillow to read its size and frames. The skill asks for Pillow, imageio and NumPy to be installed with pip, and its requirements file adds imageio-ffmpeg; beyond that package install it calls no services and nothing in it reaches the network.