unix-media-compressor
Installation
SKILL.md
Unix Media Compressor
Compress any file to its smallest practical size on macOS and Linux.
Core Philosophy
- Right tool for the job — Each file type has a best-in-class compressor. JPEG and PNG need different tools. Video and audio need different codecs. Match the tool to the content.
- Quality tiers, not magic numbers — Three tiers for every domain: "web" (aggressive, smallest), "balanced" (good quality, reasonable size), and "quality" (visually/audibly lossless). Pick a tier, get the right settings.
- Detect before compressing — Run
scripts/check-tools.shfirst. Know what tools are available. Install missing ones. Do not guess. - Preserve originals by default — Output to a new file unless the user explicitly asks to overwrite. Compression is lossy and irreversible for most formats.
- Show the results — Always report before/after file sizes and percentage reduction. Compression without measurement is guessing.