Token导航 LogoToken导航

Agent Skill · 研究检索

performance-optimization(性能优化)

performance-optimization 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

performance-optimization 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 37,366。

总安装 1,747周安装 70GitHub Stars 公开资料未说明下载 566核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:performance-optimization(性能优化)
来源仓库:https://github.com/eddiebe147/claude-settings
仓库路径:skills/performance-optimization
安装命令:
npx skills add https://github.com/eddiebe147/claude-settings --skill 'Performance Optimization'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/eddiebe147/claude-settings --skill 'Performance Optimization'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

performance-optimization 用于全栈应用性能分析与调优。聚焦 Core Web Vitals、TTFB、查询慢速等常见问题诊断。提供前后端分离的优化策略与监控建议。使用前应建立基线指标并区分前端与后端优化优先级。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/performance-optimization

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/eddiebe147/claude-settings --skill 'Performanc…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

performance-optimization 怎么安装?

在终端执行 npx skills add https://github.com/eddiebe147/claude-settings --skill 'Performance Optimiza…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

performance-optimization 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

performance-optimization 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

performance-optimization 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

performance-optimization 用的人多吗?

公开数据是累计安装 1,747 次,近一周安装 70 次,下载 566 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

performance-optimization 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
performance-optimization

性能优化 · 本页

1,747—需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Performance Optimization Skill

Comprehensive frameworks for analyzing and optimizing application performance across the entire stack.

Overview

  • Application feels slow or unresponsive
  • Database queries taking too long
  • Frontend bundle size too large
  • API response times exceed targets
  • Core Web Vitals need improvement
  • Preparing for scale or high traffic

Performance Targets

Core Web Vitals (Frontend)

MetricGoodNeeds Work
LCP (Largest Contentful Paint)< 2.5s< 4s
INP (Interaction to Next Paint)< 200ms< 500ms
CLS (Cumulative Layout Shift)< 0.1< 0.25
TTFB (Time to First Byte)< 200ms< 600ms

Backend Targets

OperationTarget
Simple reads< 100ms
Complex queries< 500ms
Write operations< 200ms
Index lookups< 10ms

Bottleneck Categories

CategorySymptomsTools
NetworkHigh TTFB, slow loadingNetwork tab, WebPageTest
DatabaseSlow queries, pool exhaustionEXPLAIN ANALYZE, pg_stat_statements
CPUHigh usage, slow computeProfiler, flame graphs
MemoryLeaks, GC pausesHeap snapshots
RenderingLayout thrashingReact DevTools, Performance tab

Protocol References

Database Optimization

See: references/database-optimization.md

Key topics covered:

  • N+1 query detection and fixes with SQLAlchemy selectinload
  • Index selection strategies (B-tree, GIN, HNSW, Hash)
  • EXPLAIN ANALYZE interpretation
  • Connection pooling configuration
  • Cursor vs offset pagination

Caching Strategies

See: references/caching-strategies.md

Key topics covered:

  • Multi-level cache hierarchy (L1-L4)
  • Cache-aside and write-through patterns
  • Cache invalidation strategies (TTL, event-based, tag-based)
  • Redis patterns (strings, hashes, lists, sets)
  • Cache stampede prevention
  • HTTP caching headers and ETags

Core Web Vitals

See: references/core-web-vitals.md

Key topics covered:

  • LCP optimization (images, SSR, critical CSS)
  • INP optimization (debounce, Web Workers, task splitting)
  • CLS optimization (image dimensions, font loading)
  • Measuring with web-vitals library
  • Lighthouse auditing

Frontend Performance

See: references/frontend-performance.md

Key topics covered:

  • Code splitting with React.lazy()
  • Tree shaking and import optimization
  • Image optimization (WebP, AVIF, lazy loading)
  • Memoization (memo, useMemo, useCallback)
  • List virtualization with @tanstack/react-virtual
  • Bundle analysis tools

Profiling Tools

See: references/profiling.md

Key topics covered:

  • Python profiling (cProfile, py-spy, memory_profiler)
  • Chrome DevTools Performance and Memory tabs
  • React DevTools Profiler
  • PostgreSQL query profiling (pg_stat_statements)
  • Flame graph interpretation
  • Load testing with k6 and Locust

Quick Diagnostics

Database

-- Find slow queries (PostgreSQL)
SELECT query, calls, mean_time / 1000 as mean_seconds
FROM pg_stat_statements ORDER BY total_time DESC LIMIT 10;

-- Verify index usage
EXPLAIN ANALYZE SELECT * FROM orders WHERE user_id = 123;

Frontend

# Lighthouse audit
lighthouse http://localhost:3000 --output=json

# Bundle analysis
npx vite-bundle-visualizer  # Vite
ANALYZE=true npm run build  # Next.js

Backend

# Profile running FastAPI server
py-spy record --pid $(pgrep -f uvicorn) --output profile.svg

Monitoring Checklist

Before Launch

  • Lighthouse score > 90
  • Core Web Vitals pass
  • Bundle size within budget
  • Database queries profiled
  • Compression enabled
  • CDN configured

