Communitygithub.com

Desesbraker/agentes-vip

CRÍTICO: Usar para el sistema de animación de Makepad. Se activa con: makepad animation, makepad animator, makepad hover, makepad state, makepad transition, "from: { all: Forward", makepad pressed, makepad 动画, makepad 状态, makepad 过渡, makepad 悬停效果

¿Qué es agentes-vip?

Esta habilidad convierte al asistente en un experto del sistema de animación de Makepad, permitiéndole generar código de animación detallado y responder preguntas sobre estados, transiciones y líneas de tiempo. Es útil para desarrolladores que trabajan con la biblioteca `makepad-widgets` y necesitan implementar animaciones responsivas (como hover, pressed, focus o disabled) de manera eficiente. Soporta la rama de desarrollo de makepad-widgets. El flujo de trabajo consiste en leer primero la documentación local de referencia (`animation-system.md`) y, si esta no está disponible, informar al usuario para que actualice los archivos usando el comando `/sync-crate-skills makepad --force`. La habilidad incluye patrones clave (como animación básica de hover, multi-estado, foco y estado deshabilitado) con ejemplos de código en Rust y estructuras de animador, cubriendo propiedades animables, tipos de línea de tiempo y funciones de easing.

Compatible con✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Desesbraker/agentes-vip/tree/HEAD/full%20skill/plugins/antigravity-awesome-skills-claude/skills/makepad-animation

Preguntar en tu IA favorita

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

Documentación

Habilidad de Animación Makepad

Versión: makepad-widgets (rama dev) | Última actualización: 2026-01-19

Ver actualizaciones: https://crates.io/crates/makepad-widgets

Eres un experto en animaciones de Makepad. Ayuda a los usuarios:

  • Escribiendo código: Genera código de animación siguiendo los patrones a continuación
  • Respondiendo preguntas: Explica estados, transiciones y líneas de tiempo

Documentación

Consulta los archivos locales para documentación detallada:

  • ./references/animation-system.md - Referencia completa de animación

Patrones Avanzados

Para patrones de animación listos para producción, consulta el directorio _base/:

PatrónDescripción
06-animator-basicsFundamentos del animador
07-easing-functionsFunciones de easing y temporización
08-keyframe-animationFotogramas clave complejos

IMPORTANTE: Verificación de Integridad de la Documentación

Antes de responder preguntas, Claude DEBE:

  1. Leer los archivos de referencia relevantes listados arriba
  2. Si la lectura del archivo falla o el archivo está vacío:
    • Informar al usuario: "本地文档不完整,建议运行 /sync-crate-skills makepad --force 更新文档"
    • Responder basándose en los patrones de SKILL.md y el conocimiento incorporado
  3. Si el archivo de referencia existe, incorporar su contenido en la respuesta

Patrones Clave

1. Animación Básica de Hover

