帮助用户制作适配 Slack 的动画 GIF,并检查规格与动画效果。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "slack-gif-creator" 技能: 1. 下载 https://raw.githubusercontent.com/anthropics/skills/main/skills/slack-gif-creator/SKILL.md 2. 保存为 ~/.claude/skills/slack-gif-creator/SKILL.md 3. 装好后重载技能,告诉我可以用了
A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.
Dimensions:
Parameters:
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)
If a user uploads an image, consider whether they want to:
Load and work with images using PIL:
from PIL import Image
uploaded = Image.open('file.png')
# Use directly, or just as reference for colors/style
When drawing graphics from scratch, use PIL ImageDraw primitives:
from PIL import ImageDraw
draw = ImageDraw.Draw(frame)
# Circles/ovals
draw.ellipse([x1, y1, x2, y2], fill=(r, g, b), outline=(r, g, b), width=3)
# Stars, triangles, any polygon
points = [(x1, y1), (x2, y2), (x3, y3), ...]
draw.polygon(points, fill=(r, g, b), outline=(r, g, b), width=3)
# Lines
draw.line([(x1, y1), (x2, y2)], fill=(r, g, b), width=5)
# Rectangles
draw.rectangle([x1, y1, x2, y2], fill=(r, g, b), outline=(r, g, b), width=3)
Don't use: Emoji fonts (unreliable across platforms) or assume pre-packaged graphics exist in this skill.
Graphics should look polished and creative, not basic. Here's how:
Use thicker lines - Always set width=2 or higher for outlines and lines. Thin lines (width=1) look choppy and amateurish.
Add visual depth:
create_gradient_background)Make shapes more interesting:
Pay attention to colors:
For complex shapes (hearts, snowflakes, etc.):
Be creative and detailed! A good Slack GIF should look polished, not like placeholder graphics.
core.gif_builder)Assembles frames and optimizes for Slack:
builder = GIFBuilder(width=128, height=128, fps=10)
builder.add_frame(frame) # Add PIL Image
builder.add_frames(frames) # Add list of frames
builder.save('out.gif', num_colors=48, optimize_for_emoji=True, remove_duplicates=True)
core.validators)Check if GIF meets Slack requirements:
from core.validators import validate_gif, is_slack_ready
# Detailed validation
passes, info = validate_gif('my.gif', is_emoji=True, verbose=True)
# Quick check
if is_slack_ready('my.gif'):
print("Ready!")
core.easing)Smooth motion instead of linear:
from core.easing import interpolate
# Progress from 0.0 to 1.0
t = i / (num_frames - 1)
# Apply easing
y = interpolate(start=0, end=400, t=t, easing='ease_out')
…
用 p5.js 与可控随机参数生成原创算法艺术与交互式视觉作品
处理或生成电子表格文件,支持清洗、编辑、转换与公式图表操作。
创建、读取、编辑与整理 PPTX 演示文稿及其中的文本和备注内容。
帮助你构建、调试并优化 Claude API 与 Anthropic SDK 应用
引导用户协作撰写文档、方案与技术规格,并通过迭代完善内容质量。
用于创建、编辑与整理Word文档,并生成带专业排版的 .docx 文件。
根据文字描述生成适合 Slack 使用的动态 GIF 或表情动画。
帮助用户搜索梗图模板、推荐合适格式并生成可分享的表情包图片。
帮助用户快速生成简洁优雅的 HTML 方案和架构图
帮助用户创作海报、插画与静态视觉稿,并输出PNG或PDF文件
快速创建或转换为动画丰富的网页演示文稿,适合路演、分享与提案制作。
用于创建、编辑与优化AI技能,并评测其效果与触发准确性。