baoyu-compress-image
Installation
Summary
Compresses images to WebP or PNG with automatic tool selection based on system availability.
- Supports WebP (default), PNG, and JPEG output formats with configurable quality (0–100, default 80)
- Automatically selects best available compression tool: sips, cwebp, ImageMagick, or Sharp
- Processes single files or directories recursively with options to keep originals or replace in-place
- Customizable via EXTEND.md configuration files at project, user home, or XDG config locations
SKILL.md
Image Compressor
Tool auto-selection order: sips → cwebp → ImageMagick → Sharp.
Script Directory
{baseDir} = this SKILL.md's directory. Resolve ${BUN_X}: bun if installed; else npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values.
| Script | Purpose |
|---|---|
scripts/main.ts |
Image compression CLI |
Preferences (EXTEND.md)
First found wins: