# Uglify JS

> Use this skill when the user wants to minify JavaScript files for production — reduce bundle size, rename variables, remove dead code, and generate source maps.

- Skill: `javimosch/uglify-js` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/uglify-js`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/uglify-js/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/uglify-js

---


# UglifyJS Plugin

UglifyJS minifies and compresses JavaScript files. Removes whitespace, shortens variable names, eliminates dead code, and optimizes expressions for smaller production bundles.

## Commands

- `uglify-js _ _ <args>` — Passthrough

## Usage Examples

- "minify app.js to app.min.js"
- "minify with source map support"
- "compress multiple JS files into one"
- "beautify/minified code for debugging"

## Installation

```bash
npm install -g uglify-js
```

## Key Features
- Whitespace removal and variable mangling
- Dead code elimination
- Expression and statement optimization
- Source map generation
- Multiple input concatenation
- Beautify output option
- Compression level control
- CLI batch processing

