/performance
Performance optimization patterns covering Core Web Vitals, React render optimization, lazy loading, image optimization, backend profiling, LLM inference, and sustainability UX. Use when improving page speed, debugging slow renders, optimizing bundles, reducing image payload,
$ npx -y skills add yonatangross/orchestkit --skill performance --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/performance
Context preview
The summary Claude sees to decide when to auto-load this skill.
Performance optimization patterns covering Core Web Vitals, React render optimization, lazy loading, image optimization, backend profiling, LLM inference, and sustainability UX. Use when improving page speed, debugging slow renders, optimizing bundles, reducing image payload,
SKILL.md
performance.SKILL.mdname: performance
license: MIT
compatibility: "Claude Code 2.1.220+."
description: Performance optimization patterns covering Core Web Vitals, React render optimization, lazy loading, image optimization, backend profiling, LLM inference, and sustainability UX. Use when improving page speed, debugging slow renders, optimizing bundles, reducing image payload, profiling backend, deploying LLMs efficiently, or reducing digital carbon footprint.
tags: [performance, core-web-vitals, lcp, inp, cls, react-compiler, virtualization, lazy-loading, code-splitting, image-optimization, avif, profiling, vllm, quantization, inference, caching, redis, prompt-caching, tanstack-query, prefetching, optimistic-updates, sustainability, carbon-footprint, page-weight]
context: fork
agent: frontend-performance-engineer
version: 2.1.0
author: OrchestKit
user-invocable: false
disable-model-invocation: false
complexity: high
persuasion-type: guidance
effort: high
metadata:
category: document-asset-creation
allowed-tools:
- Read
- Glob
- Grep
- WebFetch
- WebSearch
Performance
Comprehensive performance optimization patterns for frontend, backend, and LLM inference.
Quick Reference
| Category | Rules | Impact | When to Use | |----------|-------|--------|-------------| | [Core Web Vitals](#core-web-vitals) | 4 | CRITICAL | LCP, INP, CLS optimization with 2026 thresholds | | [Render Optimization](#render-optimization) | 3 | HIGH | React Compiler, memoization, virtualization | | [Lazy Loading](#lazy-loading) | 3 | HIGH | Code splitting, route splitting, preloading | | [Image Optimization](#image-optimization) | 2 | HIGH | AVIF/WebP formats, responsive images | | [Profiling & Backend](#profiling--backend) | 3 | MEDIUM | React DevTools, py-spy, bundle analysis | | [LLM Inference](#llm-inference) | 3 | MEDIUM | vLLM, quantization, speculative decoding | | [Caching](#caching) | 2 | HIGH | Redis cache-aside, prompt caching, HTTP cache headers | | [Query & Data Fetching](#query--data-fetching) | 2 | HIGH | TanStack Query prefetching, optimistic updates, rollback | | [Sustainability](#sustainability) | 1 | MEDIUM | Page weight budgets, lazy loading, optimized formats, dark mode |
**Total: 23 rules across 9 categories**
Core Web Vitals
Google's Core Web Vitals with 2026 stricter thresholds.
| Rule | File | Key Pattern | |------|------|-------------| | LCP Optimization | `rules/cwv-lcp.md` | Preload hero, SSR, fetchpriority="high" | | INP Optimization | `rules/cwv-inp.md` | scheduler.yield, useTransition, requestIdleCallback | | INP Advanced | `rules/cwv-inp-advanced.md` | Layout thrashing, third-party scripts, rAF patterns | | CLS Prevention | `rules/cwv-cls.md` | Explicit dimensions, aspect-ratio, font-display |
2026 Thresholds
| Metric | Current Good | 2026 Good | |--------|--------------|-----------| | LCP | <= 2.5s | <= 2.0s | | INP | <= 200ms | <= 150ms | | CLS | <= 0.1 | <= 0.08 |
Render Optimization
React render performance patterns for React 19+.
| Rule | File | Key Pattern | |------|------|-------------| | React Compiler | `rules/render-compiler.md` | Auto-memoization, "Memo" badge verification | | Manual Memoization | `rules/render-memo.md` | useMemo/useCallback escape hatches, state colocation | | Virtualization | `rules/render-virtual.md` | TanStack Virtual for 100+ item lists |
Lazy Loading
Code splitting and lazy loading with React.lazy and Suspense.
| Rule | File | Key Pattern | |------|------|-------------| | React.lazy + Suspense | `rules/loading-lazy.md` | Component lazy loading, error boundaries | | Route Splitting | `rules/loading-splitting.md` | React Router 7.x, Vite manual chunks | | Preloading | `rules/loading-preload.md` | Prefetch on hover, modulepreload hints |
Image Optimization
Production image optimization for modern web applications.
| Rule | File | Key Pattern | |------|------|-------------| | Format Selection | `rules/images-formats.md` | AVIF/WebP, quality 75-85, picture element | | Responsive Images | `rules/images-responsive.md` | sizes prop, art direction, CDN loaders |
Next.js `Image` component usage and the v16 image config defaults are first-party territory; see "Upstream coverage (do not restate)" below.
Profiling & Backend
Profiling tools and backend optimization patterns.
| Rule | File | Key Pattern | |------|------|-------------| | React Profiling | `rules/profiling-react.md` | DevTools Profiler, flamegraph, render counts | | Backend Profiling | `rules/profiling-backend.md` | py-spy, cProfile, memory_profiler, flame graphs | | Bundle Analysis | `rules/profiling-bundle.md` | vite-bundle-visualizer, tree shaking, performance budgets |
LLM Inference
High-performance LLM inference with vLLM, quantization, and speculative decoding.
| Rule | File | Key Pattern | |------|------|-------------| | vLLM Deployment | `rules/inference-vllm.md` | PagedAttention, continuous batching, tensor parallelism | | Quantization | `rules/inference-quantization.md` | AWQ, GPTQ, FP8, INT8 method selection | | Speculative Decoding | `rules/inference-speculative.md` | N-gram, draft model, 1.5-2.5x throughput |
Caching
Backend Redis caching and LLM prompt caching for cost savings and performance.
| Rule | File | Key Pattern | |------|------|-------------| | Redis & Backend | `rules/caching-redis.md` | Cache-aside, write-through, invalidation, stampede prevention | | HTTP & Prompt | `rules/caching-http.md` | HTTP cache headers, LLM prompt caching, semantic caching |
Query & Data Fetching
TanStack Query v5 patterns for prefetching and optimistic updates.
| Rule | File | Key Pattern | |------|------|-------------| | Prefetching | `rules/query-prefetching.md` | Hover prefetch, route loaders, queryOptions, Suspense | | Optimistic Updates | `rules/query-optimistic.md` | Optimistic mutations, rollback, cache invalidation |
Sustainability
Digital sustainability patterns for reducing carbon footprint and energy usage.
| Rule | File |
Read more
name: performance license: MIT compatibility: "Claude Code 2.1.220+." description: Performance optimization patterns covering Core Web Vitals, React render optimization, lazy loading, image optimization, backend profiling, LLM inference, and sustainability UX. Use when improving page speed, debugging slow renders, optimizing bundles, reducing image payload, profiling backend, deploying LLMs efficiently, or reducing digital carbon footprint. tags: [performance, core-web-vitals, lcp, inp, cls, react-compiler, virtualization, lazy-loading, code-splitting, image-optimization, avif, profiling, vllm, quantization, inference, caching, redis, prompt-caching, tanstack-query, prefetching, optimistic-updates, sustainability, carbon-footprint, page-weight] context: fork agent: frontend-performance-engineer version: 2.1.0 author: OrchestKit user-invocable: false disable-model-invocation: false complexity: high persuasion-type: guidance effort: high metadata: category: document-asset-creation allowed-tools: - Read - Glob - Grep - WebFetch - WebSearch
Performance
Comprehensive performance optimization patterns for frontend, backend, and LLM inference.
Quick Reference
| Category | Rules | Impact | When to Use | |----------|-------|--------|-------------| | [Core Web Vitals](#core-web-vitals) | 4 | CRITICAL | LCP, INP, CLS optimization with 2026 thresholds | | [Render Optimization](#render-optimization) | 3 | HIGH | React Compiler, memoization, virtualization | | [Lazy Loading](#lazy-loading) | 3 | HIGH | Code splitting, route splitting, preloading | | [Image Optimization](#image-optimization) | 2 | HIGH | AVIF/WebP formats, responsive images | | [Profiling & Backend](#profiling--backend) | 3 | MEDIUM | React DevTools, py-spy, bundle analysis | | [LLM Inference](#llm-inference) | 3 | MEDIUM | vLLM, quantization, speculative decoding | | [Caching](#caching) | 2 | HIGH | Redis cache-aside, prompt caching, HTTP cache headers | | [Query & Data Fetching](#query--data-fetching) | 2 | HIGH | TanStack Query prefetching, optimistic updates, rollback | | [Sustainability](#sustainability) | 1 | MEDIUM | Page weight budgets, lazy loading, optimized formats, dark mode |
**Total: 23 rules across 9 categories**
Core Web Vitals
Google's Core Web Vitals with 2026 stricter thresholds.
| Rule | File | Key Pattern | |------|------|-------------| | LCP Optimization | `rules/cwv-lcp.md` | Preload hero, SSR, fetchpriority="high" | | INP Optimization | `rules/cwv-inp.md` | scheduler.yield, useTransition, requestIdleCallback | | INP Advanced | `rules/cwv-inp-advanced.md` | Layout thrashing, third-party scripts, rAF patterns | | CLS Prevention | `rules/cwv-cls.md` | Explicit dimensions, aspect-ratio, font-display |
2026 Thresholds
| Metric | Current Good | 2026 Good | |--------|--------------|-----------| | LCP | <= 2.5s | <= 2.0s | | INP | <= 200ms | <= 150ms | | CLS | <= 0.1 | <= 0.08 |
Render Optimization
React render performance patterns for React 19+.
| Rule | File | Key Pattern | |------|------|-------------| | React Compiler | `rules/render-compiler.md` | Auto-memoization, "Memo" badge verification | | Manual Memoization | `rules/render-memo.md` | useMemo/useCallback escape hatches, state colocation | | Virtualization | `rules/render-virtual.md` | TanStack Virtual for 100+ item lists |
Lazy Loading
Code splitting and lazy loading with React.lazy and Suspense.
| Rule | File | Key Pattern | |------|------|-------------| | React.lazy + Suspense | `rules/loading-lazy.md` | Component lazy loading, error boundaries | | Route Splitting | `rules/loading-splitting.md` | React Router 7.x, Vite manual chunks | | Preloading | `rules/loading-preload.md` | Prefetch on hover, modulepreload hints |
Image Optimization
Production image optimization for modern web applications.
| Rule | File | Key Pattern | |------|------|-------------| | Format Selection | `rules/images-formats.md` | AVIF/WebP, quality 75-85, picture element | | Responsive Images | `rules/images-responsive.md` | sizes prop, art direction, CDN loaders |
Next.js `Image` component usage and the v16 image config defaults are first-party territory; see "Upstream coverage (do not restate)" below.
Profiling & Backend
Profiling tools and backend optimization patterns.
| Rule | File | Key Pattern | |------|------|-------------| | React Profiling | `rules/profiling-react.md` | DevTools Profiler, flamegraph, render counts | | Backend Profiling | `rules/profiling-backend.md` | py-spy, cProfile, memory_profiler, flame graphs | | Bundle Analysis | `rules/profiling-bundle.md` | vite-bundle-visualizer, tree shaking, performance budgets |
LLM Inference
High-performance LLM inference with vLLM, quantization, and speculative decoding.
| Rule | File | Key Pattern | |------|------|-------------| | vLLM Deployment | `rules/inference-vllm.md` | PagedAttention, continuous batching, tensor parallelism | | Quantization | `rules/inference-quantization.md` | AWQ, GPTQ, FP8, INT8 method selection | | Speculative Decoding | `rules/inference-speculative.md` | N-gram, draft model, 1.5-2.5x throughput |
Caching
Backend Redis caching and LLM prompt caching for cost savings and performance.
| Rule | File | Key Pattern | |------|------|-------------| | Redis & Backend | `rules/caching-redis.md` | Cache-aside, write-through, invalidation, stampede prevention | | HTTP & Prompt | `rules/caching-http.md` | HTTP cache headers, LLM prompt caching, semantic caching |
Query & Data Fetching
TanStack Query v5 patterns for prefetching and optimistic updates.
| Rule | File | Key Pattern | |------|------|-------------| | Prefetching | `rules/query-prefetching.md` | Hover prefetch, route loaders, queryOptions, Suspense | | Optimistic Updates | `rules/query-optimistic.md` | Optimistic mutations, rollback, cache invalidation |
Sustainability
Digital sustainability patterns for reducing carbon footprint and energy usage.
| Rule | File |
Showing the first part of this file.
The Complete AI Development Toolkit for Claude Code — 114 skills, 37 agents, 212 hooks. Production-ready patterns for full-stack development.
Repo: yonatangross/orchestkit
Other skills on orchestkit.
- /accessibility
Accessibility patterns for WCAG 2.2 compliance, keyboard focus management, React Aria component patterns, cognitive inclusion, native HTML-first philosophy, and user preference honoring. Use when implementing screen reader support, keyboard navigation, ARIA patterns, focus
Open skill - /agent-orchestration
Agent orchestration patterns for agentic loops, multi-agent coordination, alternative frameworks, and multi-scenario workflows. Use when building autonomous agent loops, coordinating multiple agents, evaluating CrewAI/AutoGen/Swarm, or orchestrating complex multi-step scenarios.
Open skill - /ai-ui-generation
AI-assisted UI generation patterns for json-render, v0.app, Google Stitch, Bolt Cloud, and Cursor workflows. Covers prompt engineering for component and full-stack app generation, review checklists for AI-generated code, design token injection, refactoring for design system
Open skill - /analytics
Queries local analytics across OrchestKit projects for agent usage, skill frequency, hook timing, team activity, session replay, cost estimation, and model delegation trends. Privacy-safe with hashed project IDs. Supports time-range filtering and comparative analysis. Use when
Open skill - /animation-motion-design
Animation and motion design patterns using Motion library (formerly Framer Motion) and View Transitions API. Use when implementing component animations, page transitions, micro-interactions, gesture-driven UIs, or ensuring motion accessibility with prefers-reduced-motion.
Open skill - /api-design
API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, and OpenAPI specs. Use when specifying the wire contract an endpoint exposes, choosing a versioning scheme, or
Open skill

