本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)75k · #2975

performance-budget

できること

このスキルは、サイズや速さの固定された上限を設定して確認します。超えた場合はビルドを失敗させます。サイトの成長に伴って速さを保ちたいチーム向けです。

使う場面

  • ✓プロジェクトのビルドやプルリクエストのチェックに、性能の上限を追加するようエージェントに頼むとき。
  • ✓変更のたびに少しずつ重くなり、アプリが遅くなり続けているとき。
  • ✓新しい依存関係を追加し、サイズの上限内に収まるか確かめたいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のプロジェクトに、サイズと速さの上限を設定してください。遅くなる変更が公開前に検出されるようにしたいです。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、継続的インテグレーションのパイプラインにsize-limitとLighthouse CIのアサーションを使ったバンドルサイズの上限を追加します。サイズと速さのしきい値を設定し、超えた変更はチェックを失敗させます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Enforce performance budgets in CI

Without automated enforcement, performance degrades gradually — each PR adds a small library, each feature adds a few KB, and within months the app that loaded in 2 seconds now takes 5. Performance budgets make regressions visible at PR time rather than after user complaints. Catching 'this PR added 200KB to the bundle' in review is far cheaper than debugging a slow production site.

Quick Reference

  • Define specific thresholds: max bundle size, min Lighthouse score, max LCP time
  • Fail CI when budgets are exceeded to prevent performance regressions
  • Size budgets catch accidental heavy dependencies; Lighthouse budgets catch runtime regressions
  • Start with loose budgets and tighten them as you optimize
  • Monitor production RUM so regressions are caught after deploy, not only in CI

Check

Does this project have performance budgets defined? Check package.json and CI configuration for size or Lighthouse thresholds.

Fix

Set up bundle size limits with size-limit and Lighthouse CI assertions in the CI pipeline.

Explain

Explain performance budgets, how to choose appropriate thresholds, and how to enforce them with size-limit and Lighthouse CI.

Code Review

Inspect CI workflows, package.json, and Lighthouse or bundle-size config for explicit thresholds. Flag repos where budgets are missing, too loose to catch regressions, or unenforced on pull requests. Check whether production RUM and alerting are wired to detect regressions after release.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/testing/performance-budget

よくある質問

サイズの予算と実行時の予算の違いは何ですか?

このスキルによると、サイズの予算は重い依存関係を見つけ、Lighthouseの予算は遅い実行時の動きを見つけます。

上限は厳しい値から始めるべきですか?

このスキルは、ゆるい上限から始めて、サイトが最適化されるにつれて厳しくしていくことを勧めています。

予算は公開後の監視に代わりますか?

いいえ。このスキルは、デプロイ後のリグレッションを見つけるため、実際の利用者のデータも監視することを勧めています。

詳細

作者による元の説明

Use when reviewing CI configuration, bundle analysis workflows, or pull requests that add dependencies and assets. Distinguish bundle-size budgets from runtime budgets such as Lighthouse or Core Web Vitals so teams can enforce both.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2975
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル