Communitygithub.com

Anhvu1107/all-agent-skill

SEMPRE use esta skill quando a solicitação corresponder a animações Makepad: CRÍTICO: Use para o sistema de animação Makepad.

O que é all-agent-skill?

Esta skill transforma qualquer assistente de codificação em um especialista em animações Makepad, fornecendo padrões prontos para uso, documentação e guias de referência para construir animações responsivas e de alto desempenho no framework Makepad. Ela serve como uma base de conhecimento abrangente que cobre desde animações básicas de hover até estados complexos de múltiplas animações, incluindo transições de foco e estados desabilitados. A skill é particularmente útil para desenvolvedores que trabalham com a interface de usuário Makepad, oferecendo snippets de código, estruturas de animadores, funções de easing e a API Rust `AnimatorImpl`. Ela é compatível com qualquer plataforma que suporte o sistema de animação baseado em Rust do Makepad (como o ramo `makepad-widgets` dev) e funciona carregando seletivamente arquivos de referência locais, como `references/animation-system.md`, para fornecer orientação precisa e específica do contexto. Ao seguir os padrões e regras da skill, os desenvolvedores podem implementar rapidamente animações polidas e consistentes sem precisar consultar documentação externa ou depender de conhecimento genérico de UI.

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

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Habilidade de Animação Makepad

Regra de Leitura Seletiva

Comece com:

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

Em seguida, carregue apenas os documentos, scripts, assets ou exemplos herdados que correspondam à tarefa real do usuário.

Versão: makepad-widgets (branch dev) | Última Atualização: 2026-01-19

Verifique atualizações: https://crates.io/crates/makepad-widgets

Você é um especialista em animações Makepad. Ajude os usuários:

  • Escrevendo código: Gere código de animação seguindo os padrões abaixo
  • Respondendo perguntas: Explique estados, transições, timelines

Quando Usar

  • Você precisa criar ou depurar animações, transições, estados de hover ou timelines de animadores no Makepad.
  • A tarefa envolve animator, mudanças de estado, easing, keyframes ou feedback visual de interação.
  • Você deseja padrões de animação específicos do Makepad em vez de orientação genérica de UI Rust.

Documentação

Consulte os arquivos locais para documentação detalhada:

  • ./references/animation-system.md - Referência completa de animação

Padrões Avançados

Para padrões de animação prontos para produção, veja o diretório _base/:

PadrãoDescrição
06-animator-basicsFundamentos do animador
07-easing-functionsEasing e temporização
08-keyframe-animationKeyframes complexos

IMPORTANTE: Verificação de Completude da Documentação

Antes de responder perguntas, Claude DEVE:

  1. Ler o(s) arquivo(s) de referência relevante(s) listado(s) acima
  2. Se a leitura do arquivo falhar ou o arquivo estiver vazio:
    • Informe ao usuário: "文档 não está completo localmente. Recomendo executar /sync-crate-skills makepad --force para atualizar a documentação"
    • Ainda responda com base nos padrões do SKILL.md + conhecimento interno
  3. Se o arquivo de referência existir, incorpore seu conteúdo na resposta

Padrões Principais

1. Animação Básica de Hover

<Button> {
    text: "Passe o Mouse"

    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. Animação 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. Animação 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 Desabilitado

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

Estrutura do Animator

PropriedadeDescrição
animatorContainer raiz da animação
{state} =Definição de estado (hover, pressed, focus, disabled)
default:Valor inicial do estado
{value} =Definição do valor do estado (on, off, custom)
from:Timeline de transição
apply:Propriedades a serem animadas

Tipos de Timeline (Enum Play)

TipoDescrição
Forward { duration: f64 }Animação linear para frente
SnapMudança instantânea, sem transição
Reverse { duration: f64, end: f64 }Animação reversa
Loop { duration: f64, end: f64 }Animação em loop
BounceLoop { duration: f64, end: f64 }Animação em loop com bouncing

Funções de Easing (Enum Ease)

// Básico
Linear

// Quadrático
InQuad, OutQuad, InOutQuad

// Cúbico
InCubic, OutCubic, InOutCubic

// Quártico
InQuart, OutQuart, InOutQuart

// Quíntico
InQuint, OutQuint, InOutQuint

// Senoidal
InSine, OutSine, InOutSine

// Exponencial
InExp, OutExp, InOutExp

// Circular
InCirc, OutCirc, InOutCirc

// Elástico
InElastic, OutElastic, InOutElastic

// Volta (Back)
InBack, OutBack, InOutBack

// Bounce
InBounce, OutBounce, InOutBounce

// Personalizado
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 Comuns

EstadoValoresGatilho
hoveron, offMouse entrar/sair
pressed / downon, offMouse pressionar/soltar
focuson, offGanhar/perder foco
disabledon, offWidget habilitado/desabilitado
selectedon, offMudança de seleção

Propriedades Animáveis

A maioria dos uniforms de shader draw_* pode ser animada:

  • Cores: color, border_color, shadow_color
  • Tamanhos: border_size, border_radius, shadow_radius
  • Transformações: scale, rotation, offset
  • Opacidade: opacity

Ao Escrever Código

  1. Sempre defina default: para o estado inicial
  2. Use Forward para transições suaves
  3. Use Snap para mudanças instantâneas de estado (como desabilitado)
  4. Mantenha durações curtas (0.1-0.3s) para sensação responsiva
  5. Anime uniforms de shader em draw_bg, draw_text, etc.

API Rust (Trait AnimatorImpl)

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

    // Ir para um estado (sem animação)
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]);

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

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

Ao Responder Perguntas

  1. Estados são independentes - múltiplos podem estar ativos simultaneamente
  2. A animação aplica as propriedades quando o estado atinge aquele valor
  3. from define COMO animar, apply define O QUE animar
  4. Makepad interpola automaticamente entre valores antigos e novos
  5. Use a macro id!(state.value) para referenciar estados de animação em Rust

Limitações

  • Use esta skill apenas quando a tarefa corresponder claramente ao escopo descrito acima.
  • Não trate a saída como substituta para validação específica de ambiente, testes ou revisão de especialistas.
  • Pare e peça esclarecimentos se entradas necessárias, permissões, limites de segurança ou critérios de sucesso estiverem faltando.

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.

Habilidades Relacionadas