All Skills stryx · skills Stryx Labs
// stryxstryx-performance

Performance.

When the app feels slow. The skill that profiles, identifies the bottleneck, and fixes it without making the code worse.

//01What it does

React Renders, Bundles, Memory, Vite, Electron Startup.

Performance work fails when engineers optimize the wrong thing. This skill enforces measure-first: profile, identify the actual bottleneck, fix that one thing, re-measure. Covers React rendering (memoization, code-split boundaries), bundle analysis (tree-shake audit, heavy dependency replacement), memory leak detection, Vite config tuning, and Electron startup optimization (it is usually the splash window).

//02What is inside

Four recipes.

i.

React rendering audit

React DevTools Profiler. Find unnecessary re-renders. Apply useMemo/useCallback ONLY where re-render cost > computation cost. Anti-pattern: memoizing everything (it is slower).

ii.

Bundle analysis

rollup-plugin-visualizer for Vite. Identify the biggest deps. Lazy-load route-level. Replace heavy libs (moment with date-fns, lodash with individual functions).

iii.

Memory leak detection

Chrome DevTools Memory tab. Heap snapshots before/after. Find detached DOM nodes. Cleanup useEffect returns. Dispose Three.js geometries/materials/textures explicitly.

iv.

Electron startup

Most startup time is splash to main window. Pre-warm the renderer. Lazy-import heavy modules. Use ASAR for faster IO. Profile with --inspect-brk and Chrome DevTools.

//03Chains with

It composes.

Skills compose into workflows. Performance is rarely the only skill you will use — it pairs naturally with these others in the library.

//04Install · just this skill

One command.

Installs only stryx-performance (skip the other 19) into ~/.claude/skills/stryx-performance/.

macOS · Linux
STRYX_SKILL=stryx-performance curl -fsSL https://stryxlabs.com/install-skills.sh | bash
 
Windows · PowerShell
PS> $env:STRYX_SKILL="stryx-performance"; irm https://stryxlabs.com/install-skills.ps1 | iex
 
All 20 skills (the full library)
curl -fsSL https://stryxlabs.com/install-skills.sh | bash
//05Reach

Free for all use.

Stryx Labs License v1.0. Use Performance in personal, commercial, internal, and production work. No attribution required.