| name | slack-gif-creator |
| description | Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animation |
| category | Creative & Media |
| source | awesome-llm |
| tags | ["python","react","ai","template","design","slack","image","gif","creator"] |
| url | https://github.com/Prat011/awesome-llm-skills/tree/master/slack-gif-creator |
Slack GIF Creator - Flexible Toolkit
A toolkit for creating animated GIFs optimized for Slack. Provides validators for Slack's constraints, composable animation primitives, and optional helper utilities. Apply these tools however needed to achieve the creative vision.
Slack's Requirements
Slack has specific requirements for GIFs based on their use:
Message GIFs:
- Max size: ~2MB
- Optimal dimensions: 480x480
- Typical FPS: 15-20
- Color limit: 128-256
- Duration: 2-5s
Emoji GIFs:
- Max size: 64KB (strict limit)
- Optimal dimensions: 128x128
- Typical FPS: 10-12
- Color limit: 32-48
- Duration: 1-2s
Emoji GIFs are challenging - the 64KB limit is strict. Strategies that help:
- Limit to 10-15 frames total
- Use 32-48 colors maximum
- Keep designs simple
- Avoid gradients
- Validate file size frequently
Toolkit Structure
This skill provides three types of tools:
- Validators - Check if a GIF meets Slack's requirements
- Animation Primitives - Composable building blocks for motion (shake, bounce, move, kaleidoscope)
- Helper Utilities - Optional functions for common needs (text, colors, effects)
Complete creative freedom is available in how these tools are applied.
Core Validators
To ensure a GIF meets Slack's constraints, use these validators:
from core.gif_builder import GIFBuilder
builder = GIFBuilder(width=128, height=128, fps=10)
info = builder.save('emoji.gif', num_colors=48, optimize_for_emoji=True)
File size validator:
from core.validators import check_slack_size
passes, info = check_slack_size('emoji.gif', is_emoji=True)
Dimension validator:
from core.validators import validate_dimensions
passes, info = validate_dimensions(128, 128, is_emoji=True)
Complete validation:
from core.validators import validate_gif, is_slack_ready
all_pass, results = validate_gif('emoji.gif', is_emoji=True)
if is_slack_ready('emoji.gif', is_emoji=True):
print("Ready to upload!")
Animation Primitives
These are composable building blocks for motion. Apply these to any object in any combination:
Shake
from templates.shake import create_shake_animation
frames = create_shake_animation(
object_type='emoji',
object_data={'emoji': '😱', 'size': 80},
num_frames=20,
shake_intensity=15,
direction='both'
)
Bounce
from templates.bounce import create_bounce_animation
frames = create_bounce_animation(
object_type='circle',
object_data={'radius': 40, 'color': (255, 100, 100)},
num_frames=30,
bounce_height=150
)
Spin / Rotate
from templates.spin import create_spin_animation, create_loading_spinner
frames = create_spin_animation(
object_type='emoji',
object_data={'emoji': '🔄', 'size': 100},
rotation_type='clockwise',
full_rotations=2
)
frames = create_spin_animation(rotation_type='wobble', full_rotations=3)
frames = create_loading_spinner(spinner_type='dots')
Pulse / Heartbeat
from templates.pulse import create_pulse_animation, create_attention_pulse
frames = create_pulse_animation(
object_data={'emoji': '❤️', 'size': 100},
pulse_type='smooth',
scale_range=(0.8, 1.2)
)
frames = create_pulse_animation(pulse_type='heartbeat')
frames = create_attention_pulse(emoji='⚠️', num_frames=20)
Fade
from templates.fade import create_fade_animation, create_crossfade
frames = create_fade_animation(fade_type='in')
frames = create_fade_animation(fade_type='out')
frames = create_crossfade(
object1_data={'emoji': '😊', 'size': 100},
object2_data={'emoji': '😂', 'size': 100}
)
Zoom
from templates.zoom import create_zoom_animation, create_explosion_zoom
frames = create_zoom_animation(
zoom_type='in',
scale_range=(0.1, 2.0),
add_motion_blur=True
)
frames = create_zoom_animation(zoom_type='out')
frames = create_explosion_zoom(emoji='💥')
Explode / Shatter
from templates.explode import create_explode_animation, create_particle_burst
frames = create_explode_animation(
explode_type='burst',
num_pieces=25
)
frames = create_explode