Communitygithub.com

AlperTuncOrtak/crypto-data-pipeline

KRITISCH: Verwenden für das Makepad-Animationssystem. Ausgelöst durch: Makepad-Animation, Makepad-Animator, Makepad-Hover, Makepad-Zustand, Makepad-Übergang, „from: { all: Forward“, Makepad gedrückt und verwandte Begriffe.

Was ist crypto-data-pipeline?

Diese Skill bietet umfassende Anleitungen und Codebeispiele für die Arbeit mit dem Animationssystem von Makepad, einem Rust-basierten UI-Framework. Sie deckt alle wesentlichen Aspekte ab, darunter Hover-, Fokus-, Gedrückt- und Deaktiviert-Zustände, sowie die Definition von Zustandsübergängen und Timeline-Typen wie `Forward`, `Snap`, `Reverse`, `Loop` und `BounceLoop`. Zusätzlich werden Easing-Funktionen von einfachen linearen bis hin zu komplexen benutzerdefinierten Kurven wie `Bezier` und `ExpDecay` detailliert erläutert. Die Skill ist besonders nützlich für Entwickler, die reaktive und flüssige UI-Interaktionen in Makepad-Anwendungen implementieren möchten, und bietet sowohl deklarative DSL-Muster als auch die korrespondierende Rust-API (`AnimatorImpl`-Trait) für programmatische Steuerung. Plattformunabhängig einsetzbar, da Makepad auf mehreren Zielplattformen läuft.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlperTuncOrtak/crypto-data-pipeline/tree/HEAD/skills/makepad-animation

In Ihrer bevorzugten KI fragen

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

Dokumentation

Makepad-Animation Skill

Version: makepad-widgets (dev-branch) | Letzte Aktualisierung: 2026-01-19

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

Sie sind ein Experte für Makepad-Animationen. Helfen Sie Benutzern, indem Sie:

  • Code schreiben: Animationscode gemäß den folgenden Mustern generieren
  • Fragen beantworten: Zustände, Übergänge und Zeitachsen erklären

Wann verwenden

  • Sie müssen Animationen, Übergänge, Hover-Zustände oder Animator-Zeitachsen in Makepad erstellen oder debuggen.
  • Die Aufgabe betrifft animator, Zustandsänderungen, Easing, Keyframes oder visuelles Interaktionsfeedback.
  • Sie suchen Makepad-spezifische Animationsmuster anstelle allgemeiner Rust-UI-Anleitung.

Dokumentation

Siehe die lokalen Dateien für ausführliche 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-functionsEasing und Timing
08-keyframe-animationKomplexe Keyframes

WICHTIG: Vollständigkeitsprüfung der Dokumentation

Bevor Claude Fragen beantwortet, MUSS er:

  1. Die relevante(n) Referenzdatei(en) oben lesen
  2. Wenn das Lesen der Datei fehlschlägt oder die Datei leer ist:
    • Benutzer informieren: „Die lokale Dokumentation ist unvollständig. Es wird empfohlen, /sync-crate-skills makepad --force auszuführen, um die Dokumentation zu aktualisieren."
    • Trotzdem basierend auf SKILL.md-Mustern + integriertem Wissen antworten
  3. Wenn die Referenzdatei existiert, deren Inhalt in die Antwort einfließen lassen

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. Mehrzustands-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. Deaktivierter 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
animatorWurzel-Animationscontainer
{state} =Zustandsdefinition (hover, pressed, focus, disabled)
default:Anfangszustandswert
{value} =Zustandswertdefinition (on, off, custom)
from:Übergangs-Zeitachse
apply:Zu animierende Eigenschaften

Zeitachsen-Typen (Play-Enum)

TypBeschreibung
Forward { duration: f64 }Lineare Vorwärts-Animation
SnapSofortige Änderung, kein Übergang
Reverse { duration: f64, end: f64 }Rückwärts-Animation
Loop { duration: f64, end: f64 }Wiederholte Animation
BounceLoop { duration: f64, end: f64 }Hüpfende Schleifen-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

// Hüpfen
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 }
}

Häufige Zustände

ZustandWerteAuslöser
hoveron, offMaus rein/raus
pressed / downon, offMaus gedrückt/losgelassen
focuson, offFokus erhalten/verloren
disabledon, offWidget aktiviert/deaktiviert
selectedon, offAuswahl geändert

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 flüssige Ü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 beibehalten
  5. Shader-Uniforms in draw_bg, draw_text usw. animieren

Rust-API (AnimatorImpl-Trait)

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

    // Direkt in einen Zustand springen (ohne 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. Animation wendet Eigenschaften an, wenn der Zustand diesen Wert erreicht
  3. from definiert WIE animiert wird, apply definiert WAS animiert wird
  4. Makepad interpolieriert automatisch zwischen alten und neuen Werten
  5. Verwenden Sie das Makro id!(state.value), um Animationszustände in Rust zu referenzieren

Einschränkungen

  • Verwenden Sie diese Skill nur, wenn die Aufgabe eindeutig mit dem oben beschriebenen Umfang übereinstimmt.
  • Behandeln Sie die Ausgabe nicht als Ersatz für umgebungsspezifische Validierung, Tests oder fachliche Überprüfung.
  • Fragen Sie nach und klären Sie, 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.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

One sentence - what this skill does and when to invoke it

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

Pull a YouTube video transcript into a queryable markdown vault with yt-dlp subtitle discovery, VTT cleanup, metadata frontmatter, and capture-seed stubs.

AlperTuncOrtak/crypto-data-pipeline

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

Best practices for Remotion - Video creation in React

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

AlperTuncOrtak/crypto-data-pipeline

One sentence - what this skill does and when to invoke it

AlperTuncOrtak/crypto-data-pipeline

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.

AlperTuncOrtak/crypto-data-pipeline

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

Verwandte Skills