技能 performance-optimization
📦

performance-optimization

內容修訂 r2 安全 ⚡ 包含腳本⚙️ 外部命令📁 檔案系統存取

Improve Application Performance with Evidence

Performance problems are difficult to diagnose when teams optimize from assumptions. This skill provides a measurement-first workflow for finding bottlenecks, testing fixes, and preventing regressions.

支援: Claude Codex Code(CC)
Maintain this Skill? Claim it 🥉 78 銅級

使用我的智慧代理安裝

將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。

智能體請求
Review the Skillstore skill "performance-optimization" from https://skillstore.io/skills/addyosmani-performance-optimization.md and its manifest at https://skillstore.io/api/skills/addyosmani-performance-optimization/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。

測試它

正在使用「performance-optimization」。 The page has LCP of 4.2 seconds, a 1.8 MB JavaScript bundle, and large hero images.

預期結果:

  • Prioritize the hero image and initial JavaScript payload.
  • Measure image transfer, render blocking, and bundle composition.
  • Test responsive image formats and route-level code splitting.
  • Keep the change only if LCP improves beyond normal run-to-run variance.

正在使用「performance-optimization」。 An API loads tasks and fetches each task owner separately.

預期結果:

This is an N+1 query pattern. Fetch tasks with their owners in one query, then compare query count and p95 latency before and after.

正在使用「performance-optimization」。 A cache serves user profiles by profile ID, but the response includes tenant-specific permissions.

預期結果:

The cache key omits a response input. Include tenant and permission context, or avoid shared caching when authorization data must remain isolated.

安全審計

安全
v2 • 2026/9/19 開啟版本化報告

All 55 static findings were reviewed against SKILL.md. They are false positives caused by documentation examples, Markdown syntax, a relative reference link, and fixed diagnostic SQL; no malicious behavior or prompt injection was found.

1
已掃描檔案
497
分析行數
0
複核項目
0
已忽略的誤報
最近一次完成的靜態與語意稽核未偵測到已確認的安全發現。這並不能證明該 Skill 沒有副作用。
審計單位: codex 檢視審計紀錄 →
分享與引用此報告

分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。

開啟版本化報告
安全評估

複製報告連結

https://skillstore.io/skills/addyosmani-performance-optimization/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown 徽章

[![Skillstore security assessment](https://skillstore.io/badges/skills/addyosmani-performance-optimization/security.svg)](https://skillstore.io/skills/addyosmani-performance-optimization?utm_source=security_passport_badge)

HTML 徽章

<a href="https://skillstore.io/skills/addyosmani-performance-optimization?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/addyosmani-performance-optimization/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

嵌入卡片

<iframe src="https://skillstore.io/embed/skills/addyosmani-performance-optimization.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
學術引用 (APA · BibTeX · CFF)

APA 引用

addyosmani. (2026). performance-optimization security audit report (audit version 2) [Author version unspecified]. Skillstore. https://skillstore.io/skills/addyosmani-performance-optimization/audits/2

BibTeX 引用

@techreport{addyosmani-addyosmani-performance-optimization-2026, author = {addyosmani}, title = {performance-optimization security audit report (audit version 2)}, institution = {Skillstore}, year = {2026}, number = {2}, url = {https://skillstore.io/skills/addyosmani-performance-optimization/audits/2}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "performance-optimization security audit report (audit version 2)" version: "unspecified" type: report authors: - name: "addyosmani" date-released: "2026-09-19" url: "https://skillstore.io/skills/addyosmani-performance-optimization/audits/2" identifiers: - type: other value: "skillstore:addyosmani-performance-optimization:audit:2" description: "Skillstore immutable audit report identifier"

比較變體

3 個可安裝變體

每位作者的技能都保留為獨立的可安裝項目。推薦變體依 Skillstore 證據排序。

為何此變體排名第一

證據信心較高
ArieGoldkin 推薦

ariegoldkin-performance-optimization

Skillstore 評分 78
證據置信度 高
Skillstore 使用量 20
已更新

2026-10-24

addyosmani 目前

addyosmani-performance-optimization

Skillstore 評分 78
證據置信度 中
Skillstore 使用量 6
已更新

2026-09-22

supercent-io-performance-optimization

Skillstore 評分 77
證據置信度 高
Skillstore 使用量 29
已更新

2026-09-09

Skillstore 評分

評分依據 證據置信度: 中
55
架構
85
可維護性
87
內容
65
社群
91
規範符合度

你可以打造什麼

Diagnose a Slow Web Page

Use measured browser data to identify bundle, rendering, image, interaction, or server-response bottlenecks.

Tune Database-Backed APIs

Review query plans, indexes, pagination, N+1 patterns, and connection pools before changing backend code.

Set a Regression Guardrail

Create performance budgets and monitoring checks that verify improvements and catch later regressions.

試試這些提示

Find the First Measurement
My application feels slow. Ask for the minimum data needed, then identify the first measurements I should collect.
Review Frontend Metrics
Review these LCP, INP, CLS, bundle, and network results. Identify the most likely bottleneck and propose one testable fix.
Analyze a Query Plan
Analyze this query and EXPLAIN ANALYZE output. Explain the bottleneck, evaluate index options, and state the measurement needed after the change.
Design a Performance Experiment
Design a controlled performance experiment for this suspected bottleneck. Define the baseline, one change, success threshold, variance check, rollback rule, and regression guard.

最佳實務

  • Measure a representative baseline before proposing an optimization.
  • Change one variable at a time and compare results against run-to-run variance.
  • Keep only changes that improve the target metric without reducing correctness.

避免

  • Adding indexes, caches, or memoization without evidence of a measured bottleneck.
  • Keeping a neutral optimization because it has already been implemented.
  • Combining several changes in one experiment so their effects cannot be attributed.

常見問題

What should I measure first?
Start with the user-visible symptom and collect a baseline for the relevant metric, such as LCP, INP, p95 latency, or query time.
Can this skill optimize my code automatically?
No. It provides analysis, recommendations, and verification steps. You decide which code, database, or infrastructure changes to implement.
When should I add a database index?
Inspect the query plan first. Add an index when it addresses the query shape and measure both read improvement and write cost.
How should I choose a cache?
Choose the smallest suitable layer based on scope, freshness, invalidation, and recomputation cost. Include every response input in the cache key.
How do I know an optimization worked?
Repeat the baseline measurement under comparable conditions. Keep the change only when the improvement exceeds normal variance and tests remain correct.
Does this cover production monitoring?
Yes. It recommends synthetic budgets and field monitoring for the primary user-facing metric, with alerts that lead back to fresh measurement.

開發者詳細資訊

作者

addyosmani

授權

MIT

Skillstore 修訂

r2

版本提示

作者未聲明版本。

引用

5d5054f8a23586f9b500fece1cb613a9dffc787b

維護新鮮度

2026/9/19

使用量

1 次下載 · 0 次瀏覽

檔案結構

📄 SKILL.md