본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