diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:06:49 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:06:49 +0900 |
| commit | adf5e96542ebd65c7d13ca5e9825071183b3ef13 (patch) | |
| tree | 699800730cc9f68ab775bea5722ba55cf08b304a /.claude/commands/analyze-performance.md | |
| parent | b8dc7344ff99eb23d5f003795f17cdba3b89c40b (diff) | |
fix: lint fixes for integration tests and backtester noqa annotations
Diffstat (limited to '.claude/commands/analyze-performance.md')
| -rw-r--r-- | .claude/commands/analyze-performance.md | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.claude/commands/analyze-performance.md b/.claude/commands/analyze-performance.md new file mode 100644 index 0000000..fa7a1df --- /dev/null +++ b/.claude/commands/analyze-performance.md @@ -0,0 +1,46 @@ +--- +allowed-tools: Bash, Read, Grep, Glob, Write +description: Analyze app performance and generate optimization report +--- + +Perform a comprehensive performance analysis of the Next.js application: + +## Bundle Analysis + +1. Check if @next/bundle-analyzer is installed, install if needed +2. Run build with ANALYZE=true to generate bundle analysis +3. Identify large dependencies and opportunities for code splitting + +## Core Web Vitals Analysis + +1. Check for Web Vitals monitoring setup +2. Analyze current implementation for: + - Largest Contentful Paint (LCP) issues + - Cumulative Layout Shift (CLS) problems + - First Input Delay (FID) / Interaction to Next Paint (INP) + +## Code Analysis + +1. Find components not using dynamic imports where appropriate +2. Check image optimization (using next/image properly) +3. Verify font optimization (using next/font) +4. Analyze third-party script loading strategies +5. Check for unnecessary client-side data fetching + +## Caching Analysis + +1. Review fetch caching strategies +2. Check for proper use of revalidate +3. Analyze static vs dynamic rendering choices + +## Generate Report + +Create a detailed performance report with: + +- Current bundle size metrics +- Largest dependencies +- Optimization opportunities ranked by impact +- Specific code changes needed +- Estimated performance improvements + +Save the report to `performance-report.md` with actionable recommendations. |
