OfficialProgramación y desarrollogithub.com

slack-gif-creator

Conocimiento y utilidades para crear GIFs animados optimizados para Slack. Proporciona restricciones, herramientas de validación y conceptos de animación. Úselo cuando los usuarios soliciten GIFs animados para Slack.

¿Qué es slack-gif-creator?

Esta habilidad proporciona un conjunto completo de herramientas y conocimientos para crear GIFs animados optimizados para Slack. Incluye utilidades como `GIFBuilder` para ensamblar y optimizar cuadros, `validators` para verificar que los GIFs cumplan con los requisitos de Slack (dimensiones 128x128 para emojis, 480x480 para mensajes, FPS entre 10-30, colores entre 48-128, duración máxima de 3 segundos para emojis), y funciones de interpolación (`easing`) para animaciones suaves. También ofrece ayudantes de composición para dibujar formas comunes (círculos, estrellas, texto, gradientes) y documenta conceptos de animación como sacudida, pulso, rebote, giro, desvanecimiento, deslizamiento, zoom y explosión de partículas. La habilidad está diseñada para que los desarrolladores usen PIL y Python para crear animaciones desde cero o a partir de imágenes subidas por el usuario, fomentando la creatividad sin depender de plantillas rígidas. Funciona en plataformas como Claude Code, Cursor y Codex, y requiere las dependencias pillow, imageio y numpy.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/anthropics/skills/tree/main/skills/slack-gif-creator

Installed? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Creador de GIFs para Slack

Un conjunto de herramientas que proporciona utilidades y conocimiento para crear GIFs animados optimizados para Slack.

Requisitos de Slack

Dimensiones:

  • GIFs de emoji: 128x128 (recomendado)
  • GIFs de mensaje: 480x480

Parámetros:

  • FPS: 10-30 (menor FPS = tamaño de archivo más pequeño)
  • Colores: 48-128 (menos colores = tamaño de archivo más pequeño)
  • Duración: Mantener por debajo de 3 segundos para GIFs de emoji

Flujo de trabajo principal

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

# 1. Crear el constructor
builder = GIFBuilder(width=128, height=128, fps=10)

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

    # Dibuje su animación usando primitivas de PIL
    # (círculos, polígonos, líneas, etc.)

    builder.add_frame(frame)

# 3. Guardar con optimización
builder.save('output.gif', num_colors=48, optimize_for_emoji=True)

Dibujar gráficos

Trabajar con imágenes subidas por el usuario

Si un usuario sube una imagen, considere si quiere:

  • Usarla directamente (ej., "anima esto", "divide esto en cuadros")
  • Usarla como inspiración (ej., "haz algo como esto")

Cargue y trabaje con imágenes usando PIL:

from PIL import Image

uploaded = Image.open('archivo.png')
# Úsela directamente, o solo como referencia para colores/estilo

Dibujar desde cero

Cuando dibuje gráficos desde cero, use las primitivas de PIL ImageDraw:

from PIL import ImageDraw

draw = ImageDraw.Draw(frame)

# Círculos/óvalos
draw.ellipse([x1, y1, x2, y2], fill=(r, g, b), outline=(r, g, b), width=3)

# Estrellas, triángulos, cualquier polígono
puntos = [(x1, y1), (x2, y2), (x3, y3), ...]
draw.polygon(puntos, fill=(r, g, b), outline=(r, g, b), width=3)

# Líneas
draw.line([(x1, y1), (x2, y2)], fill=(r, g, b), width=5)

# Rectángulos
draw.rectangle([x1, y1, x2, y2], fill=(r, g, b), outline=(r, g, b), width=3)

No use: Fuentes de emoji (no confiables entre plataformas) ni asuma que existen gráficos preempaquetados en esta habilidad.

Hacer que los gráficos se vean bien

Los gráficos deben verse pulidos y creativos, no básicos. Aquí le mostramos cómo:

Use líneas más gruesas - Siempre establezca width=2 o más para contornos y líneas. Las líneas finas (width=1) se ven entrecortadas y poco profesionales.

Agregue profundidad visual:

  • Use gradientes para fondos (create_gradient_background)
  • Superponga múltiples formas para mayor complejidad (ej., una estrella con una estrella más pequeña dentro)

Haga las formas más interesantes:

  • No dibuje solo un círculo simple: agregue reflejos, anillos o patrones
  • Las estrellas pueden tener resplandores (dibuje versiones más grandes y semitransparentes detrás)
  • Combine múltiples formas (estrellas + destellos, círculos + anillos)

Preste atención a los colores:

  • Use colores vibrantes y complementarios
  • Agregue contraste (contornos oscuros sobre formas claras, contornos claros sobre formas oscuras)
  • Considere la composición general

Para formas complejas (corazones, copos de nieve, etc.):

  • Use combinaciones de polígonos y elipses
  • Calcule los puntos cuidadosamente para lograr simetría
  • Agregue detalles (un corazón puede tener una curva de resalte, los copos de nieve tienen ramas intrincadas)

¡Sea creativo y detallado! Un buen GIF de Slack debe verse pulido, no como gráficos de marcador de posición.

Utilidades disponibles

GIFBuilder (core.gif_builder)

Ensambla cuadros y optimiza para Slack:

