Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize image", "convert to webp", or reduce image file size.
All-time #832Trending #3096Hot #5252First seen Jan 19, 2026
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
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
The skill is a legitimate image compression utility that optimizes local images using standard system tools and the well-known 'sharp' library. It contains no malicious patterns or data exfiltration behaviors.
snykLOW
Analyzed Apr 20, 2026
No issues detected.
socketScore 0.9000 · 0 alerts
Analyzed Apr 20, 2026
license1
maintenance1
quality0.9
supply chain1
vulnerability1
0 alerts
Also in this package
Other skills from jimliu/baoyu-skills · top by installs.
Files included with this skill beyond the listing page.
skill mdSKILL.md2,409 B
docsSUMMARY.md205 B
History
First seen on skills.sh
First recorded snapshot · 27,209 installs
SKILL.md
Image Compressor
Compresses images using best available tool (sips → cwebp → ImageMagick → Sharp).
Script Directory
Scripts in scripts/ subdirectory. {baseDir} = this SKILL.md's directory path. Resolve ${BUNX} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUNX} with actual values.
Script
Purpose
scripts/main.ts
Image compression CLI
Preferences (EXTEND.md)
Check EXTEND.md in priority order — the first one found wins: