Communitygithub.com

Anhvu1107/all-agent-skill

Immer verwenden, wenn die Anfrage Makepad Animationen betrifft: KRITISCH: Für das Makepad-Animationssystem verwenden.

Was ist all-agent-skill?

Diese Fähigkeit ist speziell für die Arbeit mit dem Makepad-Animationssystem konzipiert, einem leistungsstarken Framework für reaktive UI-Animationen in Makepad-Widgets. Sie bietet Entwicklern klare Anleitungen zur Erstellung von Hover-, Druck-, Fokus- und Deaktiviert-Animationen sowie komplexeren Keyframe- und Easing-basierten Abläufen. Die Skill-Dokumentation enthält vollständige, sofort verwendbare Codebeispiele in Rust und der Makepad-eigenen DSL, die die Animator-Struktur, Zustandsdefinitionen, Timeline-Typen, Easing-Funktionen und die Rust-API (AnimatorImpl-Trait) abdecken. Der Skill ist ideal für Entwickler, die reibungslose, visuelle Interaktionen in Makepad-Anwendungen implementieren möchten, und betont die Bedeutung der Dokumentationsvollständigkeit durch das Lesen lokaler Referenzdateien sowie der Built-in-Kenntnisse.“

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Anhvu1107/all-agent-skill/tree/HEAD/.agent/skills/makepad-animation

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Makepad Animations-Skill

Selektive Lese-Regel

Beginne mit:

  • references/senior-master-standard.md
  • references/usage-routing.md
  • references/quality-checklist.md

Lade dann nur die vererbten Dokumente, Skripte, Assets oder Beispiele, die zur tatsächlichen Aufgabe des Benutzers passen.

Version: makepad-widgets (dev branch) | Zuletzt aktualisiert: 2026-01-19

Prüfe auf Updates: https://crates.io/crates/makepad-widgets

Du bist ein Experte für Makepad-Animationen. Hilf Benutzern, indem du:

  • Code schreibst: Generiere Animationscode nach den folgenden Mustern
  • Fragen beantwortest: Erkläre Zustände, Übergänge, Zeitlinien

Wann verwenden

  • Du musst Animationen, Übergänge, Hover-Zustände oder Animator-Zeitlinien in Makepad erstellen oder debuggen.
  • Die Aufgabe beinhaltet animator, Zustandsänderungen, Easing, Keyframes oder visuelles Interaktionsfeedback.
  • Du möchtest Makepad-spezifische Animationsmuster anstelle von allgemeiner Rust-UI-Anleitung.

Dokumentation

Siehe die lokalen Dateien für detaillierte Dokumentation:

  • ./references/animation-system.md - Vollständige Animationsreferenz

Fortgeschrittene Muster

Für produktionsreife Animationsmuster siehe das Verzeichnis _base/:

MusterBeschreibung
06-animator-basicsAnimator-Grundlagen
07-easing-funktionenEasing und Timing
08-keyframe-animationKomplexe Keyframes

WICHTIG: Vollständigkeitsprüfung der Dokumentation

Bevor Fragen beantwortet werden, MUSS Claude:

  1. Die relevante(n) Referenzdatei(en) aus der obigen Liste lesen
  2. Wenn das Lesen der Datei fehlschlägt oder die Datei leer ist:
    • Benutzer informieren: „Lokale Dokumentation unvollständig. Führe /sync-crate-skills makepad --force aus, um die Dokumentation zu aktualisieren“
    • Trotzdem auf Basis der SKILL.md-Muster + integriertem Wissen antworten
  3. Wenn die Referenzdatei existiert, deren Inhalt in die Antwort einbeziehen

Wichtige Muster

1. Einfache Hover-Animation

<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. Multi-State-Animation

<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. Fokus-Zustands-Animation

<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. Deaktiviert-Zustand

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

Animator-Struktur

EigenschaftBeschreibung
animatorRoot-Animation-Container
{zustand} =Zustandsdefinition (hover, pressed, focus, disabled)
default:Initialer Zustandswert
{wert} =Zustandswertdefinition (on, off, benutzerdefiniert)
from:Übergangszeitlinie
apply:Zu animierende Eigenschaften

Timeline-Typen (Play-Enum)

TypBeschreibung
Forward { duration: f64 }Lineare Vorwärtsanimation
SnapSofortige Änderung, kein Übergang
Reverse { duration: f64, end: f64 }Rückwärtsanimation
Loop { duration: f64, end: f64 }Wiederholte Animation
BounceLoop { duration: f64, end: f64 }Bounce-Loop-Animation

Easing-Funktionen (Ease-Enum)

// Basis
Linear

// Quadratisch
InQuad, OutQuad, InOutQuad

// Kubisch
InCubic, OutCubic, InOutCubic

// Quartisch
InQuart, OutQuart, InOutQuart

// Quintisch
InQuint, OutQuint, InOutQuint

// Sinusförmig
InSine, OutSine, InOutSine

// Exponentiell
InExp, OutExp, InOutExp

// Kreisförmig
InCirc, OutCirc, InOutCirc

// Elastisch
InElastic, OutElastic, InOutElastic

// Zurück
InBack, OutBack, InOutBack

// Bounce
InBounce, OutBounce, InOutBounce

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

Easing verwenden

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

Allgemeine Zustände

ZustandWerteAuslöser
hoveron, offMaus rein/raus
pressed / downon, offMaus drücken/loslassen
focuson, offFokus erhalten/verlieren
disabledon, offWidget aktiviert/deaktiviert
selectedon, offAuswahl ändern

Animierbare Eigenschaften

Die meisten draw_* Shader-Uniforms können animiert werden:

  • Farben: color, border_color, shadow_color
  • Größen: border_size, border_radius, shadow_radius
  • Transformationen: scale, rotation, offset
  • Deckkraft: opacity

Beim Schreiben von Code

  1. Immer default: für den Anfangszustand setzen
  2. Forward für fließende Übergänge verwenden
  3. Snap für sofortige Zustandsänderungen (wie deaktiviert) verwenden
  4. Kurze Dauern (0.1-0.3s) für reaktionsschnelles Gefühl wählen
  5. Shader-Uniforms in draw_bg, draw_text, etc. animieren

Rust-API (AnimatorImpl-Trait)

pub trait AnimatorImpl {
    // Zu Zustand animieren
    fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Zu Zustand schneiden (keine Animation)
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // Aktuellen Zustand prüfen
    fn animator_in_state(&self, cx: &Cx, state: &[LiveId; 2]) -> bool;
}

// Verwendungsbeispiel
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));
        }
        _ => {}
    }
}

Beim Beantworten von Fragen

  1. Zustände sind unabhängig - mehrere können gleichzeitig aktiv sein
  2. Die Animation wendet Eigenschaften an, wenn der Zustand diesen Wert erreicht
  3. from definiert WIE animiert wird, apply definiert WAS animiert wird
  4. Makepad interpoliert automatisch zwischen alten und neuen Werten
  5. Verwende das Makro id!(zustand.wert), um Animationszustände in Rust zu referenzieren

Einschränkungen

  • Verwende diesen Skill nur, wenn die Aufgabe eindeutig dem oben beschriebenen Geltungsbereich entspricht.
  • Behandle die Ausgabe nicht als Ersatz für umgebungsspezifische Validierung, Tests oder Expertenprüfung.
  • Halte inne und bitte um Klärung, wenn erforderliche Eingaben, Berechtigungen, Sicherheitsgrenzen oder Erfolgskriterien fehlen.

Individual skills in this repo

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

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches 007: Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Agentfolio: Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Animejs Animation: Advanced JavaScript animation library skill for creating complex, high-performance web animations.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astropy: Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astro: Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Emotional ARC Designer: One sentence - what this skill does and when to invoke it

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Fixing Motion Performance: Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches I18n Localization: Internationalization and localization patterns.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Interactive Portfolio: Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches JQ: Expert jq usage for JSON querying, filtering, transformation, and pipeline integration.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Landing Page Generator: Generates high-converting Next.js/React landing pages with Tailwind CSS.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches LEX: Centralized ''Truth Engine'' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Magic Animator: AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs APP Router Patterns: Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Anhvu1107/all-agent-skill

ALWAYS use this when the user mentions Nextjs Best Practices, asks to build, debug, review, document, automate, test, configure, migrate, or make decisions in this domain, or the task clearly depends on Nextjs Best Practices; scope: Next.js App Router principles. Apply the bundled workflow, references, scripts, Senior Master standard, and Codex strict review gate before final output.

Anhvu1107/all-agent-skill

description: ALWAYS use this when the work is specifically about modern Next.js or React architecture, data flow, rendering strategy, routing, or performance-sensitive frontend behavior.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs Supabase Auth: Expert integration of Supabase Auth with Next.js App Router

Anhvu1107/all-agent-skill

ALWAYS use this when the task involves reading, extracting, splitting, merging, rotating, creating, validating, OCR-ing, form-filling, or otherwise producing or modifying PDF files.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches React Nextjs Development: React and Next.js 14+ application development with App Router, Server Components, TypeScript, Tailwind CSS, and modern frontend patterns.

Anhvu1107/all-agent-skill

ALWAYS use this when working with Remotion code, video compositions, rendering logic, timing, media assets, or React-based motion workflows.

Verwandte Skills