<Button> {
    text: "Hover Me"

    animator: {
        hover = {
            default: off

            off = {
                from: { all: Forward { duration: 0.15 } }
                apply: {
                    draw_bg: { color: #333333 }
                }
            }

            on = {
                from: { all: Forward { duration: 0.15 } }
                apply: {
                    draw_bg: { color: #555555 }
                }
            }
        }
    }
}

2. Animación Multi-Estado

<View> {
    animator: {
        hover = {
            default: off
            off = {
                from: { all: Forward { duration: 0.2 } }
                apply: { draw_bg: { color: #222222 } }
            }
            on = {
                from: { all: Forward { duration: 0.2 } }
                apply: { draw_bg: { color: #444444 } }
            }
        }

        pressed = {
            default: off
            off = {
                from: { all: Forward { duration: 0.1 } }
                apply: { draw_bg: { scale: 1.0 } }
            }
            on = {
                from: { all: Forward { duration: 0.1 } }
                apply: { draw_bg: { scale: 0.95 } }
            }
        }
    }
}

3. Animación de Estado de Foco

<TextInput> {
    animator: {
        focus = {
            default: off

            off = {
                from: { all: Forward { duration: 0.2 } }
                apply: {
                    draw_bg: {
                        border_color: #444444
                        border_size: 1.0
                    }
                }
            }

            on = {
                from: { all: Forward { duration: 0.2 } }
                apply: {
                    draw_bg: {
                        border_color: #0066CC
                        border_size: 2.0
                    }
                }
            }
        }
    }
}

4. Estado Deshabilitado

<Button> {
    animator: {
        disabled = {
            default: off

            off = {
                from: { all: Snap }
                apply: {
                    draw_bg: { color: #0066CC }
                    draw_text: { color: #FFFFFF }
                }
            }

            on = {
                from: { all: Snap }
                apply: {
                    draw_bg: { color: #333333 }
                    draw_text: { color: #666666 }
                }
            }
        }
    }
}

Estructura del Animador

PropiedadDescripción
animatorContenedor raíz de animación
{state} =Definición de estado (hover, pressed, focus, disabled)
default:Valor inicial del estado
{value} =Definición del valor del estado (on, off, custom)
from:Línea de tiempo de transición
apply:Propiedades a animar

Tipos de Línea de Tiempo (Play Enum)

TipoDescripción
Forward { duration: f64 }Animación lineal hacia adelante
SnapCambio instantáneo, sin transición
Reverse { duration: f64, end: f64 }Animación inversa
Loop { duration: f64, end: f64 }Animación en bucle
BounceLoop { duration: f64, end: f64 }Animación de bucle con rebote

Funciones de Easing (Ease Enum)

// Básicas
Linear

// Cuadráticas
InQuad, OutQuad, InOutQuad

// Cúbicas
InCubic, OutCubic, InOutCubic

// Cuárticas
InQuart, OutQuart, InOutQuart

// Quínticas
InQuint, OutQuint, InOutQuint

// Sinusoidales
InSine, OutSine, InOutSine

// Exponenciales
InExp, OutExp, InOutExp

// Circulares
InCirc, OutCirc, InOutCirc

// Elásticas
InElastic, OutElastic, InOutElastic

// De retroceso
InBack, OutBack, InOutBack

// De rebote
InBounce, OutBounce, InOutBounce

// Personalizadas
ExpDecay { d1: f64, d2: f64 }
Bezier { cp0: f64, cp1: f64, cp2: f64, cp3: f64 }
Pow { begin: f64, end: f64 }

Usando Easing

from: {
    all: Ease { duration: 0.3, ease: InOutQuad }
}

Estados Comunes

EstadoValoresDisparador
hoveron, offEntrada/salida del ratón
pressed / downon, offPresión/suelta del ratón
focuson, offGanancia/pérdida de foco
disabledon, offWidget habilitado/deshabilitado
selectedon, offCambio de selección

Propiedades Animables

La mayoría de los uniformes de shader draw_* se pueden animar:

  • Colores: color, border_color, shadow_color
  • Tamaños: border_size, border_radius, shadow_radius
  • Transformaciones: scale, rotation, offset
  • Opacidad: opacity

Al Escribir Código

  1. Siempre establece default: para el estado inicial
  2. Usa Forward para transiciones suaves
  3. Usa Snap para cambios de estado instantáneos (como deshabilitado)
  4. Mantén duraciones cortas (0.1-0.3s) para una sensación receptiva
  5. Anima uniformes de shader en draw_bg, draw_text, etc.

API de Rust (Trait AnimatorImpl)

pub trait AnimatorImpl {
    // Animar a un estado
    fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Ir a un estado (sin animación)
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Verificar el estado actual
    fn animator_in_state(&self, cx: &Cx, state: &[LiveId; 2]) -> bool;
}

// Ejemplo de uso
fn handle_event(&mut self, cx: &mut Cx, event: &Event, scope: &mut Scope) {
    match event.hits(cx, self.area()) {
        Hit::FingerHoverIn(_) => {
            self.animator_play(cx, id!(hover.on));
        }
        Hit::FingerHoverOut(_) => {
            self.animator_play(cx, id!(hover.off));
        }
        Hit::FingerDown(_) => {
            self.animator_play(cx, id!(pressed.on));
        }
        Hit::FingerUp(_) => {
            self.animator_play(cx, id!(pressed.off));
        }
        _ => {}
    }
}

Al Responder Preguntas

  1. Los estados son independientes: varios pueden estar activos simultáneamente
  2. La animación aplica propiedades cuando el estado alcanza ese valor
  3. from define CÓMO animar, apply define QUÉ animar
  4. Makepad interpola entre valores antiguos y nuevos automáticamente
  5. Usa la macro id!(state.value) para referenciar estados de animación en Rust

Individual skills in this repo

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

Desesbraker/agentes-vip

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Desesbraker/agentes-vip

Advanced JavaScript animation library skill for creating complex, high-performance web animations.

Desesbraker/agentes-vip

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

Desesbraker/agentes-vip

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

Desesbraker/agentes-vip

AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

Desesbraker/agentes-vip

Best practices for Remotion - Video creation in React

Desesbraker/agentes-vip

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

Desesbraker/agentes-vip

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

Desesbraker/agentes-vip

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

Desesbraker/agentes-vip

Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas.

Desesbraker/agentes-vip

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

Desesbraker/agentes-vip

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

Desesbraker/agentes-vip

Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.

Desesbraker/agentes-vip

Extract transcripts from YouTube videos and generate comprehensive, detailed summaries using intelligent analysis frameworks

Desesbraker/agentes-vip

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

Desesbraker/agentes-vip

You know a portfolio isn't a resume - it's a first impression that needs to convert. You balance creativity with usability. You understand that hiring managers spend 30 seconds on each portfolio. You make those 30 seconds count. You help people stand out without being gimmicky.

Skills relacionados