Ongoing

  • Performance monitoring active
  • Alerting for degradation
  • Lighthouse CI in pipeline
  • Weekly query analysis
  • Real User Monitoring (RUM)

Real-World Examples

Hybrid Search Optimization

Problem: Retrieval pass rate was 87.2%, needed >90%

Solution: Increased RRF fetch multiplier from 2x to 3x, added metadata boosting

Results:

  • Pass rate: 87.2% -> 91.6% (+5.1%)
  • MRR: 0.723 -> 0.777 (+7.4%)
  • Query time: 85ms -> 5ms (HNSW index)

LLM Response Caching

Problem: LLM costs projected at $35k/year

Solution: Multi-level cache hierarchy (Claude prompt cache + Redis semantic cache)

Results:

  • Baseline: $35k/year -> With caching: $2-5k/year
  • Cost reduction: 85-95%
  • Latency: 2000ms -> 5-10ms (semantic cache hit)

Vector Index Selection

Problem: Vector searches taking 85ms, needed <10ms

Solution: Switched from IVFFlat to HNSW index

Results:

  • Query time: 85ms -> 5ms (17x faster)
  • Trade-off: Slower indexing (8s vs 2s) for faster queries

Templates Reference

TemplatePurpose
database-optimization.tsN+1 fixes, pagination, pooling
caching-patterns.tsRedis cache-aside, memoization
frontend-optimization.tsxReact memo, virtualization, code splitting
api-optimization.tsCompression, ETags, field selection
performance-metrics.tsPrometheus metrics, performance budget

Extended Thinking Triggers

Use Opus 4.5 extended thinking for:

  • Complex debugging - Multiple potential causes
  • Architecture decisions - Caching strategy selection
  • Trade-off analysis - Memory vs CPU vs latency
  • Root cause analysis - Performance regression investigation

Related Skills

  • caching-strategies - Detailed Redis caching patterns and cache invalidation
  • database-schema-designer - Indexing strategies and query optimization fundamentals
  • observability-monitoring - Performance monitoring and alerting integration
  • devops-deployment - CDN configuration and infrastructure optimization

Key Decisions

DecisionChoiceRationale
Pagination strategyCursor-based for large datasetsStable performance regardless of offset, handles concurrent inserts
Vector index typeHNSW over IVFFlat17x faster queries, worth slower indexing for read-heavy workloads
Cache hierarchyMulti-level (L1-L4)Optimizes hit rates, reduces load on expensive operations
Bundle splittingRoute-based code splittingReduces initial load, enables parallel downloads

Skill Version: 1.2.0 Last Updated: 2026-01-15 Maintained by: AI Agent Hub Team

Changelog

v1.2.0 (2026-01-15)

  • Refactored to reference-based structure
  • Moved detailed content to references/ directory
  • Reduced SKILL.md from 1079 to ~290 lines

v1.1.0 (2025-12-25)

  • Added comprehensive Frontend Bundle Analysis section
  • Added React 19 performance patterns
  • Added TanStack Virtual list virtualization

v1.0.0 (2025-12-14)

  • Initial skill with database optimization, caching, and profiling

Capability Details

database-optimization

Keywords: slow query, n+1, query optimization, explain analyze, index, postgres performance Solves:

  • How do I optimize slow database queries?
  • Fix N+1 query problems with eager loading
  • Use EXPLAIN ANALYZE to diagnose queries
  • Add missing indexes for performance

caching-strategies

Keywords: cache, redis, cdn, cache-aside, write-through, semantic cache Solves:

  • How do I implement multi-level caching?
  • Cache-aside vs write-through patterns
  • Semantic cache for LLM responses
  • Cache invalidation strategies

frontend-performance

Keywords: bundle size, lazy load, code splitting, tree shaking, lighthouse, web vitals Solves:

  • How do I reduce frontend bundle size?
  • Implement code splitting with React.lazy()
  • Optimize Lighthouse scores
  • Fix Core Web Vitals issues

core-web-vitals

Keywords: lcp, inp, cls, core web vitals, ttfb, fid Solves:

  • How do I improve Core Web Vitals?
  • Optimize LCP (Largest Contentful Paint)
  • Fix CLS (Cumulative Layout Shift)
  • Improve INP (Interaction to Next Paint)

profiling

Keywords: profile, flame graph, py-spy, chrome devtools, memory leak, cpu bottleneck Solves:

  • How do I profile my Python backend?
  • Generate flame graphs with py-spy
  • Profile React components with DevTools
  • Find memory leaks in frontend

bundle-analysis

Keywords: bundle analyzer, vite visualizer, webpack bundle, tree shaking Solves:

  • How do I analyze bundle size?
  • Use Vite bundle visualizer
  • Identify large dependencies
  • Optimize bundle with tree shaking

平台分布

Claude Code

28.72%
按下载量换算163

Antigravity

24.02%
按下载量换算136

OpenCode

17.6%
按下载量换算100

Gemini CLI

12.33%
按下载量换算70

Cursor

8%
按下载量换算45

Codex

2.91%
按下载量换算16

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills