본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)7.6k · #13171

performance

하는 일

이 스킬은 데이터가 너무 많거나 반복 작업이 있는 등 앱의 느린 부분을 찾아 줄이도록 에이전트를 안내합니다. 페이지가 느리거나 끊기거나 버벅일 때 쓰는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓페이지가 로드되기 느리거나 클릭할 때 버벅일 때.
  • ✓데이터 양이 늘수록 목록이 느려질 때.
  • ✓성능에 민감한 화면에서 데이터 읽기, 폴링 경로, 시작 코드를 바꿀 때.

스킬 링크

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/performance/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/performance/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분.

작동 방식

에이전트는 대기가 어디서 생기는지 측정하고, 화면에 필요한 데이터만 불러오며, 읽기를 묶어 처리하고, 측정으로 도움이 확인된 경우에만 캐시를 추가합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Performance

Find the cost that users actually wait on, then reduce it without weakening the result. A slow screen may be waiting on the server, moving too much data, serial reads, repeated computation, or browser rendering; measure before adding caches or extra complexity.

Load only what the current view needs

  • Shape list reads around the fields the list displays. Keep large document bodies, histories, rendered output, and other rarely viewed data on a detail or on-demand path. Return a small preview when the list needs one.
  • Paginate or window unbounded histories and activity feeds. Start with the recent or visible range and load more as the user asks for it.
  • Batch related reads instead of issuing one query per row. Compute counts and other aggregates in the database when the result can be much smaller than the source rows.
  • Start independent reads together. Do not make the first useful content wait for unrelated settings, below-the-fold panels, or secondary details.
  • Index fields used by frequent filters, joins, and sorts when the data and observed query cost justify it. Keep indexes aligned with real query shapes.

For action-backed screens, shape the action response for the screen's current need and keep the UI on the app's existing action and query hooks. Do not add a second fetch path that duplicates the same read.

Keep repeated work cheap

  • Keep list and frequently refreshed reads inexpensive. Avoid parsing, reformatting, or rebuilding large values on every read when the result can be prepared once or computed only for the view that needs it.
  • Use the app's existing live-update path when fresh data must reach an open screen. Poll only when needed, and keep polled reads bounded and cheap.
  • Keep large file contents and long records out of list responses. Load them when the user opens the relevant item rather than sending them on every list refresh.
  • Defer nonessential data and expensive child views until after the main content is usable. Window a rendered list when rendering all rows makes scrolling or updates slow.

Protect startup and the first paint

  • Keep migrations, backfills, data scans, aggregations, provider handshakes, and cache warming out of module evaluation and application startup. Hosted serverless instances can restart, so startup work can repeat on user requests. Use the app's deliberate migration, job, or on-demand path.
  • Keep optional heavy runtimes out of modules loaded by ordinary page requests. Load a browser, media processor, or other large dependency only in the feature or job that needs it, and inspect the deployed bundle when adding one.
  • Keep the server-rendered shell public and independent of a visitor's session. Resolve user-specific state after the shell loads through the app's authenticated client data path. Reads that must reflect a recent mutation should not depend on cached server-rendered loader data.
  • Give loading placeholders the final content's basic geometry. Reserve space for content whose size is known; avoid showing a temporary layout that shifts the user's reading position when data arrives.

Keep interactions responsive

Show that an interaction registered as soon as it happens, aiming for 100 ms. If the work needs the network or takes longer, acknowledge it before waiting and show a focused pending state within 400 ms. Use an optimistic update when it is safe, then confirm or roll back on failure.

When investigating a slow experience, separate server response time, data transfer, serial waits, rendering, layout movement, and long interaction work. Use representative data and the production build when development tooling changes the cost. Verify that the user-visible action completed before comparing timings or memory.

자주 묻는 질문

에이전트는 항상 캐시를 추가해야 하나요?

아니요. 캐시는 복잡성을 더하므로, 먼저 측정하라고 이 스킬은 말합니다.

어떤 데이터를 나중에 불러와야 하나요?

큰 문서 본문, 긴 기록, 자주 보지 않는 세부 정보는 목록 화면이 아니라 필요할 때 불러와야 합니다.

사용자에게 보이는 결과가 바뀌나요?

결과를 약화시키면 안 됩니다. 목표는 같은 결과를 내는 더 빠른 화면입니다.

상세 정보

작성자의 원본 설명

Keep app loads and interactions responsive as data grows. Use when a page feels slow, jumps, or lags, or when changing a data read, list, polling path, startup path, or performance-sensitive UI.

repo: BuilderIO/agent-native

인기도

GitHub 스타
7.6k
순위
#13171
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