Communitygithub.com

plugin87/performance

UIパフォーマンスをCore Web Vitals(LCP、INP、CLS)に対して最適化します。ローディング戦略、コード分割、レイアウトシフトの防止、アニメーションパフォーマンスのルールを提供します。速度の向上、カクつきやレイアウトシフトの修正、Web Vitalsの目標値の達成、低性能デバイスでのUIの高速化を望む場合に使用します。

performance とは?

このスキルは、UIのパフォーマンスをCore Web Vitals(LCP、INP、CLS)の目標値に合わせて最適化するための包括的なガイドです。パフォーマンスをアクセシビリティの問題として捉え、低速なUIが低性能デバイスで最初に失敗することを前提に、レンダリング戦略、レイアウトシフトの防止、アニメーションのベストプラクティスを提供します。具体的には、SSR/Server Componentsによるファーストビューの先読み、ルートおよび重量ウィジェット単位のコード分割、アスペクト比によるメディアスペースの確保、transform/opacityのみを使用したアニメーション、prefers-reduced-motionの尊重など、実践的な手法をステップごとに解説します。Astro、Qwik、Next.jsなど主要なフレームワークをサポートし、Lighthouseやフィールドデータを用いて低性能モバイル端末でのパフォーマンス目標達成を検証します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/plugin87/ux-ui-agent-skills/tree/main/.claude/skills/performance

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

スキル: パフォーマンス

UIを高速かつ安定させます。パフォーマンスをアクセシビリティの問題として扱ってください — 低速/カクつくUIは低性能デバイスで最初に失敗します。

手順

  1. workflows/performance.md を読む(Core Web Vitalsの目標値、ローディング戦略、レイアウトシフト、アニメーションパフォーマンス、デザインシステムのランタイムコスト)。
  2. 目標に対して診断する: LCP ≤ 2.5s、INP ≤ 200ms、CLS ≤ 0.1。中程度のモバイルプロファイル(低速4G + 4倍CPUスロットル)で測定する。
  3. ローディング: ファーストビューを先にレンダリングする(SSR/Server Components)、ルート + 重量ウィジェットでコード分割する、ファーストビュー以下/インタラクションの後ろを遅延ロードする(Astro islands / Qwik)、重要なフォントウェイトを1つプリロードする、モダンなレスポンシブ画像を使用する。
  4. レイアウトシフトを抑制する: スケルトンを最終的な寸法にサイズ設定する、aspect-ratio(tokens/sizing.json)でメディアスペースを予約する、既存のコンテンツの上にコンテンツを注入しない。
  5. アニメーション: transform/opacityのみ使用、will-changeは控えめに、100~300ms(tokens/motion.json)、prefers-reduced-motionを尊重する。低INPのためにはJSよりもCSS状態スタイリングを優先する;ツリーシェイク/コンポーネント単位のインポートを行う。

検証(完了条件)

  • Lighthouse / フィールドデータが、中程度のモバイルでLCP ≤ 2.5s、INP ≤ 200ms、CLS ≤ 0.1を満たす。
  • 最初のインタラクションが低速4G + 4倍CPUスロットル下でも応答性を保つ。
  • スケルトン + メディアがスペースを予約する(ロード時にCLSゼロ);ループ内に非コンポジターアニメーションが存在しない。

Individual skills in this repo

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

plugin87/design-tokens

Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component). Use when the user wants a color palette, type scale, spacing/shadow/radius/motion tokens, multi-brand theming, or wants to validate token files. Covers colors, typography, spacing, shadows, borders, breakpoints, motion, gradients, opacity, blur, sizing, states, theming.

plugin87/governance

Govern how the design system evolves — SemVer for tokens/components, the contribution workflow, deprecation policy, and change communication. Use when the user wants to add/promote/deprecate a component or token, decide a version bump, set up a contribution process, or keep the system from fragmenting.

plugin87/image-to-code

Turn a reference image, screenshot, or mockup into token-driven, accessible code — infer the design system from the reference (palette, type scale, spacing, radius, layout archetype), map it to the 3-tier tokens, rebuild it, then verify with the kit's gates. Use when the user provides a design/screenshot and wants matching UI code.

plugin87/prototype

Move an idea up the fidelity ladder (content-first → wireframe → low-fi → high-fi → code) with a validation plan at each level, plus user-journey mapping and usability-testing scripts. Use when the user wants to prototype, wireframe, map a user flow, or plan/run usability testing.

plugin87/redesign

Upgrade an existing website or app to premium quality without breaking functionality — audit the current design, identify generic/AI tells, then apply taste and system rules surgically. Use when the user wants to improve, modernize, polish, or "make better" an existing UI/codebase.

plugin87/token-build

Set up or run the token build pipeline — transform the DTCG tokens/*.json (source of truth) into platform artifacts (CSS variables, Tailwind @theme, JS/TS, iOS Asset Catalog, Android, Compose) with Style Dictionary / Tokens Studio / W3C DTCG export. Use when the user wants to generate platform theme files from tokens, wire token CI, or multi-platform token output.

plugin87/ux-writing

Write or review UI copy — buttons, errors, empty states, microcopy, notifications, labels — using the voice & tone system (clear, concise, useful, human, honest) with the what→why→how error formula and inclusive-language rules. Use when the user needs interface copy, error messages, empty-state text, or a copy review.

関連スキル