agentsclimarketplace

Pwp perf

Skill shandar/pwp-plugin/skills/pwp-perf

11 systematic skills for Claude Code — structured protocols for debugging, code review, security, refactoring, testing, deployment, and more. No vibes, just discipline.

Install
npx -y skills add shandar/pwp-plugin --skill pwp-perf

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Performance optimization protocol — measure first, optimize second, verify always. Use this skill whenever the user reports something is slow, asks about performance, wants to optimize, or mentions load times, bundle size, rendering speed, memory usage, or database query performance. Also use when they say 'this is slow', 'speed this up', 'optimize this', 'reduce bundle size', 'improve load time', or 'why is this taking so long'. Covers web vitals, profiling, bottleneck identification, and before/after verification.

SKILL.md

3.4 KB, as published. Nobody here has run it

Performance Optimization Skill

The cardinal rule: never optimize on vibes. Measure, identify the bottleneck, fix it, prove it's faster.

Performance Mindset

  • Measure before optimizing. Intuition about performance is wrong more often than right. Profile first.
  • Optimize the bottleneck. Making a fast operation faster doesn't help.
  • Premature optimization is real. Only optimize measured problems or known-critical paths.
  • Verify the improvement. Before/after numbers or it didn't happen.

Investigation Protocol

Step 1: Define the Problem

  • What is slow? (Page load, API, render, build)
  • How slow? (Actual numbers: "3.2 seconds")
  • What is the target? ("Under 1 second")

Step 2: Measure Current State

AreaHow to Measure
Page loadLighthouse, DevTools Performance tab
Core Web VitalsLCP, INP, CLS via Lighthouse
API responseNetwork tab timing, server-side logging
RenderReact DevTools Profiler
Bundle sizeBuild output, bundlephobia
MemoryDevTools Memory tab, heap snapshots
DatabaseQuery EXPLAIN plans

Step 3: Identify the Bottleneck

  1. Network — too many requests, large payloads, no caching
  2. Data — slow queries, over-fetching, N+1 patterns
  3. Rendering — unnecessary re-renders, layout thrashing
  4. Compute — expensive calculations on main thread
  5. Assets — uncompressed images, unminified JS

Step 4: Fix the Bottleneck

BottleneckCommon Fixes
Large bundleCode splitting, dynamic imports, tree shaking
Slow page loadLazy loading, preload critical resources
Re-rendersuseMemo, useCallback, React.memo (only where profiled)
Slow APICaching, pagination, field selection
N+1 queriesBatch queries, eager loading, DataLoader
Large imagesWebP/AVIF, responsive srcset, lazy loading
Heavy computationWeb Workers, caching results

Step 5: Verify

**Before:** {metric} = {value}
**After:** {metric} = {value}
**Improvement:** {percentage}%
**Target met:** Yes / No
**Method:** {tool, conditions}

Web Performance Targets

MetricGoodNeeds WorkPoor
LCP< 2.5s2.5-4.0s> 4.0s
INP< 200ms200-500ms> 500ms
CLS< 0.10.1-0.25> 0.25
TTFB< 800ms800-1800ms> 1800ms
Bundle (gzip)< 100KB100-300KB> 300KB

Anti-Patterns

Anti-PatternDo This Instead
Memoizing everythingProfile first, memoize measured bottlenecks
Optimizing render countProfile actual paint/layout cost
Cache without TTLAlways set expiration
Lazy loading everythingOnly lazy load below-fold content
Compressing at runtimeCompress at build time

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.