performance-optimization
Full-stack performance analysis, optimization patterns, and monitoring strategies
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Full-stack performance analysis, optimization patterns, and monitoring strategies
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Convert design prototypes (HTML, CSS, Figma exports) into production-ready components. Analyzes prototype structure, extracts design tokens, identifies reusable patterns, and generates typed React components. Adapts to existing project tech stack with React + TypeScript as default.
Build AI-first applications with RAG pipelines, embeddings, vector databases, agentic workflows, and LLM integration. Master prompt engineering, function calling, streaming responses, and cost optimization for 2025+ AI development.
Use this skill when conducting or improving code reviews. Provides structured review processes, conventional comments patterns, language-specific checklists, and feedback templates. Ensures consistent, constructive, and thorough code reviews across teams.
CI/CD pipelines, containerization, Kubernetes, and infrastructure as code patterns
Structured logging, metrics, distributed tracing, and alerting strategies
Design and implement React Server Components with Next.js 15 App Router. Master server-first architecture, streaming SSR, Server Actions, and modern data fetching patterns for 2025+ frontend development.
| name | Performance Optimization |
| description | Full-stack performance analysis, optimization patterns, and monitoring strategies |
| version | 1.0.0 |
| category | Quality & Optimization |
| agents | ["backend-system-architect","frontend-ui-developer","code-quality-reviewer"] |
| keywords | ["performance","optimization","speed","latency","throughput","caching","profiling","bundle","Core Web Vitals"] |
Comprehensive frameworks for analyzing and optimizing application performance across the entire stack.
| Metric | Good | Needs Work |
|---|---|---|
| LCP (Largest Contentful Paint) | < 2.5s | < 4s |
| INP (Interaction to Next Paint) | < 200ms | < 500ms |
| CLS (Cumulative Layout Shift) | < 0.1 | < 0.25 |
| TTFB (Time to First Byte) | < 200ms | < 600ms |
| Operation | Target |
|---|---|
| Simple reads | < 100ms |
| Complex queries | < 500ms |
| Write operations | < 200ms |
| Index lookups | < 10ms |
| Category | Symptoms | Tools |
|---|---|---|
| Network | High TTFB, slow loading | Network tab, WebPageTest |
| Database | Slow queries, pool exhaustion | EXPLAIN ANALYZE, pg_stat_statements |
| CPU | High usage, slow compute | Profiler, flame graphs |
| Memory | Leaks, GC pauses | Heap snapshots |
| Rendering | Layout thrashing | React DevTools, Performance tab |
Seq Scan into Index Scaninclude instead of loops-- Find slow queries (PostgreSQL)
SELECT query, calls, mean_time / 1000 as mean_seconds
FROM pg_stat_statements ORDER BY total_time DESC LIMIT 10;
-- Verify index usage
EXPLAIN ANALYZE SELECT * FROM orders WHERE user_id = 123;
See
templates/database-optimization.tsfor N+1 fixes and pagination patterns
L1: In-Memory (LRU, memoization) - fastest
L2: Distributed (Redis/Memcached) - shared
L3: CDN (edge, static assets) - global
L4: Database (materialized views) - fallback
const cached = await redis.get(key);
if (cached) return JSON.parse(cached);
const data = await db.query(...);
await redis.setex(key, 3600, JSON.stringify(data));
return data;
See
templates/caching-patterns.tsfor full implementation
lazy() for route-based splittingmemo(), useCallback(), useMemo()See
templates/frontend-optimization.tsxfor patterns
# Lighthouse audit
lighthouse http://localhost:3000 --output=json
# Bundle analysis
npx @next/bundle-analyzer # Next.js
npx vite-bundle-visualizer # Vite
See
templates/api-optimization.tsfor middleware examples
See
templates/performance-metrics.tsfor Prometheus metrics setup
Use Opus 4.5 extended thinking for:
| Template | Purpose |
|---|---|
database-optimization.ts | N+1 fixes, pagination, pooling |
caching-patterns.ts | Redis cache-aside, memoization |
frontend-optimization.tsx | React memo, virtualization, code splitting |
api-optimization.ts | Compression, ETags, field selection |
performance-metrics.ts | Prometheus metrics, performance budget |