Communitygithub.com

Anhvu1107/all-agent-skill

요청이 Makepad 애니메이션과 일치할 때 항상 사용하세요. Makepad 애니메이션 시스템에 필수적입니다.

all-agent-skill란 무엇인가요?

이 스킬은 Makepad UI 프레임워크에서 애니메이션을 생성하고 디버깅하기 위한 전문 가이드입니다. Makepad 위젯의 애니메이터 시스템을 완벽하게 지원하며, 호버, 프레스, 포커스, 비활성화 등 다양한 상태 전환을 부드럽게 구현할 수 있습니다. 주로 `animator` 블록과 `Forward`, `Snap`, `Ease` 같은 타이밍 타입을 사용하며, easing 함수와 키프레임 패턴을 통해 정교한 시각적 피드백을 제공합니다. Claude Code, Cursor, Codex 등 AI 코딩 에이전트에서 즉시 활용할 수 있으며, SKILL.md에 정의된 패턴을 따르면 일관되고 고품질의 Makepad 애니메이션 코드를 생성할 수 있습니다. 또한 `references/` 디렉토리의 상세 문서와 `_base/` 디렉토리의 고급 패턴을 참조하여 더 복잡한 애니메이션 요구사항도 해결할 수 있습니다.

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

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Makepad 애니메이션 스킬

선택적 읽기 규칙

다음부터 시작하세요:

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

그런 다음 사용자의 실제 작업과 일치하는 상속된 문서, 스크립트, 에셋 또는 예제만 로드하세요.

버전: makepad-widgets (dev 브랜치) | 마지막 업데이트: 2026-01-19

업데이트 확인: https://crates.io/crates/makepad-widgets

당신은 Makepad 애니메이션 전문가입니다. 사용자를 도와주세요:

  • 코드 작성: 아래 패턴에 따라 애니메이션 코드 생성
  • 질문에 답변: 상태, 전환, 타임라인 설명

사용 시기

  • Makepad에서 애니메이션, 전환, 호버 상태 또는 애니메이터 타임라인을 빌드하거나 디버깅해야 할 때
  • 작업에 animator, 상태 변경, 이징(easing), 키프레임 또는 시각적 상호작용 피드백이 포함될 때
  • 일반적인 Rust UI 가이드 대신 Makepad 특화 애니메이션 패턴이 필요할 때

문서

상세 문서는 로컬 파일을 참조하세요:

  • ./references/animation-system.md - 전체 애니메이션 참조

고급 패턴

프로덕션 준비 애니메이션 패턴은 _base/ 디렉토리를 참조하세요:

패턴설명
06-animator-basics애니메이터 기초
07-easing-functions이징 및 타이밍
08-keyframe-animation복잡한 키프레임

중요: 문서 완전성 확인

질문에 답변하기 전에 Claude는 반드시:

  1. 위에 나열된 관련 참조 파일(들)을 읽습니다
  2. 파일 읽기가 실패하거나 파일이 비어 있는 경우:
    • 사용자에게 알림: "로컬 문서가 불완전합니다. /sync-crate-skills makepad --force를 실행하여 문서를 업데이트하세요."
    • 그래도 SKILL.md 패턴 + 내장 지식을 기반으로 답변합니다
  3. 참조 파일이 존재하면, 그 내용을 답변에 통합합니다

주요 패턴

1. 기본 호버 애니메이션

<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. 다중 상태 애니메이션

<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. 포커스 상태 애니메이션

<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. 비활성화 상태

<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애니메이션 루트 컨테이너
{state} =상태 정의 (hover, pressed, focus, disabled)
default:초기 상태 값
{value} =상태 값 정의 (on, off, custom)
from:전환 타임라인
apply:애니메이션 적용할 속성

타임라인 유형 (Play Enum)

유형설명
Forward { duration: f64 }선형 순방향 애니메이션
Snap즉시 변경, 전환 없음
Reverse { duration: f64, end: f64 }역방향 애니메이션
Loop { duration: f64, end: f64 }반복 애니메이션
BounceLoop { duration: f64, end: f64 }바운스 반복 애니메이션

이징 함수 (Ease Enum)

// 기본
Linear

// 2차
InQuad, OutQuad, InOutQuad

// 3차
InCubic, OutCubic, InOutCubic

// 4차
InQuart, OutQuart, InOutQuart

// 5차
InQuint, OutQuint, InOutQuint

// 사인
InSine, OutSine, InOutSine

// 지수
InExp, OutExp, InOutExp

// 원형
InCirc, OutCirc, InOutCirc

// 탄성
InElastic, OutElastic, InOutElastic

// 백
InBack, OutBack, InOutBack

// 바운스
InBounce, OutBounce, InOutBounce

// 사용자 정의
ExpDecay { d1: f64, d2: f64 }
Bezier { cp0: f64, cp1: f64, cp2: f64, cp3: f64 }
Pow { begin: f64, end: f64 }

이징 사용

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

일반 상태

상태값트리거
hoveron, off마우스 진입/이탈
pressed / downon, off마우스 누름/떼기
focuson, off포커스 획득/상실
disabledon, off위젯 활성화/비활성화
selectedon, off선택 변경

애니메이션 가능 속성

대부분의 draw_* 셰이더 유니폼을 애니메이션할 수 있습니다:

  • 색상: color, border_color, shadow_color
  • 크기: border_size, border_radius, shadow_radius
  • 변환: scale, rotation, offset
  • 불투명도: opacity

코드 작성 시

  1. 항상 default:로 초기 상태를 설정하세요
  2. 부드러운 전환에는 Forward를 사용하세요
  3. 즉시 상태 변경(예: 비활성화)에는 Snap을 사용하세요
  4. 반응성을 위해 짧은 지속 시간(0.1-0.3초)을 유지하세요
  5. draw_bg, draw_text 등에서 셰이더 유니폼을 애니메이션하세요

Rust API (AnimatorImpl 트레이트)

pub trait AnimatorImpl {
    // 상태로 애니메이션
    fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // 상태로 즉시 전환 (애니메이션 없음)
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

    // 현재 상태 확인
    fn animator_in_state(&self, cx: &Cx, state: &[LiveId; 2]) -> bool;
}

// 사용 예시
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));
        }
        _ => {}
    }
}

질문에 답변할 때

  1. 상태는 독립적입니다 - 여러 상태가 동시에 활성화될 수 있습니다
  2. 애니메이션은 상태가 해당 값에 도달하면 속성을 적용합니다
  3. from은 애니메이션 방식을 정의하고, apply는 애니메이션할 대상을 정의합니다
  4. Makepad는 이전 값과 새 값 사이를 자동으로 보간합니다
  5. id!(state.value) 매크로를 사용하여 Rust에서 애니메이션 상태를 참조하세요

제한 사항

  • 이 스킬은 작업이 위에서 설명한 범위와 명확하게 일치할 때만 사용하세요.
  • 출력물을 환경별 검증, 테스트 또는 전문가 검토를 대체하는 것으로 간주하지 마세요.
  • 필수 입력, 권한, 안전 경계 또는 성공 기준이 누락된 경우 중단하고 명확히 요청하세요.

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.

관련 스킬