스킬 performance-profiling
📊

performance-profiling

안전

使用 Lighthouse 進行網頁效能分析

此技能協助開發人員使用 Lighthouse 稽核和瀏覽器開發者工具來測量和優化網頁應用程式效能。它提供結構化的工作流程來識別效能瓶頸並改善 Core Web Vitals 分數。

지원: Claude Codex Code(CC)
⚠️ 68 나쁨
1

스킬 ZIP 다운로드

2

Claude에서 업로드

설정 → 기능 → 스킬 → 스킬 업로드로 이동

3

토글을 켜고 사용 시작

테스트해 보기

"performance-profiling" 사용 중입니다. Run Lighthouse audit on my website

예상 결과:

Performance Score: 78/100

Key Findings:
- LCP: 2.8s (Needs improvement)
- CLS: 0.05 (Good)
- INP: 180ms (Good)

Recommendations:
1. Eliminate render-blocking resources
2. Properly size images
3. Reduce JavaScript execution time

"performance-profiling" 사용 중입니다. What are the Core Web Vitals thresholds?

예상 결과:

Core Web Vitals Thresholds:

| Metric | Good | Poor |
|-------|------|------|
| LCP | < 2.5s | > 4.0s |
| INP | < 200ms | > 500ms |
| CLS | < 0.1 | > 0.25 |

보안 감사

안전
v1 • 2/24/2026

Evaluated 11 static security findings. All patterns detected are false positives. The subprocess.run call uses list arguments (not shell=True), preventing command injection. Temp file operations use the safe tempfile module. Documentation examples in SKILL.md are not executable code. The 'cryptographic algorithm' alerts were misidentified keywords. This is a legitimate performance profiling skill with no security concerns.

2
스캔된 파일
226
분석된 줄 수
5
발견 사항
1
총 감사 수

높은 위험 문제 (2)

Subprocess Execution
subprocess.run called at line 22 to execute lighthouse CLI. Arguments passed as list (not shell=True), preventing command injection. User input (URL) is safely passed as direct argument.
Cryptographic Algorithm Detection
Scanner flagged 'measure, analyze, optimize' keywords as cryptographic algorithms. This is a false positive from keyword pattern matching.
중간 위험 문제 (2)
File System Operations
Temp file creation and cleanup using os module. Legitimate use for storing Lighthouse report output.
Documentation Shell Examples
Backtick syntax in documentation showing example commands. These are documentation, not executable code.
낮은 위험 문제 (1)
Hardcoded URL in Documentation
URL string appears in docstring as usage example. Not actual network code.
감사자: claude

품질 점수

45
아키텍처
100
유지보수성
87
콘텐츠
31
커뮤니티
73
보안
91
사양 준수

만들 수 있는 것

前端開發人員優化載入速度

前端開發人員想要改善其網頁應用程式的載入效能。他們使用此技能執行 Lighthouse 稽核、識別最大的效能瓶頸,並進行針對性的優化。

DevOps 工程師設定 CI 效能檢查

DevOps 工程師想要在 CI/CD 管道中加入自動化效能測試。他們使用此技能的 Lighthouse 指令碼在每次部署時執行稽核,並對低於效能閾值的建置失敗。

全端開發人員排查執行階段問題

全端開發人員發現其網頁應用程式上有緩慢的互動。他們使用此技能分析執行階段效能、識別長時間執行的任務,並使用 DevTools 記憶體標籤尋找記憶體洩漏。

이 프롬프트를 사용해 보세요

基本 Lighthouse 稽核
Run a Lighthouse performance audit on https://example.com using the performance-profiling skill. Show me the performance score and main recommendations.
分析 Core Web Vitals
Using the performance-profiling skill, explain what Core Web Vitals (LCP, INP, CLS) measure and provide tips for improving each metric.
套件優化分析
Apply the performance-profiling skill to analyze a large JavaScript bundle. What common issues should I look for and what are the recommended optimization actions?
效能工作流程實作
Using the 4-step profiling workflow from the performance-profiling skill (BASELINE, IDENTIFY, FIX, VALIDATE), help me optimize a slow web application. Start with establishing a baseline.

모범 사례

  • 在進行變更之前務必建立效能基準
  • 優先處理最大的瓶頸,而非微優化
  • 使用重複測量來驗證改善成果,以考慮變異性

피하기

  • 在未進行分析的情況下猜測效能問題
  • 在識別出實際瓶頸之前優化程式碼
  • 忽略真實使用者資料,只依賴合成測試

자주 묻는 질문

此技能使用哪些工具?
此技能使用 Lighthouse 進行效能稽核,並使用瀏覽器 DevTools 進行執行階段分析。Lighthouse CLI 必須另行安裝。
我需要安裝任何相依套件嗎?
是的,您需要全域安裝 Lighthouse CLI:npm install -g lighthouse
此技能可以分析本機網站嗎?
是的,您可以對 localhost 或任何本機執行的開發伺服器執行 Lighthouse。
什麼是 Core Web Vitals?
Core Web Vitals 是 Google 的標準化指標:最大內容繪製 (Largest Contentful Paint, LCP)、下一個繪製的互動 (Interaction to Next Paint, INP) 和累積版面配置位移 (Cumulative Layout Shift, CLS)。
我應該多久執行一次效能稽核?
在開發期間、部署前,以及在生產環境中定期使用真實使用者監控 (RUM) 執行稽核。
如果我的效能分數很低該怎麼辦?
使用 4 步驟工作流程:建立基準、識別最大的瓶頸、進行一項針對性修正,然後在進入下一個問題之前驗證改善成果。

개발자 세부 정보

파일 구조