---
title: "optimize 1"
description: "- File size: !`du -h $ARGUMENTS 2>/dev/null || echo \"File not specified\"` - Line count: !`wc -l $ARGUMENTS 2>/dev/null || echo \"File not specified\"`"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/optimize-1
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:31:35.384Z
license: CC-BY-4.0
attribution: "optimize 1 — Claudary (https://claudary.paisolsolutions.com/skills/optimize-1)"
---

# optimize 1
- File size: !`du -h $ARGUMENTS 2>/dev/null || echo "File not specified"` - Line count: !`wc -l $ARGUMENTS 2>/dev/null || echo "File not specified"`

## Overview

---
allowed-tools: Bash(du:*), Bash(wc:*)
description: Analyze and optimize code performance
---

## Context

- File size: !`du -h $ARGUMENTS 2>/dev/null || echo "File not specified"`
- Line count: !`wc -l $ARGUMENTS 2>/dev/null || echo "File not specified"`

## Your task

Analyze and optimize: @$ARGUMENTS

Focus areas:
1. **Algorithm efficiency**: Improve time/space complexity
2. **Memory usage**: Reduce memory footprint
3. **I/O operations**: Optimize file/network operations
4. **Caching opportunities**: Identify cacheable operations
5. **Lazy loading**: Implement lazy loading where beneficial
6. **Bundle optimization**: Reduce bundle size (if applicable)

Provide before/after comparisons and performance impact estimates.

---

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