帮助用户制作适配 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')
…
创建、读取、编辑与整理 PPTX 演示文稿及其中的文本和备注内容。
用于创建、编辑与优化AI技能,并评测其效果与触发准确性。
用 p5.js 与可控随机参数生成原创算法艺术与交互式视觉作品
将各类内容套用 Anthropic 官方品牌色彩与字体规范。
帮助用户创作海报、插画等静态视觉作品,并导出为 PNG 或 PDF。
用于创建、编辑与整理Word文档,并生成带专业排版的 .docx 文件。
为项目代码库生成定制化设计系统规则,统一 Figma 到代码协作规范。
帮助用户创建或更新技能,扩展 Codex 的知识、流程与工具能力
将文本、网址或PDF快速生成专业海报、轮播图与演示文稿
根据角色或品牌视觉生成、修复并打包可用于 Codex 的动画宠物素材。
根据代码库在 Figma 中创建或更新专业级设计系统与组件库
帮助用户生成或编辑位图图像,用于插画、照片、贴图与透明抠图等视觉素材。