AgentSkillsCN

slack-gif-creator

定义并实施服务等级指标(SLIs)与服务等级目标(SLOs),配合错误预算与告警机制。在设定可靠性目标、践行SRE实践,或衡量服务性能时,可主动选用此技能。

SKILL.md
--- frontmatter
version: 4.1.0-fractal
name: slack-gif-creator
description: Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."
license: Complete terms in LICENSE.txt

Slack GIF Creator

A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.

Slack Requirements

Dimensions:

  • Emoji GIFs: 128x128 (recommended)
  • Message GIFs: 480x480

Parameters:

  • FPS: 10-30 (lower is smaller file size)
  • Colors: 48-128 (fewer = smaller file size)
  • Duration: Keep under 3 seconds for emoji GIFs

Core Workflow

python
from core.gif_builder import GIFBuilder
from PIL import Image, ImageDraw

# 1. Create builder
builder = GIFBuilder(width=128, height=128, fps=10)

# 2. Generate frames
for i in range(12):
    frame = Image.new('RGB', (128, 128), (240, 248, 255))
    draw = ImageDraw.Draw(frame)

    # Draw your animation using PIL primitives
    # (circles, polygons, lines, etc.)

    builder.add_frame(frame)

# 3. Save with optimization
builder.save('output.gif', num_colors=48, optimize_for_emoji=True)

Drawing Graphics

🧠 Knowledge Modules (Fractal Skills)

1. Working with User-Uploaded Images

2. Drawing from Scratch

3. Making Graphics Look Good

4. GIFBuilder (core.gif_builder)

5. Validators (core.validators)

6. Easing Functions (core.easing)

7. Frame Helpers (core.frame_composer)

8. Shake/Vibrate

9. Pulse/Heartbeat

10. Bounce

11. Spin/Rotate

12. Fade In/Out

13. Slide

14. Zoom

15. Explode/Particle Burst