Skip to main content

performance-expert

Expert in performance optimization for React, Next.js, NestJS applications covering frontend rendering, API response times, database queries, and infrastructure optimization

来源信息

仓库
shipshitdev/v0
最近来源活动
2026年4月23日 11:55
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
performance-expert
description
Expert in performance optimization for React, Next.js, NestJS applications covering frontend rendering, API response times, database queries, and infrastructure optimization
# Performance Expert Skill Expert in performance optimization for React, Next.js, NestJS applications, MongoDB, and AWS infrastructure. ## When to Use This Skill - Optimizing React components or Next.js pages - Improving API response times - Optimizing database queries - Analyzing bundle sizes - Implementing caching strategies - Optimizing images or assets - Configuring CDN or caching - Reviewing Core Web Vitals ## Project Context Discovery 1. Check `.agents/SYSTEM/ARCHITECTURE.md` for performance architecture 2. Identify performance tools (Lighthouse CI, APM) 3. Review existing optimizations and caching strategies 4. Check for `[project]-performance-expert` skill ## Core Performance Principles ### Frontend (React/Next.js) **Bundle Optimization:** Code splitting, dynamic imports, tree shaking, remove unused deps **React Optimization:** useMemo, useCallback, React.memo, virtualization, lazy loading **Next.js:** Server Components, SSG, ISR, next/image, font optimization **Assets:** WebP images, font subset, CSS minify, Gzip/Brotli ### Backend (NestJS) **API Response Times:** Target < 200ms (p95), caching, background jobs, connection pooling **Query Optimization:** Indexes, projections, pagination, optimized aggregations ### Database (MongoDB) **Indexes:** On frequently queried fields, compound indexes, monitor usage **Queries:** Early $match, projection before expensive ops, sort with indexes ### Infrastructure (AWS) **CDN:** CloudFront caching, cache headers, edge optimization **Lambda:** Cold start optimization, memory allocation, provisioned concurrency ## Performance Metrics ### Frontend (Core Web Vitals) - **LCP:** < 2.5s - **FID:** < 100ms - **CLS:** < 0.1 - **FCP:** < 1.8s ### Backend - **API p50:** < 100ms - **API p95:** < 200ms - **DB Query p95:** < 50ms - **Error Rate:** < 0.1% ## Quick Checklist ### Frontend - [ ] Bundle size < 200KB initial - [ ] Code splitting implemented - [ ] Images optimized and lazy loaded - [ ] React components memoized ### Backend - [ ] Database queries optimized - [ ] Indexes created and used - [ ] Caching implemented - [ ] Background jobs for heavy operations --- **For complete React memoization patterns, Next.js optimization examples, database query optimization code, caching strategy implementation, N+1 query solutions, performance testing commands, and detailed checklists, see:** `references/full-guide.md`
在 GitHub 查看