Communitygithub.com

Anhvu1107/all-agent-skill

Makepadアニメーションシステムを使用する際は、常にこのスキルを利用してください。

all-agent-skill とは?

このスキルは、Makepadフレームワークにおけるアニメーションの実装とデバッグを専門的に支援するためのAIエージェントスキルです。animator、状態遷移、イージング、キーフレーム、ホバーやプレスなどのインタラクションアニメーションをMakepad独自のパターンで生成します。対応プラットフォームはMakepad-widgets(devブランチ)で、Claude CodeやCursorなどのAIエージェントツールで利用できます。スキルは、基本的なホバーアニメーションから複数状態アニメーション、フォーカス状態、無効状態、そしてRustのAnimatorImplトレイトを使ったプログラム制御までをカバーしています。また、イージング関数(Linear、InOutQuad、Elasticなど)やTimelineタイプ(Forward、Snap、Loop、BounceLoop)についても詳細に説明しており、ドキュメントの完全性チェック機能も備えています。

対応✓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、状態変化、イージング、キーフレーム、または視覚的なインタラクションフィードバックが含まれる場合。
  • 一般的な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、カスタム)
from:遷移タイムライン
apply:アニメーションするプロパティ

タイムラインタイプ(Play列挙型)

タイプ説明
Forward { duration: f64 }線形順方向アニメーション
Snap即時変更、遷移なし
Reverse { duration: f64, end: f64 }逆方向アニメーション
Loop { duration: f64, end: f64 }ループアニメーション
BounceLoop { duration: f64, end: f64 }バウンスループアニメーション

イージング関数(Ease列挙型)

// 基本
Linear

// 二次
InQuad, OutQuad, InOutQuad

// 三次
InCubic, OutCubic, InOutCubic

// 四次
InQuart, OutQuart, InOutQuart

// 五次
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. Rustでアニメーション状態を参照するにはid!(state.value)マクロを使用する

制限事項

  • このスキルは、タスクが上記の範囲に明確に一致する場合にのみ使用してください。
  • 出力を、環境固有の検証、テスト、または専門家によるレビューの代わりとして扱わないでください。
  • 必要な入力、権限、安全性の境界、または成功基準が不足している場合は、停止して明確化を求めてください。

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.

関連スキル