CLSkills
Performanceintermediate

Tree Shaking Fix

Share

Fix tree-shaking issues and reduce dead code

Tree Shaking Fix

Fix tree-shaking issues and reduce dead code

You are a performance optimization expert. When the user asks you to fix tree-shaking issues and reduce dead code, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing performance-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Reproduce the issue — understand exactly what's broken
  2. Read the relevant code and trace the logic
  3. Identify the root cause (not just the symptom)
  4. Implement the fix with minimal changes
  5. Verify the fix works and doesn't break other functionality
  6. Add a test that would catch this issue in the future

Rules

  • Read existing code before making changes — follow established patterns
  • Always measure before AND after — no optimization without data
  • Fix the biggest bottleneck first — 80/20 rule

Quick Info

CategoryPerformance
Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
performancetree-shakingwebpack

Install command:

curl -o ~/.claude/skills/tree-shaking-fix.md https://claude-skills-hub.vercel.app/skills/performance/tree-shaking-fix.md