builder = GIFBuilder(width=128, height=128, fps=10)
builder.add_frame(frame)  # Agregar imagen PIL
builder.add_frames(frames)  # Agregar lista de cuadros
builder.save('out.gif', num_colors=48, optimize_for_emoji=True, remove_duplicates=True)

Validadores (core.validators)

Verifica si el GIF cumple con los requisitos de Slack:

from core.validators import validate_gif, is_slack_ready

# Validación detallada
passes, info = validate_gif('my.gif', is_emoji=True, verbose=True)

# Verificación rápida
if is_slack_ready('my.gif'):
    print("¡Listo!")

Funciones de interpolación (core.easing)

Movimiento suave en lugar de lineal:

from core.easing import interpolate

# Progreso de 0.0 a 1.0
t = i / (num_frames - 1)

# Aplicar interpolación
y = interpolate(start=0, end=400, t=t, easing='ease_out')

# Disponibles: linear, ease_in, ease_out, ease_in_out,
#           bounce_out, elastic_out, back_out

Ayudantes de cuadro (core.frame_composer)

Funciones de conveniencia para necesidades comunes:

from core.frame_composer import (
    create_blank_frame,         # Fondo de color sólido
    create_gradient_background,  # Gradiente vertical
    draw_circle,                # Ayudante para círculos
    draw_text,                  # Representación simple de texto
    draw_star                   # Estrella de 5 puntas
)

Conceptos de animación

Sacudida/Vibración

Desplazar la posición del objeto con oscilación:

  • Use math.sin() o math.cos() con el índice del cuadro
  • Agregue pequeñas variaciones aleatorias para una sensación natural
  • Aplique a la posición x y/o y

Pulso/Latido

Escalar el tamaño del objeto rítmicamente:

  • Use math.sin(t * frecuencia * 2 * math.pi) para un pulso suave
  • Para latido: dos pulsos rápidos y luego pausa (ajuste la onda sinusoidal)
  • Escale entre 0.8 y 1.2 del tamaño base

Rebote

El objeto cae y rebota:

  • Use interpolate() con easing='bounce_out' para el aterrizaje
  • Use easing='ease_in' para la caída (aceleración)
  • Aplique gravedad aumentando la velocidad en y cada cuadro

Giro/Rotación

Rotar el objeto alrededor del centro:

  • PIL: image.rotate(angle, resample=Image.BICUBIC)
  • Para tambaleo: use onda sinusoidal para el ángulo en lugar de lineal

Desvanecimiento de entrada/salida

Aparecer o desaparecer gradualmente:

  • Cree una imagen RGBA, ajuste el canal alfa
  • O use Image.blend(imagen1, imagen2, alpha)
  • Desvanecimiento de entrada: alfa de 0 a 1
  • Desvanecimiento de salida: alfa de 1 a 0

Deslizamiento

Mover el objeto desde fuera de la pantalla hasta su posición:

  • Posición inicial: fuera de los límites del cuadro
  • Posición final: ubicación objetivo
  • Use interpolate() con easing='ease_out' para una parada suave
  • Para sobrepaso: use easing='back_out'

Zoom

Escalar y posicionar para efecto de zoom:

  • Acercar: escala de 0.1 a 2.0, recortar centro
  • Alejar: escala de 2.0 a 1.0
  • Puede agregar desenfoque de movimiento para dramatismo (filtro PIL)

Explosión/Ráfaga de partículas

Crear partículas que se irradian hacia afuera:

  • Genere partículas con ángulos y velocidades aleatorias
  • Actualice cada partícula: x += vx, y += vy
  • Agregue gravedad: vy += constante_gravedad
  • Desvanezca las partículas con el tiempo (reduzca alfa)

Estrategias de optimización

Solo cuando se le solicite hacer el tamaño de archivo más pequeño, implemente algunos de los siguientes métodos:

  1. Menos cuadros - FPS más bajo (10 en lugar de 20) o duración más corta
  2. Menos colores - num_colors=48 en lugar de 128
  3. Dimensiones más pequeñas - 128x128 en lugar de 480x480
  4. Eliminar duplicados - remove_duplicates=True en save()
  5. Modo emoji - optimize_for_emoji=True optimiza automáticamente
# Optimización máxima para emoji
builder.save(
    'emoji.gif',
    num_colors=48,
    optimize_for_emoji=True,
    remove_duplicates=True
)

Filosofía

Esta habilidad proporciona:

  • Conocimiento: Requisitos de Slack y conceptos de animación
  • Utilidades: GIFBuilder, validadores, funciones de interpolación
  • Flexibilidad: Cree la lógica de animación usando primitivas de PIL

NO proporciona:

  • Plantillas de animación rígidas o funciones predefinidas
  • Representación de fuentes de emoji (no confiables entre plataformas)
  • Una biblioteca de gráficos preempaquetados integrados en la habilidad

Nota sobre cargas de usuarios: Esta habilidad no incluye gráficos preconstruidos, pero si un usuario sube una imagen, use PIL para cargarla y trabajar con ella; interprete según su solicitud si quiere usarla directamente o solo como inspiración.

¡Sea creativo! Combine conceptos (rebotando + girando, pulsando + deslizando, etc.) y use todas las capacidades de PIL.

Dependencias

pip install pillow imageio numpy

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists

anthropics/template-skill

Replace with description of the skill and when Claude should use it.

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists

claude-api

|-

discernment-nudge

After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.

doc-coauthoring

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

pptx

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \

Skills relacionados