技能 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)
🥉 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 使用量 16
已更新

2026-09-09

addyosmani 当前

addyosmani-performance-optimization

Skillstore 评分 78
证据置信度 中
Skillstore 使用量 2
已更新

2026-09-22

supercent-io-performance-optimization

Skillstore 评分 77
证据置信度 高
Skillstore 使用量 24
已更新

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

addyosmani 的更多技能

查看全部
查看全部