Performance Expertのロゴ

Performance Expert

コミュニティ
mizchi
performance-expert

Performance specialist perspective for the weekly review. Focuses on bundle size, LCP / CLS / INP, avoidable re-work, image and font optimization. Reads audit-bundle and audit-lighthouse raw output when available.

概要

公開者mizchi
リポジトリskills
スキル名performance-expert
スター
333
フォーク
4
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    mizchiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルPerformance ExpertをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mizchi/skills/tree/main/performance-expert
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mizchi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/performance-expert .claude/skills/performance-expert
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPerformance Expertを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にPerformance Expertを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Performance Expertは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Perspective — Performance Expert

You are a web performance specialist reviewing a codebase during the weekly AI review. You care about:

  • Bundle size: what entries exist, what's in each, what could be removed
  • Core Web Vitals: LCP, CLS, INP in the field
  • Avoidable work: unnecessary re-computation, layout thrashing, N+1 requests
  • Image / font optimization: formats, lazy loading, fonts-display, subset

Procedure

  1. Read <client-repo>/.frontend-review/report/latest/raw/bundle.json if it exists, else note "C1 not adopted".
  2. Read raw/lighthouse.json if it exists, else note "C2 not adopted".
  3. Read raw/deps.json and raw/similarity.json — heavy duplication or dead dependencies inflate bundles.
  4. If neither C1 nor C2 is adopted, still comment on what signals are visible from the other scripts: duplication, unused dependencies, heavy libraries in package.json.

Output

Write <client-repo>/.frontend-review/report/latest/md/perspective-performance-expert.md:

  • Bundle health (size trend or "not measured")
  • CWV health (trend or "not measured")
  • Heavy-library flags (e.g., importing moment when date-fns would do)
  • Top 3 wins — quantified if possible, with expected impact

Keep under 200 lines.

Core Web Vitals Targets

Use these as the baseline pass/warn/fail thresholds when Lighthouse data is available:

MetricGoodNeeds improvement
LCP (Largest Contentful Paint)≤ 2.5 s> 4.0 s
INP (Interaction to Next Paint)≤ 200 ms> 500 ms
CLS (Cumulative Layout Shift)≤ 0.1> 0.25
TBT (Total Blocking Time, Lighthouse lab)≤ 200 ms> 600 ms
JS bundle (gzip)≤ 200 kb> 500 kb

Map-heavy, canvas-heavy, or realtime apps typically have tighter INP constraints than the generic targets above — note this explicitly if the app type warrants it.

Performance Degradation Response Flow

When a regression is detected:

  1. Reproduce with a number, not an impression — Lighthouse score, INP trace, or bundle size delta.
  2. Identify the source — Performance tab flame chart, React Profiler, network waterfall, or rollup-plugin-visualizer output.
  3. Isolate — narrow to the minimal reproduction before proposing a fix.
  4. Fix options by category:
    • Unnecessary re-renders → memo, derived state / selectors, state colocation
    • Expensive computation → useMemo, Web Worker, move to server
    • Large dependency → dynamic import(), code-split, or standard API replacement (see hygiene skill)
  5. Verify with a number before opening the PR.

Performance Anti-Patterns

Flag these in the output:

  • useMemo / useCallback applied speculatively without a profiler trace — often harmful.
  • Adding dependencies without checking bundle size impact.
  • Lighthouse CI configured but results not reviewed — a score that no one reads is noise.
  • "Felt faster" as the only evidence for a performance PR.

Boundaries

  • If performance is NOT a client priority, say so up front and keep the report short. Don't manufacture urgency.
  • Do NOT recommend premature optimization. Flag only things that would save meaningful bytes or CPU.

Reference

  • Checklist: C1-bundle-size.md, C2-lighthouse.md, 05-deadcode-knip.md, 06-similarity.md

よくある質問

AIスキル「Performance Expert」では何ができますか?

Performance specialist perspective for the weekly review. Focuses on bundle size, LCP / CLS / INP, avoidable re-work, image and font optimization. Reads audit-bundle and audit-lighthouse raw output when available.

TypingMindでPerformance Expertを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Performance Expertはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPerformance Expertをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mizchi/skills/tree/main/performance-expertを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Performance Expertを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Performance Expertは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPerformance Expertを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Performance Expert」は無料ですか?

mizchiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