---
title: "optimize size"
description: "Analyze and reduce code bundle size, dependency bloat, and binary footprint."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/optimize-size
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:31:35.384Z
license: CC-BY-4.0
attribution: "optimize size — Claudary (https://claudary.paisolsolutions.com/skills/optimize-size)"
---

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

## 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.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/optimize-size) · https://claudary.paisolsolutions.com
