davepoon/buildwithclaude / plugins/all-skills/skills/slack-gif-creator
slack-gif-creator
VerifiedToolkit 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 animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
| File | Kind | Size |
|---|---|---|
| LICENSE.txt | markdown | 11.1 KB |
| SKILL.md | skill md | 16.8 KB |
| core/color_palettes.pyexecutable | script | 8.5 KB |
| core/easing.pyexecutable | script | 6.1 KB |
| core/frame_composer.pyexecutable | script | 14.1 KB |
| core/gif_builder.pyexecutable | script | 9.3 KB |
| core/typography.pyexecutable | script | 10.5 KB |
| core/validators.pyexecutable | script | 8.0 KB |
| core/visual_effects.pyexecutable | script | 14.5 KB |
| requirements.txt | manifest | 66 B |
| templates/bounce.pyexecutable | script | 3.0 KB |
| templates/explode.pyexecutable | script | 11.0 KB |
| templates/fade.pyexecutable | script | 9.9 KB |
| templates/flip.pyexecutable | script | 9.2 KB |
| templates/kaleidoscope.pyexecutable | script | 6.2 KB |
| templates/morph.pyexecutable | script | 11.0 KB |
| templates/move.pyexecutable | script | 9.2 KB |
| templates/pulse.pyexecutable | script | 8.4 KB |
| templates/shake.pyexecutable | script | 3.6 KB |
| templates/slide.pyexecutable | script | 9.1 KB |
| templates/spin.pyexecutable | script | 8.9 KB |
| templates/wiggle.pyexecutable | script | 9.8 KB |
| templates/zoom.pyexecutable | script | 9.9 KB |
templates/shake.py
View on GitHub#!/usr/bin/env python3
"""
Shake Animation Template - Creates shaking/vibrating motion.
Use this for impact effects, emphasis, or nervous/excited reactions.
"""
import sys
import math
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent))
from core.gif_builder import GIFBuilder
from core.frame_composer import create_blank_frame, draw_circle, draw_emoji, draw_text
from core.easing import ease_out_quad
def create_shake_animation(
object_type: str = 'emoji',
object_data: dict = None,
num_frames: int = 20,
shake_intensity: int = 15,
center_x: int = 240,
center_y: int = 240,
direction: str = 'horizontal', # 'horizontal', 'vertical', or 'both'
frame_width: int = 480,
frame_height: int = 480,
bg_color: tuple[int, int, int] = (255, 255, 255)
) -> list:
"""
Create frames for a shaking animation.
Args:
object_type: 'circle', 'emoji', 'text', or 'custom'
object_data: Data for the object
num_frames: Number of frames
shake_intensity: Maximum shake displacement in pixels
center_x: Center X position
center_y: Center Y position
direction: 'horizontal', 'vertical', or 'both'
frame_width: Frame width
frame_height: Frame height
bg_color: Background color
Returns:
List of frames
"""
frames = []
# Default object data
if object_data is None:
if object_type == 'emoji':
object_data = {'emoji': '😱', 'size': 80}
elif object_type == 'text':
object_data = {'text': 'SHAKE!', 'font_size': 50, 'color': (255, 0, 0)}
for i in range(num_frames):
frame = create_blank_frame(frame_width, frame_height, bg_color)
# Calculate progress
t = i / (num_frames - 1) if num_frames > 1 else 0
# Decay shake intensity over time
intensity = shake_intensity * (1 - ease_out_quad(t))
# Calculate shake offset using sine wave for smooth oscillation
freq = 3 # Oscillation frequency
offset_x = 0
offset_y = 0
if direction in ['horizontal', 'both']:
offset_x = int(math.sin(t * freq * 2 * math.pi) * intensity)
if direction in ['vertical', 'both']:
offset_y = int(math.cos(t * freq * 2 * math.pi) * intensity)
# Apply offset
x = center_x + offset_x
y = center_y + offset_y
# Draw object
if object_type == 'emoji':
draw_emoji(
frame,
emoji=object_data['emoji'],
position=(x - object_data['size'] // 2, y - object_data['size'] // 2),
size=object_data['size']
)
elif object_type == 'text':
draw_text(
frame,
text=object_data['text'],
position=(x, y),
font_size=object_data['font_size'],
color=object_data['color'],
centered=True
)
elif object_type == 'circle':
draw_circle(
frame,
center=(x, y),
radius=object_data.get('radius', 30),
fill_color=object_data.get('color', (100, 100, 255))
)
frames.append(frame)
return frames
# Example usage
if __name__ == '__main__':
print("Creating shake GIF...")
builder = GIFBuilder(width=480, height=480, fps=24)
frames = create_shake_animation(
object_type='emoji',
object_data={'emoji': '😱', 'size': 100},
num_frames=30,
shake_intensity=20,
direction='both'
)
builder.add_frames(frames)
builder.save('shake_test.gif', num_colors=128)Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |