Communitygithub.com

Desesbraker/agentes-vip

CRITICAL : Utilisé pour le système d'animation Makepad. Se déclenche sur : animation makepad, animateur makepad, survol makepad, état makepad, transition makepad, "from: { all: Forward", appui makepad, 动画 makepad, 状态 makepad, 过渡 makepad, 悬停效果 makepad

Qu'est-ce que agentes-vip ?

Cette compétence est essentielle pour tout développeur travaillant avec le système d'animation de Makepad, un framework d'interface utilisateur en Rust. Elle fournit des modèles d'animation prêts à l'emploi, couvrant des états courants comme le survol, l'appui, le focus et le désactivé. L'agent peut générer du code Makepad, expliquer le fonctionnement des transitions et des timelines, et aider à choisir les fonctions d'easing appropriées. La compétence s'appuie sur la documentation locale et propose des motifs avancés dans un répertoire `_base/`. Elle prend en charge les propriétés animables comme les couleurs, les tailles, les transformations et l'opacité, ainsi qu'une API Rust via le trait `AnimatorImpl` pour un contrôle programmatique. Avant de répondre, l'agent vérifie l'intégrité des fichiers de référence et suggère une mise à jour si nécessaire.

Compatible avec✓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

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Compétence d'animation Makepad

Version : makepad-widgets (branche dev) | Dernière mise à jour : 2026-01-19

Vérifiez les mises à jour sur : https://crates.io/crates/makepad-widgets

Vous êtes un expert des animations Makepad. Aidez les utilisateurs en :

  • Écrivant du code : générez du code d'animation selon les modèles ci-dessous
  • Répondant aux questions : expliquez les états, les transitions, les timelines

Documentation

Consultez les fichiers locaux pour une documentation détaillée :

  • ./references/animation-system.md - Référence complète de l'animation

Modèles avancés

Pour des modèles d'animation prêts pour la production, voir le répertoire _base/ :

ModèleDescription
06-animator-basicsFondamentaux de l'animateur
07-easing-functionsFonctions d'easing et timing
08-keyframe-animationKeyframes complexes

IMPORTANT : Vérification de l'exhaustivité de la documentation

Avant de répondre aux questions, Claude DOIT :

  1. Lire le(s) fichier(s) de référence concerné(s) listé(s) ci-dessus
  2. Si la lecture échoue ou si le fichier est vide :
    • Informer l'utilisateur : "本地文档不完整,建议运行 /sync-crate-skills makepad --force 更新文档"
    • Répondre quand même sur la base des modèles de SKILL.md + des connaissances intégrées
  3. Si le fichier de référence existe, intégrer son contenu dans la réponse

Modèles clés

1. Animation de survol de base

<Button> {
    text: "Survolez-moi"

    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. Animation multi-états

<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. Animation d'état de focus

<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. État désactivé

<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 }
                }
            }
        }
    }
}

Structure de l'animateur

PropriétéDescription
animatorConteneur racine de l'animation
{state} =Définition de l'état (hover, pressed, focus, disabled)
default:Valeur initiale de l'état
{value} =Définition de la valeur de l'état (on, off, custom)
from:Timeline de transition
apply:Propriétés à animer

Types de timeline (Énumération Play)

TypeDescription
Forward { duration: f64 }Animation linéaire avant
SnapChangement instantané, sans transition
Reverse { duration: f64, end: f64 }Animation inversée
Loop { duration: f64, end: f64 }Animation en boucle
BounceLoop { duration: f64, end: f64 }Animation en boucle avec rebond

Fonctions d'easing (Énumération Ease)

// Basique
Linear

// Quadratique
InQuad, OutQuad, InOutQuad

// Cubique
InCubic, OutCubic, InOutCubic

// Quartique
InQuart, OutQuart, InOutQuart

// Quintique
InQuint, OutQuint, InOutQuint

// Sinusoïdale
InSine, OutSine, InOutSine

// Exponentielle
InExp, OutExp, InOutExp

// Circulaire
InCirc, OutCirc, InOutCirc

// Élastique
InElastic, OutElastic, InOutElastic

// Retour (Back)
InBack, OutBack, InOutBack

// Rebond
InBounce, OutBounce, InOutBounce

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

Utilisation de l'easing

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

États courants

ÉtatValeursDéclencheur
hoveron, offEntrée/sortie de la souris
pressed / downon, offAppui/relâchement de la souris
focuson, offPrise/perte de focus
disabledon, offWidget activé/désactivé
selectedon, offChangement de sélection

Propriétés animables

La plupart des uniforms de shader draw_* peuvent être animés :

  • Couleurs : color, border_color, shadow_color
  • Tailles : border_size, border_radius, shadow_radius
  • Transformations : scale, rotation, offset
  • Opacité : opacity

Lors de l'écriture de code

  1. Définissez toujours default: pour l'état initial
  2. Utilisez Forward pour des transitions fluides
  3. Utilisez Snap pour des changements d'état instantanés (comme désactivé)
  4. Gardez des durées courtes (0.1-0.3s) pour une sensation de réactivité
  5. Animez les uniforms de shader dans draw_bg, draw_text, etc.

API Rust (Trait AnimatorImpl)

pub trait AnimatorImpl {
    // Animer vers un état
    fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Passer à un état (sans animation)
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Vérifier l'état actuel
    fn animator_in_state(&self, cx: &Cx, state: &[LiveId; 2]) -> bool;
}

// Exemple d'utilisation
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));
        }
        _ => {}
    }
}

Lors de la réponse aux questions

  1. Les états sont indépendants - plusieurs peuvent être actifs simultanément
  2. L'animation applique les propriétés lorsque l'état atteint cette valeur
  3. from définit COMMENT animer, apply définit QUOI animer
  4. Makepad effectue une interpolation entre les anciennes et nouvelles valeurs automatiquement
  5. Utilisez la macro id!(state.value) pour référencer les états d'animation 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 associés