review-performance

Analyze algorithmic complexity, memory management, and frontend rendering in Cloudflare Workers and React.

18|4|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/louisbrulenaudet/monorepo-template --skill review-performance-louisbrulenaudet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-performance
Source: https://github.com/louisbrulenaudet/monorepo-template/tree/main/.agents/skills/review-performance
Command: npx skills add https://github.com/louisbrulenaudet/monorepo-template --skill review-performance-louisbrulenaudet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses performance bottlenecks in monorepo architectures by identifying algorithmic inefficiencies, memory leaks, and sub-optimal resource usage in both frontend and backend services.

Core Features & Use Cases

  • Algorithmic Audit: Detects O(n²) complexity in hot paths and suggests efficient data structures like Maps or Sets.
  • Resource Management: Identifies potential memory leaks in long-lived Workers and React components.
  • Frontend Optimization: Analyzes bundle sizes, critical path rendering, and image loading strategies to improve LCP and CLS metrics.
  • Use Case: Use this during a code review to ensure that a new API route in the worker-api doesn't introduce blocking I/O or excessive cold start latency.

Quick Start

Invoke the review-performance skill to conduct a full performance audit of the current codebase.

Frequently Asked Questions about review-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect memory leaks in long-lived Cloudflare Workers?

To detect memory leaks in Cloudflare Workers, analyze component lifecycles and resource allocation within long-lived processes. This identifies lingering references in hot paths to minimize memory exhaustion and reduce resource consumption in backend services.

How do I reduce cold start latency and blocking I/O in worker API routes?

Reduce cold start latency by auditing API routes for blocking I/O operations and optimizing resource usage. Analyzing algorithmic complexity and caching strategies ensures adherence to production-grade standards for minimal latency in serverless environments.

What is the best way to find O(n²) complexity in frontend hot paths?

Finding algorithmic complexity issues requires an algorithmic audit of hot paths to detect nested iterations and sub-optimal data structures. The process suggests efficient alternatives like Maps or Sets to minimize execution latency and resource consumption.

How do I optimize React bundle size and critical path rendering for LCP?

Optimize React bundle size by analyzing critical path rendering and image loading strategies to improve LCP and CLS metrics. Frontend optimization evaluates bundle sizes against production-grade standards to minimize latency and frontend rendering inefficiency.

Can I use this performance audit for monorepo architectures?

Yes, this performance audit is designed for monorepo architectures, identifying algorithmic inefficiencies and memory leaks across both frontend and backend services. It targets hot paths in Cloudflare Workers and React applications to minimize resource consumption.

When should I conduct a code review performance audit?

Conduct a code review performance audit when adding new API routes or components to ensure they meet production-grade standards. Use it to prevent introducing blocking I/O, excessive cold start latency, or memory leaks into the current codebase.