agentsclimarketplace

Performance patterns

Skill subhansh-dev/agent-maxxing/engineering/performance-patterns

Performance optimization patterns — lazy loading, caching, memoization, code splitting, bundle optimization.From its SKILL.md

Install
npx -y skills add subhansh-dev/agent-maxxing --skill performance-patterns

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

  • 2 stars2 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.

SKILL.md

2.0 KB, 454 tokens by cl100k_base, as published. Nobody here has run it

Performance Patterns

Frontend Performance

Lazy Loading

const HeavyComponent = lazy(() => import('./HeavyComponent'))

Load components only when needed. Use for routes, modals, below-fold content.

Memoization

const memoizedValue = useMemo(() => computeExpensiveValue(a, b), [a, b])
const memoizedFn = useCallback(() => doSomething(a, b), [a, b])

Cache expensive computations and function references.

Code Splitting

Split your bundle by route or feature. Users only download what they need.

Image Optimization

  • Use WebP/AVIF formats
  • Lazy load below-fold images
  • Use responsive images (srcset)
  • Compress images (tinyPNG, Sharp)

CSS Performance

  • Use transform and opacity for animations (GPU-accelerated)
  • Avoid layout triggers (width, height, margin, padding)
  • Use will-change sparingly
  • Minimize repaints with contain

Backend Performance

Caching

  • Cache database queries (Redis, in-memory)
  • Cache API responses (HTTP caching headers)
  • Cache expensive computations (memoization)
  • Cache rendered pages (SSR cache)

Database Optimization

  • Add indexes for frequent queries
  • Use connection pooling
  • Batch inserts/updates
  • Avoid N+1 queries
  • Use EXPLAIN ANALYZE

Async Operations

  • Don't block the event loop
  • Use worker threads for CPU-intensive tasks
  • Stream large responses
  • Queue background jobs

Measurement

  • Lighthouse — overall performance score
  • Core Web Vitals — LCP, FID, CLS
  • Chrome DevTools — Performance tab, Lighthouse tab
  • webpack-bundle-analyzer — bundle size visualization
  • ab / wrk — load testing

Common Anti-Patterns

  • Loading everything upfront
  • Not caching expensive operations
  • Synchronous database calls in loops
  • Large bundle sizes (no code splitting)
  • Unoptimized images (no lazy loading, wrong format)
  • Layout thrashing (reading layout then writing)

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. 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.