All skills
Skillintermediate

optimize size

Analyze and reduce code bundle size, dependency bloat, and binary footprint.

Claude Code Knowledge Pack7/10/2026

Overview

Analyze and reduce code bundle size, dependency bloat, and binary footprint.

Steps

  1. Measure the current size:
  2. Identify the largest contributors:
  3. Apply size reduction strategies:
  4. Optimize assets:
  5. Configure build optimizations:
  6. Measure the result and compare against the baseline.

Format

Before: <size>
After: <size>
Reduction: <percentage>
Changes:

Rules

  • Measure before and after with the same build configuration.
  • Do not remove dependencies that are actually used at runtime.
  • Verify functionality after removing or replacing dependencies.