perf

Audit Terrae components for performance issues and generate structured fix reports.

243|5|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/alamenai/terrae --skill perf-alamenai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf
Source: https://github.com/alamenai/terrae/tree/main/.claude/skills/perf
Command: npx skills add https://github.com/alamenai/terrae --skill perf-alamenai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit Terrae components for performance bottlenecks and memory leaks, delivering actionable fixes to improve UI responsiveness and stability.

Core Features & Use Cases

  • Comprehensive audits: scans components for common performance pitfalls and reports prioritized fixes.
  • Structured reports: outputs a clear score, critical issues, warnings, and best practices.
  • Use Case: optimize a slow map component by identifying expensive renders and refactors.

Quick Start

Identify a target component with ARGUMENTS or audit all components to generate a performance report.

Frequently Asked Questions about perf

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

FAQPage Schema
How do I audit React components for memory leaks and performance issues?

Mapbox objects in React state cause performance issues because they trigger expensive re-renders, whereas storing them in refs prevents unnecessary render cycles and improves UI responsiveness.

What is the best way to optimize GeoJSON handling and layer management in map components?

Optimizing GeoJSON handling and layer management in map components requires auditing source management and DOM manipulation to identify bottlenecks and apply actionable refactoring fixes.

Can I scan my entire codebase for React performance bottlenecks or do I need to specify a target?

You can scan your entire codebase for React performance bottlenecks without specifying a target, or you can scope the audit specifically to components within the src/registry/map/ directory.

Why does my map component have slow canvas performance and expensive renders?

Slow canvas performance and expensive renders in map components often stem from improper resource cleanup, unmanaged timers, or inefficient GeoJSON handling, which a structured audit can identify and fix.