Skip to content
SkillScript-led1,919 tokens in use

slack-gif-creator

Anthropic's skill for Slack GIFs: Claude draws frames with Pillow, eases the motion and saves a size-optimized emoji or message GIF that meets Slack's limits.

197,764 stars on the repositoryanthropics/skills · skills/slack-gif-creator
/plugin install example-skills@anthropic-agent-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing slack-gif-creator costs

50tokens idle
1,919tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: core/easing.py, core/frame_composer.py, core/gif_builder.py, core/validators.py.

Touches

shelldetectednetworkdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts and code blocks. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter15/15
  • Structure23/25
  • Examples9/15
  • Output10/15
  • Size15/15
  • Resources0/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 253
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 253

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity72
  • Maintenance32
  • Community68
  • Maturity36
  • Momentum40

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.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers