compress-images
Installation
SKILL.md
Image Compression Skill
Compress all images in $ARGUMENTS (or app/assets/images/content/ if no path provided) to WebP format, optimized for SEO performance (target: under 100KB per image).
Process
- Create originals folder - Create
originals/subfolder inside the target directory and move source files there. Never destroy source files. - Compress each image (JPG, PNG, GIF) from
originals/to the parent directory as.webp - Iterate until all images are under 100KB - check sizes after each pass, re-compress any that exceed the target
- Report results with before/after sizes
- Update references in content files from old extensions to
.webp