Toolverse
All skills

performance-profiling

by davila7

Performance profiling principles. Measurement, analysis, and optimization techniques.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Backend
Views
32

About this skill

Performance profiling principles. Measurement, analysis, and optimization techniques.

How to use

  1. Przygotuj URL strony do analizy. Skill wymaga dostępu do narzędzi Lighthouse, analizatorów bundli i DevTools. Upewnij się, że masz zainstalowany Python do uruchamiania skryptów audytu.

  2. Uruchom automatyczny audyt wydajności poleceniem python scripts/lighthouse_audit.py https://twoja-strona.com. Skrypt zwróci raport z metrykami Core Web Vitals: LCP (czas załadowania), INP (responsywność) i CLS (stabilność wizualna).

  3. Przeanalizuj wyniki, porównując je z benchmarkami: LCP poniżej 2,5s to dobry wynik, INP poniżej 200ms oznacza szybką interakcję, CLS poniżej 0,1 to stabilna strona. Jeśli któraś metryka przekracza progi, przejdź do kroku 4.

  4. Zidentyfikuj źródło problemu, wybierając odpowiednie narzędzie: dla dużych bundli użyj analizatora rozmiaru, dla problemów w czasie wykonywania otwórz DevTools Performance, dla wycieków pamięci sprawdź DevTools Memory. Szukaj długich tasków (powyżej 50ms), duplikatów kodu lub nieużywanego kodu.

  5. Wdroż konkretną poprawkę na podstawie znalezionego problemu: jeśli biblioteka jest za duża, importuj tylko potrzebne moduły; jeśli masz duplikaty zależności, zaktualizuj wersje; jeśli trasa jest w głównym bundlu, zastosuj code splitting; jeśli kod się nie używa, usuń go.

  6. Ponownie uruchom audyt Lighthouse, aby potwierdzić poprawę metryk. Powtarzaj proces dla każdego zidentyfikowanego wąskiego gardła, aż wszystkie Core Web Vitals osiągną docelowe wartości.

Related skills

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

openspec

by ruan-cat

OpenSpec 中文版规范助手 - 规范驱动的 AI 编程开发,帮助初始化、创建提案、编写规格、校验格式并归档变更。触发条件: 当用户提及 openspec、规范文档、需求管理、变更提案、spec-driven development 等关键词时主动调用。

Backend
27122

youtube-transcript

by michalparkola

Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.

Backend
53214